WO2016082485A1 - 一种码流传输方法、装置、服务器和系统 - Google Patents

一种码流传输方法、装置、服务器和系统 Download PDF

Info

Publication number
WO2016082485A1
WO2016082485A1 PCT/CN2015/079115 CN2015079115W WO2016082485A1 WO 2016082485 A1 WO2016082485 A1 WO 2016082485A1 CN 2015079115 W CN2015079115 W CN 2015079115W WO 2016082485 A1 WO2016082485 A1 WO 2016082485A1
Authority
WO
WIPO (PCT)
Prior art keywords
code stream
encoder
sent
cdn node
module
Prior art date
Application number
PCT/CN2015/079115
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 WO2016082485A1 publication Critical patent/WO2016082485A1/zh

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a code stream transmission method, apparatus, server, and system.
  • the code stream transmission method is generally that the encoder passes the code stream through the PUSH (push, active transmission) mode. PUSH to the CDN central node, and then the CDN central node and the CDN edge node are relayed by PULL (pull, active acquisition), and the traditional code stream transmission method will cause at least the following two problems:
  • the IP address of the card at the central node of the CDN is subject to change, and the IP address of the new board is added due to the addition of a new CDN central node.
  • the encoder needs to be modified and adjusted. .
  • the encoder transmits the code stream directly to the CDN central node through the PUSH mode, so that the number of CDN central nodes is limited. If the number of CDN central nodes increases, the performance of the encoder push code stream will be compared. Great impact.
  • Embodiments of the present invention provide a code stream transmission method, apparatus, server, and system, to at least solve the problem that an encoder is affected by a CDN node change in the related art.
  • a method for transmitting a code stream comprising: receiving a code stream sent by an encoder and storing, confirming a download request sent by a CDN node, and transmitting the code stream sent by the encoder to the Said CDN node.
  • the code stream sent by the receiving encoder includes: a total index file, a sub-shard file, and a channel index file that are sent by the encoder in sequence; and the confirming the download request sent by the CDN node, including: sequentially confirming that the CDN node sends Download the total index file request, download the channel index file request, and download the sub-shard file request.
  • the method for transmitting the code stream further includes: receiving a delete sub-fragment file command periodically sent by the encoder, and deleting the sub-fragment file that exceeds a preset cache period.
  • the receiving the code stream sent by the encoder further includes: counting the number of channels established by the encoder; and sending the alarm information to the network management when the number of the channels exceeds a preset upper threshold.
  • the confirming the download request sent by the CDN node further includes: counting the number of the CDN nodes; and sending the alarm information to the network management when the number of the CDN nodes exceeds a preset upper threshold.
  • the receiving the code stream sent by the encoder further includes: counting the number of channels established by the encoder; and sending the alarm information to the network management when the number of the channels exceeds a preset upper threshold.
  • the confirming the download request sent by the CDN node further includes: counting the number of the CDN nodes; and sending the alarm information to the network management when the number of the CDN nodes exceeds a preset upper threshold.
  • a code stream transmission apparatus comprising: a receiving module, configured to receive a code stream sent by an encoder; a storage module, configured to store a code stream sent by the encoder; and a confirmation module, Set to confirm the download request sent by the CDN node; the sending module is configured to send the code stream sent by the encoder to the CDN node.
  • the receiving module is configured to receive the code stream sent by the encoder, and specifically includes: a total index file, a sub-shard file, and a channel index file that are sequentially sent by the receiving encoder; and the confirmation module is configured to confirm the download sent by the CDN node.
  • the request specifically includes: sequentially confirming the download total index file request, the download channel index file request, and the download sub-slice file request sent by the CDN node.
  • the code stream transmission device further includes: a log management module, configured to receive a delete sub-fragment file command periodically sent by the encoder, and delete the sub-fragment file that exceeds a preset cache period.
  • the code stream transmission device further includes: a first detecting module, configured to count the number of channels established by the encoder; and an alarm module, configured to send an alarm message to the network management when the number of the channels exceeds a preset upper threshold .
  • the code stream transmission device further includes: a second detecting module, configured to count the number of the CDN nodes; and an alarm module, configured to send an alarm message to the network management when the number of the CDN nodes exceeds a preset upper threshold.
  • the code stream transmission device further includes: a first detecting module configured to count the number of channels established by the encoder; and a second detecting module configured to count the number of the CDN nodes; an alarm module, setting The alarm information is sent to the network management system when the number of the channel exceeds the preset upper threshold. The alarm information is sent to the network management when the number of the CDN nodes exceeds the preset upper threshold.
  • a server which may include a processor, a receiving module, a storage module, a confirmation module, and a sending module.
  • a code stream transmission system comprising an encoder, a CDN node, and at least one server; the encoder configured to program the original code stream and send to the server
  • the CDN node is configured to send a download request to the server, and acquire a code stream sent by the server; the server is configured to receive a code stream sent by the encoder, and confirm a download request sent by the CDN node, where the The code stream transmitted by the encoder is sent to the CDN node.
  • the number of the servers is two, and the heartbeat lines are connected between the two servers, which are used as a main standby machine to prevent a single point of failure.
  • the code stream sent by the encoder is received, the download request sent by the CDN node is confirmed, and the code stream sent by the encoder is sent to the CDN node, so that the IP address of the CDN node is changed or increased.
  • the encoder does not need to make any changes to other CDN nodes. And when the number of CDN nodes increases, the performance of the encoder remains stable and is not affected by the number of CDN nodes.
  • FIG. 1 is a flowchart of a code stream transmission method according to an embodiment of the present invention.
  • FIG. 2 is a flow chart showing a preferred method of code stream transmission according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing the structure of a code stream transmission apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 1 showing a preferred structure of a code stream transmission apparatus according to an embodiment of the present invention
  • FIG. 5 is a block diagram 2 showing a preferred structure of a code stream transmission apparatus according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of a code stream transmission server according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram showing a preferred networking manner of a code stream transmission system according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a code stream transmission method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps (S101 to S103):
  • the encoder receives the original code stream and sends it to the server, and the server stores the code stream locally after receiving the code stream sent by the encoder.
  • the server confirms The download request sends the stored code stream to the CDN node.
  • the code stream sent by the encoder is received, the download request sent by the CDN node is confirmed, and the code stream sent by the encoder is sent to the CDN node, so that the IP address of the CDN node is changed or increased.
  • the encoder does not need to make any changes to other CDN nodes. And when the number of CDN nodes increases, the performance of the encoder remains stable and is not affected by the number of CDN nodes.
  • FIG. 2 is a flowchart of a preferred method for transmitting a code stream according to an embodiment of the present invention.
  • the code stream transmission method may specifically include the following steps (S201 to S210). :
  • the encoder prepares a source code stream, performs coding and segmentation
  • the encoder uploads the total index file to the server.
  • the encoder uploads the sub-shard file to the server.
  • the encoder uploads the channel index file to the server.
  • the CDN node sends a request for downloading a total index file to the server.
  • the server sends the total index file sent by the encoder to the CDN node.
  • the CDN node sends a download channel index file request to the server.
  • the server sends the channel index file sent by the encoder to the CDN node.
  • the CDN node sends a download sub-slice file request to the server.
  • the server sends the sub-fragment file sent by the encoder to the CDN node.
  • the command to delete the sub-shard file sent by the encoder may be received, the cached period of the stored sub-shard file is set in advance, and the sub-fragment file exceeding the cache period is deleted. . This can periodically clear the cache to ensure sufficient code stream storage space.
  • the server can also set the storage policy by itself, and delete the stored code stream according to the policy.
  • the code stream sent by the encoder is received, and the number of channels established by the encoder is also counted, and an upper threshold is set.
  • an upper threshold is set.
  • the alarm information is sent, and the alarm information sent by the above is reported to the NMS. After the alarm is cleared, the information about the alarm is also reported to the NMS.
  • the number of channels established by the encoder is counted and the upper threshold is set.
  • the alarm information is sent to include the following steps:
  • a time is preset, such as 10 seconds, 20 seconds, 30 seconds, 40 seconds, etc., and the channel counter is decremented by 1 when the channel counter does not respond within the time.
  • the number of CDN nodes that send the download request may be counted and an upper threshold is set, and when the number of CDN nodes that send the download request exceeds the upper threshold.
  • the alarm information is sent, and the alarm information sent by the above is reported to the NMS. After the alarm is cleared, the information about the alarm is also reported to the NMS. Specifically, the number of the CDN nodes that send the download request is counted and the upper threshold is set.
  • the alarm information includes the following steps:
  • a time is preset, such as 10 seconds, 20 seconds, 30 seconds, 40 seconds, etc., and the user counter is decremented by 1 when the user counter does not respond within the time.
  • the code stream sent by the encoder is received, and the number of channels established by the encoder is counted and an upper threshold is set, and when the number of channels established by the encoder exceeds a set upper threshold, the identifier is sent.
  • the alarm information confirms the download request sent by the CDN node, and can also count the number of CDN nodes that send the download request and set an upper threshold, and issue an alarm message when the number of CDN nodes that send the download request exceeds the upper threshold;
  • the alarm information sent by the above is reported to the NMS. After the alarm is cleared, the information about the alarm is also reported to the NMS.
  • FIG. 3 is a structural block diagram of a code stream transmission apparatus according to an embodiment of the present invention.
  • the apparatus includes: a receiving module 301, a storage module 302, and a confirmation.
  • the module 303 and the sending module 304 wherein the receiving module 301 is configured to receive the code stream sent by the encoder, and the storage module 302 is configured to store the code stream received by the receiving module for storage; and the confirming module 303 is configured to receive and The download request sent by the CDN node is confirmed; the sending module 304 is configured to send the code stream sent by the encoder to the CDN node after the confirmation module 303 completes the confirmation.
  • the receiving module 301 receives the code stream sent by the encoder and stores it in the storage module 302.
  • the confirmation module 303 receives the download request sent by the CDN node and completes the confirmation, and the sending module 304 then prepares the encoder.
  • the sent code stream is sent to the CDN node, so that the encoder does not need to be directly connected to the CDN node, that is, the encoder does not need to fill in the IP address of the CDN node board, and the encoder does not need to be added when the CDN node is added or the board IP address changes occur. Making changes will not affect the performance of the encoder.
  • FIG. 4 is a block diagram of a preferred structure of a code stream transmission apparatus according to an embodiment of the present invention.
  • the apparatus may further include: a log management module 305.
  • the storage space of the code stream storage device 302 is limited. In the actual working process, the storage module 302 is likely to accumulate a large number of redundant sub-shard files, and the log management module 305 is responsible for receiving the encoder periodically.
  • the sub-fragment file command is deleted, and the sub-fragment file stored in the storage module 302 is set to a cache period. After receiving the command to delete the sub-fragment file sent by the encoder, the sub-fragment file exceeding the cache period is deleted. To ensure that the storage module 302 has sufficient storage space.
  • FIG. 5 is a block diagram of a preferred structure of a code stream transmission apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus may further include: a first detection module 307, a second The detection module 308 and the alarm module 306.
  • the first detecting module 307 counts the number of channels established by the encoder, and sets an upper threshold. When the number of the channels exceeds the upper threshold, the alarm information is sent.
  • the second detecting module 308 sends the number of CDN nodes that send the download request. The alarm is generated, and the upper threshold is set. When the number of the CDN nodes exceeds the upper threshold, the alarm information is sent; the alarm module 306 collects the alarm information sent and reports the information to the network management system; when the number of the channels or the number of CDN nodes exceeds the respective
  • the first detection module 307 or the second detection module 308 sends an alarm message, and the alarm module 306 collects and reports the alarm information to the network management system. When the alarm is removed by the first detection module 307 or the second detection module 308, the alarm module is 306 also reports the information of the alarm elimination to the network management system.
  • the number of channels established by the encoder is counted and an upper threshold is set, and when the number of channels established by the encoder exceeds the set upper threshold, an alarm message is sent, and the number of CDN nodes that send the download request is counted and set.
  • the upper threshold when the number of CDN nodes that send the download request exceeds the upper threshold, the alarm information includes the following steps:
  • the first detecting module 307 sets a channel counter, and sets the channel counter to the upper limit of the counting; the second detecting module 308 sets a user counter, and sets the user counter to the upper limit of counting.
  • the first detecting module After receiving the channel establishment request sent by the encoder, the first detecting module detects whether the channel number exceeds the upper limit of the channel counter. After receiving the download request sent by the CDN node, the second detecting module detects whether the number of CDN nodes exceeds the user counter. The upper limit of the count.
  • S705 preset a time, such as 10 seconds, 20 seconds, 30 seconds, 40 seconds, etc., if the channel counter does not respond within the time, the channel counter is decremented by 1; a preset time, such as 10 seconds, 20 Seconds, 30 seconds, 40 seconds, etc., during which the user counter does not respond, the user counter is decremented by one.
  • first detection module and the second detection module do not have to be included in the device at the same time, and may include only the first detection module and the alarm module, or only the second detection module and the alarm module.
  • the foregoing embodiment can include a log management module at the same time.
  • FIG. 6 is a structural block diagram of a code stream transmission server according to an embodiment of the present invention.
  • the server may include a processor 405.
  • the receiving module 401 is configured to receive a code.
  • the code stream is sent after the device is programmed;
  • the storage module 402 is configured to store the code stream received by the receiving module;
  • the storage is performed;
  • the confirmation module 403 is configured to receive and confirm the download request sent by the CDN node;
  • the sending module 404 is configured to After the confirmation module 403 completes the confirmation, the code stream sent by the encoder is sent to the CDN node.
  • the server in the embodiment of the present invention may further include an alarm module, and may also include an alarm module and the first detection module and/or the second detection module.
  • the foregoing embodiment can include a log management module at the same time.
  • An embodiment of the present invention further provides a code stream transmission system, where the code stream transmission system includes an encoder, a CDN node, and a server, wherein the server may be set to one or two or more; the following is to set two servers as The details are explained.
  • the system includes a server 1 and a server 2, which are mutually standby and connected by a heartbeat line.
  • the encoder is connected to the server 1 and transmits the code stream to the server 1.
  • the server 1 is connected to the CDN node, receives and confirms the download request sent by the CDN node, and transmits the code stream to the CDN node.
  • the heartbeat detects the fault and reflects it to the backup machine, that is, the server 2, and the server 2 can immediately replace the server 1 to receive the code stream sent by the encoder, receive and confirm the download request sent by the CDN node and
  • the code stream is sent to the CDN node, which ensures the smooth operation of the network and the normal operation of the service.
  • a code stream transmission method, apparatus, server, and system provided by an embodiment of the present invention have the following beneficial effects: when the IP address of a CDN node board is changed or other CDN nodes are added, the encoder does not need to be used. Any changes. And when the number of CDN nodes increases, the performance of the encoder remains stable and is not affected by the number of CDN nodes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

提供一种码流传输方法、装置、服务器和系统。其中,所述码流传输方法包括:接收编码器发送的码流并存储,确认CDN节点发送的下载请求,将上述编码器发送的码流发送给上述CDN节点。在编码器与CDN节点之间增设一种码流传输服务器,使得编码器不需要与CDN节点直接相连,即编码器不需要填写CDN节点单板IP地址,在CDN节点增加或发生单板IP地址变动时,编码器无需做出改动,也不会影响编码器工作性能。

Description

一种码流传输方法、装置、服务器和系统 技术领域
本发明涉及通信技术领域,尤其涉及一种码流传输方法、装置、服务器和系统。
背景技术
在交互式网络电视(Internet Protocol Television,简称IPTV)/网络电视机顶盒业务(Over The Top,简称OTT)系统内,码流的传输方法一般是编码器将码流通过PUSH(推送,主动发送)方式PUSH到CDN中心节点,然后CDN中心节点与CDN边缘节点之间再通过PULL(拉取,主动获取)方式进行中继,传统码流传输方式会造成至少以下两个问题:
1、在实际应用中,CDN中心节点的单板IP地址往往会有变动,也会因为增加新的CDN中心节点而导致增加新的单板IP地址,这时就需要对编码器进行改动和调整。
2、编码器将码流通过PUSH方式直接推送给CDN中心节点这一传输方式,使得CDN中心节点个数受到限制,如果CDN中心节点个数增加较多,编码器推送码流的性能会受到较大影响。
针对相关技术中编码器随CDN节点变动而受影响的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种码流传输方法、装置、服务器及系统,以至少解决相关技术中编码器随CDN节点变动而受影响的问题。
根据本发明的一个实施例,提供了一种码流的传输方法,包括:接收编码器发送的码流并存储,确认CDN节点发送的下载请求,将所述编码器发送的码流发送给所述CDN节点。
所述接收编码器发送的码流,包括:接收编码器依次发送的总索引文件、子分片文件、通道索引文件;所述确认CDN节点发送的下载请求,包括:依次确认所述CDN节点发送的下载总索引文件请求、下载通道索引文件请求和下载子分片文件请求。
上述码流的传输方法还包括:接收所述编码器定时发送的删除子分片文件命令,将超过预设缓存期的所述子分片文件删除。
所述接收编码器发送的码流,还包括:对所述编码器建立的频道个数进行计数;在所述频道个数超过预设上限阈值时,向网管发出告警信息。
所述确认CDN节点发送的下载请求,还包括:对所述CDN节点个数进行计数;在所述CDN节点个数超过预设上限阈值时,向网管发出告警信息。
所述接收编码器发送的码流,还包括:对所述编码器建立的频道个数进行计数;在所述频道个数超过预设上限阈值时,向网管发出告警信息。所述确认CDN节点发送的下载请求,还包括:对所述CDN节点个数进行计数;在所述CDN节点个数超过预设上限阈值时,向网管发出告警信息。
根据本发明的另一个实施例,还提供了一种码流传输装置,包括:接收模块,设置为接收编码器发送的码流;存储模块,设置为存储编码器发送的码流;确认模块,设置为确认CDN节点发送的下载请求;发送模块,设置为将所述编码器发送的码流发送给所述CDN节点。
所述接收模块设置为接收编码器发送的码流,具体包括:接收编码器依次发送的总索引文件、子分片文件、通道索引文件;所述确认模块设置为确认所述CDN节点发送的下载请求,具体包括:依次确认所述CDN节点发送的下载总索引文件请求、下载通道索引文件请求和下载子分片文件请求。
上述码流传输装置还包括:日志管理模块,设置为接收所述编码器定时发送的删除子分片文件命令,并将超过预设缓存期的所述子分片文件删除。
上述码流传输装置还包括:第一检测模块,设置为对所述编码器建立的频道个数进行计数;告警模块,设置为在所述频道个数超过预设上限阈值时向网管发出告警信息。
上述码流传输装置还包括:第二检测模块,设置为对所述CDN节点个数进行计数;告警模块,设置为在所述CDN节点个数超过预设上限阈值时向网管发出告警信息。
上述码流传输装置还包括:第一检测模块,设置为对所述编码器建立的频道个数进行计数;第二检测模块,设置为对所述CDN节点个数进行计数;告警模块,设置 为在所述频道个数超过预设上限阈值时向网管发出告警信息,还设置为在所述CDN节点个数超过预设上限阈值时向网管发出告警信息。
根据本发明的再一个实施例,还提供了一种服务器,该服务器可以包括处理器、接收模块、存储模块、确认模块及发送模块。
根据本发明的还一个实施例,提供了一种码流传输系统,包括编码器、CDN节点,还包括至少一个服务器;所述编码器,设置为对原始码流进行编制并发送给所述服务器;所述CDN节点,设置为向所述服务器发送下载请求,并获取所述服务器发送的码流;所述服务器设置为接收编码器发送的码流,确认CDN节点发送的下载请求,将所述编码器发送的码流发送给所述CDN节点。
所述服务器个数为两个,两个服务器之间连接有心跳线,互为主备机,用来防止发生单点故障。
通过本发明实施例,接收编码器发送的码流,确认CDN节点发送的下载请求,将所述编码器发送的码流发送给所述CDN节点,使得以后CDN节点单板IP地址有改动或者增加其他CDN节点时,编码器不需要做任何改动。并且当CDN节点个数增加较多时,编码器的工作性能依然保持稳定,不受CDN节点个数变化的影响。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的码流传输方法的流程图;
图2是根据本发明实施例的码流传输方法优选的流程图;
图3是根据本发明实施例的码流传输装置的结构框图;
图4是根据本发明实施例的码流传输装置优选的结构框图一;
图5是根据本发明实施例的码流传输装置优选的结构框图二;
图6是根据本发明实施例的码流传输服务器的结构框图;
图7是根据本发明实施例的码流传输系统组网方式优选的结构框图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
本发明实施例提供了一种码流传输的方法,图1是根据本发明实施例的码流传输方法的流程图,如图1所示,该方法包括以下步骤(S101至S103):
S101,接收编码器发送的码流并存储;
S102,确认CDN节点发送的下载请求;
S103,将上述编码器发送的码流发送给上述CDN节点。
在本实施例中,编码器接收原始码流并进行编制后发送给服务器,服务器接收到编码器发送的码流后在本地存储该码流,当CDN节点向服务器发送下载请求时,上述服务器确认所述下载请求并将已存储的码流发送给CDN节点。
通过本发明实施例,接收编码器发送的码流,确认CDN节点发送的下载请求,将所述编码器发送的码流发送给所述CDN节点,使得以后CDN节点单板IP地址有改动或者增加其他CDN节点时,编码器不需要做任何改动。并且当CDN节点个数增加较多时,编码器的工作性能依然保持稳定,不受CDN节点个数变化的影响。
在本发明实施例的一个实施方式中,图2是根据本发明实施例的码流传输方法优选的流程图,如图2所示,上述码流传输方法具体可以包括以下步骤(S201至S210):
S201,编码器编制原始码流,进行编码和分段;
S202,编码器将总索引文件上传到服务器;
S203,编码器将子分片文件上传到服务器;
S204,编码器将通道索引文件上传到服务器;
S205,CDN节点向服务器发送下载总索引文件请求;
S206,服务器将编码器发送的总索引文件发送给CDN节点;
S207,CDN节点向服务器发送下载通道索引文件请求;
S208,服务器将编码器发送的通道索引文件发送给CDN节点;
S209,CDN节点向服务器发送下载子分片文件请求;
S210,服务器将编码器发送的子分片文件发送给CDN节点。
在本发明实施例的一个实施方式中,还可以接收编码器定时发送的删除子分片文件命令,预先将存储的子分片文件设置缓存期,并将超过缓存期的上述子分片文件删除。这样可以定时清理缓存,保证足够的码流存储空间。另外,服务器也可以自己设定存储策略,依据策略删除存储的码流。
在本发明实施例的一个实施方式中,接收编码器发送的码流,还可以对编码器建立的频道个数进行计数并设置上限阈值,当编码器建立的频道个数超过设置的上限阈值时发出告警信息,同时将上述发出的告警信息上报给网管。告警消除后,也会将告警消除的信息上报给网管。具体的,对编码器建立的频道个数进行计数并设置上限阈值,当编码器建立的频道个数超过设置的上限阈值时发出告警信息包括以下步骤:
S501,设置一个频道计数器,并将频道计数器设置计数上限;
S502,收到编码器发送的建立频道请求后检测频道个数是否超过频道计数器的计数上限;
S503,若没有超过频道计数器的计数上限,则把频道计数器加1;
S504,若超过了频道计数器的计数上限,则拒绝编码器的请求并告警;
S505,预先设定一个时间,比如10秒、20秒、30秒、40秒等,在所述时间内频道计数器没有响应,则把频道计数器减1。
在本发明实施例的一个实施方式中,确认CDN节点发送的下载请求,还可以对发送下载请求的CDN节点个数进行计数并设置上限阈值,当发送下载请求的CDN节点个数超过上限阈值时发出告警信息,同时将上述发出的告警信息上报给网管。告警消除后,也会将告警消除的信息上报给网管。具体的,对发送下载请求的CDN节点个数进行计数并设置上限阈值,当发送下载请求的CDN节点个数超过上限阈值时发出告警信息包括以下步骤:
S601,设置一个用户计数器,并将用户计数器设置计数上限;
S602,收到CDN节点发送的下载请求后检测CDN节点个数是否超过用户计数器的计数上限;
S603,若没有超过用户计数器的计数上限,则把用户计数器加1;
S604,若超过了用户计数器的计数上限,则拒绝CDN节点的下载请求并告警;
S605,预先设定一个时间,比如10秒、20秒、30秒、40秒等,在所述时间内用户计数器没有响应,则把用户计数器减1。
在本发明实施例的一个实施方式中,接收编码器发送的码流,还可以对编码器建立频道个数进行计数并设置上限阈值,当编码器建立的频道个数超过设置的上限阈值时发出告警信息,同时,确认CDN节点发送的下载请求,还可以对发送下载请求的CDN节点个数进行计数并设置上限阈值,当发送下载请求的CDN节点个数超过上限阈值时发出告警信息;同时,将上述发出的告警信息上报给网管。告警消除后,也会将告警消除的信息上报给网管。
本发明实施例还提供了一种码流传输装置,图3是根据本发明实施例的码流传输装置的结构框图,如图3所示,该装置包括:接收模块301、存储模块302、确认模块303和发送模块304,其中,接收模块301设置为接收编码器编制后发送的码流;存储模块302,设置为存储上述接收模块接收的码流中进行存储;确认模块303,设置为接收并确认CDN节点发送的下载请求;发送模块304,设置为在确认模块303完成确认后将所述编码器编制后发送的码流发送给所述CDN节点。
通过本发明实施例,接收模块301接收编码器编制后发送的码流,并在存储模块302中存储,确认模块303接收CDN节点发送的下载请求并完成确认,发送模块304随即将编码器编制后发送的码流发送给上述CDN节点,使得编码器不需要与CDN节点直接相连,即编码器不需要填写CDN节点单板IP地址,在CDN节点增加或发生单板IP地址变动时,编码器无需做出改动,也不会影响编码器工作性能。
在本发明实施例的一个实施方式中,图4是根据本发明实施例的码流传输装置优选的结构框图一,如图4所示,上述装置还可以包括:日志管理模块305。上述码流传输装置存储模块302的存储空间是有限的,上述装置在实际工作过程中,存储模块302内很可能会积累大量多余的子分片文件,日志管理模块305负责接收编码器定时发送的删除子分片文件命令,将存储在存储模块302中的子分片文件设置缓存期,在接收到编码器定时发送的删除子分片文件命令后,将超过缓存期的上述子分片文件删除,以保证存储模块302有足够的存储空间。
在本发明实施例的一个实施方式中,图5是根据本发明实施例的码流传输装置优选的结构框图二,如图5所示,上述装置还可以包括:第一检测模块307、第二检测模块308和告警模块306。
第一检测模块307,对编码器建立的频道个数进行计数,并设置上限阈值,所述频道个数超过上限阈值时发出告警信息;第二检测模块308,对发送下载请求的CDN节点个数进行计数,并设置上限阈值,所述CDN节点个数超过上限阈值时发出告警信息;告警模块306,收集上述发出的告警信息并上报给网管;当所述频道个数或CDN节点个数超过各自的上限阈值时,第一检测模块307或第二检测模块308发出告警信息,告警模块306即将告警信息收集并上报给网管,当第一检测模块307或第二检测模块308告警消除后,告警模块306也会将告警消除的信息上报给网管。
具体的,对编码器建立的频道个数进行计数并设置上限阈值,当编码器建立的频道个数超过设置的上限阈值时发出告警信息,以及对发送下载请求的CDN节点个数进行计数并设置上限阈值,当发送下载请求的CDN节点个数超过上限阈值时发出告警信息包括以下步骤:
S701,第一检测模块307设置一个频道计数器,并将频道计数器设置计数上限;第二检测模块308设置一个用户计数器,并将用户计数器设置计数上限。
S702,收到编码器发送的建立频道请求后,第一检测模块检测频道数是否超过频道计数器的计数上限;收到CDN节点发送的下载请求后第二检测模块检测CDN节点个数是否超过用户计数器的计数上限。
S703,若没有超过频道计数器的计数上限,则把频道计数器加1;若没有超过用户计数器的计数上限,则把用户计数器加1。
S704,若超过了频道计数器的计数上限,则拒绝编码器的请求并告警;若超过了用户计数器的计数上限,则拒绝CDN节点的下载请求并告警。
S705,预先设定一个时间,比如10秒、20秒、30秒、40秒等,在所述时间内频道计数器没有响应,则把频道计数器减1;预先设定一个时间,比如10秒、20秒、30秒、40秒等,在所述时间内用户计数器没有响应,则把用户计数器减1。
需要说明的是,第一检测模块和第二检测模块并不是必须同时包括在上述装置内,可以只包括第一检测模块和告警模块,也可以只包括第二检测模块和告警模块。当然上述实施例中均可以同时包括日志管理模块。
本发明实施例还提供了一种服务器,图6是根据本发明实施例的码流传输服务器的结构框图,如图6所示,该服务器可以包括处理器405;接收模块401,设置为接收编码器编制后发送的码流;存储模块402,设置为存储上述接收模块接收的码流;中进行存储;确认模块403,设置为接收并确认CDN节点发送的下载请求;发送模块404,设置为在确认模块403完成确认后将所述编码器编制后发送的码流发送给所述CDN节点。
本发明实施例中的服务器还可以包括告警模块,也可以包括告警模块与第一检测模块和/或第二检测模块。当然上述实施例中均可以同时包括日志管理模块。
本发明实施例还提供了一种码流传输系统,该码流传输系统包括编码器、CDN节点、服务器,其中服务器可以设置为一个或者两个及两个以上;下述以设置两个服务器为例详细说明。如图7所示中该系统包括服务器1和服务器2,两者互为主备机,并通过心跳线相连。
如图7所示,编码器与服务器1相连,并将码流发送给服务器1,服务器1与CDN节点相连,接收、确认CDN节点发送的下载请求并将码流发送给CDN节点。当服务器1发生故障不能正常工作时,心跳线检测到故障并反映给备份机即服务器2,服务器2可以立即替代服务器1接收编码器发送的码流,接收、确认CDN节点发送的下载请求并将码流发送给CDN节点,这样就能保证网络通畅和服务的正常运行。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种码流传输方法、装置、服务器和系统,具有以下有益效果:使得以后CDN节点单板IP地址有改动或者增加其他CDN节点时,编码器不需要做任何改动。并且当CDN节点个数增加较多时,编码器的工作性能依然保持稳定,不受CDN节点个数变化的影响。

Claims (13)

  1. 一种码流传输方法,包括:
    接收编码器发送的码流并存储;
    确认CDN节点发送的下载请求;
    根据所述下载请求,将对应的所述码流发送给所述CDN节点。
  2. 根据权利要求1所述的方法,其中,
    接收编码器发送的码流,包括:接收编码器依次发送的总索引文件、子分片文件、通道索引文件;
    所述确认CDN节点发送的下载请求,包括:依次确认所述CDN节点发送的下载总索引文件请求、下载通道索引文件请求和下载子分片文件请求。
  3. 根据权力要求2所述的方法,其中,还包括:接收所述编码器定时发送的删除子分片文件命令,将超过预设缓存期的所述子分片文件删除。
  4. 根据权利要求1所述的方法,其中,所述接收编码器发送的码流,还包括:
    对所述编码器建立的频道个数进行计数;
    在所述频道个数超过预设上限阈值时,向网管发出告警信息。
  5. 根据权利要求1或4所述的方法,其中,所述确认CDN节点发送的下载请求,还包括:
    对所述CDN节点个数进行计数;
    在所述CDN节点个数超过预设上限阈值时,向网管发出告警信息。
  6. 一种码流传输装置,包括:
    接收模块,设置为接收编码器发送的码流;
    存储模块,设置为存储编码器发送的码流;
    确认模块,设置为确认CDN节点发送的下载请求;
    发送模块,设置为将所述编码器发送的码流发送给所述CDN节点。
  7. 根据权利要求6所述的码流传输装置,其中,
    所述接收模块设置为接收编码器发送的码流,具体包括:接收编码器依次发送的总索引文件、子分片文件、通道索引文件;
    所述确认模块设置为确认所述CDN节点发送的下载请求,具体包括:依次确认所述CDN节点发送的下载总索引文件请求、下载通道索引文件请求和下载子分片文件请求。
  8. 根据权利要求7所述的码流传输装置,其中,还包括:
    日志管理模块,设置为接收所述编码器定时发送的删除子分片文件命令,并将超过预设缓存期的所述子分片文件删除。
  9. 根据权利要求6所述的码流传输装置,其中,还包括:
    第一检测模块,设置为对所述编码器建立的频道个数进行计数;
    告警模块,设置为在所述频道个数超过预设上限阈值时向网管发出告警信息。
  10. 根据权利要求6或9所述的码流传输装置,其中,还包括:
    第二检测模块,设置为对所述CDN节点个数进行计数;
    告警模块,还设置为在所述CDN节点个数超过预设上限阈值时向网管发出告警信息。
  11. 一种服务器,包括:
    处理器;
    权利要求6-10任一所述的码流传输装置。
  12. 一种码流传输系统,包括编码器、CDN节点,还包括至少一个服务器;
    所述编码器,设置为对原始码流进行编制并发送给所述服务器;
    所述CDN节点,设置为向所述服务器发送下载请求,并获取所述服务器发送的码流;
    所述服务器设置为接收编码器发送的码流,确认CDN节点发送的下载请求,将所述编码器发送的码流发送给所述CDN节点。
  13. 根据权利要求12所述的码流传输系统,其中:所述服务器个数为两个,两个服务器之间连接有心跳线,互为主备机。
PCT/CN2015/079115 2014-11-25 2015-05-15 一种码流传输方法、装置、服务器和系统 WO2016082485A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410692980.6 2014-11-25
CN201410692980.6A CN105704062A (zh) 2014-11-25 2014-11-25 一种ott系统中的码流处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016082485A1 true WO2016082485A1 (zh) 2016-06-02

Family

ID=56073500

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079115 WO2016082485A1 (zh) 2014-11-25 2015-05-15 一种码流传输方法、装置、服务器和系统

Country Status (2)

Country Link
CN (1) CN105704062A (zh)
WO (1) WO2016082485A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449237A (zh) * 2019-08-12 2021-03-05 中兴通讯股份有限公司 一种检测视频码流的方法、装置及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383853A (zh) * 2008-10-24 2009-03-11 清华大学 一种直连节点数量控制方法及网络实体装置
CN101582919A (zh) * 2009-04-14 2009-11-18 冯俊秋 网络电视播放方法及系统
CN101895541A (zh) * 2010-07-09 2010-11-24 浙江省公众信息产业有限公司 一种P2P网络中协作抵抗覆盖层DDoS攻击的方法
WO2013016827A2 (en) * 2011-08-03 2013-02-07 Libre Communications Inc. Secure event broadcasting system and method
CN103634610A (zh) * 2012-08-24 2014-03-12 中兴通讯股份有限公司 直播内容分发系统及方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571894B (zh) * 2010-12-07 2015-09-09 中国电信股份有限公司 在线流媒体传输控制方法及播放器
CN102571909B (zh) * 2011-11-14 2014-04-02 北京安天电子设备有限公司 基于服务器文件夹访问量动态调整带宽的方法及装置
WO2013091172A1 (zh) * 2011-12-20 2013-06-27 华为技术有限公司 内容分发网络中文件下载方法、装置和系统
CN103974138B (zh) * 2014-04-15 2018-04-10 上海聚力传媒技术有限公司 用于在内容分发网络中预加载视频的方法与设备
CN103957431B (zh) * 2014-04-30 2018-03-16 深圳创维数字技术有限公司 一种流媒体传输控制方法及流媒体服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383853A (zh) * 2008-10-24 2009-03-11 清华大学 一种直连节点数量控制方法及网络实体装置
CN101582919A (zh) * 2009-04-14 2009-11-18 冯俊秋 网络电视播放方法及系统
CN101895541A (zh) * 2010-07-09 2010-11-24 浙江省公众信息产业有限公司 一种P2P网络中协作抵抗覆盖层DDoS攻击的方法
WO2013016827A2 (en) * 2011-08-03 2013-02-07 Libre Communications Inc. Secure event broadcasting system and method
CN103634610A (zh) * 2012-08-24 2014-03-12 中兴通讯股份有限公司 直播内容分发系统及方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449237A (zh) * 2019-08-12 2021-03-05 中兴通讯股份有限公司 一种检测视频码流的方法、装置及系统
US11729436B2 (en) 2019-08-12 2023-08-15 Zte Corporation Method, apparatus, and system for detecting video code stream

Also Published As

Publication number Publication date
CN105704062A (zh) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105634784B (zh) 控制数据分发方法、装置及系统
CN108696588B (zh) 一种信息的发送方法及设备
EP3090514B1 (en) Congestion management in a multicast communication network
US11341140B2 (en) Unique identification generation for records in a data streaming processing system
US20140297774A1 (en) System for managing configuration updates in cluster of computational devices
CN102177690A (zh) 在电信网络中提供镇静服务的方法、系统和计算机可读介质
CN103825759A (zh) 获取网络拓扑信息的方法和系统
WO2012075970A1 (zh) 一种获取媒体内容的方法、设备及系统
JP2015508950A (ja) コントロール方法、コントロール装置、通信システムおよびプログラム
CN104539462B (zh) 一种切换至灾备应用实例的方法及装置
CN109347655B (zh) 基于网络数据的故障恢复系统和方法及存储介质
US20180262418A1 (en) Method and apparatus for communication in virtual network
JP6540063B2 (ja) 通信情報制御装置、中継システム、通信情報制御方法、および、通信情報制御プログラム
WO2016082485A1 (zh) 一种码流传输方法、装置、服务器和系统
CN104935614B (zh) 一种数据传输方法及装置
CN111082953A (zh) 一种配置方法、装置及相关设备
WO2015161680A1 (zh) 一种码流传输方法、装置、服务器和系统
WO2014032553A1 (zh) 一种网络资源管理方法、装置、客户端及系统
CN110661651A (zh) 一种sdn控制器数据管理方法、系统、装置及可读存储介质
JP6953713B2 (ja) 通信ノード、通信システム、通信方法及びプログラム
CN102647424B (zh) 一种数据传输方法及其装置
EP3062461A1 (en) Method, device, and system for configuring maintenance association (ma)
WO2016177211A1 (zh) 地址解析协议arp表项的同步方法及装置
JP5981896B2 (ja) ルータ、ipマルチキャストネットワーク及びルータの機能制御方法
JP6179981B2 (ja) 情報処理システム、情報処理装置、情報処理方法及びプログラム

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

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

Country of ref document: EP

Kind code of ref document: A1