WO2016177237A1 - 播放控制方法和装置 - Google Patents

播放控制方法和装置 Download PDF

Info

Publication number
WO2016177237A1
WO2016177237A1 PCT/CN2016/078471 CN2016078471W WO2016177237A1 WO 2016177237 A1 WO2016177237 A1 WO 2016177237A1 CN 2016078471 W CN2016078471 W CN 2016078471W WO 2016177237 A1 WO2016177237 A1 WO 2016177237A1
Authority
WO
WIPO (PCT)
Prior art keywords
predetermined threshold
optical line
line terminal
port traffic
exceeds
Prior art date
Application number
PCT/CN2016/078471
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 WO2016177237A1 publication Critical patent/WO2016177237A1/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/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/2541Rights Management
    • 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
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client 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/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
    • H04N21/2407Monitoring of transmitted content, e.g. distribution time, number of downloads
    • 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
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Definitions

  • the present invention relates to the field of communications, and in particular to a playback control method and apparatus.
  • IPTV Internet TV
  • OLTs optical line terminals
  • the embodiment of the present invention provides a playback control method and apparatus, so as to at least solve the problem that the IPTV service quality is degraded due to the congestion of the uplink port of the OLT in the related art.
  • a playback control method includes: receiving a play request carrying a user identifier; detecting whether a port traffic of an optical line terminal to which the user identifier belongs exceeds a predetermined threshold; When the port traffic of the optical line terminal exceeds a predetermined threshold, the play request is rejected.
  • detecting whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold comprises: sending a query request to the server, wherein the query request is used to query whether the port traffic of the optical line terminal exceeds the predetermined a threshold value; receiving a query response sent by the server; if the query response indicates that the port traffic of the optical line terminal exceeds the predetermined threshold, detecting that the port traffic of the optical line terminal exceeds the predetermined threshold.
  • detecting that the port traffic of the optical line terminal to which the user identifier belongs exceeds the predetermined threshold comprises: sending a query request to the server, wherein the query request is used to query whether to reject the play request; and receiving the server to send Query response; if the query response indicates rejection of the play request, detecting that the port traffic of the optical line terminal exceeds the predetermined threshold.
  • the method further includes: detecting that the port traffic of the optical line terminal does not exceed the predetermined threshold And acquiring and playing the play content requested by the play request; or acquiring and playing the device if the port traffic of the optical line terminal does not exceed the predetermined threshold information within a preset time.
  • the playback content requested by the playback request is not limited to: detecting that the port traffic of the optical line terminal does not exceed the predetermined threshold and acquiring and playing the play content requested by the play request.
  • detecting whether the port traffic of the optical line terminal to which the user identifier belongs exceeds the predetermined threshold further includes: determining whether the played content requested by the play request is live content or on-demand content; When the content of the play is the on-demand content, it is detected whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold.
  • a playback control method including: a user identifier of a receiver top box; and querying whether a pre-stored port traffic of an optical line terminal to which the user identifier belongs exceeds a predetermined threshold; As a result, the query response is sent to the set top box, wherein the query response is used to indicate that the set top box rejects the play request carrying the user identifier if the port traffic of the optical line terminal exceeds the predetermined threshold.
  • the method before receiving the user identifier of the set top box, the method further comprises: acquiring and saving information that the port traffic of the optical line terminal exceeds the predetermined threshold.
  • sending the query response to the set top box according to the query result includes: sending the query response if the information that the port traffic of the optical line terminal exceeds a predetermined threshold is not queried, where The query response is used to instruct the set top box to accept a play request carrying the user identifier.
  • the sending the query response to the set top box according to the query result includes: determining whether the concurrent processing capability of the current system for the play request reaches an upper limit; and if the judgment result is that the concurrent processing capability of the play request reaches an upper limit Sending the query response, wherein the query response is used to instruct the set top box to accept a play request carrying the user identifier.
  • the method further includes: aging according to a preset policy, whether the saved port traffic of the optical line terminal exceeds The predetermined threshold information.
  • a playback control apparatus including: a receiving module, configured to receive a play request carrying a user identifier; and a detecting module configured to detect an optical line terminal to which the user identifier belongs Whether the port traffic exceeds a predetermined threshold; the reject module is configured to reject the play request if it detects that the port traffic of the optical line terminal exceeds a predetermined threshold.
  • a playback control apparatus including: a receiving module, configured as a user identifier of a receiver top box; and an inquiry module, configured to query a pre-stored optical line terminal to which the user identifier belongs Whether the port traffic exceeds a predetermined threshold; the sending module is configured to send a query response to the set top box according to the query result, where the query response is used when the port traffic of the optical line terminal exceeds the predetermined threshold The set top box is instructed to reject the play request carrying the user identifier.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the playback control method in the foregoing embodiment.
  • the receiving of the play request carrying the user identifier is performed; detecting whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold; and detecting that the port traffic of the optical line terminal exceeds a predetermined threshold, rejecting the play request.
  • FIG. 1 is a flowchart 1 of a playback control method according to an embodiment of the present invention.
  • FIG. 2 is a second flowchart of a playback control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram 1 of a playback control apparatus according to an embodiment of the present invention.
  • FIG. 4 is a second schematic structural diagram of a playback control apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the architecture of a traffic flow control system in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a flow chart of a playback control method in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart 1 of a playback control method according to an embodiment of the present invention. As shown in FIG. 1 , the flow includes the following steps:
  • Step S102 receiving a play request carrying a user identifier
  • Step S104 detecting whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold
  • Step S106 if it is detected that the port traffic of the optical line terminal exceeds a predetermined threshold, the play request is rejected.
  • the play request carrying the user identifier is processed according to the judgment result of whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold, so that the port traffic of the optical line terminal is overloaded.
  • the problem of the IPTV service quality degradation caused by the congestion of the uplink port of the OLT in the related art is solved, and the service quality of the IPTV service can be improved as a whole.
  • the above steps may be implemented by a client device such as a set top box, however, it is also conceivable to implement the above method by the central office device.
  • a set top box will be described and illustrated as an example.
  • the user identifier is an identifier for identifying the identity of the user, for example, it may be a user account provided by the operator to the user, and the user logs in to the IPTV playing system to obtain the service of the IPTV through the user account.
  • Optical line terminal is used In the case of a home device such as a set-top box and a fiber-optic trunk device, in general, a plurality of set-top boxes are connected under the optical line terminal to provide data transmission services for a plurality of set-top box users. The set top box is connected to the optical line terminal through a pre-assigned port.
  • the detection of the port traffic of the optical line terminal may be performed by the set top box.
  • the detection of the port traffic may be implemented by using an access adaptation platform.
  • the alarm information may be generated and saved, so that after the set-top box receives the play request, the port corresponding to the user identifier may be queried before or after the authentication request is authenticated. Whether the traffic is overloaded and the corresponding processing is performed.
  • the detection result or the alarm information generated according to the detection result may be saved in a server for flow control.
  • the set top box may send a query request to the server, where the query request is used to query whether the port traffic of the optical line terminal exceeds a predetermined threshold; the server queries and responds according to the query request; and the set top box receives the query response sent by the server; The query response indicates that the port traffic of the optical line terminal exceeds a predetermined threshold, and detects that the port traffic of the optical line terminal exceeds a predetermined threshold.
  • the server may carry information of whether the port traffic exceeds a predetermined threshold in the query response, so that the set top box determines whether to reject the play request according to the information.
  • the set top box may also send a query request to the server, where the query request is used to query whether to reject the play request; the server queries and responds according to the query request; the set top box receives the query response sent by the server; if the query response indicates that the play request is rejected, then It is detected that the port traffic of the optical line terminal exceeds a predetermined threshold.
  • the server may directly carry the indication information of rejecting the play request in the query request, and the set top box only needs to perform an operation of rejecting the play request according to the indication information.
  • the play content requested by the play request may be acquired and played according to a conventional procedure.
  • the processing may be performed according to the case where the port traffic of the optical line terminal does not exceed the predetermined threshold.
  • the set top box may directly Gets and plays the playback content requested by the playback request.
  • the playback control of the on-demand content is prioritized.
  • the playback control of the live content may be considered to improve the viewing experience of the user.
  • the set-top box further determines whether the playback content requested by the playback request is live content or on-demand content; wherein, when it is determined that the playback content is the on-demand content, detecting whether the port traffic of the optical line terminal to which the user identifier belongs is Exceeded the predetermined threshold.
  • FIG. 2 is a second flowchart of a playback control method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 the user identifier of the receiver set top box
  • Step S204 Query whether the port traffic of the optical line terminal to which the pre-stored user identifier belongs exceeds a predetermined threshold
  • Step S206 Send a query response to the set top box according to the query result, where the port traffic of the optical line terminal exceeds In the case of a predetermined threshold, the query response is used to indicate that the set top box rejects the play request carrying the user identification.
  • the above method can be applied to a server for flow control, which acquires port traffic information of an optical line terminal or alarm information for port traffic of an optical line terminal in a periodic or irregular manner, and The information is saved.
  • the server queries the port traffic information of the optical line terminal corresponding to the specific user identifier according to the request of the set top box, so that the set top box can process the play request according to the port traffic information of the corresponding optical line terminal.
  • the server may acquire and save information of whether the port traffic of the optical line terminal exceeds a predetermined threshold.
  • the information can be detected by the access adaptation platform.
  • the access adaptation platform only alerts the port whose port traffic exceeds a predetermined threshold, and sends it to the server for storage via the alarm server. For the port whose port traffic does not exceed the predetermined threshold, no processing may be performed, or the traffic information of the port may not be reported, thereby saving the feedback amount of the information.
  • the access adaptation platform may report the cancellation alarm information to the alarm server, and then send the alarm information to the server through the alarm server; the server updates the saved light according to the cancellation alarm information. Whether the port traffic of the line terminal exceeds a predetermined threshold.
  • step S206 in a case that the server does not query whether the port traffic of the optical line terminal exceeds a predetermined threshold, the server may send a query response to the set top box, wherein the query response is used to indicate that the set top box accepts carrying the user identifier. Play request. Since the information that the port traffic does not exceed the predetermined threshold is not reported or alarmed, if the server cannot find out whether the port traffic of the line terminal exceeds a predetermined threshold, the port traffic of the port does not exceed the predetermined threshold. , the set top box can be instructed to accept the play request carrying the user identification.
  • the server may further determine whether the concurrent processing capability of the current system for the play request reaches an upper limit; if the result of the determination is that the concurrent processing capability of the play request reaches an upper limit, the server may send the query response to the set top box.
  • the query response is used to indicate that the set top box accepts the play request carrying the user identifier. That is, the above-mentioned policy can make the server directly instruct the set-top box to accept the play request carrying the user identifier in the case that the concurrent processing capability is insufficient, thereby avoiding the problem that the normal play request is rejected due to the busy server.
  • the server may also age the information of whether the port traffic of the saved optical line terminal exceeds a predetermined threshold according to a preset policy. In this way, the alarm state of the port traffic can be refreshed, and the problem that the play request of the set top box connected to some optical line terminals is rejected for a long time is avoided.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a playback control device is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” can implement software for a predetermined function. And/or a combination of hardware.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a receiving module 32, a detecting module 34, and a rejecting module 36.
  • the receiving module 32 is configured to receive and carry a detection request of the user identifier;
  • the detecting module 34 is coupled to the receiving module 32, configured to detect whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold;
  • the rejecting module 36 is coupled to the detecting module 34 and configured to detect the optical line If the port traffic of the terminal exceeds a predetermined threshold, the playback request is rejected.
  • the detecting module 34 includes: a sending unit, configured to send a query request to the server, wherein the query request is used to query whether the port traffic of the optical line terminal exceeds a predetermined threshold; and the receiving unit is configured to receive the query response sent by the server; And the unit is configured to detect that the port traffic of the optical line terminal exceeds a predetermined threshold if the query response indicates that the port traffic of the optical line terminal exceeds a predetermined threshold.
  • the processing unit is further configured to detect that the port traffic of the optical line terminal exceeds a predetermined threshold if the query response indicates that the play request is rejected.
  • the device further includes: a processing module, coupled to the detecting module 34, configured to acquire and play the played content requested by the play request if the port traffic of the optical line terminal is detected not to exceed a predetermined threshold; or If the information indicating whether the port traffic of the optical line terminal exceeds a predetermined threshold is not detected within the time, the playback content requested by the playback request is acquired and played.
  • a processing module coupled to the detecting module 34, configured to acquire and play the played content requested by the play request if the port traffic of the optical line terminal is detected not to exceed a predetermined threshold; or If the information indicating whether the port traffic of the optical line terminal exceeds a predetermined threshold is not detected within the time, the playback content requested by the playback request is acquired and played.
  • the detecting module 34 is further configured to: determine whether the played content requested by the play request is live content or on-demand content; wherein, when it is determined that the play content is the on-demand content, detecting the port traffic of the optical line terminal to which the user identifier belongs Whether the predetermined threshold is exceeded.
  • a playback control device is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the device includes: a receiving module 42, a query module 44, and a sending module 46.
  • the receiving module 42 is configured as a receiver top box.
  • the query module 44 is coupled to the receiving module 42 and configured to query whether the port traffic of the optical line terminal to which the user identifier belongs in advance exceeds a predetermined threshold.
  • the sending module 46 is coupled to the query module 44 and configured to be based on the query result.
  • the query response is sent to the set top box, wherein the query response is used to indicate that the set top box rejects the play request carrying the user identity if the port traffic of the optical line terminal exceeds a predetermined threshold.
  • the apparatus further comprises: an acquisition module coupled to the query module 44, configured to acquire and save information of whether the port traffic of the optical line terminal exceeds the predetermined threshold.
  • the sending module 46 is further configured to send the query response if the information that the port traffic of the optical line terminal exceeds a predetermined threshold is not queried, wherein the query response is used to indicate that the set top box accepts A play request carrying the user identification.
  • the sending module 46 is further configured to determine whether the concurrent processing capability of the current system for the play request reaches an upper limit; and if the result of the determination is that the concurrent processing capability of the play request reaches an upper limit, the query response is sent, where The query response is used to instruct the set top box to accept a play request carrying the user identifier.
  • the device further includes: an aging module coupled to the obtaining module, configured to aging the saved information of whether the port traffic of the optical line terminal exceeds the predetermined threshold according to a preset policy.
  • an aging module coupled to the obtaining module, configured to aging the saved information of whether the port traffic of the optical line terminal exceeds the predetermined threshold according to a preset policy.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a software for performing the technical solutions described in the above embodiments and preferred embodiments.
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the following steps:
  • Embodiments of the present invention also provide a storage medium.
  • the above storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the preferred embodiment of the present invention provides an IPTV on-demand traffic control system, which monitors the traffic of the network device of the system based on the associated resources of the IPTV user; when the traffic overload reaches the alarm threshold, the early warning information is sent to the on-demand stream.
  • the control system the flow control system saves the alarm information to the local; the Electronic Program Guide (EPG) node, when receiving the user's play request, goes to the flow control system to detect the alarm status of the IPTV user,
  • EPG Electronic Program Guide
  • the alarmed user performs on-demand restriction control to implement dynamic traffic control on the optical line terminal access device; the user whose current state is not alarmed accesses according to the normal service flow.
  • the active alarm is implemented according to the real-time load of the network.
  • the flow control system saves the alarm status of the user equipment to the directory cache (Dcache).
  • the EPG user detects the user alarm status before playing the flow control system.
  • the on-demand restriction control is performed on the user of the alarm device to implement dynamic flow control on the OLT access device.
  • FIG. 5 is a structural block diagram of a service flow control system according to a preferred embodiment of the present invention. As shown in FIG. 5, the system includes: an access adaptation platform, an integrated alarm system, an IPTV on-demand flow control system, and an IPTV service system; wherein:
  • Access adaptation platform The traffic of the access device port is monitored in real time by collecting traffic data.
  • Integrated alarm system Synchronize the latest OLT device user data to the IPTV on-demand flow control system every day; and provide the alarm device to the IPTV on-demand flow control system when receiving the port traffic alarm sent by the adaptation platform.
  • the IPTV on-demand flow control system receives the alarm information sent by the integrated alarm system, and updates the alarm status of each OLT device in the local Dcache in real time.
  • the flow control system can generally adopt three server cluster modes, Dcache adopts 322 mode deployment, and the access gateway (IAG) can adopt dual-machine mode to ensure data security and system robustness.
  • IPTV service system The EPG subsystem including the IPTV is responsible for completing various broadcast control requests of the user.
  • the play forwards the flow control system to initiate an alarm state detection request for detecting the user home device.
  • FIG. 6 is a flow chart of a playback control method according to a preferred embodiment of the present invention. As shown in FIG. 6, the flow includes the following parts of the process:
  • Part 1 OLT device user data synchronization
  • the integrated alarm system periodically (for example, daily) uploads the latest OLT device user data file to the agreed directory of the File Transfer Protocol (FTP) server.
  • the synchronous data format is “Branch
  • the olt device name is used to record the correspondence between the OLT devices and the IPTV account connected to the OLT.
  • the IP of the OLT device is the private network IP of each city. The IP of the OLT device in different cities may be duplicated. Therefore, the flow control system can uniquely determine an OLT device through the information of the OLT device IP+subsidiary.
  • the on-demand flow control system executes a scheduled task script every day (for example, at 2:30 am), which is used to complete the following operations:
  • the on-demand flow control system periodically clears the Dcache space to reset the alarm state.
  • the purpose of this is to prevent the flow control system from receiving the cancellation alarm request from the integrated alarm system due to network packet loss or other reasons, resulting in some OLT devices. In the alarm state.
  • the full amount of data files of the previous day are backed up, and the on-demand flow control system locally saves the latest full-size files on the day of the two full-size files (except the first day) and the full-length files of the previous day. If the latest full file is not obtained that day, use the full amount of data files from the previous day to import into the local Dcache.
  • Operation 3 synchronously obtain the latest full-size file on the same day of FTP.
  • the integrated alarm system When the traffic of the OLT device reaches the alarm threshold, the integrated alarm system initiates an alarm request to the flow control system.
  • the flow control system parses the message and inserts a record into the dcache. The key is “branch + olt ip” and the value is 0. ( indicates that the alarm is not cleared);
  • the integrated alarm system will initiate a cancel alarm request to the flow control system.
  • the flow control system updates the alarm identifier of the corresponding OLT device in the dcache, where the key is “branch + olt ip”, value Is 1 (indicating that the alarm has been cleared).
  • the user initiates a play request through the set-top box, and the EPG performs service authentication through the background. After the service authentication succeeds, the template of the set-top box initiates an OLT alarm detection request to the flow control system. After the flow control system parses the message, the user selects the dcache to query the corresponding olt device according to the usercode. (Subsidiary + olt ip), according to the "branch + olt ip" as the key, go to the dcache alarm list to query the device alarm status, and return the alarm ID to the template.
  • the template can directly display the friendly prompt "Request playback is limited, please try again later".
  • the template directly obtains a play uniform resource locator (URL) from the EPG, and after the set-top box obtains the URL, requests the user's home content distribution network (CDN) node to perform normal play.
  • URL uniform resource locator
  • the OLT device user data file on the FTP is responsible for timing aging by the integrated alarm system.
  • the integrated alarm system performs timeout protection.
  • the flow control system receives the alarm/recovery alarm request. When the OLT device information does not exist in the dcache, it directly returns. Successful response.
  • the template performs timeout protection. If the flow control system does not return a response within the configured time, the template considers that the test passes (the device is not alerted) and directly obtains the play URL for playback.
  • the flow control system controls the service request traffic.
  • the request operation exceeds the maximum concurrent processing capability of the flow control system, the new request is directly returned successfully, and the OLT detection judgment is not performed, so as to ensure that the normal service of the user is not affected.
  • modules or steps of the present invention 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.
  • the invention is not limited to any specific combination of hardware and software.
  • the receiving of the play request carrying the user identifier is performed; detecting whether the port traffic of the optical line terminal to which the user identifier belongs exceeds a predetermined threshold; and detecting that the port traffic of the optical line terminal exceeds a predetermined threshold, rejecting the play request.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明提供了一种播放控制方法和装置。其中,该方法包括:接收携带有用户标识的播放请求;检测用户标识所属的光线路终端的端口流量是否超过预定阈值;在检测出光线路终端的端口流量超过预定阈值的情况下,拒绝播放请求。通过本发明,解决了相关技术中OLT的上联端口拥塞导致IPTV业务质量下降的问题,提高了IPTV业务的质量。

Description

播放控制方法和装置 技术领域
本发明涉及通信领域,具体而言,涉及一种播放控制方法和装置。
背景技术
随着交互式网络电视(IPTV)点播节目与营销活动的逐渐增多,越来越多的人开始使用IPTV业务,根据工信部公布的数据,截至到2015年2月,全国IPTV用户总量已经达到3562万户,并且处于持续增长的发展态势之中。
随着IPTV用户持续增长,光线路终端(Optical Line Terminal,简称为OLT)的端口流量过载对IPTV用户的观看体验的影响日趋严重
针对相关技术中OLT的上联端口拥塞导致IPTV业务质量下降的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种播放控制方法和装置,以至少解决相关技术中OLT的上联端口拥塞导致IPTV业务质量下降的问题。
根据本发明实施例的一个方面,提供了一种播放控制方法,包括:接收携带有用户标识的播放请求;检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值;在检测出所述光线路终端的端口流量超过预定阈值的情况下,拒绝所述播放请求。
优选地,检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值包括:向服务器发送查询请求,其中,所述查询请求用于查询所述光线路终端的端口流量是否超过所述预定阈值;接收所述服务器发送的查询响应;若所述查询响应指示所述光线路终端的端口流量超过所述预定阈值,则检测出所述光线路终端的端口流量超过所述预定阈值。
优选地,检测所述用户标识所属的光线路终端的端口流量超过所述预定阈值包括:向服务器发送查询请求,其中,所述查询请求用于查询是否拒绝所述播放请求;接收所述服务器发送的查询响应;若所述查询响应指示拒绝所述播放请求,则检测出所述光线路终端的端口流量超过所述预定阈值。
优选地,在检测所述用户标识所属的所述光线路终端的端口流量是否超过所述预定阈值之后,所述方法还包括:在检测到所述光线路终端的端口流量未超过所述预定阈值的情况下,获取并播放所述播放请求所请求的播放内容;或者在预设时间内未检测到所述光线路终端的端口流量是否超过所述预定阈值的信息的情况下,获取并播放所述播放请求所请求的所述播放内容。
优选地,检测所述用户标识所属的所述光线路终端的端口流量是否超过所述预定阈值还包括:判断所述播放请求所请求的播放内容是直播内容还是点播内容;其中,在判断到所述播放内容为点播内容的情况下,检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值。
根据本发明实施例的另一个方面,还提供了一种播放控制方法,包括:接收机顶盒的用户标识;查询预先保存的所述用户标识所属的光线路终端的端口流量是否超过预定阈值;根据查询结果,发送查询响应至所述机顶盒,其中,在所述光线路终端的端口流量超过所述预定阈值的情况下,所述查询响应用于指示所述机顶盒拒绝携带有所述用户标识的播放请求。
优选地,在接收所述机顶盒的所述用户标识之前,所述方法还包括:获取并保存所述光线路终端的端口流量是否超过所述预定阈值的信息。
优选地,根据所述查询结果,发送所述查询响应至所述机顶盒包括:在未查询到所述光线路终端的端口流量是否超过预定阈值的信息的情况下,发送所述查询响应,其中,所述查询响应用于指示所述机顶盒接受携带有所述用户标识的播放请求。
优选地,根据所述查询结果,发送所述查询响应至所述机顶盒包括:判断当前系统对播放请求的并发处理能力是否达到上限;在判断结果为对播放请求的并发处理能力达到上限的情况下,发送所述查询响应,其中,所述查询响应用于指示所述机顶盒接受携带有所述用户标识的播放请求。
优选地,在获取并保存所述光线路终端的端口流量是否超过所述预定阈值的信息之后,所述方法还包括:根据预设策略,老化已保存的所述光线路终端的端口流量是否超过所述预定阈值的信息。
根据本发明实施例的另一个方面,还提供了一种播放控制装置,包括:接收模块,设置为接收携带有用户标识的播放请求;检测模块,设置为检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值;拒绝模块,设置为在检测出所述光线路终端的端口流量超过预定阈值的情况下,拒绝所述播放请求。
根据本发明实施例的另一个方面,还提供了一种播放控制装置,包括:接收模块,设置为接收机顶盒的用户标识;查询模块,设置为查询预先保存的所述用户标识所属的光线路终端的端口流量是否超过预定阈值;发送模块,设置为根据查询结果,发送查询响应至所述机顶盒,其中,在所述光线路终端的端口流量超过所述预定阈值的情况下,所述查询响应用于指示所述机顶盒拒绝携带有所述用户标识的播放请求。
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的播放控制方法。
通过本发明实施例,采用接收携带有用户标识的播放请求;检测用户标识所属的光线路终端的端口流量是否超过预定阈值;在检测出光线路终端的端口流量超过预定阈值的情况下,拒绝播放请求的方式,解决了相关技术中OLT的上联端口拥塞导致IPTV业务质量下降 的问题,提高了IPTV业务的质量。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的播放控制方法的流程图一;
图2是根据本发明实施例的播放控制方法的流程图二;
图3是根据本发明实施例的播放控制装置的结构示意图一;
图4是根据本发明实施例的播放控制装置的结构示意图二;
图5是根据本发明优选实施例的业务流量控制系统的架构框图;
图6是根据本发明优选实施例的播放控制方法的流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种播放控制方法,图1是根据本发明实施例的播放控制方法的流程图一,如图1所示,该流程包括如下步骤:
步骤S102,接收携带有用户标识的播放请求;
步骤S104,检测用户标识所属的光线路终端的端口流量是否超过预定阈值;
步骤S106,在检测出光线路终端的端口流量超过预定阈值的情况下,拒绝播放请求。
通过上述步骤,根据用户标识所属的光线路终端的端口流量是否超过预定阈值的判断结果,对携带有该用户标识的播放请求进行处理,从而可以使得在光线路终端的端口流量过载的情况下,限制预定用户的播放请求,从而解决了相关技术中OLT的上联端口拥塞导致IPTV业务质量下降的问题,整体上可以提高IPTV业务的服务质量。
优选地,上述步骤可以通过机顶盒等用户端设备实现,然而,通过局端设备实现上述方法也是可以被构想的。在本实施例中,将以机顶盒为例进行描述和说明。
在上述步骤中,用户标识是用于标识用户身份的标识,例如,可以是运营商提供给给用户的用户账号,用户通过该用户账号登入IPTV播放系统获取IPTV的服务。光线路终端是用 于连通机顶盒等家用设备与光纤干线的设备,一般而言,光线路终端下挂接了数个机顶盒,为多个机顶盒用户提供数据传输业务。机顶盒通过预先分配的端口与光线路终端连接。
在步骤S104中,对光线路终端的端口流量的检测可以由机顶盒来执行,优选地,可以通过接入适配平台实现对端口流量的检测。在端口流量超过预定阈值的情况下,可以生成告警信息并进行保存,这样,在机顶盒接收到播放请求之后,可以在对播放请求进行鉴权之前或者鉴权之后,进而查询用户标识对应的端口的流量是否过载,从而进行对应的处理。
优选地,在对端口流量进行检测之后,检测结果或者根据检测结果生成的告警信息可以保存在一个用于流量控制的服务器中。则在步骤S104中,机顶盒可以向服务器发送查询请求,其中,查询请求用于查询光线路终端的端口流量是否超过预定阈值;服务器根据查询请求进行查询并响应;机顶盒接收服务器发送的查询响应;若查询响应指示光线路终端的端口流量超过预定阈值,则检测出光线路终端的端口流量超过预定阈值。在上述方式中,服务器在查询响应中可以携带端口流量是否超过预定阈值的信息,从而使得机顶盒根据该信息判断是否拒绝播放请求。
优选地,机顶盒也可以向服务器发送查询请求,其中,查询请求用于查询是否拒绝播放请求;服务器根据查询请求进行查询并响应;机顶盒接收服务器发送的查询响应;若查询响应指示拒绝播放请求,则检测出光线路终端的端口流量超过预定阈值。在上述方式中,服务器在查询请求中可以直接携带拒绝播放请求的指示信息,机顶盒只需要根据该指示信息作出是否拒绝播放请求的操作。
优选地,在步骤S104之后,在检测到光线路终端的端口流量未超过预定阈值的情况下,可以根据传统流程获取并播放播放请求所请求的播放内容。此外,如果在预设时间内未检测到光线路终端的端口流量是否超过预定阈值的信息的情况下,可以按照光线路终端的端口流量未超过预定阈值的情况进行处理,此时,机顶盒可以直接获取并播放播放请求所请求的播放内容。
优选地,对于点播内容,由于播放内容为已经录制好的,用户对点播内容的实时性观看要求并不高,因此,在本发明实施例中优先考虑对点播内容进行播放控制。然而,对于直播内容而言,用户往往对直播内容的实时性观看要求高,因此,在本发明的一些实施例中可以考虑对直播内容不进行播放控制,以提升用户的观看体验。例如,在步骤S104中,机顶盒还判断播放请求所请求的播放内容是直播内容还是点播内容;其中,在判断到播放内容为点播内容的情况下,检测用户标识所属的光线路终端的端口流量是否超过预定阈值。
在本实施例中还提供了一种播放控制方法,图2是根据本发明实施例的播放控制方法的流程图二,如图2所示,该流程包括如下步骤:
步骤S202,接收机顶盒的用户标识;
步骤S204,查询预先保存的用户标识所属的光线路终端的端口流量是否超过预定阈值;
步骤S206,根据查询结果,发送查询响应至机顶盒,其中,在光线路终端的端口流量超 过预定阈值的情况下,查询响应用于指示机顶盒拒绝携带有用户标识的播放请求。
优选地,上述方法可以应用在用于流量控制的服务器上,该服务器通过周期性或者不定时的方式获取光线路终端的端口流量信息,或者针对光线路终端的端口流量的告警信息,并对这些信息进行保存。服务器根据机顶盒的请求,查询特定用户标识对应的光线路终端的端口流量信息,从而使得机顶盒可以根据对应的光线路终端的端口流量信息对播放请求进行处理。
优选地,在步骤S202之前,服务器可以获取并保存光线路终端的端口流量是否超过预定阈值的信息。这些信息可以通过接入适配平台检测;优选地,接入适配平台只对端口流量超过预定阈值的端口进行告警,并经由告警服务器发送给上述服务器保存。对于端口流量未超过预定阈值的端口可以不进行任何处理,也可以不上告该端口的流量信息,从而节约了信息的反馈量。此外,在光线路终端的端口流量降低,低于预定阈值之后,接入适配平台可以向告警服务器上报取消告警信息,进而通过告警服务器发送给上述服务器;服务器根据取消告警信息,更新保存的光线路终端的端口流量是否超过预定阈值的信息。
优选地,在步骤S206中,在服务器未查询到光线路终端的端口流量是否超过预定阈值的信息的情况下,服务器可以发送查询响应至机顶盒,其中,查询响应用于指示机顶盒接受携带有用户标识的播放请求。由于可以对端口流量未超过预定阈值的信息不进行上报或者告警,因此,在服务器查询不到线路终端的端口流量是否超过预定阈值的信息则可以认为该端口的端口流量并未超过预定阈值,因此,可以指示机顶盒接受携带有该用户标识的播放请求。
优选地,在步骤S206中,服务器还可以判断当前系统对播放请求的并发处理能力是否达到上限;在判断结果为对播放请求的并发处理能力达到上限的情况下,服务器可以发送查询响应至机顶盒,其中,查询响应用于指示机顶盒接受携带有用户标识的播放请求。即,通过上述策略可以使得服务器在并发处理能力不足的情况下,直接指示机顶盒接受携带有用户标识的播放请求,避免了由于服务器繁忙导致的正常的播放请求被拒绝的问题。
优选地,在本发明实施例中,服务器还可以根据预设策略,老化已保存的光线路终端的端口流量是否超过预定阈值的信息。通过该方式,可以刷新端口流量的告警状态,避免某些光线路终端下挂的机顶盒的播放请求长期被拒绝的问题。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种播放控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件 和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图3是根据本发明实施例的播放控制装置的结构框图一,如图3所示,该装置包括:接收模块32、检测模块34和拒绝模块36,其中,接收模块32,设置为接收携带有用户标识的播放请求;检测模块34,耦合至接收模块32,设置为检测用户标识所属的光线路终端的端口流量是否超过预定阈值;拒绝模块36,耦合至检测模块34,设置为在检测出光线路终端的端口流量超过预定阈值的情况下,拒绝播放请求。
优选地,检测模块34包括:发送单元,设置为向服务器发送查询请求,其中,查询请求用于查询光线路终端的端口流量是否超过预定阈值;接收单元,设置为接收服务器发送的查询响应;处理单元,设置为若查询响应指示光线路终端的端口流量超过预定阈值,则检测出光线路终端的端口流量超过预定阈值。
优选地,处理单元,还设置为若查询响应指示拒绝播放请求,则检测出光线路终端的端口流量超过预定阈值。
优选地,装置还包括:处理模块,耦合至检测模块34,设置为在检测到光线路终端的端口流量未超过预定阈值的情况下,获取并播放播放请求所请求的播放内容;或者在预设时间内未检测到光线路终端的端口流量是否超过预定阈值的信息的情况下,获取并播放播放请求所请求的播放内容。
优选地,检测模块34还设置为,判断播放请求所请求的播放内容是直播内容还是点播内容;其中,在判断到播放内容为点播内容的情况下,检测用户标识所属的光线路终端的端口流量是否超过预定阈值。
在本实施例中还提供了一种播放控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。
图4是根据本发明实施例的播放控制装置的结构框图二,如图4所示,该装置包括:接收模块42、查询模块44和发送模块46,其中,接收模块42,设置为接收机顶盒的用户标识;查询模块44,耦合至接收模块42,设置为查询预先保存的用户标识所属的光线路终端的端口流量是否超过预定阈值;发送模块46,耦合至查询模块44,设置为根据查询结果,发送查询响应至机顶盒,其中,在光线路终端的端口流量超过预定阈值的情况下,查询响应用于指示机顶盒拒绝携带有用户标识的播放请求。
优选地,装置还包括:获取模块,耦合至查询模块44,设置为获取并保存所述光线路终端的端口流量是否超过所述预定阈值的信息。
优选地,发送模块46还设置为在未查询到所述光线路终端的端口流量是否超过预定阈值的信息的情况下,发送所述查询响应,其中,所述查询响应用于指示所述机顶盒接受携带有所述用户标识的播放请求。
优选地,发送模块46还设置为判断当前系统对播放请求的并发处理能力是否达到上限;在判断结果为对播放请求的并发处理能力达到上限的情况下,发送所述查询响应,其中,所述查询响应用于指示所述机顶盒接受携带有所述用户标识的播放请求。
优选地,所述装置还包括:老化模块,耦合至获取模块,设置为根据预设策略,老化已保存的所述光线路终端的端口流量是否超过所述预定阈值的信息。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
本发明的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,接收携带有用户标识的播放请求;
S2,检测用户标识所属的光线路终端的端口流量是否超过预定阈值;
S3,在检测出光线路终端的端口流量超过预定阈值的情况下,拒绝播放请求。
本发明的实施例还提供了一种存储介质。在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,接收机顶盒的用户标识;
S2,查询预先保存的用户标识所属的光线路终端的端口流量是否超过预定阈值;
S3,根据查询结果,发送查询响应至机顶盒,其中,在光线路终端的端口流量超过预定阈值的情况下,查询响应用于指示机顶盒拒绝携带有用户标识的播放请求。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
为了使本发明实施例的描述更加清楚,下面结合优选实施例进行描述和说明。
本发明优选实施例提供了一种IPTV点播流量控制系统,该系统以IPTV用户关联资源为基础,通过采集系统网络设备的流量进行监测;当流量过载到达告警阈值时,将发送预警信息到点播流控系统,流控系统将告警信息保存到本地;电子节目菜单(Electronic Program Guide,简称为EPG)节点在收到用户播放请求时,到流控系统检测IPTV用户告警状态,对 已告警的用户进行点播限制控制,从而实现对光线路终端接入设备的动态流量控制;当前状态未告警的用户按照正常业务流程进行访问。
在本发明优选实施例中采用下列的技术方案:
通过采集系统网络设备的流量进行监测,根据网络实时负载情况实现主动预警,流控系统保存用户设备的告警状态到目录项高速缓存(Dcache)中,EPG用户播放前到流控系统检测用户告警状态,对告警设备的用户进行点播限制控制,实现对OLT接入设备的动态流量控制。
下面结合附图对本发明优选实施例的技术方案进行描述和说明。
图5是根据本发明优选实施例的业务流量控制系统的架构框图,如图5所示,该系统包括:接入适配平台、综合告警系统、IPTV点播流控系统和IPTV业务系统;其中:
接入适配平台:主要通过采集流量数据实时监测接入设备端口的流量情况。
综合告警系统:每天定时同步最新的OLT设备用户数据给IPTV点播流控系统;以及接收到适配平台发来的端口流量告警时,向IPTV点播流控系统提供预警设备信息。
IPTV点播流控系统:接收综合告警系统发来的告警信息,实时更新本地Dcache中各个OLT设备的告警状态。流控系统一般可以采用3台服务器集群模式,Dcache采用322模式部署,接入网关(IAG)可以采用双机模式,以保证数据的安全和系统的健壮性。
IPTV业务系统:包括IPTV的EPG子系统,负责完成用户的各种播控请求,播放前向流控系统发起检测用户归属设备的告警状态检测请求。
图6是根据本发明优选实施例的播放控制方法的流程图,如图6所示,该流程包括如下几个部分的流程处理:
第一部分:OLT设备用户数据同步
综合告警系统定时(例如,每天)将最新的OLT设备用户数据文件上传至文件传输协议(FTP)服务器的约定目录,同步数据格式为“分公司|&|OLT设备IP|&|usercode|&|olt设备名称”,该文件记录了各OLT设备与OLT下挂的IPTV账号的对应关系。OLT设备IP为各地市私网IP,不同地市的OLT设备IP可能会有重复,因此,流控系统可以通过“OLT设备IP+分公司”信息来唯一确定一个OLT设备。
点播流控系统每天定时(例如,凌晨2:30)执行定时任务脚本,该任务脚本用于完成以下操作:
操作1,清除Dcache空间
点播流控系统定时清空一次Dcache空间来重置告警状态,这样做的目的是防止因网络丢包或其他原因流控系统未收到综合告警系统发来的取消告警请求,导致某些OLT设备一直处于告警状态。
操作2,备份前一天的全量文件
将前一天的全量数据文件进行备份,点播流控系统本地始终保存两份全量文件(第一天除外)当天的最新全量文件和前一天的全量文件。如果当天没有获取到最新的全量文件,则使用前一天的全量数据文件导入到本地Dcache中。
操作3,同步获取FTP上当天最新的全量文件
到FTP服务器约定目录获取最新的全量同步数据文件,保存到本地并重命名为本地的预定名称。
操作4,导入全量文件到Dcache空间
将获取到的本地全量同步数据文件导入到Dcache中,其中键值(key)为用户码(usercode,相当于上述用户标识),值(value)为“分公司+olt ip”。如果当天没有最新的全量数据文件或者FTP获取失败,会拷贝本地服务器的上一次的全量文件作为最新的全量文件,再导入到dcache中。
第二部分:告警和取消告警
综合告警系统在OLT设备端口流量达到告警阀值时,主动向流控系统发起告警请求,流控系统解析消息,向dcache中插入一条记录,其中key为“分公司+olt ip”,value为0(表示告警未清除);
如果OLT设备端口流量下降到阀值以下,综合告警系统会向流控系统发起取消告警请求,流控系统更新dcache中对应的OLT设备的告警标识,其中key为“分公司+olt ip”,value为1(表示告警已清除)。
第三部分:告警检测
用户通过机顶盒发起播放请求,EPG通过后台进行业务鉴权,业务鉴权成功后,机顶盒的模版向流控系统发起OLT告警检测请求,流控系统解析消息后,根据usercode去dcache中查询对应olt设备(分公司+olt ip),再根据“分公司+olt ip”为key,去dcache中告警列表中查询设备告警状态,返回告警标识给模板。
如果标识为告警中,模版可以直接展示友好提示“请求播放受限,请稍后再试”。
如果标识为正常状态,模版直接向EPG获取播放统一资源定位符(URL),机顶盒拿到URL后,向用户归属内容分发网络(CDN)节点请求进行正常播放。
第四部分:异常处理
FTP上的OLT设备用户数据文件由综合告警系统负责定时老化。
告警/恢复告警接口中,由综合告警系统做超时保护。
流控系统接收到告警/恢复告警请求,当OLT设备信息在dcache中不存在时,直接返回处 理成功响应。
告警检测接口中,在流控系统宕机或网络异常情况下,由模版进行超时保护。如果流控系统在配置时间内没有返回响应,模版认为检测通过(设备未告警),直接获取播放URL进行播放。
流控系统对服务请求流量进行控制,当请求操作超过流控系统最大并发处理能力时,对新的请求直接返回成功,不再做OLT检测判断,以保证不影响用户正常业务。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
通过本发明实施例,采用接收携带有用户标识的播放请求;检测用户标识所属的光线路终端的端口流量是否超过预定阈值;在检测出光线路终端的端口流量超过预定阈值的情况下,拒绝播放请求的方式,解决了相关技术中OLT的上联端口拥塞导致IPTV业务质量下降的问题,提高了IPTV业务的质量。

Claims (12)

  1. 一种播放控制方法,包括:
    接收携带有用户标识的播放请求;
    检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值;
    在检测出所述光线路终端的端口流量超过预定阈值的情况下,拒绝所述播放请求。
  2. 根据权利要求1所述的方法,其中,检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值包括:
    向服务器发送查询请求,其中,所述查询请求用于查询所述光线路终端的端口流量是否超过所述预定阈值;
    接收所述服务器发送的查询响应;
    若所述查询响应指示所述光线路终端的端口流量超过所述预定阈值,则检测出所述光线路终端的端口流量超过所述预定阈值。
  3. 根据权利要求1所述的方法,其中,检测所述用户标识所属的光线路终端的端口流量超过所述预定阈值包括:
    向服务器发送查询请求,其中,所述查询请求用于查询是否拒绝所述播放请求;
    接收所述服务器发送的查询响应;
    若所述查询响应指示拒绝所述播放请求,则检测出所述光线路终端的端口流量超过所述预定阈值。
  4. 根据权利要求1所述的方法,其中,在检测所述用户标识所属的所述光线路终端的端口流量是否超过所述预定阈值之后,所述方法还包括:
    在检测到所述光线路终端的端口流量未超过所述预定阈值的情况下,获取并播放所述播放请求所请求的播放内容;或者
    在预设时间内未检测到所述光线路终端的端口流量是否超过所述预定阈值的信息的情况下,获取并播放所述播放请求所请求的所述播放内容。
  5. 根据权利要求1所述的方法,其中,检测所述用户标识所属的所述光线路终端的端口流量是否超过所述预定阈值还包括:
    判断所述播放请求所请求的播放内容是直播内容还是点播内容;
    其中,在判断到所述播放内容为点播内容的情况下,检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值。
  6. 一种播放控制方法,包括:
    接收机顶盒的用户标识;
    查询预先保存的所述用户标识所属的光线路终端的端口流量是否超过预定阈值;
    根据查询结果,发送查询响应至所述机顶盒,其中,在所述光线路终端的端口流量超过所述预定阈值的情况下,所述查询响应用于指示所述机顶盒拒绝携带有所述用户标识的播放请求。
  7. 根据权利要求6所述的方法,其中,在接收所述机顶盒的所述用户标识之前,所述方法还包括:
    获取并保存所述光线路终端的端口流量是否超过所述预定阈值的信息。
  8. 根据权利要求6所述的方法,其中,根据所述查询结果,发送所述查询响应至所述机顶盒包括:
    在未查询到所述光线路终端的端口流量是否超过预定阈值的信息的情况下,发送所述查询响应,其中,所述查询响应用于指示所述机顶盒接受携带有所述用户标识的播放请求。
  9. 根据权利要求6所述的方法,其中,根据所述查询结果,发送所述查询响应至所述机顶盒包括:
    判断当前系统对播放请求的并发处理能力是否达到上限;
    在判断结果为对播放请求的并发处理能力达到上限的情况下,发送所述查询响应,其中,所述查询响应用于指示所述机顶盒接受携带有所述用户标识的播放请求。
  10. 根据权利要求7所述的方法,其中,在获取并保存所述光线路终端的端口流量是否超过所述预定阈值的信息之后,所述方法还包括:
    根据预设策略,老化已保存的所述光线路终端的端口流量是否超过所述预定阈值的信息。
  11. 一种播放控制装置,包括:
    接收模块,设置为接收携带有用户标识的播放请求;
    检测模块,设置为检测所述用户标识所属的光线路终端的端口流量是否超过预定阈值;
    拒绝模块,设置为在检测出所述光线路终端的端口流量超过预定阈值的情况下,拒绝所述播放请求。
  12. 一种播放控制装置,包括:
    接收模块,设置为接收机顶盒的用户标识;
    查询模块,设置为查询预先保存的所述用户标识所属的光线路终端的端口流量是否超过预定阈值;
    发送模块,设置为根据查询结果,发送查询响应至所述机顶盒,其中,在所述光线路终端的端口流量超过所述预定阈值的情况下,所述查询响应用于指示所述机顶盒拒绝携带有所述用户标识的播放请求。
PCT/CN2016/078471 2015-07-29 2016-04-05 播放控制方法和装置 WO2016177237A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510453831.9 2015-07-29
CN201510453831.9A CN106412636A (zh) 2015-07-29 2015-07-29 播放控制方法和装置

Publications (1)

Publication Number Publication Date
WO2016177237A1 true WO2016177237A1 (zh) 2016-11-10

Family

ID=57217556

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078471 WO2016177237A1 (zh) 2015-07-29 2016-04-05 播放控制方法和装置

Country Status (2)

Country Link
CN (1) CN106412636A (zh)
WO (1) WO2016177237A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234639A (zh) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 一种基于内容分发网络cdn的数据访问方法和装置
CN109561342A (zh) * 2018-10-26 2019-04-02 广州零世纪信息科技有限公司 机顶盒流量保护方法、装置、机顶盒及存储介质
CN110324190B (zh) * 2019-07-08 2022-02-15 中国联合网络通信集团有限公司 一种网络规划方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011006834A1 (de) * 2009-07-16 2011-01-20 Itv Solutions Gmbh Steuerung der datenrate eines medien-downloads anhand von client-wiedergabestatusinformation
CN102291617A (zh) * 2011-09-03 2011-12-21 四川公用信息产业有限责任公司 Iptv业务端到端故障诊断与定位平台
CN102395060A (zh) * 2011-11-03 2012-03-28 北京邮电大学 一种基于ofdm-pon的新型带宽分配算法
CN102970579A (zh) * 2012-11-28 2013-03-13 四川长虹电器股份有限公司 一种视频缓冲区监控的方法及装置
CN103313094A (zh) * 2012-03-14 2013-09-18 上海鱼游网络科技有限公司 一种基于流媒体的多媒体播放方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011006834A1 (de) * 2009-07-16 2011-01-20 Itv Solutions Gmbh Steuerung der datenrate eines medien-downloads anhand von client-wiedergabestatusinformation
CN102291617A (zh) * 2011-09-03 2011-12-21 四川公用信息产业有限责任公司 Iptv业务端到端故障诊断与定位平台
CN102395060A (zh) * 2011-11-03 2012-03-28 北京邮电大学 一种基于ofdm-pon的新型带宽分配算法
CN103313094A (zh) * 2012-03-14 2013-09-18 上海鱼游网络科技有限公司 一种基于流媒体的多媒体播放方法及系统
CN102970579A (zh) * 2012-11-28 2013-03-13 四川长虹电器股份有限公司 一种视频缓冲区监控的方法及装置

Also Published As

Publication number Publication date
CN106412636A (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
CN110602087B (zh) 智能投屏方法、装置、智能终端及服务器
CN108513094B (zh) 视频监控方法和装置
CN110856121B (zh) 物联网配网方法及其系统、配网设备及物联网设备
US20210036907A1 (en) Methods and apparatuses for pushing a message
WO2019084972A1 (zh) 流媒体直播方法及系统
EP3595297B1 (en) Abnormality detection method and network video recorder (nvr)
CN106506391B (zh) 一种网络流量的分配方法及路由器
CN103312593B (zh) 一种消息分发系统及方法
WO2016177237A1 (zh) 播放控制方法和装置
CN101459836A (zh) 交互式网络电视的内容分发网络中的业务处理方法及系统
CN110674096B (zh) 节点故障排查方法、装置、设备及计算机可读存储介质
CN110519616B (zh) 视频的分发方法、分发节点、调度中心和存储介质
CN106412498B (zh) 一种监控数据获取方法和云终端
WO2014015525A1 (zh) 一种用户在线状态的查询方法和装置
CN112260946B (zh) 一种链路故障的处理方法、装置、终端设备和存储介质
CN106254103B (zh) 一种rtmp集群系统可动态配置方法及装置
WO2012000455A1 (zh) 一种客户端及负载均衡的方法
CN112422395A (zh) 一种数据传输方法、装置、终端设备和存储介质
CN109344202B (zh) 一种数据同步方法及管理节点
CN102904761A (zh) 一种nvr堆叠的方法和nvr
JP5863203B2 (ja) ログ収集システム
WO2017092701A1 (zh) 一种终端登录方法、服务器及系统
WO2017186004A1 (zh) 故障上报方法、装置及存储介质
CN111698539A (zh) 对移动终端app接入优化的方法及系统
CN111262864B (zh) 直播状态数据的发送方法、装置、系统及存储介质

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

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

Country of ref document: EP

Kind code of ref document: A1