WO2018036245A1 - 一种带宽管理的方法、装置和存储介质 - Google Patents

一种带宽管理的方法、装置和存储介质 Download PDF

Info

Publication number
WO2018036245A1
WO2018036245A1 PCT/CN2017/088998 CN2017088998W WO2018036245A1 WO 2018036245 A1 WO2018036245 A1 WO 2018036245A1 CN 2017088998 W CN2017088998 W CN 2017088998W WO 2018036245 A1 WO2018036245 A1 WO 2018036245A1
Authority
WO
WIPO (PCT)
Prior art keywords
media source
code rate
curve
requested
play
Prior art date
Application number
PCT/CN2017/088998
Other languages
English (en)
French (fr)
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 WO2018036245A1 publication Critical patent/WO2018036245A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a storage medium for bandwidth management.
  • the bandwidth is generally pre-empted, and the bandwidth is occupied by the highest code rate of the budget media source.
  • the code rate of the media source is fluctuating, especially for dynamic bit rate (VBR) media sources.
  • VBR dynamic bit rate
  • An object of the embodiments of the present disclosure is to provide a method and an apparatus for bandwidth management, which solves the problem of waste of bandwidth resources.
  • an embodiment of the present disclosure provides a method for bandwidth management, including:
  • An embodiment of the present disclosure provides an apparatus for bandwidth management, including:
  • a receiving module configured to receive a play request sent by the playing device
  • Obtaining a module configured to acquire, according to the play request, a code rate fluctuation curve of the requested media source that the playback device needs to play;
  • a synthesis module configured to synthesize a code rate fluctuation curve of the requested media source and a code rate fluctuation curve of at least one media source to obtain a code rate synthesis curve, wherein the at least one media source is the play request The media source corresponding to the requested play time;
  • a determining module configured to determine whether a peak of the code rate synthesis curve exceeds a preset bandwidth
  • a transmission module configured to transmit the requested media source to the playback device if the peak of the code rate synthesis curve does not exceed a preset bandwidth.
  • Embodiments of the present disclosure also provide a computer storage medium having stored therein one or more programs executable by a computer, the one or more programs being executed by the computer to cause the computer to perform as described above A method of bandwidth management provided.
  • Receiving a play request sent by the playback device acquiring a code rate fluctuation curve of the requested media source that the playback device needs to play according to the play request, and fluctuating the code rate fluctuation curve of the requested media source and the code rate of the at least one media source And synthesizing the curve to obtain a code rate synthesis curve, wherein the at least one media source is a media source corresponding to the playback time requested by the play request, and determining whether a peak of the code rate synthesis curve exceeds a preset bandwidth, if No, transmitting the requested media source to the playback device using the preset bandwidth. This maximizes the use of bandwidth resources.
  • FIG. 1 is a schematic flowchart of a method for bandwidth management provided by an alternative embodiment
  • FIG. 2 is a schematic diagram of a code rate synthesis curve provided by an alternative embodiment
  • FIG. 3 is a schematic flowchart diagram of another method for bandwidth management according to an alternative embodiment
  • FIG. 4 is a schematic diagram of a code rate statistics table provided by an alternative embodiment
  • FIG. 5 is a schematic flowchart diagram of another method for bandwidth management according to an alternative embodiment
  • FIG. 6 is a schematic structural diagram of an apparatus for bandwidth management according to an alternative embodiment
  • FIG. 7 is a schematic structural diagram of another apparatus for bandwidth management according to an alternative embodiment
  • FIG. 8 is a schematic structural diagram of another apparatus for bandwidth management according to an alternative embodiment
  • FIG. 9 is a schematic structural diagram of another apparatus for bandwidth management according to an alternative embodiment.
  • an optional embodiment of the present disclosure provides a method for bandwidth management, including the following steps:
  • Step S101 Receive a play request sent by the playback device.
  • the streaming media server receives, by the code stream, a play request sent by the user through the set top box or a playback device such as a computer or a mobile phone.
  • Step S102 Acquire a code rate fluctuation curve of the requested media source that the playback device needs to play according to the play request.
  • determining the requesting media source determining the requesting media source, and checking whether the requested media source is normal. If not, sending a signaling request failure request to the playback device, and if yes, acquiring the requested media source. a code rate fluctuation curve and acquire a play period of the requested media source.
  • Step S103 Synthesize a code rate fluctuation curve of the requested media source and a code rate fluctuation curve of at least one media source to obtain a code rate synthesis curve.
  • the playing period may be the playing time at the current request, or may be the time playing time.
  • Determining a media source in a service state during the playing period, and obtaining a code rate fluctuation curve of the media source in the service state during the playing period from the preset database, and the code rate fluctuation curve of the requested media source and the playing The code rate fluctuation curve of the media source in the service state during the time period is synthesized to obtain a code rate synthesis curve, and the code rate synthesis curve can be used to estimate the change of the code rate in a certain period in the future, thereby improving the utilization of the bandwidth. rate.
  • Step S104 Determine whether a peak of the code rate synthesis curve exceeds a preset bandwidth.
  • Step S105 Use the preset bandwidth to transmit the requested media source to the playing device.
  • the requested media source is transmitted to the playback device using the preset bandwidth.
  • the maximum bandwidth of the system is 100M
  • curves 1, 2, and 3 represent the code rate fluctuation curves provided by the three different media sources to the user, wherein the maximum occupied bandwidth of the media source represented by curve 1 is 30M.
  • the maximum occupied bandwidth of the media source represented by curve 2 is 30M
  • the maximum occupied bandwidth of the media source represented by curve 3 is 50M.
  • the composite curve 4 represents the code rate synthesis curve of the above three rate fluctuation curves, when multiple media sources are simultaneously During playback, it is determined by the composite bit rate curve whether the preset bottleneck of the bandwidth is reached.
  • the media source represented by curve 3 is the above-mentioned request media source
  • the bandwidth is pre-empted according to the maximum occupied bandwidth of each media source
  • the media source represented by curves 1, 2, and 3 is preempted.
  • the bandwidth will exceed 100M, making it impossible to provide service to the above-mentioned requested media source represented by curve 3.
  • a code rate synthesis curve is obtained, and according to whether the peak value of the code rate synthesis curve exceeds a preset bandwidth, whether the preset bandwidth supports a new one is determined. Play the request.
  • the above method can be applied to a streaming media server.
  • a playback request sent by the playback device is received, and a code rate fluctuation curve of the requested media source that the playback device needs to play is acquired according to the playback request, and a code rate fluctuation curve of the requested media source and at least one medium are obtained.
  • the code rate fluctuation curve of the source is synthesized to obtain a code rate synthesis curve, wherein the at least one media source is a media source corresponding to the playback time requested by the play request, and it is determined whether the peak value of the code rate synthesis curve exceeds Presetting the bandwidth, if not, transmitting the requested media source to the playback device using the preset bandwidth.
  • the code rate synthesis curve the change of the code rate in a certain period of time in the future can be estimated, so that the maximum utilization of the bandwidth resources can be realized.
  • an optional embodiment of the present disclosure further provides a method for bandwidth management, including the following steps:
  • Step S301 Receive a play request sent by the playback device.
  • the streaming media server receives, by the code stream, a play request sent by the user through the set top box or a playback device such as a computer or a mobile phone.
  • Step S302 Determine, according to the play request, a request media source that the playback device needs to play.
  • the streaming media server determines the requested media source that the playback device needs to play by analyzing the attributes of the code stream, the encoding format, and the like.
  • Step S303 Acquire a code rate of the requested media source at multiple time points.
  • the code rate of the requested media source at multiple times is obtained by parsing the requesting media source.
  • Step S304 Record a code rate exceeding a preset threshold and a corresponding time point among the code rates of the multiple time points.
  • the acquisition rate of the code rate is collected according to the fluctuation threshold of the code rate. For example, if the preset threshold of the code rate is set to 100 kbps, then when the code rate changes by more than 100 kbps, the code rate and the corresponding code are recorded. Time point.
  • Step S305 Generate a code rate fluctuation curve of the requested media source according to the recorded code rate exceeding a preset threshold and a corresponding time point.
  • a corresponding code rate fluctuation curve can be generated according to the recorded code rate and the corresponding time point.
  • Step S306 synthesizing the code rate fluctuation curve of the requested media source and the code rate fluctuation curve of the at least one media source to obtain a code rate synthesis curve.
  • the playing period may be the playing time at the current request, or may be the time playing time. Determining a media source in a service state during the playing period, and obtaining a code rate fluctuation curve of the media source in the service state during the playing period from the preset database, and the code rate fluctuation curve of the requested media source and the playing The code rate fluctuation curves of the media sources in the service state during the time period are synthesized to obtain a code rate synthesis curve.
  • Step S307 Determine whether the peak of the code rate synthesis curve exceeds a preset bandwidth.
  • Step S308 The requested media source is transmitted to the playing device by using the preset bandwidth.
  • the requested media source is transmitted to the playback device using the preset bandwidth to provide a service to the user.
  • the requested media source is not transmitted to the playback device by using the preset bandwidth.
  • the maximum utilization of bandwidth resources can be realized by the foregoing method, and the waste of bandwidth resources is reduced, especially at the peak of streaming media resources on demand.
  • the code rate change of the media source may be pre-stored in the database, so that when there is a new play request, the database may be called in time.
  • the rate of the media source As shown in FIG. 4, the CID represents a unique identifier of the media source, for example, cin0000001, and the data indicates a code rate fluctuation, and the format is as follows: time: code rate; time: code rate; ..., where the unit of the code rate is Kbps, where the data length supports dynamic changes.
  • an optional embodiment of the present disclosure further provides a method for bandwidth management, including the following steps:
  • Step S501 The user requests to play the program through the set top box.
  • Step S502 Accept the user to play the program signaling.
  • Step S503 Parse the request media source, record the code rate of the request media source, and the corresponding time point.
  • the configuration can also be set according to the actual situation. Write the recorded data to the XXX.idx file.
  • Step S504 reporting the recorded data to the database.
  • Step S505 requesting a bandwidth resource.
  • Step S506 calculating a bandwidth resource.
  • step S507 first query the change record of the code rate in the database, and view the code rate fluctuation curve within the playing time range of the requested media source.
  • the remaining bandwidth bottleneck is calculated to limit the entry of new users; for the code rate valley point, the remaining capacity of the bandwidth is calculated, allowing more users to enter the system for service. In this way, the bandwidth is flexibly occupied, thereby maximizing the utilization of bandwidth.
  • Step S507 allowing the on-demand program to occupy bandwidth resources.
  • the requesting media source is allowed to occupy the bandwidth resource according to the received information, and the service request is sent to the streaming media server.
  • Step S508 providing a service to the user.
  • the CDN service service can be provided to the user through the foregoing method, and the bandwidth is flexibly occupied in this manner, thereby achieving maximum utilization of the bandwidth.
  • an optional embodiment of the present disclosure provides a device for bandwidth control, where the device 60 includes:
  • the receiving module 61 is configured to receive a play request sent by the playing device.
  • the obtaining module 62 is configured to acquire, according to the play request, a code rate fluctuation curve of the requested media source that the playing device needs to play;
  • a synthesizing module 63 configured to synthesize a code rate fluctuation curve of the requested media source and a code rate fluctuation curve of at least one media source to obtain a code rate synthesis curve, wherein the at least one media source is the play request The media source corresponding to the requested play time;
  • the determining module 64 is configured to determine whether a peak of the code rate synthesis curve exceeds a preset bandwidth
  • the transmission module 65 is configured to transmit the requested media source to the playback device if the peak of the code rate synthesis curve does not exceed a preset bandwidth.
  • FIG. 7 comprising:
  • the first determining module 66 is configured to determine, according to the play request, a request media source that the playing device needs to play;
  • the first obtaining unit 621 is configured to acquire a code rate of the requested media source at multiple time points;
  • the recording module 67 is configured to record a code rate exceeding a preset threshold and a corresponding time point among the code rates of the multiple time points;
  • the generating module 68 is configured to generate a code rate fluctuation curve of the requested media source according to the recorded code rate exceeding a preset threshold and a corresponding time point.
  • the method includes:
  • the second determining module 69 is configured to determine at least one media source corresponding to the playing time requested by the play request;
  • the second obtaining unit 622 is configured to acquire a code rate fluctuation curve of the at least one media source from a preset database
  • the synthesizing module 63 is configured to synthesize a code rate fluctuation curve of the requested media source and a code rate fluctuation curve of the at least one media source to obtain a code rate synthesis curve.
  • the second determining module 69 includes:
  • the first determining unit 691 is configured to determine at least one media source of the current service, where the play request currently plays the requested media source;
  • the second determining unit 692 is configured to determine at least one media source served within the target time period, wherein the play request plays the requested media source within the target time period.
  • the transmitting module 65 includes: if the peak of the code rate synthesis curve exceeds a preset bandwidth, transmitting the requested media source to the playback device without using the preset bandwidth.
  • the device 60 can implement the method provided in the embodiment shown in FIG. 1 to FIG. 5, that is, the methods provided in the embodiments of FIG. 1 to FIG. 5 can be implemented by the device 60, and the same beneficial effects can be achieved. To avoid repetition, we will not repeat them here.
  • the acquiring a rate fluctuation curve of the requested media source that the playback device needs to play according to the play request including:
  • synthesizing the code rate fluctuation curve of the requested media source and the code rate fluctuation curve of the at least one media source to obtain a code rate synthesis curve including:
  • the determining, by the media source corresponding to the play time requested by the play request the following:
  • the method includes transmitting the requested media source to the playback device without using the preset bandwidth if a peak of the code rate synthesis curve exceeds a preset bandwidth.
  • the storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • a play request sent by the playback device acquiring a code rate fluctuation curve of the requested media source that the playback device needs to play according to the play request, and performing a code rate fluctuation curve of the requested media source and at least a code rate fluctuation curve of a media source is synthesized to obtain a code rate synthesis curve, wherein the at least one media source is a media source corresponding to the playback time requested by the play request, and the peak value of the code rate synthesis curve is determined. Whether the preset bandwidth is exceeded, and if not, transmitting the requested media source to the playback device using the preset bandwidth. This maximizes the use of bandwidth resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开提供一种带宽管理的方法、装置和存储介质,包括,接收播放设备发送的播放请求,根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线,将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源,判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。本公开可选实施例可以实现带宽资源的最大化利用。

Description

一种带宽管理的方法、装置和存储介质 技术领域
本公开涉及通信领域,特别涉及一种带宽管理的方法、装置和存储介质。
背景技术
现有的内容分发网络(Content Delivery Network,CDN)技术中,带宽一般采用预占的方式,通过预算媒体源的最高码率,来占用带宽。但是媒体源的码率是波动的,尤其对于动态比特率编码(Variable Bit Rate,VBR)媒体源。当多个媒体源同时向用户提供服务时,由于媒体源的码率可以随着图像的复杂程度的不同而变化,若每一个媒体源都按照其最大码率去预占带宽资源,则会导致带宽资源浪费。
发明内容
本公开实施例的目的在于提供一种带宽管理的方法和装置,解决了带宽资源浪费的问题。
为了达到上述目的,本公开实施例提供一种带宽管理的方法,包括:
接收播放设备发送的播放请求;
根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线;
将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源;
判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。
本公开实施例提供一种带宽管理的装置,包括:
接收模块,设置为接收播放设备发送的播放请求;
获取模块,设置为根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线;
合成模块,设置为将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源;
判断模块,设置为判断所述码率合成曲线的峰值是否超过预设带宽;
传输模块,设置为若所述码率合成曲线的峰值不超过预设带宽,使用所述预设带宽向所述播放设备传输所述请求媒体源。
本公开实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行的一个或多个程序,所述一个或多个程序被所述计算机执行时使所述计算机执行如上述提供的一种带宽管理方法。
上述技术方案中的任一个技术方案具有如下优点或有益效果:
接收播放设备发送的播放请求,根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线,将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源,判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。这样可以实现带宽资源的最大化利用。
附图说明
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:
图1为可选实施例提供的一种带宽管理的方法的流程示意图;
图2是可选实施例提供的一种码率合成曲线的示意图;
图3是可选实施例提供的另一种带宽管理的方法的流程示意图;
图4是可选实施例提供的一种码率统计表格的示意图;
图5是可选实施例提供的另一种带宽管理的方法的流程示意图;
图6是可选实施例提供的一种带宽管理的装置的结构示意图;
图7是可选实施例提供的另一种带宽管理的装置的结构示意图;
图8是可选实施例提供的另一种带宽管理的装置的结构示意图;
图9是可选实施例提供的另一种带宽管理的装置的结构示意图。
具体实施方式
为使本公开要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及可选实施例进行详细描述。
如图1所示,本公开可选实施例提供一种带宽管理的方法,包括以下步骤:
步骤S101、接收播放设备发送的播放请求。
在该步骤中,流媒体服务器通过码流接收用户通过机顶盒或者电脑、手机等播放设备发送的播放请求。
步骤S102、根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线。
在该步骤中,根据上述播放请求,确定请求媒体源,并检查上述请求媒体源是否能正常,若不正常,则向播放设备发送播放请求失败的信令,若正常,则获取上述请求媒体源的码率波动曲线,并获取所述请求媒体源的播放时段。
步骤S103、将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线。
在该步骤中,根据上述请求媒体源的播放时段,在本实施例中,上述播放时段可以是当前请求时的播放时间,也可以是定时播放时间。确定该播放时段内处在服务状态的媒体源,并从预设数据库中获取该播放时段内处在服务状态的媒体源的码率波动曲线,将上述请求媒体源的码率波动曲线与该播放时段内处在服务状态的媒体源的码率波动曲线进行合成,以得到码率合成曲线,根据码率合成曲线可以对未来某一时段内码率的变化情况进行估算,从而来提高带宽的利用率。
步骤S104、判断所述码率合成曲线的峰值是否超过预设带宽。
在该步骤中,根据码率合成曲线的峰值是否超过预设带宽,来判断预设带宽是否支持上述播放请求。
步骤S105、使用所述预设带宽向所述播放设备传输所述请求媒体源。
在该步骤中,当上述码率合成曲线的峰值不超过预设带宽时,则使用上述预设带宽向上述播放设备传输上述请求媒体源。
例如,如图2所示,系统的最大带宽为100M,曲线1、2、3表示三个不同媒体源提供给用户的码率波动曲线,其中,曲线1代表的媒体源的最大占用带宽为30M,曲线2代表的媒体源的最大占用带宽为30M,曲线3代表的媒体源的最大占用带宽为50M,合成曲线4表示上述三个码率波动曲线的码率合成曲线,当多个媒体源同时播放时,通过合成码率曲线判断是否达到带宽的预设瓶颈。在本示例中,若曲线3代表的媒体源为上述请求媒体源,如果按照每一个媒体源的最大占用带宽来预占带宽的话,那么曲线1、2、3所代表的媒体源所预占的带宽将超过100M,从而无法向曲线3代表的上述请求媒体源提供服务。而通过本公开提供的方法,根据每个媒体源的各时间点的带宽占用情况,得到码率合成曲线,根据码率合成曲线的峰值是否超过预设带宽,来判断预设带宽是否支持新的播放请求。在本示例中,通过合成曲线4可以看出,可以同时向曲线1、2、3所代表的媒体源提供服务。通过码率合成曲线去占用带宽,可以最大化的利用带宽资源。
本实施例中,上述方法可以应用于流媒体服务器。
本实施例中,接收播放设备发送的播放请求,根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线,将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源,判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。根据码率合成曲线可以对未来某一时段内码率的变化情况进行估算,这样可以实现带宽资源的最大化利用。
如图3所示,本公开可选实施例还提供一种带宽管理的方法,包括以下步骤:
步骤S301、接收播放设备发送的播放请求。
在该步骤中,流媒体服务器通过码流接收用户通过机顶盒或者电脑、手机等播放设备发送的播放请求。
步骤S302、根据所述播放请求确定所述播放设备需要播放的请求媒体源。
在该步骤中,流媒体服务器通过分析码流的属性,编码格式等,确定上述播放设备需要播放的请求媒体源。
步骤S303、获取所述请求媒体源在多个时间点的码率。
在该步骤中,通过解析请求媒体源,获取请求媒体源在多个时间的码率。
步骤S304、记录所述多个时间点的码率中超过预设阈值的码率和对应的时间点。
在该步骤中,码率的采集粒度时按照码率的波动阈值来采集的,比如设定的码率预设阈值为100kbps,那么当码率变化超过100kbps,则会记录下码率和对应的时间点。
步骤S305、根据所述记录的超过预设阈值的码率和对应的时间点生成所述请求媒体源的码率波动曲线。
在该步骤中,根据记录的码率和对应的时间点可以生成相应的码率波动曲线。
步骤S306、将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线。
在该步骤中,根据上述请求媒体源的播放时段,在本实施例中,上述播放时段可以是当前请求时的播放时间,也可以是定时播放时间。确定该播放时段内处在服务状态的媒体源,并从预设数据库中获取该播放时段内处在服务状态的媒体源的码率波动曲线,将上述请求媒体源的码率波动曲线与该播放时段内处在服务状态的媒体源的码率波动曲线进行合成,以得到码率合成曲线。
步骤S307、判断所述码率合成曲线的峰值是否超过预设带宽。
在该步骤中,根据码率合成曲线的峰值是否超过预设带宽,来判断预设带宽是否支持上述播放请求。
步骤S308、使用所述预设带宽向所述播放设备传输所述请求媒体源。
在该步骤中,当上述码率合成曲线的峰值不超过预设带宽时,则使用上述预设带宽向上述播放设备传输上述请求媒体源,向用户提供服务。
可选地,若所述码率合成曲线的峰值超过预设带宽,则不使用所述预设带宽向所述播放设备传输所述请求媒体源。
在本实施例中,当上述码率合成曲线的峰值超过预设带宽,说明预设带宽的余量不足以向新用户提供服务。
本实施例中,通过上述方法可以实现带宽资源的最大化利用,减少了带宽资源的浪费,尤其是在流媒体资源点播的高峰期。
在本公开可选实施例中,还可以通过将媒体源的码率变化情况预先存储到数据库,以便当有新的播放请求的时候,可以及时调用数据库中存储 的媒体源的码率情况。如图4所示,CID表示媒体源的唯一标识,例如cin0000001,数据表示码率波动,其格式如下:时间:码率;时间:码率;......,其中码率的单位为kbps,其中,数据长度支持动态变化。
如图5所示,本公开可选实施例还提供一种带宽管理的方法,包括以下步骤:
步骤S501、用户通过机顶盒请求播放节目。
步骤S502、接受用户播放节目信令。
在该步骤中,通过接受用户播放节目信令,同时检查用户是否合法,检查请求媒体源是否正常。
步骤S503、解析请求媒体源,记录请求媒体源的码率及对应的时间点。
在该步骤中,通过解析请求媒体源的属性,编码格式等,计算请求媒体源的码率变化情况,并记录码率超过预设阈值的码率及对应的时间点,其中预设阈值可以人为配置的,也可以按照实际情况进行设定。将记录数据写到XXX.idx文件中。
步骤S504、将记录数据上报到数据库。
步骤S505、请求带宽资源。
步骤S506、计算带宽资源。
在该步骤中,首先查询数据库中码率的变化记录,查看请求媒体源所在播放时间范围内的码率波动曲线。按照图2所示的方式,合成在上述请求媒体源所在播放时间范围内所有当前正在服务的媒体源码率曲线,并得到码率合成曲线,根据预设带宽,计算剩余带宽在上述请求媒体源所在播放时间范围内是否能够满足当前用户的加入。若是计算剩余带宽在上述请求媒体源所在播放时间范围内能够满足当前用户的加入,则执行步骤S507;若是计算剩余带宽在上述请求媒体源所在播放时间范围内能够不能满足当前用户的加入,则结束流程,并向用户发送不能提供服务的信息。
在本实施例中,对于码率峰点,计算剩余带宽瓶颈,限制新用户进入;对于码率谷点,计算带宽的剩余能力,允许更多用户进入系统进行服务。通过这种方式灵活的占用带宽,从而实现带宽的最大利用。
步骤S507、允许点播节目占用带宽资源。
在该步骤中,根据接收到的信息,允许点播即上述请求媒体源占用带宽资源,并向流媒体服务器发送服务请求。
步骤S508、向用户提供服务。
本实施例中,可以通过上述方法向用户提供CDN业务服务,而且通过这种方式灵活的占用带宽,从而实现带宽的最大利用。
如图6所示,本公开可选实施例提供一种带宽控制的装置,所述装置60包括:
接收模块61,设置为接收播放设备发送的播放请求;
获取模块62,设置为根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线;
合成模块63,设置为将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源;
判断模块64,设置为判断所述码率合成曲线的峰值是否超过预设带宽;
传输模块65,设置为若所述码率合成曲线的峰值不超过预设带宽,使用所述预设带宽向所述播放设备传输所述请求媒体源。
可选地,如图7所示,包括:
第一确定模块66,设置为根据所述播放请求确定所述播放设备需要播放的请求媒体源;
第一获取单元621,设置为获取所述请求媒体源在多个时间点的码率;
记录模块67,设置为记录所述多个时间点的码率中超过预设阈值的码率和对应的时间点;
生成模块68,设置为根据所述记录的超过预设阈值的码率和对应的时间点生成所述请求媒体源的码率波动曲线。
可选地,如图8所示,包括:
第二确定模块69,设置为确定与所述播放请求所请求的播放时间对应的至少一个媒体源;
第二获取单元622,设置为从预设数据库中获取所述至少一个媒体源的码率波动曲线;
合成模块63,设置为将所述请求媒体源的码率波动曲线与所述至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线。
可选地,如图9所示,所述第二确定模块69包括:
第一确定单元691,设置为确定当前服务的至少一个媒体源,其中,所述播放请求当前播放所述请求媒体源;
第二确定单元692,设置为确定目标时段内服务的至少一个媒体源,其中,所述播放请求在所述目标时段内播放所述请求媒体源。
可选地,所述传输模块65包括若所述码率合成曲线的峰值超过预设带宽,则不使用所述预设带宽向所述播放设备传输所述请求媒体源。
本实施例中,装置60可以实现图1至图5所示实施例中提供的方法,即图1至图5实施例中提供的方法都可以由装置60实现,并且能达到相同的有益效果,为避免重复,在此不再赘述。
本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中,该程序在执行时,包括以下步骤:
S1,接收播放设备发送的播放请求;
S2,根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线;
S3,将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动 曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源;
S4,判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。
可选地,所述根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线,包括:
S1,根据所述播放请求确定所述播放设备需要播放的请求媒体源;
S2,获取所述请求媒体源在多个时间点的码率;
S3,记录所述多个时间点的码率中超过预设阈值的码率和对应的时间点;
S4,根据所述记录的超过预设阈值的码率和对应的时间点生成所述请求媒体源的码率波动曲线。
可选地,所述将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,包括:
S1,确定与所述播放请求所请求的播放时间对应的至少一个媒体源;
S2,从预设数据库中获取所述至少一个媒体源的码率波动曲线;
S3,将所述请求媒体源的码率波动曲线与所述至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线。
可选地,所述确定与所述播放请求所请求的播放时间对应的至少一个媒体源,包括:
S1,确定当前服务的至少一个媒体源,其中,所述播放请求当前播放所述请求媒体源;或者
S2,确定目标时段内服务的至少一个媒体源,其中,所述播放请求在所述目标时段内播放所述请求媒体源。
可选地,所述方法包括若所述码率合成曲线的峰值超过预设带宽,则不使用所述预设带宽向所述播放设备传输所述请求媒体源。
所述的存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。
工业实用性
通过本公开的技术方案,接收播放设备发送的播放请求,根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线,将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源,判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。这样可以实现带宽资源的最大化利用。

Claims (11)

  1. 一种带宽管理的方法,包括:
    接收播放设备发送的播放请求;
    根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线;
    将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源;
    判断所述码率合成曲线的峰值是否超过预设带宽,若否,使用所述预设带宽向所述播放设备传输所述请求媒体源。
  2. 根据权利要求1所述的方法,其中,所述根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线,包括:
    根据所述播放请求确定所述播放设备需要播放的请求媒体源;
    获取所述请求媒体源在多个时间点的码率;
    记录所述多个时间点的码率中超过预设阈值的码率和对应的时间点;
    根据所述记录的超过预设阈值的码率和对应的时间点生成所述请求媒体源的码率波动曲线。
  3. 根据权利要求1或2所述的方法,其中,所述将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,包括:
    确定与所述播放请求所请求的播放时间对应的至少一个媒体源;
    从预设数据库中获取所述至少一个媒体源的码率波动曲线;
    将所述请求媒体源的码率波动曲线与所述至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线。
  4. 根据权利要求3所述的方法,其中,所述确定与所述播放请求所请求的播放时间对应的至少一个媒体源,包括:
    确定当前服务的至少一个媒体源,其中,所述播放请求当前播放所述请求媒体源;或者
    确定目标时段内服务的至少一个媒体源,其中,所述播放请求在所述目标时段内播放所述请求媒体源。
  5. 根据权利要求1或2所述的方法,其中,所述方法包括若所述码率合成曲线的峰值超过预设带宽,则不使用所述预设带宽向所述播放设备传输所述请求媒体源。
  6. 一种带宽管理的装置,包括:
    接收模块,设置为接收播放设备发送的播放请求;
    获取模块,设置为根据所述播放请求获取所述播放设备需要播放的请求媒体源的码率波动曲线;
    合成模块,设置为将所述请求媒体源的码率波动曲线与至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线,其中,所述至少一个媒体源为所述播放请求所请求的播放时间对应的媒体源;
    判断模块,设置为判断所述码率合成曲线的峰值是否超过预设带宽;
    传输模块,设置为若所述码率合成曲线的峰值不超过预设带宽, 使用所述预设带宽向所述播放设备传输所述请求媒体源。
  7. 根据权利要求6所述的装置,其中,包括:
    第一确定模块,设置为根据所述播放请求确定所述播放设备需要播放的请求媒体源;
    第一获取单元,设置为获取所述请求媒体源在多个时间点的码率;
    记录模块,设置为记录所述多个时间点的码率中超过预设阈值的码率和对应的时间点;
    生成模块,设置为根据所述记录的超过预设阈值的码率和对应的时间点生成所述请求媒体源的码率波动曲线。
  8. 根据权利要求6或7所述的装置,其中,包括:
    第二确定模块,设置为确定与所述播放请求所请求的播放时间对应的至少一个媒体源;
    第二获取单元,设置为从预设数据库中获取所述至少一个媒体源的码率波动曲线;
    合成模块,设置为将所述请求媒体源的码率波动曲线与所述至少一个媒体源的码率波动曲线进行合成,以得到码率合成曲线。
  9. 根据权利要求8所述的装置,其中,所述第二确定模块包括:
    第一确定单元,设置为确定当前服务的至少一个媒体源,其中,所述播放请求当前播放所述请求媒体源;
    第二确定单元,设置为确定目标时段内服务的至少一个媒体源,其中,所述播放请求在所述目标时段内播放所述请求媒体源。
  10. 根据权利要求6或7所述的装置,其中,所述传输模块包括若所述码率合成曲线的峰值超过预设带宽,则不使用所述预设带宽向所述播放设备传输所述请求媒体源。
  11. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至5任一项中所述的方法。
PCT/CN2017/088998 2016-08-23 2017-06-19 一种带宽管理的方法、装置和存储介质 WO2018036245A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610710561.XA CN107770145A (zh) 2016-08-23 2016-08-23 一种带宽管理的方法和装置
CN201610710561.X 2016-08-23

Publications (1)

Publication Number Publication Date
WO2018036245A1 true WO2018036245A1 (zh) 2018-03-01

Family

ID=61245448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088998 WO2018036245A1 (zh) 2016-08-23 2017-06-19 一种带宽管理的方法、装置和存储介质

Country Status (2)

Country Link
CN (1) CN107770145A (zh)
WO (1) WO2018036245A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187870A (zh) * 2020-09-04 2021-01-05 网宿科技股份有限公司 一种带宽平滑方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102474A (zh) * 2006-06-29 2008-01-09 汤姆森特许公司 管理对远程访问多媒体内容的请求的方法
US20080025413A1 (en) * 2006-07-28 2008-01-31 John Apostolopoulos Selecting bit rates for encoding multiple data streams
CN102045393A (zh) * 2010-12-14 2011-05-04 华为技术有限公司 一种带宽控制的方法、设备和系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4643988B2 (ja) * 2002-09-10 2011-03-02 トムソン ライセンシング ビデオ・オン・デマンド・サーバのシステムおよび方法
US8468572B2 (en) * 2008-03-26 2013-06-18 Cisco Technology, Inc. Distributing digital video content to multiple end-user devices
JP5387395B2 (ja) * 2009-12-28 2014-01-15 ソニー株式会社 受信装置、受信方法およびプログラム
US8396983B1 (en) * 2012-03-13 2013-03-12 Google Inc. Predictive adaptive media streaming
CN102724491A (zh) * 2012-06-15 2012-10-10 北京博雅华录视听技术研究院有限公司 基于并行编码的统计复用方法
CN105099778A (zh) * 2015-07-27 2015-11-25 中国联合网络通信集团有限公司 一种带宽分配的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102474A (zh) * 2006-06-29 2008-01-09 汤姆森特许公司 管理对远程访问多媒体内容的请求的方法
US20080025413A1 (en) * 2006-07-28 2008-01-31 John Apostolopoulos Selecting bit rates for encoding multiple data streams
CN102045393A (zh) * 2010-12-14 2011-05-04 华为技术有限公司 一种带宽控制的方法、设备和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187870A (zh) * 2020-09-04 2021-01-05 网宿科技股份有限公司 一种带宽平滑方法及装置

Also Published As

Publication number Publication date
CN107770145A (zh) 2018-03-06

Similar Documents

Publication Publication Date Title
JP6981257B2 (ja) 情報処理装置および情報処理方法
CN110198495B (zh) 一种视频下载和播放的方法、装置、设备和存储介质
WO2019134470A1 (zh) 视频直播方法及装置
JP5147950B2 (ja) 可変帯域幅のチャンネルを介してサイマル放送を行う装置および方法
CN110636339B (zh) 基于码率的调度方法、装置及电子设备
CN103517157A (zh) 实现hls频道时移播放的方法及系统
US20110082943A1 (en) P2p network system and data transmitting and receiving method thereof
US9578356B1 (en) Live video matching method and system
KR20150070568A (ko) Http 기반의 멀티미디어 스트리밍 서비스를 위한 네트워크 대역폭 적응적 콘텐츠 생성 방법 및 시스템
JP2023130418A (ja) クライアント、サーバ、受信方法及び送信方法
US20160212054A1 (en) Multiple Protocol Media Streaming
CN109587514A (zh) 一种视频播放方法、介质和相关装置
CN107810625A (zh) 低延迟媒体流传输
US20230283509A1 (en) Systems and methods for inserting supplemental content into a quadrature amplitude modulation signal using existing bandwidth
CN104935952A (zh) 一种视频转码方法和系统
KR101769115B1 (ko) 큐톤 광고 서비스를 제공하는 시스템, 미디어 재생 장치 및 광고 컨텐츠 제공 서버
WO2018036245A1 (zh) 一种带宽管理的方法、装置和存储介质
US9332421B2 (en) Method and apparatus for random access to multimedia content in wireless communication system
KR20110059429A (ko) 아이폰을 위한 분산 미디어 스트리밍 방법과 장치 및 그 시스템
CN111970541A (zh) 一种数据传输方法、装置、终端设备和存储介质
JP2014131142A (ja) 受信装置、受信方法、及びプログラム、撮像装置、撮像方法、及びプログラム、送信装置、送信方法、及びプログラム
CN110545447B (zh) 一种音视频同步的方法及装置
CN111131777A (zh) 一种视联网监控的查看方法和装置
WO2017071524A1 (zh) 多媒体资源的发布方法及装置
KR101565139B1 (ko) 스마트 러닝을 위한 멀티채널용 학습자원 제공 방법

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: 17842670

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: 17842670

Country of ref document: EP

Kind code of ref document: A1