CN102065322A - Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system - Google Patents

Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system Download PDF

Info

Publication number
CN102065322A
CN102065322A CN2009102059530A CN200910205953A CN102065322A CN 102065322 A CN102065322 A CN 102065322A CN 2009102059530 A CN2009102059530 A CN 2009102059530A CN 200910205953 A CN200910205953 A CN 200910205953A CN 102065322 A CN102065322 A CN 102065322A
Authority
CN
China
Prior art keywords
log
message
service
iptv
iptv system
Prior art date
Application number
CN2009102059530A
Other languages
Chinese (zh)
Inventor
于芝涛
周丹弟
纪震寰
Original Assignee
青岛海信传媒网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海信传媒网络技术有限公司 filed Critical 青岛海信传媒网络技术有限公司
Priority to CN2009102059530A priority Critical patent/CN102065322A/en
Publication of CN102065322A publication Critical patent/CN102065322A/en

Links

Abstract

The embodiment of the invention discloses a multi-service-oriented log processing method and a multi-service-oriented log processing device of an Internet protocol television (IPTV) system, which relate to the technical field of data processing and aim to solve the problems of high manual service log processing cost and long fault position determination time of each network element in the IPTV system by operation and maintenance personnel in the prior art, and provides the multi-service-oriented log processing method of the IPTV system. The method comprises the following steps of: receiving a message which carries the service log of each network element in the IPTV system; resolving the message which carries the service log of each network element in the IPTV system to give a resolving result; and storing the service log in a corresponding file according to the resolving result. By the method and the device, the multi-service-oriented log processing cost of the IPTV system can be lowered and the fault position determination time is shortened.

Description

一种IPTV系统面向多业务的日志处理方法及装置 Log processing method and apparatus for multi-service IPTV system

技术领域 FIELD

[0001] 本发明涉及数据处理技术领域,尤其涉及一种IPTV系统面向多业务的日志处理方法及装置。 [0001] Technical Field The present invention relates to data processing, and particularly to a method and an IPTV system log processing apparatus for multiple services.

背景技术 Background technique

[0002] 目前,在IPTV (Internet Protocol Television,互联网协议电视)业务中,各个网兀,如:Stream Server (流媒体月艮务器),EPG Server (Electronic Program GuideServer, 电子节目单服务器),^formation Server (信息服务器),I^resence Server (呈现服务器),STB (set-top box,网络机顶盒),AD Machine (Advertisementmachine,广告机)都各自拥有自己的业务日志的记录。 [0002] Currently, IPTV (Internet Protocol Television, Internet protocol television) service, each network Wu, such as: Stream Server (streaming month that works to control), EPG Server (Electronic Program GuideServer, electronic program guide server), ^ formation server (information server), I ^ resence server (presence server), STB (set-top box, network set-top boxes), aD machine (Advertisementmachine, advertising) have separate log record their own business. 其中,所述业务日志包括各种处理进度记录,用户请求记录,用户操作记录等等。 Wherein said service includes various processing log progress recording, the user requests recording, the recording operation of the user and the like. 这些业务日志对于各个网元的系统运维,用户行为分析,业务状态监控有重要意义。 These business logs for system operation and maintenance, user behavior analysis of each network element, service status monitoring is important. 所述网元不但能够通过日志记录接口将业务日志记录到其本地存储器中,还可以根据业务日志的大小及时间的变更将旧日志删除或归档。 The network element not only the traffic to its local log logging memory via the interface, can also be archived or deleted according to the change of time and the size of the old log log service.

[0003] 在实现本发明的过程中,发明人发现现有技术中至少存在以下问题:现有技术中, IPTV系统的各个网元只能根据其自身所处理的业务进行业务日志记录,并对所述记录的业务日志进行处理。 [0003] During the implementation of the present invention, the inventor finds at least the following problems in the prior art: In the prior art, each network element IPTV system logging service only according to its own traffic handled, and the service log recording process. 针对IPTV系统的各个网元中记录的业务日志如果需要进行统一的管理与处理,则需要依赖于运维人员手工完成。 For each network element IPTV system recorded in the log if the business needs for unified management and processing, we need to rely on the operation and maintenance personnel manually. 在运维人员进行手工处理的过程中,不但需要提供IPTV系统中各个网元的详细用户手册,还需要对于收集到的各个网元的业务日志进行分析处理、统一格式、日志归档、日志删除等工作。 In the process of operation and maintenance personnel manual processing, not only need to provide IPTV system in each network element detailed user manual also requires analysis and processing for collected each NE service logs, unified format, log archiving, the log deletion jobs. 这样,通过运维人员手工处理IPTV系统中各个网元的业务日志,不但会增加运维的成本,而且在IPTV系统出现问题时需要较长的时间来确定故障位置。 Thus, by operation and maintenance personnel manual handling IPTV system in each NE service logs, will not only increase the cost of operation and maintenance, but also takes a long time in the IPTV system problems to determine the fault location.

发明内容 SUMMARY

[0004] 本发明实施例提供了一种IPTV系统面向多业务的日志处理方法及装置,以实现降低IPTV系统面向多业务的日志处理成本,缩短确定故障位置的时间。 [0004] Example embodiments provide a method and apparatus for processing logs multiservice an IPTV system according to the present invention, in order to achieve a reduction in the cost of an IPTV system log processing for multiple services, to shorten the time to determine the fault location.

[0005] 为达到上述目的,本发明的实施例采用如下技术方案: [0005] To achieve the above object, embodiments of the present invention adopts the following technical solutions:

[0006] 一方面,本发明实施例提供了一种IPTV系统面向多业务的日志处理方法,包括: [0006] In one aspect, embodiments of the present invention provides a method for processing a log for a multi-service IPTV system, comprising:

[0007] 接收携带有所述IPTV系统中各个网元的业务日志的消息; [0007] receiving an IPTV system that carries the message of each NE service log;

[0008] 解析所述携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果; [0008] parsing the message carrying the service log IPTV system are each NE, and gives the analysis result;

[0009] 根据所述解析结果,将所述业务日志存储到相应的文件中。 [0009] The result of the analysis, the service log stored into a corresponding file.

[0010] 另一方面,本发明实施例提供了一种IPTV系统面向多业务的日志处理装置,包括: [0010] In another aspect, the present invention provides a logging apparatus for processing a multi-service IPTV system, comprising:

[0011] 消息接收单元,用于接收携带有所述IPTV系统中各个网元的业务日志的消息; [0011] The message receiving unit for receiving IPTV system that carries the message of each NE service log;

[0012] 消息解析单元,用于解析所述消息接收单元所接收到的携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果; [0012] The message parsing unit configured to parse the message received by the receiving unit carries the IPTV system message log each NE service, and gives the analysis result;

[0013] 消息存储单元,用于根据所述消息解析单元的解析结果,将所述业务日志存储到相应的文件中。 [0013] The message storage unit, according to an analysis result of the message analyzing unit, the service log stored into a corresponding file.

[0014] 本发明实施例提供的一种IPTV系统面向多业务的日志处理方法及装置,通过接收携带有所述IPTV系统中各个网元的业务日志的消息;然后解析所述携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果;最后,根据所述解析结果,将所述业务日志存储到相应的文件中,从而简化了各个网元上日志处理操作,降低了整个IPTV系统中各个网元的业务日志的运维成本,并且通过统一处理IPTV系统中各个网元的业务日志大大缩短了故障位置的确定时间。 [0014] A method and apparatus for processing logs IPTV system according to an embodiment of the present invention for multiple services, by receiving an IPTV system that carries the message traffic log of each network element; and then carrying said parsing the IPTV service system log message for each network element, and gives the analysis result; Finally, according to the analysis result, the service log stored into a corresponding file, thereby simplifying the processing operation on each log NE, reduced the overall system operation and maintenance costs IPTV service log for each network element, and by the respective unitary IPTV system NE service log shorten the time of determining the location of the fault.

附图说明 BRIEF DESCRIPTION

[0015] 图1为本发明实施例提供的一种IPTV系统面向多业务的日志处理方法流程图; [0015] FIG. 1 is a flowchart log processing method for a multi-service IPTV system according to an embodiment of the present invention;

[0016] 图2为本发明实施例提供的一种IPTV系统面向多业务的日志处理方法具体实现流程图; [0016] FIG. 2 a log processing method of an IPTV system according to the embodiment of the multi-service for a specific implementation of the present invention, a flow chart;

[0017] 图3为本发明实施例提供的一种IPTV系统面向多业务的日志处理装置结构示意图; [0017] FIG. 3 is a schematic structure of a processing apparatus a log IPTV system provided for multi-service embodiment of the invention;

[0018] 图4为本发明实施例提供的一种携带有所述IPTV系统中各个网元的业务日志的消息的结构示意图; [0018] FIG. 4 embodiment provides a schematic view of a carrying structure of the IPTV service system message log of each network element of the present invention;

[0019] 图5为本发明实施例提供的一种标准的消息头示意图; Message [0019] FIG 5 provides a standard embodiment of the present invention, the first embodiment of a schematic diagram;

[0020] 图6为本发明实施例提供的一种IPTV系统面向多业务的日志处理系统结构示意图。 [0020] FIG. 6 is a schematic structure of a log processing system IPTV system provided for multi-service embodiment of the present invention.

具体实施方式 Detailed ways

[0021] 下面结合附图对本发明实施例提供的一种IPTV系统面向多业务的日志处理方法及装置进行详细的说明。 [0021] The following drawings embodiments of the present invention a method and apparatus for processing logs IPTV system provided for multi-service binding will be described in detail.

[0022] 如图1所示,为本发明实施例提供的一种IPTV系统面向多业务的日志处理方法, 该方法包括: [0022] FIG. 1, a log-based approach for a multi-service IPTV system according to an embodiment of the invention, the method comprising:

[0023] 101 :日志服务器接收携带有所述IPTV系统中各个网元的业务日志的消息;例如:日志服务器接收携带有所述IPTV系统中各个网元的业务日志的消息包括: EPG (Electronic Program Guide,电子节目单)服务器发送给日志服务器的携带有用户点击日志消息;或者,机顶盒通过TMP (Terminal Manage I^roxy,终端消息管理代理)发送给日志服务器的携带有频道观看日志消息;或者,Streaming Server (流媒体服务器)发送给日志服务器的携带有VOD (Video OnDemand,视频点播)、TV0D(True Video On Demand,实时视频点播)、广告等的播放日志消息;或者,Presence Server发送给日志服务器的携带有机顶盒版本变更日志和用户状态变更日志消息等等。 [0023] 101: the log server receiving an IPTV system that carries the message traffic log of each network element; for example: the log server receiving the message carries a service log for each network element in the IPTV system comprises: EPG (Electronic Program Guide, electronic program Guide) server sends the log server that carries user clicks on log messages; or set-top box is sent to the log server carries channel viewing log messages TMP (terminal manage I ^ roxy, terminal message management agent); or streaming server (streaming media server) is sent to the log server carries VOD (video OnDemand, video on demand), TV0D (True video On demand, real-time video on demand), advertising the play log messages; or, Presence server sent to the log server the set-top box carrying the revision log, and user status change log messages, and so on.

[0024] 102 :日志服务器解析所述携带有所述IPTV系统中各个网元的业务日志的消息, 并给出解析结果;具体的讲,就是日志服务器可以根据所述携带有所述IPTV系统中各个网元的业务日志的消息中的消息标识对所述接收到的消息进行业务日志类型识别,并将不同类型的业务日志分类。 [0024] 102: parsing the log server system carrying the IPTV service message log of each network element, and gives the analysis result; Specifically speaking, the log server may carry the IPTV system each NE service message log in the message identifier of the received message is a log service type identification, and classification of the different types of traffic log.

[0025] 103 :根据所述解析结果,日志服务器将所述业务日志存储到相应的文件中。 [0025] 103: The result of the analysis, the log server service log stored into a corresponding file. 具体的讲,就是日志服务器根据所述解析出来的各中业务日志的类别分别将其存储到相应的文件中,以便Log parser (Log parser,日志解析服务器)解析各种用户操作以及系统的运行状态。 To be specific, the log server is parsed according to the type of the traffic in each of the log are stored in their respective files to Log parser (Log parser, log analysis server) resolve the status of various operating system and user operation .

[0026] 基于以上实施例,如图2所示,为本发明实施例提供的一种IPTV系统面向多业务的日志处理方法具体实现流程图。 [0026] Based on the above embodiment, as shown in FIG. 2, log processing method for a multi-service IPTV system according to an embodiment of the present invention is embodied flowchart. 该方法,具体实现过程如下: The method, the specific implementation process is as follows:

[0027] 201 :日志服务器接收携带有所述IPTV系统中各个网元的业务日志的消息;其中,所述日志服务器可以基于UDP^ser Datagram Protocol,用户数据报协议)或者基于TCP (Transmission Control Protocol,传输控制协议)与所述IPTV系统中各个网元进行连接,从而完成日志服务器接收携带有所述IPTV系统中各个网元的业务日志的消息的目的;其中,所述携带有所述IPTV系统中各个网元的业务日志的消息(LS_C0MM0N_L0G)如图4所示包括:消息头和消息体;其中消息头位LS_C0MM0N_L0G标准消息头如下表1所示, 所述LS_C0MM0N_L0G消息头包括:协议版本信息字段、消息类型字段、消息标识字段(消息ID), TTL (Time to Live,数据包存活时长)字段、回复字段r印ly、错误码字段和预留(保留)字段; [0027] 201: the log server receiving the message carrying the IPTV service system log of each network element; wherein the log server may be based on UDP ^ ser Datagram Protocol, User Datagram Protocol) or based on TCP (Transmission Control Protocol , transmission control protocol) connection with the IPTV system in each NE, thereby completing the log server object receives the message carrying the IPTV service system log of each network element; wherein said IPTV system carries the NE service of each log message (LS_C0MM0N_L0G) shown in Figure 4 comprising: a message header and a message body; wherein the message header bits LS_C0MM0N_L0G standard message header as shown in table 1, the message header LS_C0MM0N_L0G comprising: a protocol version information field , a message type field, a message identification field (message ID), TTL (time to Live, survival packet length) field, a reply r printing LY field, an error code field and a reserved (reserved) field;

[0028]表 1LS_C0MM0N_L0G 消息头 [0028] Table 1LS_C0MM0N_L0G message header

[0029] [0029]

域名 长度 描述协议版本 2字节 2消息类型 2字节 9消息ID 4字节 老版本频道日志:27 VOD (视频点播)日志:25 TVOD (实时视频点播)日志:26 AD (advertisement,广告)日志:24 状态变更日志:29 版本变更日志:30TTL 2字节 reply 2字节 错误码 4字节 保留 24字节[0030] 所述消息体包括:LS-C0MM0N-L0G(通用日志消息)的消息体如下表2所示,和LS-ZIP-LOG(压缩日志消息)的消息体如下表3所示。 Domain Name Length Description Message Protocol Version 2 bytes 2 bytes 2 Type 9 message channel ID 4 bytes older log: 27 VOD (Video On Demand) log: 25 TVOD (real-time video on demand) log: 26 AD (advertisement, advertisement) log : status change log 24: 29 revision log: 30TTL 2 bytes error code 4 bytes reply 2 reserved bytes 24 bytes [0030] the message body comprises: LS-C0MM0N-l0G (common log message) message body table 2 below, and the LS-ZIP-lOG (compaction log message) message body in table 3 below. 其中,所述LS-ZIP-LOG消息体主要用于存储压缩业务日志的消息体。 Wherein, the LS-ZIP-LOG message body mainly for storing compressed service log message body. 例如:广告机播放图片或者视频十分频繁,会产生大量的业务日志,占用很大的流量。 For example: advertising picture or video playback is very frequent, it will generate a lot of traffic logs, take up a lot of traffic. 因此广告机上报的业务日志一般为压缩数据。 So advertising business journal reported usually compressed data. 这样,当所述日志服务器接收到所述LS-ZIP-LOG消息时,在进行消息解析之前,应该先进行消息解压缩, 其消息压缩与解压缩为日志服务器与相应网元所预先协商确定的。 Thus, when the log server receiving the LS-ZIP-LOG message, prior to message parsing, message should first be decompressed, which message log compression and decompression of the server corresponding to the network element determined pre-negotiated . [0031 ]表2LS_C0MM0N_L0G 消息体: [0031] Table 2LS_C0MM0N_L0G message body:

[0032] [0032]

Figure CN102065322AD00071

[0033]表3LS_ZIP—LOG 消息体:[0034] [0033] TABLE 3LS_ZIP-LOG message body: [0034]

Figure CN102065322AD00081

[0035] 中的广告机曰志规范。 [0035] The advertising said Chi specification.

[0036] 需要注意的是,当所述日志服务器接收到所述携带有所述IPTV系统中各个网元的业务日志的消息之后,还可以像发送该消息的网元返回应答消息(LS_C0MM0N_L0G_ REPLY,回复日志消息),该消息的格式可以为一个标准的消息头如图5所示;该消息头可以包括:日志服务器接收的消息类型以及消息标识,即消息ID等等。 [0036] Note that, when the log server receiving the IPTV system carrying the message traffic log of each NE, the message may also be transmitted as network element returns a response message (LS_C0MM0N_L0G_ REPLY, reply log message), the format of the message may be a standard message header shown in FIG. 5; the message header may include: receiving a message log server and a message type identifier, i.e., the message ID and the like.

[0037] 202 :日志服务器根据所述携带有所述IPTV系统中各个网元的业务日志的消息中消息头的消息标识字段即上述表2中的消息ID可以判断所述接收到的消息类型,即各种业务日志的类型; [0037] 202: the Log Server Table 2 above message ID based on the type of the received message according to the message carrying the service identifier field of the message which the IPTV system log of each network element in the message header, That type of traffic of various logs;

[0038] 203 :日志服务器将所述携带有所述IPTV系统中各个网元的业务日志的消息按照消息类型进行分类,给出分类结果; [0038] 203: the log server system carrying the IPTV service message log of each network element according to the message types are classified, the classification results are given;

[0039] 204 :根据所述分类结果,日志服务器将所述业务日志按类存储到相应的文件中。 [0039] 204: The result of the classification, the log server log service class according to the corresponding file is stored. 其中,所述日志服务器可以基于TCP协议与文件服务器建立短连接,从而完成日志服务器向文件服务器上传各类业务日志的目的;所述的短连接可以理解为,当日志服务器只有当需要上传其接收的携带有所述IPTV系统中各个网元的业务日志时,才与文件服务建立连接;当日志服务器不需要进行上传业务日志时,则断开连接。 Wherein the log server can create a file server based on the TCP protocol with a short connection, thereby completing the log server log upload object of various services to the file server; the short connector may be understood, when the need to upload the log server only if it receives when carrying the IPTV system logs each NE service, establish a connection to the file server; log when the service server does not need to upload the log, then disconnect.

[0040] 需要注意的是,日志服务器向文件服务器上传各类业务日志的消息LS_UPL0AD_ [0040] It should be noted that the log server to upload all kinds of business news LS_UPL0AD_ log to a file server

LOG的格式如下表4所示。 LOG format are shown in Table 4.

[0041 ]表4LS_UPL0AD_L0G 消息体 [0041] Table 4LS_UPL0AD_L0G message body

[0042] [0042]

Figure CN102065322AD00091

[0043] [0043]

[0044] 在实现所述日志服务器向文件服务器上传各类业务日志的过程中,还需要注意的是,该方法还可以包括如下步骤: [0044] During the implementation of the various services uploaded log server logs to file server, it is also to be noted that, the method may further comprise the steps of:

[0045] 预设上传所述业务日志数据量的阈值;[0046] 判断所述接收到的业务日志数据量是否超过所述阈值; [0045] The default upload traffic log data amount threshold; the amount of log traffic data [0046] It is determined whether the received exceeds the threshold value;

[0047] 如果所述接收到的业务日志数据量超过所述阈值,则根据所述分类结果,将所述业务日志按类存储到相应的文件中;例如:预设上传所述业务日志数据量为5M,每当日志服务器接收到5M的业务日志,就按照各种业务日志的类型向文件服务器上传一次,即将所述业务日志按类存储到文件服务器的相应的文件中。 [0047] If the amount of the log data received traffic exceeds the threshold value, based on the classification result by the service log stored into a corresponding file type; for example: the traffic uploading a predetermined amount of data logs 5M is, whenever the log server receiving the log 5M traffic, uploading time, i.e. the service class according to the log file corresponding to a file server to the file server in accordance with various types of service log.

[0048] 如果所述接收到的业务日志数据量未超过所述阈值,则继续接收携带有所述IPTV 系统中各个网元的业务日志的消息。 [0048] If the amount of log traffic data received does not exceed the threshold, continue to receive the message carrying the IPTV service system log of each network element.

[0049] 还需要注意的是,该方法还可以包括如下步骤: [0049] It is also noted that the method may further comprise the steps of:

[0050] 当所述IPTV系统中各个网元与日志服务器之间的网络发生中断后,重新恢复连接时,继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 [0050] When the network between the various network element and the log server in the IPTV system interrupt occurs, when it resumes the connection continues to receive the message carrying the IPTV service system log of each network element.

[0051] 为了避免所述IPTV系统中各个网元与日志服务器之间重新恢复连接后发生网络拥塞,所述IPTV系统中各个网元可以根据实际情况的需要进行流量控制,或者在重新恢复网络连接后,所述IPTV系统中各个网元在发送第一条业务日志消息前,先随机选择恢复连接后的前60秒中的一个时间点来发送第一条业务日志消息,从而可以避免各个网元同时发送业务日志消息所造成的网络拥塞问题。 [0051] In order to avoid network congestion restored after a connection between the IPTV system and each NE log server, each of the IPTV system may be a network element according to actual flow rate control situation, or to restore the network connection after the IPTV system of each network element before transmitting the first traffic log message, to randomly select a recovery point before the connection after 60 seconds to transmit the first service log message, each network element can be avoided network congestion problems simultaneously send traffic log messages caused. 为了避免各个网元与日志服务器在断网的情况下丢失业务日志,所述各个网元还可以设置一个用于存储断网期间业务日志的存储单元。 To avoid each NE service logs and log server is lost in the case of disconnection, the respective network element may also be provided a memory cell during the service logs off the network for storage.

[0052] 如图3所示,为本发明实施例提供的一种IPTV系统面向多业务的日志处理装置, 该装置包括: [0052] FIG. 3, the present apparatus for processing multi-service log an IPTV system according to an embodiment of the invention, the apparatus comprising:

[0053] 消息接收单元301,用于接收携带有所述IPTV系统中各个网元的业务日志的消息; [0053] The message receiving unit 301, configured to receive a message carrying the service IPTV system log of each network element;

[0054] 消息解析单元302,用于解析所述消息接收单元所接收到的携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果; [0054] The message analyzing unit 302, configured to parse the message received by the receiving unit carries the IPTV system message log each NE service, and gives the analysis result;

[0055] 消息存储单元303,用于根据所述消息解析单元的解析结果,将所述业务日志存储到相应的文件中。 [0055] The message storage unit 303, according to an analysis result of the message analyzing unit, the service log stored into a corresponding file.

[0056] 以上所述携带有所述IPTV系统中各个网元的业务日志的消息包括:消息头和消息体;其中,所述消息头包括:协议版本信息字段、消息类型字段、消息标识字段、TTL字段、 reply字段、错误码字段和预留字段; [0056] The above-described IPTV system carries each NE service log message comprising: a message header and a message body; wherein said message header comprises: a protocol version information field, a message type field, a message identification field, TTL field, reply field, an error code field and a reserved field;

[0057] 所述消息体包括:LS-C0MM0N-L0G消息体和LS-ZIP-L0G消息体。 The [0057] message comprises: LS-C0MM0N-L0G message body and the LS-ZIP-L0G message body.

[0058] 其中,所述消息解析单元,具体包括: [0058] wherein the message parsing unit comprises:

[0059] 消息判断子单元,用于根据所述消息接收单元所接收到的携带有所述IPTV系统中各个网元的业务日志的消息中消息头的消息标识字段判断接收到的消息类型; [0059] The determination subunit message, a message type identification field for said IPTV system a message each NE service log in message header whether the received message according to the receiving unit carries received;

[0060] 消息分类子单元,用于将所述携带有所述IPTV系统中各个网元的业务日志的消息根据所述消息判断子单元所判断的消息类型进行分类,给出分类结果; [0060] message classifier unit, for carrying the message of the IPTV system logs each NE service classified according to the type of message to the message determination subunit determines the given classification result;

[0061] 所述消息存储单元,还用于根据所述消息分类子单元的分类结果,将所述业务日志按类存储到相应的文件中。 The [0061] message storage unit, for further classification result according to the message classifier unit, according to the service log stored into a corresponding class file.

[0062] 需要注意的是,该装置还包括: [0062] It should be noted that the apparatus further comprises:

[0063] 阈值设置单元,用于预设上传所述业务日志数据量的阈值; [0063] The threshold value setting means for presetting the upload traffic log data amount threshold;

[0064] 判读单元,用于根据所述阈值设置单元所设置的阈值,判断所述接收到的业务日志数据量是否超过所述阈值,如果所述接收到的业务日志数据量超过所述阈值,则所述消息存储单元根据所述分类结果,将所述业务日志按类存储到相应的文件中;如果所述接收到的业务日志数据量未超过所述阈值,则所述消息接收单元继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 [0064] interpretation unit, based on the threshold value for the threshold value setting unit determines the amount of log data received traffic exceeds the threshold value, if the amount of log traffic data received exceeds the threshold value, the message storage unit according to the result of the classification by the class of service log stored into a corresponding file; if the amount of log traffic data received does not exceed the threshold, then continue to receive the message receiving unit carrying the IPTV service system message log of each network element.

[0065] 还需要注意的是,所述消息接收单元,还用于当所述IPTV系统中各个网元与日志服务器之间的网络发生中断后,重新恢复连接时,继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 [0065] It is also noted that the message receiving unit is further configured to, when the network connection between the various network element and the log server in the IPTV system interrupt occurs, when it resumes the connection continues to receive carries the IPTV each NE system message service log.

[0066] 如图6所示,为本发明实施例提供的一种IPTV面向多业务的日志处理系统结构示意图;该系统包括:网络机顶盒STB、信息服务器^formation Server、电子节目单服务器EPG Server、流媒体服务器Mream Server、终端消息管理代理TMP、呈现服务器I^resence Server、日志服务器、文件服务器和日志解析服务器Log parser。 [0066] As shown in FIG 6, the log processing system schematic structure of a multi-oriented IPTV service provided by the embodiment of the present invention; the system comprising: a network set-top box the STB, the information server ^ formation Server, the server electronic program guide EPG Server, streaming media server Mream server, terminal message management agency TMP, the presence server I ^ resence server, log servers, file servers, and log analysis server log parser. 其中,所述呈现服务器Presence Server 中包括:用户代理(UserAgent);所述User Agent 为Presence Server 的客户端或前置模块;所述电子节目单服务器EPG krver包括:电子节目单服务进程EPG Server0 Wherein the presence server Presence Server include: user agent (UserAgent); the User Agent Presence Server for customers or front end module; the electronic program guide EPG krver server includes: electronic program guide service process EPG Server0

[0067] 网络机顶盒1至网络机顶盒5需要上报其自身的日志,例如:V0D观看日志、TVOD 观看日志、广告观看日志时,需要通过TMP与日志服务器建立UDP连接,进行通信,这时所述日志服务器收到的是网络机顶盒STB的日志。 [0067] Network Top Box STB 1 to 5 need to report its own log, for example: V0D viewing log, log viewing the TVOD, advertisement viewing the log, it is necessary to establish a UDP connection TMP log server, in communication, then the log the server receives the network set-top box STB log. 所述流媒体服务器可以将其记录的频道播放日志、广告机播放日志、所述电子节目单服务器将其记录的页面点击日志、信息服务器可以将其记录的信息点击日志以及呈现服务器可以将其记录的机顶盒版本变更日志、机顶盒状态变更日志通过UDP数据包发送给日志服务器的UDP日志收集线程UDP Log Collect。 The streaming media server channels can play log record, and advertising play log, the electronic program guide server page, click the log that records the information server can record information click logs and presence server can record STB revision log, UDP log collection set-top box to change the state of threads UDP log collect logs to the log server via UDP packets. 这样,当所述UDPLog Collect线程收集到一定数据量的日志文件,则由日志上传线程发送到日志服务器的日志接收器LOG RECEIVER;由所述的LOG RECEIVER将所述日志文件按照各个日志的业务类型发送到文件服务器的相应日志文件中,例如图6中的STATUS CHANGE LOG(状态变更日志)文件,广告机日志文件、VIEW LOG (观看日志)文件、广告日志文件、网络机顶盒操作日志文件以及网络机顶盒升级日志STB UPGRADE INFO LOG等等。 Thus, when the thread UDPLog Collect a certain amount of data collected log files, log upload by the thread to the log server receiving the log LOG RECEIVER; LOG RECEIVER according to the log file according to the service type of each log corresponding log file to the file server, for example, sTATUS cHANGE lOG in FIG. 6 (a state change log) files, advertising log file, vIEW lOG (viewing log) files, advertising log files, IP STB operation log files and a network set-top box The upgrade log STB uPGRADE INFO lOG and so on. 其中,日志解析服务器可以调用文件服务器中各个日志文件的日志进行解析处理。 Among them, log analysis server log file server can call each log file parsing process.

[0068] 需要注意的是,所述终端消息管理代理、流媒体服务器、信息服务器、电子节目单服务器以及呈现服务器所记录的日志还可以通过NFS(NetWOrk FileSystem,网络文件系统)传输到所述日志服务器。 [0068] Note that, the message management agent terminal, streaming media server, the information server, the server and presenting the electronic program recorded in the log server may also be transmitted to the log through NFS (NetWOrk FileSystem, Network File System) server.

[0069] 本发明实施例提供的一种IPTV系统面向多业务的日志处理方法及装置,通过接收携带有所述IPTV系统中各个网元的业务日志的消息;然后解析所述携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果;最后,根据所述解析结果,将所述业务日志存储到相应的文件中,从而简化了各个网元上日志处理操作,降低了整个IPTV系统中各个网元的业务日志的运维成本,并且通过统一处理IPTV系统中各个网元的业务日志大大缩短了故障位置的确定时间。 [0069] A method and apparatus for processing logs IPTV system according to an embodiment of the present invention for multiple services, by receiving an IPTV system that carries the message traffic log of each network element; and then carrying said parsing the IPTV service system log message for each network element, and gives the analysis result; Finally, according to the analysis result, the service log stored into a corresponding file, thereby simplifying the processing operation on each log NE, reduced the overall system operation and maintenance costs IPTV service log for each network element, and by the respective unitary IPTV system NE service log shorten the time of determining the location of the fault.

[0070] 通过以上的实施方式的描述,本领域普通技术人员可以理解:实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,包括如上述方法实施例的步骤,所述的存储介质,如:R0M/RAM、磁碟、光盘等。 [0070] By the above described embodiments, those of ordinary skill in the art will be understood: the foregoing embodiments all or part of the method steps may be hardware instructed by a program, the program may be stored in a the computer readable storage medium, when the program is executed, the method comprising the steps as described in the embodiment, the storage medium, such as: R0M / RAM, magnetic disk, optical disk.

[0071] 以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0071] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (10)

1. 一种IPTV系统面向多业务的日志处理方法,其特征在于,包括: 接收携带有所述IPTV系统中各个网元的业务日志的消息;解析所述携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果; 根据所述解析结果,将所述业务日志存储到相应的文件中。 1. A method of log processing system for multiple IPTV service, wherein, comprising: receiving a message carrying the service IPTV system log of each network element; parsing the IPTV system carries the respective NE traffic log message, and gives the analysis result; the result of the analysis, the service log stored into a corresponding file.
2.根据权利要求1所述的IPTV系统面向多业务的日志处理方法,其特征在于,所述携带有所述IPTV系统中各个网元的业务日志的消息包括:消息头和消息体;其中,所述消息头包括:协议版本信息字段、消息类型字段、消息标识字段、数据包存活时长字段、回复字段、错误码字段和预留字段;所述消息体包括:通用日志消息的消息体和压缩日志消息的消息体。 The IPTV system according to a log processing method for the multi-service as claimed in claim, wherein said carrying traffic of the IPTV system with a log of each network element a message comprising: a message header and a message body; wherein, said header comprising: a length field, a reply field, a reserved field and an error code field when the protocol version information field, a message type field, a message identification field, alive packet; said message body comprising: a message body and compression common log messages message body of the message log.
3.根据权利要求2所述的IPTV系统面向多业务的日志处理方法,其特征在于,所述解析所述携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果的步骤,包括:根据所述携带有所述IPTV系统中各个网元的业务日志的消息中消息头的消息标识字段判断接收到的消息类型;将所述携带有所述IPTV系统中各个网元的业务日志的消息按照消息类型进行分类, 给出分类结果;所述根据所述解析结果,将所述业务日志存储到相应的文件中步骤包括: 根据所述分类结果,将所述业务日志按类存储到相应的文件中。 The IPTV system 2 according to a log processing method for the multi-service as claimed in claim, characterized in that the analysis of the system carrying the IPTV service message log of each network element, and gives the analysis results step, comprising: a service according to the message carrying the IPTV system with a log of each network element in the message header of the message identification field determines the type of the received message; the IPTV system carrying the respective NE log message traffic classified by the type of message, given classification result; according to the result of the analysis, the service log stored in the corresponding file includes the step of: based on the classification result, according to the service class log stored into a corresponding file.
4.根据权利要求3所述的IPTV系统面向多业务的日志处理方法,其特征在于,该方法还包括:预设上传所述业务日志数据量的阈值;判断所述接收到的业务日志数据量是否超过所述阈值;如果所述接收到的业务日志数据量超过所述阈值,则根据所述分类结果,将所述业务日志按类存储到相应的文件中;如果所述接收到的业务日志数据量未超过所述阈值,则继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 The IPTV system according to claim 3 log processing method for the multi-service, wherein, the method further comprising: uploading the traffic logs predetermined data amount threshold value; determining whether the received service data amount of log exceeds the threshold value; and if the amount of the log data received traffic exceeds the threshold value, based on the classification result by the service log stored in the corresponding class file; if the received service log the data amount does not exceed the threshold value, it continues to receive the message carrying the IPTV service system log of each network element.
5.根据权利要求1至4中任意一项所述的IPTV系统面向多业务的日志处理方法,其特征在于,该方法还包括:当所述IPTV系统中各个网元与日志服务器之间的网络发生中断后,重新恢复连接时, 继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 IPTV system according to any one of claim 4 to claim log processing method for the multi-service, wherein, the method further comprising: when the network between the IPTV system log server and each NE after the interrupt occurs, when the connection is restored again, to continue to receive a message that carries the IPTV service system log of each network element.
6. 一种IPTV系统面向多业务的日志处理装置,其特征在于,包括:消息接收单元,用于接收携带有所述IPTV系统中各个网元的业务日志的消息; 消息解析单元,用于解析所述消息接收单元所接收到的携带有所述IPTV系统中各个网元的业务日志的消息,并给出解析结果;消息存储单元,用于根据所述消息解析单元的解析结果,将所述业务日志存储到相应的文件中。 An apparatus for processing log IPTV system for multi-service, characterized by, comprising: a message receiving unit, configured to receive a message carrying the service log IPTV system are each NE; message parsing unit configured to parse the message received by the receiving unit carries the IPTV service system message log of each network element, and gives the analysis result; message storage unit, according to an analysis result of the message analyzing unit, the business logs are stored to the appropriate file.
7.根据权利要求6所述的IPTV系统面向多业务的日志处理装置,其特征在于,所述携带有所述IPTV系统中各个网元的业务日志的消息包括:消息头和消息体;其中,所述消息头包括:协议版本信息字段、消息类型字段、消息标识字段、数据包存活时长字段、回复字段、错误码字段和预留字段;所述消息体包括:通用日志消息的消息体和压缩日志消息的消息体。 7. The system of claim 6 log IPTV apparatus for processing multi-service as claimed in claim, wherein said carrying traffic of the IPTV system with a log of each network element a message comprising: a message header and a message body; wherein, said header comprising: a length field, a reply field, a reserved field and an error code field when the protocol version information field, a message type field, a message identification field, alive packet; said message body comprising: a message body and compression common log messages message body of the message log.
8.根据权利要求7所述的IPTV系统面向多业务的日志处理装置,其特征在于,所述消息解析单元,包括:消息判断子单元,用于根据所述消息接收单元所接收到的携带有所述IPTV系统中各个网元的业务日志的消息中消息头的消息标识字段判断所述接收到的消息类型;消息分类子单元,用于将所述携带有所述IPTV系统中各个网元的业务日志的消息根据所述消息判断子单元所判断的消息类型进行分类,给出分类结果;所述消息存储单元,还用于根据所述消息分类子单元的分类结果,将所述业务日志按类存储到相应的文件中。 The IPTV system according to claim 7, log processing apparatus for multi-service requirements, characterized in that said message parsing unit, comprising: a message determination subunit, according to the message received by the receiving unit carries the log message service messages each network element identifier field of the message header of the IPTV system determines the type of the received message; message classification subunit, for the carrying of the IPTV system of NEs log message service message according to the message type determining subunit determines the classification, the classification result is given; the message storage unit, for further classification result according to the message classifier unit according to the service log class stored into a corresponding file.
9.根据权利要求8所述的IPTV系统面向多业务的日志处理装置,其特征在于,该装置还包括:阈值设置单元,用于预设上传所述业务日志数据量的阈值;判读单元,用于根据所述阈值设置单元所设置的阈值,判断所述接收到的业务日志数据量是否超过所述阈值,如果所述接收到的业务日志数据量超过所述阈值,则所述消息存储单元根据所述分类结果,将所述业务日志按类存储到相应的文件中;如果所述接收到的业务日志数据量未超过所述阈值,则所述消息接收单元继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 The IPTV system according to claim 8 for multi-service log processing apparatus claims, characterized in that, the apparatus further comprising: threshold setting means for presetting the upload traffic log data amount threshold; interpretation unit, with the threshold value in the threshold value setting unit, the determination of the amount of log traffic data received exceeds the threshold value, if the amount of log traffic data received exceeds the threshold value, the message storage unit according to the the classification result by the service log stored in the corresponding class file; if the amount of log traffic data received does not exceed the threshold value, the reception unit continues receiving the message carrying the IPTV system news each NE service logs.
10.根据权利要求6至9中任意一项所述的IPTV系统面向多业务的日志处理装置,其特征在于,所述消息接收单元,还用于当所述IPTV系统中各个网元与日志服务器之间的网络发生中断后,重新恢复连接时,继续接收携带有所述IPTV系统中各个网元的业务日志的消息。 10.6 to 9 logs for multiple service processing apparatus according to any one of the IPTV system according to claim, wherein the message reception unit is further configured to, when the IPTV system log server and each NE after the network between the interruption, to resume the connection continues to receive the message carrying the IPTV service system log of each network element.
CN2009102059530A 2009-11-17 2009-11-17 Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system CN102065322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102059530A CN102065322A (en) 2009-11-17 2009-11-17 Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102059530A CN102065322A (en) 2009-11-17 2009-11-17 Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system

Publications (1)

Publication Number Publication Date
CN102065322A true CN102065322A (en) 2011-05-18

Family

ID=44000383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102059530A CN102065322A (en) 2009-11-17 2009-11-17 Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system

Country Status (1)

Country Link
CN (1) CN102065322A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051956A (en) * 2012-12-24 2013-04-17 乐视致新电子科技(天津)有限公司 Set-top box for realizing log report and fault diagnosis and method thereof
CN103118274A (en) * 2011-11-16 2013-05-22 中兴通讯股份有限公司 Operational monitoring method and device for interactive protocol internet television (IPTV)
CN103902537A (en) * 2012-12-25 2014-07-02 重庆新媒农信科技有限公司 Multi-service log data storage processing and inquiring system and method thereof
CN104991814A (en) * 2015-06-19 2015-10-21 北京奇虎科技有限公司 Task execution result acquiring method and system
CN105656706A (en) * 2014-11-14 2016-06-08 北京通达无限科技有限公司 Business data processing method and device
CN105681384A (en) * 2014-11-21 2016-06-15 阿里巴巴集团控股有限公司 Information expiration processing method and apparatus
CN105871922A (en) * 2016-06-13 2016-08-17 青岛海信传媒网络技术有限公司 Television fault locating method, business server and television
CN106681998A (en) * 2015-11-05 2017-05-17 北京国双科技有限公司 Method and device for remotely storing logs
WO2017219912A1 (en) * 2016-06-23 2017-12-28 中兴通讯股份有限公司 Node control method and apparatus in distributed iptv system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118274A (en) * 2011-11-16 2013-05-22 中兴通讯股份有限公司 Operational monitoring method and device for interactive protocol internet television (IPTV)
CN103051956A (en) * 2012-12-24 2013-04-17 乐视致新电子科技(天津)有限公司 Set-top box for realizing log report and fault diagnosis and method thereof
CN103902537A (en) * 2012-12-25 2014-07-02 重庆新媒农信科技有限公司 Multi-service log data storage processing and inquiring system and method thereof
CN103902537B (en) * 2012-12-25 2017-02-08 重庆新媒农信科技有限公司 Multi-service log data storage processing and inquiring system and method thereof
CN105656706A (en) * 2014-11-14 2016-06-08 北京通达无限科技有限公司 Business data processing method and device
CN105681384A (en) * 2014-11-21 2016-06-15 阿里巴巴集团控股有限公司 Information expiration processing method and apparatus
CN105681384B (en) * 2014-11-21 2019-04-09 阿里巴巴集团控股有限公司 A kind of expired processing method and processing device of information
CN104991814A (en) * 2015-06-19 2015-10-21 北京奇虎科技有限公司 Task execution result acquiring method and system
CN106681998A (en) * 2015-11-05 2017-05-17 北京国双科技有限公司 Method and device for remotely storing logs
CN105871922A (en) * 2016-06-13 2016-08-17 青岛海信传媒网络技术有限公司 Television fault locating method, business server and television
WO2017219912A1 (en) * 2016-06-23 2017-12-28 中兴通讯股份有限公司 Node control method and apparatus in distributed iptv system

Similar Documents

Publication Publication Date Title
CN1893364B (en) Milestone synchronization in broadcast multimedia streams
EP2409475B1 (en) Delivering cacheable streaming media presentations
US9883247B2 (en) Reception apparatus, reception method, transmission apparatus, and transmission method
JP4619353B2 (en) System for distributing multimedia content
EP1519583A1 (en) Multimedia streaming service system and method
US20130179932A1 (en) Programming Content Processing and Management System and Method
JP2007537640A (en) Cooperation between bit rate adaptation of packetized data and retransmission of data packets
US20080086743A1 (en) Enhanced personal video recorder
US20120124606A1 (en) Apparatus and methods for identifying and characterizing latency in a content delivery network
CN1819559B (en) Multicast distribution of streaming multimedia content
US7778249B2 (en) Method and system for scheduled streaming of best effort data
US20040216161A1 (en) System and method for filtering interactive television data
KR101327967B1 (en) Remote management method of a distant device, and corresponding video device
RU2543568C2 (en) Smooth, stateless client media streaming
US9510061B2 (en) Method and apparatus for distributing video
US8265154B2 (en) Redundant data dispersal in transmission of video data based on frame type
US9693103B2 (en) Methods and apparatus for audience data collection and analysis in a content delivery network
US20090222853A1 (en) Advertisement Replacement System
JP4767443B2 (en) Network storage type video camera system
CN1855909B (en) Multimedia content delivery system
US8392748B2 (en) Reliable media streaming
US20090274437A1 (en) Embedding data in media metadata tracks during playback
US8644316B2 (en) In-band media performance monitoring
US7996871B2 (en) Method and apparatus for using metadata for trick play mode
US8266644B2 (en) Digital television channel trending

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)