WO2018145537A1 - Live broadcast data processing method and device - Google Patents

Live broadcast data processing method and device Download PDF

Info

Publication number
WO2018145537A1
WO2018145537A1 PCT/CN2017/120277 CN2017120277W WO2018145537A1 WO 2018145537 A1 WO2018145537 A1 WO 2018145537A1 CN 2017120277 W CN2017120277 W CN 2017120277W WO 2018145537 A1 WO2018145537 A1 WO 2018145537A1
Authority
WO
WIPO (PCT)
Prior art keywords
cdn system
service
cdn
data
parameter
Prior art date
Application number
PCT/CN2017/120277
Other languages
French (fr)
Chinese (zh)
Inventor
余锋
Original Assignee
北京奇虎科技有限公司
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 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2018145537A1 publication Critical patent/WO2018145537A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/226Characteristics of the server or Internal components of the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2543Billing, e.g. for subscription services

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a method for processing live data and a device for processing live data.
  • the video obtained by the user through the network may be an on-demand video or a live video; Real-time and interactive, making live broadcasts more and more popular.
  • the network congestion and server load are excessive, which makes the live broadcast users watch more live broadcast delays and jams, which greatly reduces the user experience.
  • a Content Delivery Network (CDN) is built on the network, so that users can obtain required content from the nearest edge network server, reduce network congestion, and improve user access response speed.
  • CDN Content Delivery Network
  • the general live broadcast system will work with two CDN vendors to use one CDN as the primary CDN and the other as the backup CDN.
  • the primary CDN fails, the live broadcast system is manually switched to the standby CDN.
  • the primary and backup CDNs are only faulty backup mechanisms, and the performance of the CDN system in different time periods is different, and the live broadcast quality of each time period cannot be guaranteed.
  • the present application has been made in order to provide a method for processing live data that overcomes the above problems or at least partially solves the above problems, and a corresponding processing device for live data.
  • a method for processing live data includes: establishing a relationship between a live broadcast system and at least two content distribution network CDN systems; and determining services of each CDN system according to current operating parameters of each CDN system. Status information, wherein the service status information is used to characterize a current service performance of a CDN system other than the faulty CDN system; determining a CDN system that meets the service condition according to the service status information, and switching the CDN system that meets the service condition to A target CDN system currently serving the live broadcast system to provide live broadcast service data using the target CDN system.
  • a processing device for live data including: an association module, configured to establish a relationship between a live broadcast system and at least two content distribution network CDN systems; and a first information determining module, configured to Determining service status information of each CDN system, wherein the service status information is used to characterize current service performance of the CDN system other than the faulty CDN system; the system switching module is configured to The service status information determines a CDN system that meets the service condition, and switches the CDN system that meets the service condition to the target CDN system currently serving the live broadcast system to provide live broadcast service data using the target CDN system.
  • a computer program comprising computer readable code that, when run on a server, causes the server to perform a processing method of any of the aforementioned live data.
  • a computer readable medium storing a computer program of a method of processing live data as described above.
  • the live broadcast system is associated with at least two content distribution network CDN systems; and the service status information of each CDN system is determined according to the current operating parameters of each CDN system;
  • the CDN system is switched to the target CDN system currently serving the live broadcast system; thus, the live broadcast service data can be improved for the live broadcast system by using the CDN with better service performance in the live broadcast process, thereby solving the prior art.
  • the problem of live quality cannot be guaranteed in real time; the quality of the live broadcast is improved, and the user experience is improved.
  • FIG. 1 is a flow chart showing the steps of an embodiment of a method for processing live data according to an embodiment of the present application
  • FIG. 2 is a flow chart showing the steps of another embodiment of a method for processing live data according to an embodiment of the present application
  • FIG. 3 is a structural block diagram of an embodiment of a processing apparatus for live broadcast data according to an embodiment of the present application
  • FIG. 4 is a structural block diagram of another embodiment of a processing apparatus for live data according to an embodiment of the present application.
  • Figure 5 schematically shows a block diagram of a server for performing the method according to the present application
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the present application.
  • the live broadcast system is associated with at least two content distribution network CDN systems, thereby measuring the service status of the CDN system in real time, and selecting a high-quality CDN system to provide services for the live broadcast system, thereby effectively ensuring the quality of the live broadcast.
  • FIG. 1 is a flow chart showing the steps of a method for processing live data according to an embodiment of the present application. Specifically, the method may include the following steps:
  • Step 102 Establish a relationship between the live broadcast system and at least two content distribution network CDN systems.
  • a live broadcast system can cooperate with a plurality of different CDN systems, and a CDN system with better service performance can be selected from multiple CDN systems for the live broadcast system in different time periods.
  • the service wherein the CDN system serving the live broadcast system is at least two, so as to select a better service from the two CDN systems to provide a live data service for the live broadcast system.
  • the live broadcast system is associated with the cooperative CDN system, and each CDN system has a corresponding association relationship with the live broadcast system.
  • the live broadcast system can be established according to the established association relationship. Switch to connect to the corresponding CDN system.
  • Step 104 Determine service state information of each CDN system according to current operating parameters of each CDN system.
  • the current running parameters of each CDN system may be obtained according to a preset period, and then the service status information of each CDN system is determined according to the operating parameters of each CDN system, where the operating parameter refers to a CDN.
  • the performance parameters of the system during operation such as the delay parameter, the stuck parameter, and the like, are determined according to actual conditions, such as 5 minutes as a cycle. Since the faulty CDN system cannot provide services for the live broadcast system, the CDN system that determines the service status information is a non-faulty CDN system. For the faulty CDN system, it is not necessary to determine the service status information, and wait for the fault recovery to resume use. Then obtain the corresponding service status information.
  • the service status information is used to characterize the current service performance of the normally operating CDN system, and does not characterize the service performance of the faulty CDN system. Further, the service of the CDN system can be determined based on the service status information of each CDN system. performance.
  • the service performance of different CDN systems is different in the same time period; when the same CDN system accesses different carrier networks, the corresponding service performance is different; the service performance of CDN systems in different regions of the same carrier is also different.
  • Step 106 Determine, according to the service status information, a CDN system that meets the service condition, and switch the CDN system that meets the service condition to a target CDN system that currently serves the live broadcast system.
  • the service status information in the embodiment of the present application may represent the service performance of the CDN system. Therefore, after determining the service status information, the service status may be selected from multiple CDN systems cooperated by the live broadcast system according to the service status information of each CDN system.
  • the conditional CDN system determines the eligible CDN system as the target CDN system. Then, according to the association relationship between the target CDN system and the live broadcast system, the CDN system currently serving the live broadcast system is switched to the target CDN system, thereby using the target CDN system to provide live broadcast service data for the live broadcast system.
  • the service condition is used to filter the target CDN system; wherein the service status information can be determined to meet the service condition, that is, the CDN system that satisfies the service status threshold with the service status information, and determines the CDN that meets the service condition.
  • the system determines one of the CDN systems as the target CDN system according to the user operation, and the set service status threshold may be set according to actual conditions; or the service status information may be optimally determined to be in compliance with the service condition.
  • the live broadcast system is associated with at least two content distribution network CDN systems; and the service status information of each CDN system is determined according to current operating parameters of each CDN system; and then the service conditions are met.
  • the CDN system is switched to the target CDN system currently serving the live broadcast system; thus, the live broadcast service data can be improved for the live broadcast system by using the CDN with better service performance during the live broadcast process, and the quality of the live broadcast is improved and improved. user experience.
  • the embodiment of the present application provides a detailed description of the method for determining the service status information of each CDN system according to the operating parameters, and the manner of determining the CDN system that meets the service conditions.
  • FIG. 2 a flow chart of steps of another embodiment of a method for processing live data according to an embodiment of the present application is shown.
  • Step 202 Establish a relationship between the live broadcast system and at least two content distribution network CDN systems.
  • the live broadcast system cooperates with at least two CDN systems to determine a CDN system that cooperates with the live broadcast system, and then associates the live broadcast system with each CDN system.
  • Step 204 Determine an operating state of the CDN system according to current operating parameters of each CDN system; and ignore a faulty CDN system when an operating state of the CDN system is a fault.
  • any CDN system associated with the live broadcast system may be faulty at any time due to various reasons, and the faulty CDN system cannot provide services for the live broadcast system. It can be seen that the CDN system determined for the live broadcast system is inevitable. It does not include the faulty CDN system; therefore, the operating parameters of each CDN system can be obtained during the live broadcast, and the operating status of each CDN system is determined according to the operating parameters.
  • the operation state includes: a non-fault state and a fault state; specifically, the acquired operation parameter is compared with a corresponding range of the operation parameter in the non-fault state, and if the acquired operation parameter belongs to a non-fault state of the CDN system,
  • the operating parameter corresponding range determines that the CDN system is in a non-fault state; otherwise, it determines that the state of the CDN system is a faulty state.
  • the faulty CDN system can be ignored without determining the service status information of the faulty CDN system.
  • the service status information of each CDN system may be determined according to the operation parameters of each CDN system, and the specific steps for determining the CDN service status information are as follows:
  • Step 206 Calculate corresponding operating state data according to current operating parameters of the CDN system.
  • the corresponding operating state data may be calculated according to the acquired operating parameters of the CDN system to evaluate the service state information of the CDN according to the operating state data.
  • the delay, the jam rate and the cost of the CDN system are the main factors for the live broadcast system to evaluate the CDN system.
  • the user types and their own situations of different live broadcast systems are different, which makes the requirements of the CDN system different for different live broadcast systems. For example, some live broadcast systems require a short CDN system to synchronize the live broadcast terminal with the client, such as a large-scale live broadcast system. For example, some live broadcast systems require a low CDN rate and a short delay to maximize the user experience.
  • the operating parameters in the embodiment of the present application include at least one of the following: a delay parameter, a carton parameter, and a value parameter; and the running status data determined according to the operating parameter corresponds to at least one of the following: response delay data, card Rate, value data.
  • other parameters included in the operating parameter may also be determined according to other requirements of the live system for the CDN system, and the corresponding operating state data may further include other data.
  • the specific steps for calculating the corresponding operational status data according to the parameters included in the operating parameters are as follows:
  • the delay parameter is quantized, and the corresponding response delay data is calculated according to the quantization result.
  • the factors causing the video delay include at least: the encoding time of the video by the anchor end, the decoding time of the video by the client, the transmission time of the video network, and the packet loss rate; each factor corresponds to one or more delay parameters; The parameters are quantized, and corresponding response delay data is calculated according to the quantized result, thereby determining the delay of the CDN according to the response delay data.
  • the video card in the live broadcast process refers to the phenomenon of stagnation of the video during the video playback of the client; the less the number of jams during the video playback, the better the experience of the user watching the video; therefore, the carton rate affects the quality of the live broadcast.
  • An important indicator is also an important indicator to evaluate the performance of each CDN system service.
  • the Carton rate refers to the statistics of the number of times of playing the card in a unit time.
  • the cause of the stuck may be the interruption of the data transmission by the push-end, the congestion of the public network or the abnormality of the network jitter, or the decoding performance of the terminal device is too poor; each case corresponds to one or more cardon parameters.
  • the card rate of the CDN system in the preset time period may be calculated according to the acquired one or more cardon parameters; wherein the preset time is set according to an actual situation, for example, 1 minute.
  • the value data corresponding to the CDN system is calculated according to the value parameter obtained from the preset rule information.
  • the cost of the CDN system in the embodiment of the present application is also the service performance of a CDN system that some live broadcast systems pay attention to; different CDN systems have different fees, for example, some CDN systems cost 1.4 yuan/GB, and some CDN systems have The fee is 0.6 yuan / GB.
  • the value parameters of each CDN system are stored in the preset rule information; thus, the value parameters corresponding to each CDN can be obtained from the preset rule information, and then according to the value The parameters calculate the value data of each CDN system.
  • the at least one step of calculating the running status data may be performed according to the service condition of the live broadcast system.
  • Step 208 Evaluate service state information of the CDN system according to the operating state data.
  • the service status information of each CDN system can be evaluated based on the operational status data. Specifically, the weight information of each running state data is obtained, and the running state data is weighted according to the weight information to determine service state information of the CDN system. According to the above, different live broadcast systems have different requirements for live broadcast quality. Therefore, the weight of each data in the operating state data can be determined according to the requirements of the live broadcast system, and the weight information corresponding to each data can be saved.
  • weighting calculation may be performed on each data in the operation status data according to the weight information corresponding to each data, thereby obtaining service weight information of the CDN system; wherein the operation status data includes
  • the data can be either one type of data or multiple types of data.
  • the variety show system has the highest requirements for network delay, followed by fluency and lower price requirements. Therefore, the weights of response delay data, card rate and value data can be set to be 0.1, 0.3 and 0.6 respectively. Then, the weighted calculation is performed on each data to obtain the service status parameter of the CDN system.
  • Step 210 Sort each service state information according to a preset order, and determine the CDN system with the highest ranking as a CDN system that meets the service condition.
  • the service status information is sorted according to a preset order, and then the highest ranked CDN system is determined as a system that meets the service condition; wherein the preset order is the weight according to the running status information.
  • the information may be in ascending order or descending order, that is, the CDN system may be arranged in order of superiority to inferiority in order to select a CDN system with high performance.
  • Step 212 Switch the CDN system that meets the service condition to the target CDN system that currently serves the live broadcast system.
  • the highest ranked CDN system After selecting the highest ranked CDN system, the highest ranked CDN system can be switched to the target CDN system served by the live broadcast system.
  • the live broadcast system can be broadcasted using a CDN system with good service performance.
  • the existing three CDN systems have established associations with the live broadcast system, namely A, B, and C.
  • the operating parameters of the CDN systems A, B, and C are respectively obtained, and the CDN system A is determined.
  • A's response delay data, carton rate and value data are: 7s, 20% , 1.6; B response delay data, carton rate and value data are: 10s, 25%, 1.6; C response delay data, carton rate and value data are: 7s, 18%, 2; response
  • the weight information of the delay data, the cardon rate and the value data is 0.6, 0.3, and 0.1; the preset order is ascending order; after normalizing each running state data, the weight information is used for weighting calculation, and the calculation is performed.
  • B, C service status information, the sorting positions corresponding to A, B, and C are sorted in ascending order: A, C, B; then CDN system A is the target CDN system, and the live broadcast system is switched to connect with CDN system A.
  • a CDN system in the embodiment of the present application may be deployed on multiple different networks, and the service providers of the respective CDN systems are different, such as China Mobile, China Telecom, China Telecom, etc.; accessing different service provider corresponding networks
  • the service performance of the CDN system is different; and the CDN system accessing the network corresponding to the same service provider has different service performance in each region.
  • a CDN system that accesses China Mobile's network including CDN in Beijing, CDN in Guangzhou, CDN in Shenzhen, and CDN in Shenyang, etc., have different service performance.
  • the operational parameters of each CDN system also include geographic parameters and/or service provider parameters.
  • the method for determining the service status information will be described in detail below for the case where only the geographical parameters are considered, only the service provider parameters are considered, and the regional parameters and the service provider parameters are simultaneously considered.
  • Other operating state data such as the regional parameters, the provider parameters, and the like, may be present in the actual processing.
  • the embodiments of the present application are not enumerated, and should not be construed as limiting the embodiments of the present application.
  • the area parameter may also be acquired; and according to the area parameter, the service status information of each CDN system corresponding to each area is determined.
  • the area corresponding to the CDN system may be determined according to the regional parameter, and then the service status information corresponding to the area is determined according to at least one of a delay parameter, a Carton parameter, and a value parameter of the CDN system in the area, and the service status information may be determined.
  • the average of the plurality of CDN service status information in the area is used as the service status information of the CDN system corresponding to the area; and then the CDN system corresponding to the area in which the service condition is met is determined.
  • each CDN system includes 10 service status information, and the total number of service status information calculated by the three CDN systems is 30.
  • the service provider parameter when at least one of the delay parameter, the Carton parameter, and the value parameter is obtained, the service provider parameter may also be obtained; and according to the service provider parameter, the CDN system is determined respectively in each service.
  • the service provider parameter may be determined according to the obtained service provider parameter, and the service provider information of the CDNs deployed on the same service provider may be calculated, thereby determining that the CDN system is provided in the service provider.
  • the service status information corresponding to the party and then determine the CDN system corresponding to the service provider that meets the service condition. For example, there are three CDN systems that are associated with the live broadcast system; when the service provider parameters are not considered, the service status information of the three CDN systems is three.
  • each CDN system corresponds to two service status information; the total number of service status information calculated by the three CDN systems is six.
  • the regional parameter and the service provider parameter are simultaneously acquired; and then, the region corresponding to the CDN system is determined according to the regional parameter. Then, according to the service provider parameter, the service provider corresponding to the regional CDN system is determined; thus, the service status information of each CDN system in each service provider is determined for each region.
  • the CDN corresponding to the Beijing area is determined according to one of the regional parameters; then, according to the service provider parameter, it is determined that the corresponding CDN system in the Beijing area has two service providers S1 and S2; At least one parameter of the delay parameter, the Carrington parameter and the value parameter, determining the service status information corresponding to the corresponding CDN system accessing the S1 network in the Beijing area, and determining the service status information corresponding to the corresponding CDN system accessing the S2 network in the Beijing area;
  • the CDN system corresponds to two service status information in the Beijing area.
  • the CDN system that meets the service conditions is determined according to the service status information corresponding to each service provider in the CDN system; specifically, the service status information of the CDN system corresponding to different service providers in each area is preset. The ordering is performed; then the CDN system corresponding to the highest ranked service status information is determined as the target CDN system.
  • each CDN system has two service providers, and each CDN system corresponds to 10 regions; then each CDN system corresponds to two service status information for each region.
  • a CDN system corresponds to 20 service status information; therefore, three CDN systems correspond to 60 service status information; then, 60 service status information are sorted, thereby selecting the CDN system corresponding to the highest ranked service status information, as a target CDN system.
  • the embodiment of the present application may calculate corresponding operating state data according to at least one of a delay parameter, a Carton parameter, and a value parameter; and then determine service state information of each CDN system according to the corresponding weight information, and then corresponding each CDN system.
  • the service status information is sorted according to a preset order, and the CDN system corresponding to the highest ranked service status information is determined as the target CDN system; thus, the connection with the live broadcast system can be dynamically adjusted according to the requirements of the live broadcast system for the CDN system.
  • the CDN system guarantees the live broadcast quality of the live broadcast system.
  • the embodiment of the present application further calculates service state information of the CDN system corresponding to each region according to the regional parameter and/or the service provider parameter, service state information of each CDN system on each service provider, and a CDN system corresponding to each region.
  • Service status information on each service provider further refinement of the service status information of the CDN system, thereby more accurately scheduling the CDN system for the live broadcast system, further improving the quality of the live broadcast and improving the user experience.
  • FIG. 3 a structural block diagram of an embodiment of a processing apparatus for live broadcast data according to an embodiment of the present application is shown.
  • the following may include a module: an association module 301, a first information determining module 302, and a system switching module 303, where ,
  • the association module 301 is configured to associate the live broadcast system with at least two content distribution network CDN systems.
  • the first information determining module 302 is configured to determine service state information of each CDN system according to current operating parameters of each CDN system, where the service state information is used to represent current service performance of the CDN system other than the faulty CDN system. .
  • the system switching module 303 is configured to determine, according to the service status information, a CDN system that meets a service condition, and switch a CDN system that meets the service condition to a target CDN system that currently serves the live broadcast system, to adopt the target CDN system. Provide live service data.
  • FIG. 4 is a structural block diagram of another embodiment of a processing apparatus for live broadcast data according to an embodiment of the present application.
  • the apparatus further includes: a second information determining module 304, a third information determining module 305, and a state determining module. 306, wherein
  • the second information determining module 304 is configured to determine, according to the regional parameter, service state information corresponding to each CDN system in each region.
  • the third information determining module 305 is configured to determine, according to the service provider parameter, service state information corresponding to each service provider of the CDN system.
  • the state determining module 306 is configured to determine an operating state of the CDN system according to current operating parameters of each CDN system; and ignore a faulty CDN system when an operating state of the CDN system is a fault.
  • the first information determining module 302 includes: a calculating submodule 3021 and an evaluating submodule 3022, where
  • the calculation sub-module 3021 is configured to calculate corresponding operating state data according to current operating parameters of the CDN system.
  • the evaluation submodule 3022 is configured to evaluate service state information of the CDN system according to the operating state data.
  • the calculating sub-module 3021 is specifically configured to quantize the delay parameter, calculate corresponding response delay data according to the quantization result, and calculate a card of the CDN system in a preset time period according to the cardon parameter.
  • the rate is calculated according to the value parameter obtained from the preset rule information, and the value data corresponding to the CDN system is calculated.
  • the evaluation sub-module 3022 is specifically configured to obtain weight information of each running state data, perform weighting calculation on the running state data according to the weight information, and determine service state information of the CDN system.
  • the system switching module 303 is specifically configured to determine, according to the service status information corresponding to each service provider of the CDN system, the CDN system that meets the service condition in each area.
  • the system switching module 303 is specifically configured to sort each service state information according to a preset order, and determine the highest ranked CDN system as a CDN system that meets the service condition.
  • the operating parameter includes at least one of the following: a delay parameter, a carton parameter, and a value parameter;
  • the running status data includes at least one of the following: response delay data, a card rate, and value data.
  • the operational parameters further include: a regional parameter and/or a service provider parameter.
  • the live broadcast system is associated with at least two content distribution network CDN systems; and the service status information of each CDN system is determined according to current operating parameters of each CDN system; and then the service conditions are met.
  • the CDN system is switched to the target CDN system currently serving the live broadcast system; thus, the live broadcast service data can be improved for the live broadcast system by using the CDN with better service performance in the live broadcast process, thereby solving the problem in the prior art Real-time guarantee of live broadcast quality; improved live broadcast quality and improved user experience.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the various component embodiments of the present application can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • Those skilled in the art will appreciate that some or all of the functionality of some or all of the processing devices of live data in accordance with embodiments of the present application may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • the application can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 5 illustrates a server that can implement the processing of live data according to the present application.
  • the server conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520.
  • the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above.
  • storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 520 in the server of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 531', code that can be read by a processor, such as 510, which, when executed by a server, causes the server to perform various steps in the methods described above.
  • "an embodiment," or "an embodiment," or "one or more embodiments" as used herein means that the particular features, structures, or characteristics described in connection with the embodiments are included in at least one embodiment of the present application.
  • phrase "in one embodiment" is not necessarily referring to the same embodiment.

Abstract

Embodiments of the present application provide a live broadcast data processing method and device. The method comprises: establishing association relationships between a live broadcast system and at least two content delivery network (CDN) systems; determining, according to current operating parameters of each CDN system, service state information of each CDN system, wherein the service state information is used for representing current service performance of a CDN system other than a faulted CDN system; and determining, according to the service state information, a CDN system meeting service conditions, and switching the CDN system meeting the service conditions to a target CDN system that provides services for the live broadcast system currently, in order to provide live broadcast service data by using the target CDN system. Whereby, the live broadcast quality and user experience are improved.

Description

一种直播数据的处理方法和装置Method and device for processing live data 技术领域Technical field
本申请涉及数据处理技术领域,特别是涉及一种直播数据的处理方法和一种直播数据的处理装置。The present application relates to the field of data processing technologies, and in particular, to a method for processing live data and a device for processing live data.
背景技术Background technique
随着互联网技术的发展,用户可以通过网络获取各种类型的资源,如图片、文本信息、视频等等,其中,用户通过网络获取的视频可以是点播视频,也可以是直播视频;由于直播的实时性和互动性,使得直播受越来越多的用户青睐。当观看直播的用户较多时,会造成网络的拥塞、服务器负载过量等问题,使得观看直播的用户观看的直播延时较多、且出现卡顿现象,大大的降低了用户体验。With the development of the Internet technology, users can obtain various types of resources, such as pictures, text information, videos, etc. through the network. The video obtained by the user through the network may be an on-demand video or a live video; Real-time and interactive, making live broadcasts more and more popular. When there are many users watching the live broadcast, the network congestion and server load are excessive, which makes the live broadcast users watch more live broadcast delays and jams, which greatly reduces the user experience.
为了解决上述问题,在网络之上构建内容分发网络(Content Delivery Network,CDN),使用户从就近的边缘网络服务器获取所需内容,降低网络拥塞,提高用户访问响应速度。一般的直播系统会与两个CDN厂商合作,将一个CDN作为主CDN,另一个作为备用CDN,当主CDN出现故障时,人工将直播系统切换至与备用CDN连接。但是,主、备CDN仅是故障的备份机制,而CDN系统在不同时间段的性能是存在差异,无法保证各时间段的直播质量。In order to solve the above problem, a Content Delivery Network (CDN) is built on the network, so that users can obtain required content from the nearest edge network server, reduce network congestion, and improve user access response speed. The general live broadcast system will work with two CDN vendors to use one CDN as the primary CDN and the other as the backup CDN. When the primary CDN fails, the live broadcast system is manually switched to the standby CDN. However, the primary and backup CDNs are only faulty backup mechanisms, and the performance of the CDN system in different time periods is different, and the live broadcast quality of each time period cannot be guaranteed.
发明内容Summary of the invention
鉴于上述问题,提出了本申请以便提供一种克服上述问题或者至少部分地解决上述问题的直播数据的处理方法和相应的直播数据的处理装置。In view of the above problems, the present application has been made in order to provide a method for processing live data that overcomes the above problems or at least partially solves the above problems, and a corresponding processing device for live data.
依据本申请的一个方面,提供了一种直播数据的处理方法,包括:将直播系统与至少两个内容分发网络CDN系统建立关联关系;依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息,其中,所述服务状态信息用于表征排除故障CDN系统之外的CDN系统当前的服务性能;依据所述服务状态信息确定符合服务条件的CDN系统,将符合服务条件的CDN系 统切换为当前为所述直播系统提供服务的目标CDN系统,以采用所述目标CDN系统提供直播服务数据。According to an aspect of the present application, a method for processing live data includes: establishing a relationship between a live broadcast system and at least two content distribution network CDN systems; and determining services of each CDN system according to current operating parameters of each CDN system. Status information, wherein the service status information is used to characterize a current service performance of a CDN system other than the faulty CDN system; determining a CDN system that meets the service condition according to the service status information, and switching the CDN system that meets the service condition to A target CDN system currently serving the live broadcast system to provide live broadcast service data using the target CDN system.
根据本申请的另一方面,提供了一种直播数据的处理装置,包括:关联模块,用于将直播系统与至少两个内容分发网络CDN系统建立关联关系;第一信息确定模块,用于依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息,其中,所述服务状态信息用于表征排除故障CDN系统之外的CDN系统当前的服务性能;系统切换模块,用于依据所述服务状态信息确定符合服务条件的CDN系统,将符合服务条件的CDN系统切换为当前为所述直播系统提供服务的目标CDN系统,以采用所述目标CDN系统提供直播服务数据。According to another aspect of the present application, a processing device for live data is provided, including: an association module, configured to establish a relationship between a live broadcast system and at least two content distribution network CDN systems; and a first information determining module, configured to Determining service status information of each CDN system, wherein the service status information is used to characterize current service performance of the CDN system other than the faulty CDN system; the system switching module is configured to The service status information determines a CDN system that meets the service condition, and switches the CDN system that meets the service condition to the target CDN system currently serving the live broadcast system to provide live broadcast service data using the target CDN system.
根据本申请的另一方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行前述任一个所述直播数据的处理方法。According to another aspect of the present application, there is provided a computer program comprising computer readable code that, when run on a server, causes the server to perform a processing method of any of the aforementioned live data.
根据本申请的另一方面,提供了一种计算机可读介质,其中存储了如前述直播数据的处理方法的计算机程序。According to another aspect of the present application, there is provided a computer readable medium storing a computer program of a method of processing live data as described above.
根据本申请的直播数据的处理方法,将直播系统与至少两个内容分发网络CDN系统建立关联关系;再依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息;然后将符合服务条件的CDN系统,切换为当前为所述直播系统提供服务的目标CDN系统;从而,可以在直播过程中,利用服务性能较好的CDN为直播系统提高直播服务数据,由此解决了现有技术中无法实时保证直播质量的问题;提高了直播的质量,以及提高了用户体验。According to the processing method of the live data of the present application, the live broadcast system is associated with at least two content distribution network CDN systems; and the service status information of each CDN system is determined according to the current operating parameters of each CDN system; The CDN system is switched to the target CDN system currently serving the live broadcast system; thus, the live broadcast service data can be improved for the live broadcast system by using the CDN with better service performance in the live broadcast process, thereby solving the prior art. The problem of live quality cannot be guaranteed in real time; the quality of the live broadcast is improved, and the user experience is improved.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solutions of the present application, and the technical means of the present application can be more clearly understood, and the above and other objects, features and advantages of the present application can be more clearly understood. The following is a specific embodiment of the present application.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本申请的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not intended to be limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了根据本申请一个实施例的一种直播数据的处理方法实施例的步骤流程图;1 is a flow chart showing the steps of an embodiment of a method for processing live data according to an embodiment of the present application;
图2示出了根据本申请一个实施例的另一种直播数据的处理方法实施例的步骤流程图;2 is a flow chart showing the steps of another embodiment of a method for processing live data according to an embodiment of the present application;
图3示出了根据本申请一个实施例的一种直播数据的处理装置实施例的结构框图;以及FIG. 3 is a structural block diagram of an embodiment of a processing apparatus for live broadcast data according to an embodiment of the present application;
图4示出了根据本申请一个实施例的另一种直播数据的处理装置实施例的结构框图;FIG. 4 is a structural block diagram of another embodiment of a processing apparatus for live data according to an embodiment of the present application;
图5示意性地示出了用于执行根据本申请的方法的服务器的框图;Figure 5 schematically shows a block diagram of a server for performing the method according to the present application;
图6示意性地示出了用于保持或者携带实现根据本申请的方法的程序代码的存储单元。Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the present application.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
本实施例中,将直播系统与至少两个内容分发网络CDN系统建立关联关系,从而实时测量CDN系统的服务状态,并选择优质的CDN系统为直播系统提供服务,有效的保证了直播质量。In this embodiment, the live broadcast system is associated with at least two content distribution network CDN systems, thereby measuring the service status of the CDN system in real time, and selecting a high-quality CDN system to provide services for the live broadcast system, thereby effectively ensuring the quality of the live broadcast.
参照图1,示出了根据本申请一个实施例的一种直播数据的处理方法实施例的步骤流程图,具体可以包括如下步骤:1 is a flow chart showing the steps of a method for processing live data according to an embodiment of the present application. Specifically, the method may include the following steps:
步骤102、将直播系统与至少两个内容分发网络CDN系统建立关联关系。Step 102: Establish a relationship between the live broadcast system and at least two content distribution network CDN systems.
不同CDN系统的优势不同,例如,有的CDN系统稳定性好,有的CDN系统流畅度好,有的CDN系统则费用低等。本申请实施例为了保证直播的服务质量,一个直播系统可以与多个不同的CDN系统进行合作,进而可以在不同时间段,从多个CDN系统中选择服务性能较好的CDN系统为直播系统提供服务,其中,为直播系统提供服务的CDN系统至少是两个,以便于从两个CDN系统中选择当前服务效果更优的,来为直播系统提供直播数据服务。在确定合作的CDN系统后,将直播系统与合作的各CDN系统建立关联关系,每个CDN系统与直播系统均存在对应的关联关系,在直播的过程中,可以根据建立的关联关系将直播系统切换与对应的CDN系统连接。Different CDN systems have different advantages. For example, some CDN systems have good stability, some CDN systems have good fluency, and some CDN systems have low costs. In order to ensure the quality of the live broadcast service, a live broadcast system can cooperate with a plurality of different CDN systems, and a CDN system with better service performance can be selected from multiple CDN systems for the live broadcast system in different time periods. The service, wherein the CDN system serving the live broadcast system is at least two, so as to select a better service from the two CDN systems to provide a live data service for the live broadcast system. After determining the cooperative CDN system, the live broadcast system is associated with the cooperative CDN system, and each CDN system has a corresponding association relationship with the live broadcast system. In the process of live broadcast, the live broadcast system can be established according to the established association relationship. Switch to connect to the corresponding CDN system.
步骤104、依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息。Step 104: Determine service state information of each CDN system according to current operating parameters of each CDN system.
本申请实施例在直播的过程中,可以按照预设周期获取各CDN系统当前运行参数,进而依据各CDN系统的运行参数,确定各CDN系统的服务状态信息,其中,所述运行参数是指CDN系统在运行过程中的性能参数如时延参数、卡顿参数等等,所述预设周期根据实际情况确定如5分钟为一个周期。由于出现故障的CDN系统是不能够为直播系统提供服务的,因此,确定服务状态信息的CDN系统是非故障的CDN系统,对于出现故障的CDN系统无需确定服务状态信息的,等待故障排除恢复使用后再获取相应的服务状态信息。因此,所述服务状态信息是用于表征正常运行的CDN系统的当前服务性能,而不表征存在故障CDN系统的服务性能,进而,可以在根据各CDN系统的服务状态信息,确定CDN系统的服务性能。其中,同一时间段,不同CDN系统的服务性能不同;同一CDN系统接入不同运营商网络时,对应的服务性能不同;同一运营商的不同区域的CDN系统的服务性能也不同。In the process of the live broadcast, the current running parameters of each CDN system may be obtained according to a preset period, and then the service status information of each CDN system is determined according to the operating parameters of each CDN system, where the operating parameter refers to a CDN. The performance parameters of the system during operation, such as the delay parameter, the stuck parameter, and the like, are determined according to actual conditions, such as 5 minutes as a cycle. Since the faulty CDN system cannot provide services for the live broadcast system, the CDN system that determines the service status information is a non-faulty CDN system. For the faulty CDN system, it is not necessary to determine the service status information, and wait for the fault recovery to resume use. Then obtain the corresponding service status information. Therefore, the service status information is used to characterize the current service performance of the normally operating CDN system, and does not characterize the service performance of the faulty CDN system. Further, the service of the CDN system can be determined based on the service status information of each CDN system. performance. The service performance of different CDN systems is different in the same time period; when the same CDN system accesses different carrier networks, the corresponding service performance is different; the service performance of CDN systems in different regions of the same carrier is also different.
步骤106、依据所述服务状态信息确定符合服务条件的CDN系统,将符合服务条件的CDN系统切换为当前为所述直播系统提供服务的目标CDN系统。Step 106: Determine, according to the service status information, a CDN system that meets the service condition, and switch the CDN system that meets the service condition to a target CDN system that currently serves the live broadcast system.
本申请实施例中服务状态信息可以表征CDN系统的服务性能,因此, 在确定服务状态信息后,可以依据各CDN系统的服务状态信息,从直播系统合作的多个CDN系统中,选出符合服务条件的CDN系统,并将符合条件的CDN系统确定为目标CDN系统。再根据目标CDN系统与直播系统对应的关联关系,将当前为直播系统提供服务的CDN系统,切换为目标CDN系统,从而利用目标CDN系统为直播系统提供直播服务数据。所述服务条件用于筛选目标CDN系统;其中,可以将服务状态信息满足服务状态阈值,确定为符合服务条件,即是将服务状态信息满足服务状态阈值的CDN系统,确定为符合服务条件的CDN系统;然后根据用户操作,将其中一个CDN系统确定为目标CDN系统,所述设置服务状态阈值可以根据实际情况设置;也可以将服务状态信息满足最优确定为符合服务条件。The service status information in the embodiment of the present application may represent the service performance of the CDN system. Therefore, after determining the service status information, the service status may be selected from multiple CDN systems cooperated by the live broadcast system according to the service status information of each CDN system. The conditional CDN system determines the eligible CDN system as the target CDN system. Then, according to the association relationship between the target CDN system and the live broadcast system, the CDN system currently serving the live broadcast system is switched to the target CDN system, thereby using the target CDN system to provide live broadcast service data for the live broadcast system. The service condition is used to filter the target CDN system; wherein the service status information can be determined to meet the service condition, that is, the CDN system that satisfies the service status threshold with the service status information, and determines the CDN that meets the service condition. The system then determines one of the CDN systems as the target CDN system according to the user operation, and the set service status threshold may be set according to actual conditions; or the service status information may be optimally determined to be in compliance with the service condition.
本申请的直播数据的处理方法,将直播系统与至少两个内容分发网络CDN系统建立关联关系;再依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息;然后将符合服务条件的CDN系统,切换为当前为所述直播系统提供服务的目标CDN系统;从而,可以在直播过程中,利用服务性能较好的CDN为直播系统提高直播服务数据,提高了直播的质量,以及提高了用户体验。The method for processing live data of the present application, the live broadcast system is associated with at least two content distribution network CDN systems; and the service status information of each CDN system is determined according to current operating parameters of each CDN system; and then the service conditions are met. The CDN system is switched to the target CDN system currently serving the live broadcast system; thus, the live broadcast service data can be improved for the live broadcast system by using the CDN with better service performance during the live broadcast process, and the quality of the live broadcast is improved and improved. user experience.
在上述实施例的基础上,本申请实施例对具体依据运行参数确定各CDN系统的服务状态信息的方法,以及确定符合服务条件的CDN系统的方式进行详细的说明。On the basis of the foregoing embodiments, the embodiment of the present application provides a detailed description of the method for determining the service status information of each CDN system according to the operating parameters, and the manner of determining the CDN system that meets the service conditions.
参照图2,示出了根据本申请一个实施例的另一种直播数据的处理方法实施例的步骤流程图。Referring to FIG. 2, a flow chart of steps of another embodiment of a method for processing live data according to an embodiment of the present application is shown.
步骤202、将直播系统与至少两个内容分发网络CDN系统建立关联关系。Step 202: Establish a relationship between the live broadcast system and at least two content distribution network CDN systems.
本申请实施例中直播系统至少与两个CDN系统合作,确定与直播系统合作的CDN系统后,将直播系统与各CDN系统建立关联关系。In the embodiment of the present application, the live broadcast system cooperates with at least two CDN systems to determine a CDN system that cooperates with the live broadcast system, and then associates the live broadcast system with each CDN system.
步骤204、依据各CDN系统当前的运行参数,确定所述CDN系统的运行状态;当所述CDN系统的运行状态为故障时,忽略故障的CDN系统。Step 204: Determine an operating state of the CDN system according to current operating parameters of each CDN system; and ignore a faulty CDN system when an operating state of the CDN system is a fault.
在直播过程中,与直播系统相关联的任一CDN系统,都可能由于各种 原因随时出现故障,而出现故障的CDN系统无法为直播系统提供服务,可见,为直播系统确定的CDN系统,必然不包括出现故障的CDN系统;因此在直播过程中可以获取各CDN系统的运行参数,再依据运行参数确定各CDN系统的运行状态。其中,所述运行状态包括:非故障状态和故障状态;具体的,可将获取的运行参数,与非故障状态时运行参数对应范围进行对比,若获取的运行参数,属于CDN系统非故障状态时运行参数对应范围,则确定该CDN系统处于非故障状态;否则,则确定该CDN系统的状态为故障的状态。当确定CDN系统处于故障状态时,可以忽略掉该故障的CDN系统,无需确定故障的CDN系统的服务状态信息。而当确定CDN系统为非故障状态时,可依据获取各CDN系统的运行参数,确定各CDN系统的服务状态信息,具体确定CDN服务状态信息的步骤如下:During the live broadcast process, any CDN system associated with the live broadcast system may be faulty at any time due to various reasons, and the faulty CDN system cannot provide services for the live broadcast system. It can be seen that the CDN system determined for the live broadcast system is inevitable. It does not include the faulty CDN system; therefore, the operating parameters of each CDN system can be obtained during the live broadcast, and the operating status of each CDN system is determined according to the operating parameters. The operation state includes: a non-fault state and a fault state; specifically, the acquired operation parameter is compared with a corresponding range of the operation parameter in the non-fault state, and if the acquired operation parameter belongs to a non-fault state of the CDN system, The operating parameter corresponding range determines that the CDN system is in a non-fault state; otherwise, it determines that the state of the CDN system is a faulty state. When it is determined that the CDN system is in a fault state, the faulty CDN system can be ignored without determining the service status information of the faulty CDN system. When it is determined that the CDN system is in a non-fault state, the service status information of each CDN system may be determined according to the operation parameters of each CDN system, and the specific steps for determining the CDN service status information are as follows:
步骤206、依据CDN系统当前的运行参数计算对应的运行状态数据。Step 206: Calculate corresponding operating state data according to current operating parameters of the CDN system.
在确定CDN系统为非故障CDN系统时,可以依据获取的CDN系统的运行参数,计算对应的运行状态数据,以根据运行状态数据评估CDN的服务状态信息。通常CDN系统的时延、卡顿率和费用,是直播系统评估CDN系统的几种主要因素,不同直播系统对应的用户类型和自身情况不同,使得不同的直播系统对CDN系统的要求也不同。如有些直播系统要求CDN系统时延短,使得直播端和客户端同步,如大型晚会直播系统;又如有些直播系统要求CDN系统卡顿率低,时延短,以最大限度的提高用户体验,如游戏直播系统;而有些直播系统要求CDN价格便宜,而对时延和卡顿率的要求较低,如小型直播系统等等。因此,本申请实施例中的运行参数包括以下至少一项:时延参数、卡顿参数、价值参数;所述根据运行参数确定的运行状态数据对应包括以下至少一项:响应时延数据、卡顿率、价值数据。此外,还可以根据直播系统的对CDN系统的其他要求,确定所述运行参数还包括的其他参数,以及对应运行状态数据还可以包括其他的数据。依据运行参数包括的参数,计算对应的运行状态数据的具体步骤如下:When determining that the CDN system is a non-faulty CDN system, the corresponding operating state data may be calculated according to the acquired operating parameters of the CDN system to evaluate the service state information of the CDN according to the operating state data. Generally, the delay, the jam rate and the cost of the CDN system are the main factors for the live broadcast system to evaluate the CDN system. The user types and their own situations of different live broadcast systems are different, which makes the requirements of the CDN system different for different live broadcast systems. For example, some live broadcast systems require a short CDN system to synchronize the live broadcast terminal with the client, such as a large-scale live broadcast system. For example, some live broadcast systems require a low CDN rate and a short delay to maximize the user experience. For example, the live broadcast system; while some live broadcast systems require CDNs to be cheaper, and have lower requirements for delays and carton rates, such as small live broadcast systems. Therefore, the operating parameters in the embodiment of the present application include at least one of the following: a delay parameter, a carton parameter, and a value parameter; and the running status data determined according to the operating parameter corresponds to at least one of the following: response delay data, card Rate, value data. In addition, other parameters included in the operating parameter may also be determined according to other requirements of the live system for the CDN system, and the corresponding operating state data may further include other data. The specific steps for calculating the corresponding operational status data according to the parameters included in the operating parameters are as follows:
对所述时延参数进行量化,依据量化结果计算对应的响应时延数据。The delay parameter is quantized, and the corresponding response delay data is calculated according to the quantization result.
直播过程中客户端播放的视频与直播端录入视频存在时间差,这个时间 差称为视频的时延;时延越短,观看视频的体验就越好;因此,时延是影响直播质量的一个重要指标,也是评估各CDN系统服务性能的一个重要指标。造成视频时延的因素至少包括:主播端对视频的编码时间、客户端对视频解码时间、视频网络传输时间、丢包率;每个因素对应一个或多个时延参数;可以对各时延参数进行量化,再依据量化的结果计算对应的响应时延数据,从而根据响应时延数据确定CDN的时延。During the live broadcast, there is a time difference between the video played by the client and the video recorded on the live broadcast. This time difference is called the video delay; the shorter the delay, the better the experience of watching the video; therefore, the delay is an important indicator that affects the quality of the live broadcast. It is also an important indicator for evaluating the performance of each CDN system. The factors causing the video delay include at least: the encoding time of the video by the anchor end, the decoding time of the video by the client, the transmission time of the video network, and the packet loss rate; each factor corresponds to one or more delay parameters; The parameters are quantized, and corresponding response delay data is calculated according to the quantized result, thereby determining the delay of the CDN according to the response delay data.
依据所述卡顿参数,计算在预设时间段内所述CDN系统的卡顿率。Calculating a cardon rate of the CDN system within a preset time period according to the cardon parameter.
直播过程中的视频卡顿是指客户端视频播放过程中出现画面滞帧的现象;视频播放过程中卡顿次数越少,用户观看视频的体验就越好;因此,卡顿率是影响直播质量的一个重要指标,也是评估各CDN系统服务性能的一个重要指标;其中,卡顿率是指单位时间内的播放卡顿次数统计称之为卡顿率。造成卡顿的因素有可能是推流端发送数据中断,也有可能是公网传输拥塞或网络抖动异常,也有可能是终端设备的解码性能太差;每种情况对应一个或多个卡顿参数,可以依据获取的一个或多个卡顿参数,计算预设时间段内的CDN系统的卡顿率;其中,预设时间根据实际情况设置例如1分钟。The video card in the live broadcast process refers to the phenomenon of stagnation of the video during the video playback of the client; the less the number of jams during the video playback, the better the experience of the user watching the video; therefore, the carton rate affects the quality of the live broadcast. An important indicator is also an important indicator to evaluate the performance of each CDN system service. Among them, the Carton rate refers to the statistics of the number of times of playing the card in a unit time. The cause of the stuck may be the interruption of the data transmission by the push-end, the congestion of the public network or the abnormality of the network jitter, or the decoding performance of the terminal device is too poor; each case corresponds to one or more cardon parameters. The card rate of the CDN system in the preset time period may be calculated according to the acquired one or more cardon parameters; wherein the preset time is set according to an actual situation, for example, 1 minute.
依据从预设规则信息中获取价值参数,计算所述CDN系统对应的价值数据。The value data corresponding to the CDN system is calculated according to the value parameter obtained from the preset rule information.
本申请实施例中CDN系统的费用,也是某些直播系统重视的一个CDN系统的服务性能;不同的CDN系统对应的费用不同,例如,有些CDN系统的费用为1.4元/GB,有些CDN系统的费用为0.6元/GB。在将直播系统与各合作的CDN系统建立关联关系之前,各CDN系统的价值参数已存储在预设规则信息中;从而,可以从预设规则信息中获取各CDN对应的价值参数,然后根据价值参数计算各CDN系统的价值数据。The cost of the CDN system in the embodiment of the present application is also the service performance of a CDN system that some live broadcast systems pay attention to; different CDN systems have different fees, for example, some CDN systems cost 1.4 yuan/GB, and some CDN systems have The fee is 0.6 yuan / GB. Before the association between the live broadcast system and the cooperative CDN system, the value parameters of each CDN system are stored in the preset rule information; thus, the value parameters corresponding to each CDN can be obtained from the preset rule information, and then according to the value The parameters calculate the value data of each CDN system.
由于直播系统对直播质量的要求和对应的服务条件不同,可以根据直播系统的服务条件,执行以上至少一个计算运行状态数据的步骤。Because the live broadcast system has different requirements for the quality of the live broadcast and the corresponding service conditions, the at least one step of calculating the running status data may be performed according to the service condition of the live broadcast system.
步骤208、依据所述运行状态数据,评估所述CDN系统的服务状态信息。Step 208: Evaluate service state information of the CDN system according to the operating state data.
确定运行状态数据后,可以依据所述运行状态数据,评估各CDN系统 的服务状态信息。具体的,获取各运行状态数据的权重信息,依据所述权重信息对所述运行状态数据进行加权计算,确定所述CDN系统的服务状态信息。根据上述可知,不同直播系统对直播质量的要求不同,因此,可以根据直播系统的要求,确定运行状态数据中各数据的权重,以及保存各数据对应的权重信息。在评估各CDN系统的服务状态信息时,可以依据各数据对应的权重信息,对运行状态数据中的各数据进行加权计算,从而得到CDN系统的服务权重信息;其中,所述运行状态数据包含的数据可以是一种数据,也可以是多种数据。例如,综艺直播系统对网络时延的要求最高,其次是流畅性,而对价格要求较低,因此,可以设置响应时延数据、卡顿率和价值数据的权重分别是:0.1、0.3和0.6,然后对各个数据进行加权计算,得到CDN系统的服务状态参数。After determining the operational status data, the service status information of each CDN system can be evaluated based on the operational status data. Specifically, the weight information of each running state data is obtained, and the running state data is weighted according to the weight information to determine service state information of the CDN system. According to the above, different live broadcast systems have different requirements for live broadcast quality. Therefore, the weight of each data in the operating state data can be determined according to the requirements of the live broadcast system, and the weight information corresponding to each data can be saved. When evaluating the service status information of each CDN system, weighting calculation may be performed on each data in the operation status data according to the weight information corresponding to each data, thereby obtaining service weight information of the CDN system; wherein the operation status data includes The data can be either one type of data or multiple types of data. For example, the variety show system has the highest requirements for network delay, followed by fluency and lower price requirements. Therefore, the weights of response delay data, card rate and value data can be set to be 0.1, 0.3 and 0.6 respectively. Then, the weighted calculation is performed on each data to obtain the service status parameter of the CDN system.
步骤210、将各服务状态信息按照预设顺序进行排序,将排序最高的CDN系统确定为符合服务条件的CDN系统。Step 210: Sort each service state information according to a preset order, and determine the CDN system with the highest ranking as a CDN system that meets the service condition.
计算得到各CDN系统的服务状态信息后,将各服务状态信息按照预设顺序进行排序,然后将排序最高的CDN系统确定为符合服务条件的系统;其中,预设顺序是按照运行状态信息的权重信息等设置的,所述预设顺序可以是升序,也可以是降序,即无论升序降序都可是CDN系统按照从优到劣的顺序排列,以便于选择性能优质的CDN系统。After calculating the service status information of each CDN system, the service status information is sorted according to a preset order, and then the highest ranked CDN system is determined as a system that meets the service condition; wherein the preset order is the weight according to the running status information. The information may be in ascending order or descending order, that is, the CDN system may be arranged in order of superiority to inferiority in order to select a CDN system with high performance.
步骤212、将符合服务条件的CDN系统切换为当前为所述直播系统提供服务的目标CDN系统。Step 212: Switch the CDN system that meets the service condition to the target CDN system that currently serves the live broadcast system.
选出排序最高的CDN系统后,可以将该排序最高的CDN系统切换为直播系统提供服务的目标CDN系统。从而,直播系统可以利用服务性能好的CDN系统进行直播。After selecting the highest ranked CDN system, the highest ranked CDN system can be switched to the target CDN system served by the live broadcast system. Thus, the live broadcast system can be broadcasted using a CDN system with good service performance.
例如:现有3个CDN系统与直播系统建立了关联关系,分别为A、B、C;在直播系统进行直播的过程中,分别获取CDN系统A、B、C的运行参数,确定CDN系统A、B、C均为非故障CDN系统;然后分别计算得到A、B、C三个系统的运行状态数据;其中,A的响应时延数据、卡顿率和价值数据分别为:7s、20%、1.6;B的响应时延数据、卡顿率和价值数据分别为: 10s、25%、1.6;C的响应时延数据、卡顿率和价值数据分别为:7s、18%、2;响应时延数据、卡顿率和价值数据的权重信息为0.6、0.3、0.1;预设顺序为升序排序;将各运行状态数据进行归一化处理后,采用权重信息进行加权计算,计算得到A、B、C的服务状态信息,将A、B、C进行升序排序后对应的排序位置为:A、C、B;则CDN系统A为目标CDN系统,将直播系统切换至与CDN系统A连接。For example, the existing three CDN systems have established associations with the live broadcast system, namely A, B, and C. During the live broadcast of the live broadcast system, the operating parameters of the CDN systems A, B, and C are respectively obtained, and the CDN system A is determined. , B, C are non-faulty CDN systems; then calculate the operational status data of three systems A, B, C respectively; where A's response delay data, carton rate and value data are: 7s, 20% , 1.6; B response delay data, carton rate and value data are: 10s, 25%, 1.6; C response delay data, carton rate and value data are: 7s, 18%, 2; response The weight information of the delay data, the cardon rate and the value data is 0.6, 0.3, and 0.1; the preset order is ascending order; after normalizing each running state data, the weight information is used for weighting calculation, and the calculation is performed. B, C service status information, the sorting positions corresponding to A, B, and C are sorted in ascending order: A, C, B; then CDN system A is the target CDN system, and the live broadcast system is switched to connect with CDN system A.
另外,本申请实施例中一个CDN系统可以部署在多个不同的网络上,各个CDN系统对应的服务提供方不同,如中国移动、中国电信和中国电信等等;接入不同服务提供方对应网络的CDN系统的服务性能是不同的;且接入同一服务提供方对应网络的CDN系统,在各地区的服务性能也是不同的。例如,接入中国移动网络的一个CDN系统,包括,北京地区的CDN、广州地区的CDN、深圳地区的CDN,以及沈阳地区的CDN等等的服务性能都是不同的。因此,各CDN系统的运行参数还包括地域参数和/或服务提供方参数。In addition, a CDN system in the embodiment of the present application may be deployed on multiple different networks, and the service providers of the respective CDN systems are different, such as China Mobile, China Telecom, China Telecom, etc.; accessing different service provider corresponding networks The service performance of the CDN system is different; and the CDN system accessing the network corresponding to the same service provider has different service performance in each region. For example, a CDN system that accesses China Mobile's network, including CDN in Beijing, CDN in Guangzhou, CDN in Shenzhen, and CDN in Shenyang, etc., have different service performance. Thus, the operational parameters of each CDN system also include geographic parameters and/or service provider parameters.
以下分别针对只考虑地域参数、只考虑服务提供方参数,以及同时考虑地域参数和服务提供方参数的情况,对确定服务状态信息的方法进行详细的说明。实际处理中还可以存在其他运行状态数据,如区域参数、提供方参数等,本申请实施例未一一列举,不应理解为是对本申请实施例的限制。The method for determining the service status information will be described in detail below for the case where only the geographical parameters are considered, only the service provider parameters are considered, and the regional parameters and the service provider parameters are simultaneously considered. Other operating state data, such as the regional parameters, the provider parameters, and the like, may be present in the actual processing. The embodiments of the present application are not enumerated, and should not be construed as limiting the embodiments of the present application.
一种示例中,在获取上述时延参数、卡顿参数和价值参数中的至少一个参数时,还可以获取区域参数;再依据所述地域参数,确定每个地区对应各CDN系统的服务状态信息,具体的,可以根据地域参数确定CDN系统对应的地区,然后根据该地区CDN系统的时延参数、卡顿参数和价值参数中的至少一个参数,确定该地区对应的服务状态信息,可以将该区域多个CDN服务状态信息的均值,作为该区域对应CDN系统的服务状态信息;然后确定符合服务条件的地区对应的CDN系统。例如,与直播系统建立关联关系的CDN系统有三个;当未考虑地域参数时,可以将各地区的服务状态信息的平均值,确定为各CDN系统的服务状态信息;因此,三个CDN系统的服务状态信息为3个。在考虑地域参数后,若上述三个CDN系统均包括10个 地区,则每个CDN系统包括10个服务状态信息,三个CDN系统计算的服务状态信息总数为30个。In an example, when at least one of the delay parameter, the Carton parameter, and the value parameter is obtained, the area parameter may also be acquired; and according to the area parameter, the service status information of each CDN system corresponding to each area is determined. Specifically, the area corresponding to the CDN system may be determined according to the regional parameter, and then the service status information corresponding to the area is determined according to at least one of a delay parameter, a Carton parameter, and a value parameter of the CDN system in the area, and the service status information may be determined. The average of the plurality of CDN service status information in the area is used as the service status information of the CDN system corresponding to the area; and then the CDN system corresponding to the area in which the service condition is met is determined. For example, there are three CDN systems that are associated with the live broadcast system; when the regional parameters are not considered, the average of the service status information of each region can be determined as the service status information of each CDN system; therefore, the three CDN systems The service status information is three. After considering the regional parameters, if the above three CDN systems include 10 regions, each CDN system includes 10 service status information, and the total number of service status information calculated by the three CDN systems is 30.
另一种示例中,在获取上述时延参数、卡顿参数和价值参数中的至少一个参数时,还可以获取服务提供方参数;再依据所述服务提供方参数,分别确定CDN系统在各服务提供方对应的服务状态信息。可以根据获取的服务提供方参数,确定该CDN接入的网络是哪个服务提供方;然后再计算部署在同一个服务提供方上各CDN的服务状态信息均值,从而得到确定CDN系统在该服务提供方对应的服务状态信息,然后确定符合服务条件的服务提供方对应的CDN系统。例如,与直播系统建立关联关系的CDN系统有三个;当未考虑服务提供方参数时,三个CDN系统的服务状态信息为3个。当考虑服务提供方参数时,若上述三个CDN系统分别对应两个服务提供方,则每个CDN系统对应2个服务状态信息;三个CDN系统计算的服务状态信息总数为6个。In another example, when at least one of the delay parameter, the Carton parameter, and the value parameter is obtained, the service provider parameter may also be obtained; and according to the service provider parameter, the CDN system is determined respectively in each service. The service status information corresponding to the provider. The service provider parameter may be determined according to the obtained service provider parameter, and the service provider information of the CDNs deployed on the same service provider may be calculated, thereby determining that the CDN system is provided in the service provider. The service status information corresponding to the party, and then determine the CDN system corresponding to the service provider that meets the service condition. For example, there are three CDN systems that are associated with the live broadcast system; when the service provider parameters are not considered, the service status information of the three CDN systems is three. When considering the service provider parameters, if the above three CDN systems respectively correspond to two service providers, each CDN system corresponds to two service status information; the total number of service status information calculated by the three CDN systems is six.
再一种示例中,在获取上述时延参数、卡顿参数和价值参数中的至少一个参数时,同时获取地域参数和服务提供方参数;然后,依据所述地域参数,确定CDN系统对应的地区;然后依据服务提供方参数,确定该区域CDN系统对应的服务提供方;从而,确定每个地区对应各CDN系统在各服务提供方的服务状态信息。例如,针对某一个CDN系统,根据其中的一个地域参数确定为北京地区对应的CDN;然后,根据服务提供方参数,确定北京地区对应的CDN系统有两个服务提供方S1和S2;然后再根据时延参数、卡顿参数和价值参数至少一个参数,确定北京地区对应的CDN系统接入S1网络对应的服务状态信息,以及确定北京地区对应的CDN系统接入S2网络对应的服务状态信息;可见,该CDN系统在北京区域对应两个服务状态信息。在每个地区分别依据CDN系统在各服务提供方对应的服务状态信息,确定符合服务条件的CDN系统;具体的,将各区域的不同服务提供方对应的CDN系统的服务状态信息,按照预设顺序进行排序;然后将排序最高的服务状态信息对应的CDN系统确定为目标CDN系统。例如,与直播系统建立关联关系的CDN系统有三个,每个CDN系统对应有2个服务提供方,每个CDN 系统对应有10个地区;则每个CDN系统每个地区对应2个服务状态信息,一个CDN系统对应有20个服务状态信息;因此,三个CDN系统对应60个服务状态信息;然后将60个服务状态信息进行排序,从而选择排序最高的服务状态信息对应的CDN系统,作为目标CDN系统。In another example, when at least one of the delay parameter, the Carton parameter, and the value parameter is acquired, the regional parameter and the service provider parameter are simultaneously acquired; and then, the region corresponding to the CDN system is determined according to the regional parameter. Then, according to the service provider parameter, the service provider corresponding to the regional CDN system is determined; thus, the service status information of each CDN system in each service provider is determined for each region. For example, for a CDN system, the CDN corresponding to the Beijing area is determined according to one of the regional parameters; then, according to the service provider parameter, it is determined that the corresponding CDN system in the Beijing area has two service providers S1 and S2; At least one parameter of the delay parameter, the Carrington parameter and the value parameter, determining the service status information corresponding to the corresponding CDN system accessing the S1 network in the Beijing area, and determining the service status information corresponding to the corresponding CDN system accessing the S2 network in the Beijing area; The CDN system corresponds to two service status information in the Beijing area. In each area, the CDN system that meets the service conditions is determined according to the service status information corresponding to each service provider in the CDN system; specifically, the service status information of the CDN system corresponding to different service providers in each area is preset. The ordering is performed; then the CDN system corresponding to the highest ranked service status information is determined as the target CDN system. For example, there are three CDN systems associated with the live broadcast system, each CDN system has two service providers, and each CDN system corresponds to 10 regions; then each CDN system corresponds to two service status information for each region. A CDN system corresponds to 20 service status information; therefore, three CDN systems correspond to 60 service status information; then, 60 service status information are sorted, thereby selecting the CDN system corresponding to the highest ranked service status information, as a target CDN system.
本申请实施例可以依据时延参数、卡顿参数、价值参数中至少一个参数,计算对应的运行状态数据;然后根据对应的权重信息,确定各CDN系统的服务状态信息,再将各CDN系统对应的服务状态信息按照预设顺序进行排序,并将排序最高的服务状态信息对应的CDN系统,确定为目标CDN系统;从而,可以根据直播系统对CDN系统的要求,动态的调整与直播系统连接的CDN系统,保证了直播系统的直播质量。另外,本申请实施例还根据地域参数和/或服务提供方参数,计算各地区对应CDN系统的服务状态信息,各CDN系统在各服务提供方上的服务状态信息;以及各地区对应的CDN系统,在各服务提供方上的服务状态信息;进一步细化的计算CDN系统的服务状态信息,从而更精确的为直播系统进行CDN系统的调度,进一步提高了直播质量,提高了用户体验。The embodiment of the present application may calculate corresponding operating state data according to at least one of a delay parameter, a Carton parameter, and a value parameter; and then determine service state information of each CDN system according to the corresponding weight information, and then corresponding each CDN system. The service status information is sorted according to a preset order, and the CDN system corresponding to the highest ranked service status information is determined as the target CDN system; thus, the connection with the live broadcast system can be dynamically adjusted according to the requirements of the live broadcast system for the CDN system. The CDN system guarantees the live broadcast quality of the live broadcast system. In addition, the embodiment of the present application further calculates service state information of the CDN system corresponding to each region according to the regional parameter and/or the service provider parameter, service state information of each CDN system on each service provider, and a CDN system corresponding to each region. Service status information on each service provider; further refinement of the service status information of the CDN system, thereby more accurately scheduling the CDN system for the live broadcast system, further improving the quality of the live broadcast and improving the user experience.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。For the method embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because the embodiment according to the present application Some steps can be performed in other orders or at the same time. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.
参照图3,示出了根据本申请一个实施例的一种直播数据的处理装置实施例的结构框图,具体可以包括如下模块:关联模块301、第一信息确定模块302和系统切换模块303,其中,Referring to FIG. 3, a structural block diagram of an embodiment of a processing apparatus for live broadcast data according to an embodiment of the present application is shown. Specifically, the following may include a module: an association module 301, a first information determining module 302, and a system switching module 303, where ,
关联模块301,用于将直播系统与至少两个内容分发网络CDN系统建立关联关系。The association module 301 is configured to associate the live broadcast system with at least two content distribution network CDN systems.
第一信息确定模块302,用于依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息,其中,所述服务状态信息用于表征排除故障 CDN系统之外的CDN系统当前的服务性能。The first information determining module 302 is configured to determine service state information of each CDN system according to current operating parameters of each CDN system, where the service state information is used to represent current service performance of the CDN system other than the faulty CDN system. .
系统切换模块303,用于依据所述服务状态信息确定符合服务条件的CDN系统,将符合服务条件的CDN系统切换为当前为所述直播系统提供服务的目标CDN系统,以采用所述目标CDN系统提供直播服务数据。The system switching module 303 is configured to determine, according to the service status information, a CDN system that meets a service condition, and switch a CDN system that meets the service condition to a target CDN system that currently serves the live broadcast system, to adopt the target CDN system. Provide live service data.
参照图4,在图3的基础上,对所述装置还包括的模块,以及各模块的子模块进行说明。图4示出了根据本申请一个实施例的另一种直播数据的处理装置实施例的结构框图,所述的装置还包括:第二信息确定模块304、第三信息确定模块305和状态确定模块306,其中,Referring to Fig. 4, on the basis of Fig. 3, the modules further included in the apparatus, and the submodules of the respective modules will be described. FIG. 4 is a structural block diagram of another embodiment of a processing apparatus for live broadcast data according to an embodiment of the present application. The apparatus further includes: a second information determining module 304, a third information determining module 305, and a state determining module. 306, wherein
第二信息确定模块304,用于依据所述地域参数,确定每个地区对应各CDN系统的服务状态信息。The second information determining module 304 is configured to determine, according to the regional parameter, service state information corresponding to each CDN system in each region.
第三信息确定模块305,用于依据所述服务提供方参数,分别确定CDN系统在各服务提供方对应的服务状态信息。The third information determining module 305 is configured to determine, according to the service provider parameter, service state information corresponding to each service provider of the CDN system.
状态确定模块306,用于依据各CDN系统当前的运行参数,确定所述CDN系统的运行状态;当所述CDN系统的运行状态为故障时,忽略故障的CDN系统。The state determining module 306 is configured to determine an operating state of the CDN system according to current operating parameters of each CDN system; and ignore a faulty CDN system when an operating state of the CDN system is a fault.
本申请实施例中,所述第一信息确定模块302包括:计算子模块3021和评估子模块3022,其中,In the embodiment of the present application, the first information determining module 302 includes: a calculating submodule 3021 and an evaluating submodule 3022, where
计算子模块3021,用于依据CDN系统当前的运行参数计算对应的运行状态数据。The calculation sub-module 3021 is configured to calculate corresponding operating state data according to current operating parameters of the CDN system.
评估子模块3022,用于依据所述运行状态数据,评估所述CDN系统的服务状态信息。The evaluation submodule 3022 is configured to evaluate service state information of the CDN system according to the operating state data.
所述计算子模块3021,具体用于对所述时延参数进行量化,依据量化结果计算对应的响应时延数据;依据所述卡顿参数,计算在预设时间段内所述CDN系统的卡顿率;依据从预设规则信息中获取价值参数,计算所述CDN系统对应的价值数据。The calculating sub-module 3021 is specifically configured to quantize the delay parameter, calculate corresponding response delay data according to the quantization result, and calculate a card of the CDN system in a preset time period according to the cardon parameter. The rate is calculated according to the value parameter obtained from the preset rule information, and the value data corresponding to the CDN system is calculated.
所述评估子模块3022,具体用于获取各运行状态数据的权重信息,依据所述权重信息对所述运行状态数据进行加权计算,确定所述CDN系统的服务状态信息。The evaluation sub-module 3022 is specifically configured to obtain weight information of each running state data, perform weighting calculation on the running state data according to the weight information, and determine service state information of the CDN system.
所述系统切换模块303,具体用于在每个地区分别依据CDN系统在各服务提供方对应的服务状态信息,确定符合服务条件的CDN系统。The system switching module 303 is specifically configured to determine, according to the service status information corresponding to each service provider of the CDN system, the CDN system that meets the service condition in each area.
所述系统切换模块303,具体用于将各服务状态信息按照预设顺序进行排序,将排序最高的CDN系统确定为符合服务条件的CDN系统。The system switching module 303 is specifically configured to sort each service state information according to a preset order, and determine the highest ranked CDN system as a CDN system that meets the service condition.
本申请实施例中,所述运行参数包括以下至少一项:时延参数、卡顿参数、价值参数;所述运行状态数据包括以下至少一项:响应时延数据、卡顿率、价值数据。所述运行参数还包括:地域参数和/或服务提供方参数。In the embodiment of the present application, the operating parameter includes at least one of the following: a delay parameter, a carton parameter, and a value parameter; the running status data includes at least one of the following: response delay data, a card rate, and value data. The operational parameters further include: a regional parameter and/or a service provider parameter.
本申请的直播数据的处理方法,将直播系统与至少两个内容分发网络CDN系统建立关联关系;再依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息;然后将符合服务条件的CDN系统,切换为当前为所述直播系统提供服务的目标CDN系统;从而,可以在直播过程中,利用服务性能较好的CDN为直播系统提高直播服务数据,由此解决了现有技术中无法实时保证直播质量的问题;提高了直播的质量,以及提高了用户体验。The method for processing live data of the present application, the live broadcast system is associated with at least two content distribution network CDN systems; and the service status information of each CDN system is determined according to current operating parameters of each CDN system; and then the service conditions are met. The CDN system is switched to the target CDN system currently serving the live broadcast system; thus, the live broadcast service data can be improved for the live broadcast system by using the CDN with better service performance in the live broadcast process, thereby solving the problem in the prior art Real-time guarantee of live broadcast quality; improved live broadcast quality and improved user experience.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的直播数据的处理设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the processing devices of live data in accordance with embodiments of the present application may be implemented in practice using a microprocessor or digital signal processor (DSP). The application can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图5示出了可以实现根据本申请的直播数据的处理的服务器。该服务器传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有 用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6所述的便携式或者固定存储单元。该存储单元可以具有与图5的服务器中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由服务器运行时,导致该服务器执行上面所描述的方法中的各个步骤。For example, FIG. 5 illustrates a server that can implement the processing of live data according to the present application. The server conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above. For example, storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. The storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 520 in the server of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 531', code that can be read by a processor, such as 510, which, when executed by a server, causes the server to perform various steps in the methods described above.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "one or more embodiments" as used herein means that the particular features, structures, or characteristics described in connection with the embodiments are included in at least one embodiment of the present application. In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
应该注意的是上述实施例对本申请进行说明而不是对本申请进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments are illustrative of the present application and are not intended to limit the scope of the application, and those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The application can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本申请的主题而选择的。因此,在 不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本申请的范围,对本申请所做的公开是说明性的,而非限制性的,本申请的范围由所附权利要求书限定。In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be interpreted or limited. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present application is intended to be illustrative, and not restrictive, and the scope of the application is defined by the appended claims.

Claims (24)

  1. 一种直播数据的处理方法,包括:A method for processing live data, comprising:
    将直播系统与至少两个内容分发网络CDN系统建立关联关系;Associating the live broadcast system with at least two content distribution network CDN systems;
    依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息,其中,所述服务状态信息用于表征排除故障CDN系统之外的CDN系统当前的服务性能;Determining service status information of each CDN system according to current operating parameters of each CDN system, wherein the service status information is used to represent current service performance of the CDN system other than the faulty CDN system;
    依据所述服务状态信息确定符合服务条件的CDN系统,将符合服务条件的CDN系统切换为当前为所述直播系统提供服务的目标CDN系统,以采用所述目标CDN系统提供直播服务数据。Determining, according to the service status information, the CDN system that meets the service condition, and switching the CDN system that meets the service condition to the target CDN system currently serving the live broadcast system, to provide live broadcast service data by using the target CDN system.
  2. 如权利要求1所述的方法,其中,依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息,包括:The method of claim 1, wherein determining service status information of each CDN system according to current operating parameters of each CDN system comprises:
    依据CDN系统当前的运行参数计算对应的运行状态数据;Calculating corresponding operational status data according to current operating parameters of the CDN system;
    依据所述运行状态数据,评估所述CDN系统的服务状态信息。The service status information of the CDN system is evaluated based on the operational status data.
  3. 如权利要求2所述的方法,其中,所述运行参数包括以下至少一项:时延参数、卡顿参数、价值参数;所述运行状态数据包括以下至少一项:响应时延数据、卡顿率、价值数据。The method of claim 2, wherein the operating parameter comprises at least one of: a delay parameter, a stuck parameter, a value parameter; the operational status data comprising at least one of: response delay data, Caton Rate, value data.
  4. 如权利要求3所述的方法,其中,依据CDN系统当前的运行参数计算对应的运行状态数据包括以下至少一种步骤:The method of claim 3 wherein calculating the corresponding operational status data based on the current operational parameters of the CDN system comprises at least one of the following steps:
    对所述时延参数进行量化,依据量化结果计算对应的响应时延数据;Quantifying the delay parameter, and calculating corresponding response delay data according to the quantization result;
    依据所述卡顿参数,计算在预设时间段内所述CDN系统的卡顿率;Calculating a card rate of the CDN system in a preset time period according to the cardon parameter;
    依据从预设规则信息中获取价值参数,计算所述CDN系统对应的价值数据。The value data corresponding to the CDN system is calculated according to the value parameter obtained from the preset rule information.
  5. 如权利要求3所述的方法,其中,依据所述运行状态数据,评估所述CDN系统的服务状态信息,包括:The method of claim 3, wherein evaluating the service status information of the CDN system according to the operating status data comprises:
    获取各运行状态数据的权重信息,依据所述权重信息对所述运行状态数据进行加权计算,确定所述CDN系统的服务状态信息。Obtaining weight information of each running state data, performing weighting calculation on the running state data according to the weight information, and determining service state information of the CDN system.
  6. 如权利要求3-5任一所述的方法,其中,所述运行参数还包括:地域参数和/或服务提供方参数。The method of any of claims 3-5, wherein the operational parameters further comprise: a regional parameter and/or a service provider parameter.
  7. 如权利要求6所述的方法,其中,所述的方法还包括:The method of claim 6 wherein said method further comprises:
    依据所述地域参数,确定每个地区对应各CDN系统的服务状态信息。Based on the regional parameters, service state information corresponding to each CDN system in each region is determined.
  8. 如权利要求6所述的方法,其中,所述的方法还包括:The method of claim 6 wherein said method further comprises:
    依据所述服务提供方参数,分别确定CDN系统在各服务提供方对应的服务状态信息。Determining service status information corresponding to each service provider of the CDN system according to the service provider parameters.
  9. 如权利要求6所述的方法,其中,所述依据所述服务状态信息确定符合服务条件的CDN系统,包括:The method of claim 6, wherein the determining the CDN system that meets the service condition based on the service status information comprises:
    在每个地区分别依据CDN系统在各服务提供方对应的服务状态信息,确定符合服务条件的CDN系统。The CDN system that meets the service conditions is determined in each area according to the service status information corresponding to each service provider of the CDN system.
  10. 如权利要求6所述的方法,其中,依据所述服务状态信息确定符合服务条件的CDN系统,包括:The method of claim 6, wherein determining the CDN system that meets the service condition based on the service status information comprises:
    将各服务状态信息按照预设顺序进行排序,将排序最高的CDN系统确定为符合服务条件的CDN系统。Each service status information is sorted in a preset order, and the highest ranked CDN system is determined to be a CDN system that meets the service condition.
  11. 如权利要求1所述的方法,其中,确定各CDN系统的服务状态信息之前,还包括:The method of claim 1, wherein before determining the service status information of each CDN system, the method further comprises:
    依据各CDN系统当前的运行参数,确定所述CDN系统的运行状态;Determining an operating state of the CDN system according to current operating parameters of each CDN system;
    当所述CDN系统的运行状态为故障时,忽略故障的CDN系统。When the operating state of the CDN system is a failure, the failed CDN system is ignored.
  12. 一种直播数据的处理装置,包括:A processing device for live data includes:
    关联模块,用于将直播系统与至少两个内容分发网络CDN系统建立关联关系;An association module, configured to associate a live broadcast system with at least two content distribution network CDN systems;
    第一信息确定模块,用于依据各CDN系统当前的运行参数,确定各CDN系统的服务状态信息,其中,所述服务状态信息用于表征排除故障CDN系统之外的CDN系统当前的服务性能;a first information determining module, configured to determine service status information of each CDN system according to current operating parameters of each CDN system, where the service status information is used to represent current service performance of a CDN system other than the faulty CDN system;
    系统切换模块,用于依据所述服务状态信息确定符合服务条件的CDN系统,将符合服务条件的CDN系统切换为当前为所述直播系统提供服务的目标CDN系统,以采用所述目标CDN系统提供直播服务数据。a system switching module, configured to determine, according to the service status information, a CDN system that meets a service condition, and switch a CDN system that meets the service condition to a target CDN system that currently serves the live broadcast system, to provide the target CDN system. Live service data.
  13. 如权利要求12所述的装置,其中,所述第一信息确定模块包括:The apparatus of claim 12, wherein the first information determining module comprises:
    计算子模块,用于依据CDN系统当前的运行参数计算对应的运行状态数据;a calculation submodule, configured to calculate corresponding operation state data according to current operating parameters of the CDN system;
    评估子模块,用于依据所述运行状态数据,评估所述CDN系统的服务状态信息。And an evaluation submodule, configured to evaluate service state information of the CDN system according to the operating state data.
  14. 如权利要求13所述的装置,其中,所述运行参数包括以下至少一项:时延参数、卡顿参数、价值参数;所述运行状态数据包括以下至少一项:响应时延数据、卡顿率、价值数据。The apparatus of claim 13, wherein the operating parameter comprises at least one of: a delay parameter, a stuck parameter, a value parameter; the operational status data comprising at least one of: response delay data, Caton Rate, value data.
  15. 如权利要求14所述的装置,其中,The device of claim 14 wherein
    所述计算子模块,具体用于对所述时延参数进行量化,依据量化结果计算对应的响应时延数据;依据所述卡顿参数,计算在预设时间段内所述CDN系统的卡顿率;依据从预设规则信息中获取价值参数,计算所述CDN系统对应的价值数据。The calculating sub-module is specifically configured to quantize the delay parameter, calculate corresponding response delay data according to the quantization result, and calculate a Karton of the CDN system in the preset time period according to the cardon parameter Rate; calculating the value data corresponding to the CDN system according to the value parameter obtained from the preset rule information.
  16. 如权利要求14所述的装置,其中,The device of claim 14 wherein
    所述评估子模块,具体用于获取各运行状态数据的权重信息,依据所述权重信息对所述运行状态数据进行加权计算,确定所述CDN系统的服务状态信息。The evaluation sub-module is specifically configured to obtain weight information of each running state data, perform weighting calculation on the running state data according to the weight information, and determine service state information of the CDN system.
  17. 如权利要求14-16所述的装置,其中,所述运行参数还包括:地域参数和/或服务提供方参数。The apparatus of claims 14-16, wherein the operational parameters further comprise: a regional parameter and/or a service provider parameter.
  18. 如权利要求17所述的装置,其中,还包括:The apparatus of claim 17 further comprising:
    第二信息确定模块,用于依据所述地域参数,确定每个地区对应各CDN系统的服务状态信息。The second information determining module is configured to determine, according to the regional parameter, service state information corresponding to each CDN system in each region.
  19. 如权利要求17所述的装置,其中,还包括:The apparatus of claim 17 further comprising:
    第三信息确定模块,用于依据所述服务提供方参数,分别确定CDN系统在各服务提供方对应的服务状态信息。The third information determining module is configured to separately determine service state information corresponding to each service provider of the CDN system according to the service provider parameter.
  20. 如权利要求17所述的装置,其中,The apparatus according to claim 17, wherein
    所述系统切换模块,具体用于在每个地区分别依据CDN系统在各服务提供方对应的服务状态信息,确定符合服务条件的CDN系统。The system switching module is specifically configured to determine, in each region, a CDN system that meets a service condition according to service state information corresponding to each service provider of the CDN system.
  21. 如权利要求17所述的装置,其中,The apparatus according to claim 17, wherein
    所述系统切换模块,具体用于将各服务状态信息按照预设顺序进行排序,将排序最高的CDN系统确定为符合服务条件的CDN系统。The system switching module is specifically configured to sort each service state information according to a preset order, and determine the highest ranked CDN system as a CDN system that meets the service condition.
  22. 如权利要求12所述的装置,其中,还包括:The apparatus of claim 12, further comprising:
    状态确定模块,用于依据各CDN系统当前的运行参数,确定所述CDN系统的运行状态;当所述CDN系统的运行状态为故障时,忽略故障的CDN系统。The state determining module is configured to determine an operating state of the CDN system according to current operating parameters of each CDN system; and ignore a faulty CDN system when the operating state of the CDN system is a fault.
  23. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行根据权利要求1-11中的任一个所述的直播数据的处理方法。A computer program comprising computer readable code causing the server to perform a method of processing live data according to any one of claims 1-11 when the computer readable code is run on a server.
  24. 一种计算机可读介质,其中存储了如权利要求23所述的计算机程序。A computer readable medium storing the computer program of claim 23.
PCT/CN2017/120277 2017-02-13 2017-12-29 Live broadcast data processing method and device WO2018145537A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710076978.X 2017-02-13
CN201710076978.XA CN106803967A (en) 2017-02-13 2017-02-13 A kind for the treatment of method and apparatus of live data

Publications (1)

Publication Number Publication Date
WO2018145537A1 true WO2018145537A1 (en) 2018-08-16

Family

ID=58987331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/120277 WO2018145537A1 (en) 2017-02-13 2017-12-29 Live broadcast data processing method and device

Country Status (2)

Country Link
CN (1) CN106803967A (en)
WO (1) WO2018145537A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106803967A (en) * 2017-02-13 2017-06-06 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of live data
CN109802926B (en) * 2017-11-16 2021-08-03 北京乐我无限科技有限责任公司 Recommendation model establishing method, live broadcast method and device for content distribution network
CN109905734A (en) * 2017-12-08 2019-06-18 北京京东尚科信息技术有限公司 Method and device, live broadcast system, storage medium and the electronic equipment shunted is broadcast live
CN108234997B (en) * 2017-12-12 2019-11-26 北京百度网讯科技有限公司 Time-delay measuring method, equipment, system and the computer-readable medium of live video
CN109167812B (en) * 2018-08-02 2022-07-08 网宿科技股份有限公司 Method for evaluating service quality and determining adjustment strategy, server and storage medium
CN110971432B (en) 2018-09-29 2021-05-18 华为技术有限公司 Data transmission method and related device
CN111464585B (en) * 2019-12-05 2021-09-07 厦门靠谱云股份有限公司 Multi-cloud-based high-availability CDN service system
CN113132758B (en) * 2021-04-16 2023-05-12 北京百度网讯科技有限公司 Control method, device and computer program product of content distribution network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010268368A (en) * 2009-05-18 2010-11-25 National Institute Of Information & Communication Technology Method and system for server selection in network, and program
US20130308436A1 (en) * 2012-05-18 2013-11-21 Futurewei Technologies, Inc. System and Method for Cloud-Based Live Media Ingestion and Transcoding
WO2016074149A1 (en) * 2014-11-11 2016-05-19 21 Vianet Group, Inc. Expedited media content delivery
CN105872614A (en) * 2016-04-12 2016-08-17 乐视控股(北京)有限公司 Live stream switching method and device
CN106231365A (en) * 2016-08-18 2016-12-14 北京斗牛科技有限公司 A kind of dispatching method and system
CN106803967A (en) * 2017-02-13 2017-06-06 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of live data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209952B (en) * 2015-05-08 2020-09-29 中兴通讯股份有限公司 Service node distribution method and device, CDN management server and system
CN105898209A (en) * 2015-11-13 2016-08-24 乐视云计算有限公司 Video platform monitoring and analyzing system
CN105872611A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pressure-bearing test method and device of cloud live broadcast system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010268368A (en) * 2009-05-18 2010-11-25 National Institute Of Information & Communication Technology Method and system for server selection in network, and program
US20130308436A1 (en) * 2012-05-18 2013-11-21 Futurewei Technologies, Inc. System and Method for Cloud-Based Live Media Ingestion and Transcoding
WO2016074149A1 (en) * 2014-11-11 2016-05-19 21 Vianet Group, Inc. Expedited media content delivery
CN105872614A (en) * 2016-04-12 2016-08-17 乐视控股(北京)有限公司 Live stream switching method and device
CN106231365A (en) * 2016-08-18 2016-12-14 北京斗牛科技有限公司 A kind of dispatching method and system
CN106803967A (en) * 2017-02-13 2017-06-06 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of live data

Also Published As

Publication number Publication date
CN106803967A (en) 2017-06-06

Similar Documents

Publication Publication Date Title
WO2018145537A1 (en) Live broadcast data processing method and device
US10178198B2 (en) System and method for selection and switching of content sources for a streaming content session
US9553909B2 (en) System and method for assignment and switching of content sources for a streaming content session
US11088953B2 (en) Systems and methods for load balancing
US20170142177A1 (en) Method and system for network dispatching
US9948708B2 (en) Data retrieval based on bandwidth cost and delay
Krishnappa et al. Optimizing the video transcoding workflow in content delivery networks
CN103200461A (en) Multiple-player-terminal synchronized playing system and playing method
CN109982118A (en) A kind of video code rate self-adapting regulation method, device and electronic equipment
US10601891B2 (en) Cloud streaming service system and cloud streaming service method for utilizing an optimal GPU for video decoding based on resource conditions, and apparatus for the same
CN106331739A (en) Method, device, server and system for live broadcast and live broadcast state monitoring method
US10541894B2 (en) Method for assessing the perceived quality of adaptive video streaming
US20210120292A1 (en) Video playback quality detection method and apparatus
US10440148B1 (en) Content delivery network balancer
WO2016134564A1 (en) User perception estimation method and apparatus
TW201315241A (en) Techniques for dynamic switching between coded bitstreams
CN108259998B (en) Player, play control method and device, electronic equipment and play system
CN114679592A (en) Edge cluster scheduling method and device
WO2023077813A1 (en) Method and apparatus for determining fake traffic in live broadcast room
CN109587520B (en) Method and equipment for positioning video service fault
WO2024066938A1 (en) Livestreaming screenshotting method, apparatus and device, and storage medium
US9571328B2 (en) System for self organization of an internet protocol television grid
CN113824689B (en) Edge computing network, data transmission method, device, equipment and storage medium
CN114945097A (en) Video stream processing method and device
CN109194971A (en) A kind of generation method and device for multimedia file

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896279

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896279

Country of ref document: EP

Kind code of ref document: A1