CN105281976A - Method and apparatus for monitoring transmission of proxy service data - Google Patents

Method and apparatus for monitoring transmission of proxy service data Download PDF

Info

Publication number
CN105281976A
CN105281976A CN201510596102.9A CN201510596102A CN105281976A CN 105281976 A CN105281976 A CN 105281976A CN 201510596102 A CN201510596102 A CN 201510596102A CN 105281976 A CN105281976 A CN 105281976A
Authority
CN
China
Prior art keywords
data
service
packet
monitoring
types
Prior art date
Application number
CN201510596102.9A
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 CN201510596102.9A priority Critical patent/CN105281976A/en
Publication of CN105281976A publication Critical patent/CN105281976A/en

Links

Abstract

The invention discloses a method and an apparatus for monitoring the transmission of proxy service data. The method includes the steps of: obtaining message data transmitted between a source service and a target service; analyzing the message data so as to extract multiple types of data from the message data; and monitoring the transmission of the proxy service data based on the multiple types of data. Through the method and the apparatus for monitoring the transmission of the proxy service data, the problem that the data transmitted in the proxy service is not monitored in real time in related technique is solved.

Description

代理服务数据的传输监测方法及装置 Transmission monitoring method and device proxy service data

技术领域 FIELD

[0001] 本发明涉及数据传输领域,具体而言,涉及一种代理服务数据的传输监测方法及 [0001] The present invention relates to the field of data transmission, in particular, to a data transmission service agent monitoring methods and

目.ο Head .ο

背景技术 Background technique

[0002] 代理服务是在源服务与目标服务之间存在的服务器,随着技术的发展,服务器需要处理的数据量的日益增大,代理服务可以为源服务与目标服务之间传输数据提供缓冲与一道安全保障。 [0002] The proxy service between a source and destination services the presence server, as technology advances, the amount of data to be processed increasing server, the proxy service may provide a buffer to transfer data between source and destination services and a security guarantee. 一个完整的代理服务过程为:源服务与代理服务建立连接,根据代理服务使用的代理协议向目标服务发送请求。 A full service agency process: source service to establish service connection with the proxy, send a request to the target service according to agency protocol proxy service uses. 该请求首先由代理服务接收,代理服务在将该请求发送至目标服务之后,接收目标服务对该请求发送的响应,最后将该响应发送回源服务中。 After the service request is first received by the proxy, the proxy service sending the request to the target service, receiving the target service request response, and finally transmit the response back to the source service. 在代理服务过程中,若有异常发生,代理服务会中止请求或响应的传输,处理异常。 In the course of proxy service, if an abnormality occurs, the agent will suspend transmission service request or response, the processing exception. 因此,代理服务中传输的数据包含源服务与目标服务之间的所有信息,对代理服务中传输的数据进行监测非常必要。 Therefore, the data transmission service agent contains all the information between the source and destination services, agency services for data transmission of monitoring is necessary. 相关技术中,对源服务与目标服务之间传输数据的监测方法是在其中一侧进行记录,也即在源服务上记录发送的请求或在目标服务上记录发送的响应,并不能对代理服务中传输的所有数据进行实施监测。 In the related art, a method of monitoring the transmission between the source and destination services data is recorded in one side, i.e. the request sent in response to transmission or recording on a recording target service on the source service, and proxy service can not All data transmitted are monitored embodiment.

[0003] 针对相关技术中不能对代理服务中传输的数据进行实时监测的问题,目前尚未提出有效的解决方案。 [0003] For the problem is not data transmission service agents real-time monitoring of the related art, it has not yet come up with effective solutions.

发明内容 SUMMARY

[0004] 本发明的主要目的在于提供一种代理服务数据的传输监测方法及装置,以解决相关技术中不能对代理服务中传输的数据进行实时监测的问题。 [0004] The main object of the present invention to provide a method and apparatus for monitoring transmission proxy service data, to solve the problem that real-time monitoring of the data transmission proxy service in the related art.

[0005] 为了实现上述目的,根据本发明的一个方面,提供了一种代理服务数据的传输监测方法。 [0005] To achieve the above object, according to one aspect of the present invention, there is provided a method of monitoring transmission proxy service data. 该方法包括:获取源服务与目标服务之间传输的报文数据;解析报文数据以分别提取报文数据中的多种类型数据;以及基于多种类型数据对代理服务数据的传输进行监测。 The method comprising: acquiring packet data transmission between the source and destination services; parsing data packets were extracted from a plurality of types of data packets; and a plurality of types of data based on monitoring of the data transmission service agent.

[0006] 进一步地,报文数据包括请求报文数据、响应报文数据和异常报文数据,解析报文数据以分别提取报文数据中的多种类型数据包括:解析源服务发送至目标服务的请求报文数据,得到第一类型数据;解析目标服务发送至源服务的响应报文数据,得到第二类型数据;以及解析源服务与目标服务之间传输报文数据的过程中存在异常时的异常报文数据,得到第三类型数据。 [0006] Further, the message data comprises a data request packet, response packet data and abnormal data packet, parses the packet data to a plurality of types of data were extracted from the packet data comprises: parsing the source to the target service transmits the service a data request packet to obtain a first data type; and when there is an abnormality between the source and destination services resolved during the transmission of packet data; parsing the target service response message transmitted to the data source service, the second type of data obtained abnormal message data, to obtain a third data type.

[0007] 进一步地,基于多种类型数据对代理服务数据的传输进行监测包括:分别存储第一类型数据、第二类型数据和第三类型数据。 [0007] Further, based on various types of data including monitoring data transmission proxy service: the first type data are stored, a second type of data and the third data type.

[0008] 进一步地,在解析报文数据以分别提取报文数据中多种类型的数据之后,该方法还包括:将多种类型的数据转换为统一格式的数据。 [0008] Further, in order to parse the message data in the message data of a plurality of types of data, respectively, after extraction, the method further comprising: converting data of a plurality of types of data to a uniform format.

[0009] 进一步地,基于多种类型数据对代理服务数据的传输进行监测包括:接收查询请求;根据查询请求在监测系统中查找出对应的多种类型数据作为查找结果;根据预设条件将查找结果转换为显示结果;以及显示显示结果。 [0009] Further, based on various types of data including monitoring data transmission proxy service: receiving a query request; lookup according to a query request in the monitoring system of the corresponding plurality of types of data as a search result; finds according to preset conditions result into a display result; and displaying the results.

[0010] 进一步地,基于多种类型数据对代理服务数据的传输进行监测包括:统计多种类型数据的预设信息,得到监测统计数据;在接收查询请求之后,该方法还包括:根据查询请求在监测系统中查找出对应的监测统计数据作为查找结果。 [0010] Further, based on various types of data including monitoring data transmission proxy service: Statistics plurality of preset information types of data, statistical data monitored; after receiving the query request, the method further comprising: the query request Find out the corresponding monitoring statistics as a search result in the monitoring system.

[0011] 为了实现上述目的,根据本发明的另一方面,提供了一种代理服务数据的传输监测装置。 [0011] To achieve the above object, according to another aspect of the present invention, there is provided an apparatus for monitoring transmission proxy service data. 该装置包括:获取单元,用于获取源服务与目标服务之间传输的报文数据;解析单元,用于解析报文数据以分别提取报文数据中的多种类型数据;以及监测单元,用于基于多种类型数据对代理服务数据的传输进行监测。 The apparatus comprises: an acquisition unit for acquiring transmission between source and destination services data message; parsing unit configured to parse the packet data to a plurality of types of data were extracted from the data packet; and a monitoring unit, with based on the various types of data to monitor data transfer agency services.

[0012] 进一步地,解析单元包括:第一解析模块,用于解析源服务发送至目标服务的请求报文数据,得到第一类型数据;第二解析模块,用于解析目标服务发送至源服务的响应报文数据,得到第二类型数据;以及第三解析模块,用于解析源服务与目标服务之间传输报文数据的过程中存在异常时的异常报文数据,得到第三类型数据。 [0012] Further, the parsing unit comprising: a first parsing module, for parsing the source to the target service transmits the service request packet of data to obtain a first type of data; a second parsing module, for parsing the service sent to the source target service response data packet to obtain a second data type; and a third analyzing module, an abnormality message data when an abnormality is present during the transmission of data packets between source and destination services resolved to obtain a third data type.

[0013] 进一步地,监测单元包括:存储模块,用于分别存储第一类型数据、第二类型数据和第三类型数据。 [0013] Furthermore, the monitoring unit comprising: a storage module for storing a first type of data, respectively, a second type of data and the third data type.

[0014] 进一步地,该装置还包括:格式转换单元,用于在解析报文数据以分别提取所述报文数据中多种类型的数据之后,将所述多种类型的数据转换为统一格式的数据。 [0014] Further, the apparatus further comprising: a format conversion unit, configured to parse the message data were extracted from the packet data after a plurality of types of data, the plurality of types of data into a uniform format The data.

[0015] 本发明通过获取源服务与目标服务之间传输的报文数据;解析报文数据以分别提取报文数据中的多种类型数据;以及基于多种类型数据对代理服务数据的传输进行监测,解决了相关技术中不能对代理服务中传输的数据进行实时监测的问题,进而达到了对代理服务中传输的数据进行实时监测效果。 [0015] The present invention, by obtaining the transmission between the source and destination services data message; parsing data packets in a plurality of types of data were extracted from the data packet; and a proxy service data transmission based on a plurality of types of data for monitoring, can not solve the problem of real-time monitoring of the data transfer agency services in the related art, thus achieving data transfer agency services in real-time monitoring results.

附图说明 BRIEF DESCRIPTION

[0016] 构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。 [0016] The drawings constitute a part of this application are intended to provide further understanding of the invention, exemplary embodiments of the present invention are used to explain the present invention without unduly limiting the present invention. 在附图中: In the drawings:

[0017] 图1是根据本发明实施例的代理服务数据的传输监测方法的流程图;以及 [0017] FIG. 1 is a flowchart of a data transmission service agent monitoring method of an embodiment of the present invention; and

[0018]图2是本发明实施例的代理服务数据的传输监测装置的示意图。 [0018] FIG. 2 is a schematic view of the transmission monitoring device proxy service data according to embodiments of the present invention.

具体实施方式 Detailed ways

[0019] 需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。 [0019] Incidentally, in the case of no conflict, embodiments and features of the embodiments of the present application can be combined with each other. 下面将参考附图并结合实施例来详细说明本发明。 Below with reference to accompanying drawings and embodiments of the present invention will be described in detail.

[0020] 为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。 [0020] In order to make those skilled in the art better understand the solutions of the present application, in conjunction with the following drawings of the present application example embodiments, the technical solutions in the present application will be clearly and completely described, obviously, the described Example embodiments are merely part of embodiments according to the present embodiment of the application, rather than all embodiments. 基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。 Based on the embodiments of the present application, all other embodiments to those of ordinary skill in the art without creative efforts shall be made available, should belong to the scope of the present application.

[0021] 需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。 [0021] Incidentally, the above-mentioned book and in the figures the terms "first," "second," and the like are used for distinguishing between similar objects, and not necessarily for describing a particular sequential or application of the present specification and claims priorities. 应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。 It should be understood that this embodiment of the data used are interchangeable under appropriate circumstances, so that the present disclosure described herein. 此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。 Furthermore, the terms "including" and "having," as well as any of their deformation, intended to cover non-exclusive inclusion, for example, comprising a series of steps or the process unit, the method, system, or apparatus is not necessarily limited expressly listed those steps or elements, but may include or not inherent to other steps or units for such process, method, article, or apparatus expressly listed.

[0022] 本发明的实施例提供了一种代理服务数据的传输监测方法。 Example [0022] The present invention provides a method of monitoring transmission proxy service data.

[0023] 图1是根据本发明实施例的代理服务数据的传输监测方法的流程图。 [0023] FIG. 1 is a flowchart of a method of monitoring transmission proxy service data according to embodiments of the present invention. 如图1所示,该方法包括以下步骤: As shown in FIG 1, the method comprising the steps of:

[0024] 步骤S101,获取源服务与目标服务之间传输的报文数据。 [0024] In step S101, the acquired packet data transmission between the source and destination services.

[0025] 源服务通常是客户机结构,例如,微型计算机或工作站等。 [0025] typically a client service source configuration, like for example, a microcomputer or a workstation. 目标服务通常是远程服务器结构。 Services are often remote target server architecture. 源服务可以通过有线方式或无线方式连接至目标服务,向目标服务发起请求,目标服务根据源服务发送的请求做出相应的响应。 Source service may be connected by wired or wireless manner to the target service, initiating the service request to the target, the target service respond accordingly sent according to the service request source. 在请求与响应的过程中,通常使用代理服务做缓冲,代理服务介于源服务与目标服务之间,一般情况下是一台服务器。 In response to the request process is generally used to make the buffer agent service, proxy services between source and destination services, generally is a server. 当源服务与目标服务之间存在代理服务时,源服务不是直接向目标服务发送请求报文,而是将请求报文发送至代理服务,代理服务根据该请求报文调用相应的目标服务,目标服务根据请求报文进行响应,向代理服务发送响应报文,代理服务再将该响应报文传回至源服务。 When there is a proxy service between a source and destination services, the service source is not directly send the service request message to the target, but the request message to the proxy service, proxy service according to the request packet service call to the corresponding target, target The service request packets in response, sends a response message to the proxy service, then the proxy service response message returned to the source service. 在源服务与目标服务之间传输报文数据的过程中,若任一流程发生了异常,代理服务会都会中止当前流程,转至异常流程进行处理,该流程会产生一个异常报文,同样地,代理服务可以获取该异常报文。 Between source and destination services during the transmission of the message data, if any abnormality occurs in a flow, will abort the current proxy service will flow, the flow proceeds go exception process, this process will generate an exception message, in the same manner , the proxy service can get the exception message.

[0026] 源服务与目标服务之间传输的报文数据通常包含一个可扩展标记语言(Extensible Markup Language,简称XML)文件。 [0026] The transmission between source and destination services message data typically comprises an extensible markup language (Extensible Markup Language, abbreviated XML) file. 标记是指计算机能够理解的信息符号,通过标记,计算机之间可以处理包含各种信息的数据。 Tag information symbol refers to a computer can be appreciated, by labeling, it may process data with various information between computers. XML文件是用来标记数据以及定义数据类型的,该文件能够提供一种统一的方法来描述独立于程序或供应商的结构化数据,是一种跨平台的技术,能够简化网络中的数据传输。 XML is used to tag the data file and the data type is defined, the document can provide a uniform method is described independent of the program vendor or the structured data is a cross-platform technique, it is possible to simplify the data transmission network . 报文数据中的XML文件可以作为一个参数,代理服务可以监测到自身的传输报文数据的管道流中有XML文件。 XML message data file can be used as a parameter, the agent service can monitor their pipeline transport stream packets of data packets have an XML file. 该XML文件可以作为一个参数调用监测系统,此时,该XML文件可以视为监测系统的接口文件,监测系统监测到代理服务中有XML文件时开始工作,获取该报文数据。 The XML file can call the monitoring system as a parameter, this time, the XML file can be viewed as an interface file monitoring system, monitoring system to monitor agency services when there is an XML file to begin work to get the message data.

[0027] 步骤S102,解析报文数据以分别提取报文数据中的多种类型数据。 [0027] step S102, the parsed data packets to a plurality of types of data packets are extracted.

[0028] 代理服务可以对源服务和目标服务之间传输的报文数据中的XML文件进行解析,得到该报文数据的上下文数据。 [0028] proxy service can parse the message data transmission between the source and destination services in the XML file, obtain context data packet data. 该报文数据包括源服务发送至目标服务的请求报文数据,目标服务发送至源服务的响应报文数据以及源服务和目标服务之间传输数据时发生异常的异常数据等。 Occurrence of abnormality such as abnormality data in the packet data source comprises a data services request packets sent to the target service, data packets sent to the target service and a transmission between the source and destination services in response to service message when the data source. 该上下文数据可以包含源服务的标识,目标服务的标识以及报文数据所调用的业务的标识等关键信息。 The context data may include identification of the source services, key information identifies the target service and identifying the data packets called by the business and so on. 当获取源服务与目标服务之间传输的报文数据之后,代理服务可以提取出报文数据的XML文件中的关键信息。 After acquiring the packet data transmission between the source and destination services, agency services can extract key information in the XML file in the message data.

[0029] 步骤S103,基于多种类型数据对代理服务数据的传输进行监测。 [0029] step S103, the plurality of types of data based on monitoring of the service data transfer agent.

[0030] 在代理服务提取出报文数据的XML文件中的关键信息之后,监测系统可以将这些关键信息转换为自身的存储格式,存储在监测系统的内存或硬盘中。 After the [0030] XML file to extract key information packet data in the proxy service, the monitoring system can convert these critical information for their own storage format, memory or hard disk storage in the monitoring system. 当用户对历史数据或实时数据有查询的需求时,可以向监测系统输入查询指令,查询存储在监测系统中的历史报文数据或实时报文数据的关键信息,以得知某传输过程的请求报文、响应报文或异常报文。 When a user needs to query historical data or real-time data, you can enter a query instruction to the monitoring system, the key message data query historical information stored in the monitoring system or real-time packet data, to request that a transfer process packets, response packets or abnormal packets. 也可以计算出代理服务中传输数据的统计信息,例如,某段时间的异常发生的次数,源服务向目标服务请求的每种业务种类次数统计,目标服务成功响应的次数等。 Statistical information can also be calculated in the proxy service for transmitting data, e.g., count occurrence of certain period of time, the number of sources for each type of business service request to the target service statistics, the number of times of success response target service. 通过代理服务实时的获取源服务与目标服务之间传输的数据,解析并存储关键信息以备查询或统计,达到了实现对代理服务中传输的数据进行监测的目的。 Agency services available through real-time data transmission between the source and destination services, parse and store critical information for future reference or statistical, to achieve the purpose of data transfer agency services to monitor.

[0031] 本发明实施例提供的代理服务数据的传输监测方法,通过获取源服务与目标服务之间传输的报文数据;解析报文数据以分别提取报文数据中的多种类型数据;以及基于多种类型数据对代理服务数据的传输进行监测,解决了相关技术中不能对代理服务中传输的数据进行实时监测的问题,解决了相关技术中不能对代理服务中传输的数据进行实时监测的问题,进而达到了对代理服务中传输的数据进行实时监测效果。 [0031] Monitoring Agent service data transmission according to an embodiment of the present invention, by obtaining the transmission between the source and destination services data message; parsing data packets in a plurality of types of data were extracted from the data packet; and based on various types of data transfer agency services for data monitoring, can not solve the problem of real-time monitoring of the data transfer agency services in the related art, can not solve the data transfer agency services in real-time monitoring of the related art question, therefore enabling data transfer agency services in real-time monitoring results.

[0032] 优选地,报文数据包括请求报文数据、响应报文数据和异常报文数据,解析报文数据以分别提取报文数据中的多种类型数据包括:解析源服务发送至目标服务的请求报文数据,得到第一类型数据;解析目标服务发送至源服务的响应报文数据,得到第二类型数据;以及解析源服务与目标服务之间传输报文数据的过程中存在异常时的异常报文数据,得到第三类型数据。 [0032] Preferably, the message data comprises a data request packet, response packet data and abnormal data packet, parses the packet data to a plurality of types of data were extracted from the packet data comprises: parsing the source to the target service transmits the service a data request packet to obtain a first data type; and when there is an abnormality between the source and destination services resolved during the transmission of packet data; parsing the target service response message transmitted to the data source service, the second type of data obtained abnormal message data, to obtain a third data type.

[0033] 当源服务与目标服务之间存在代理服务时,源服务将请求报文发送至代理服务的请求通道,代理服务解析该请求报文数据,得到该请求报文的XML文件,提取出XML文件中的关键信息,例如,源服务的标识,目标服务的标识以及报文数据所调用的业务的标识等。 [0033] When there is a proxy service between a source and destination services, the service source request packet to request proxy service channel, the service resolving agent data request packet, the request packet to obtain the XML file, extract the key information in the XML file, for example, identify the source of the service, the identity of the target service and packet data calls business logo. 代理服务在解析完请求报文数据之后,根据该请求报文调用相应的目标服务,或者代理服务的解析流程与发送请求报文到相应的目标服务的流程是异步进行的,异步可以提高数据传输的效率。 Resolution process and transmission proxy service after completion of the resolution request message data, according to the request packet calls the corresponding target service, or proxy service request message to the corresponding target service process is asynchronous, asynchronous increased data transmission s efficiency. 目标服务接收到请求报文后,根据请求报文请求的业务进行响应,向代理服务发送响应报文,代理服务解析该响应报文数据,得到该响应报文的XML文件,提取出XML文件中的关键信息,例如,源服务的标识,目标服务的标识以及报文数据所调用的业务的标识,目标服务对源服务调用的业务的响应时间等。 After the target service receiving the request message, according to the request message request service response, sends a response message, the proxy service parses the response packet data to the proxy service, to obtain the response message XML file, extract the XML file key information, such as identifying the source of the service, the identity of the target service and packet data service call identification, source target service business service call response time. 代理服务在解析完响应报文数据之后,将该响应报文传回至源服务,或者代理服务的解析流程与发送响应报文到源服务的流程是异步进行的。 After completion of the service agent to parse the response data packet, the response packet is returned to the source service, or proxy service analysis process and sends a response message to the service flow source is asynchronous. 在源服务与目标服务之间传输报文数据的过程中,若任一流程发生了异常,代理服务会都会中止当前流程,转至异常流程进行处理,该流程会产生一个异常报文,同样地,代理服务可以获取并解析该异常报文,得到异常类型,调用的业务类型等关键信息。 Between source and destination services during the transmission of the message data, if any abnormality occurs in a flow, will abort the current proxy service will flow, the flow proceeds go exception process, this process will generate an exception message, in the same manner , agency services can obtain and resolve the exception message, get the exception type, service type called key information.

[0034] 优选地,基于多种类型数据对代理服务数据的传输进行监测包括:分别存储第一类型数据、第二类型数据和第三类型数据。 [0034] Preferably, based on various types of data including monitoring data transmission proxy service: store a first type of data, the second type of data and the third data type.

[0035] 在代理服务提取出请求报文数据、响应报文数据、异常报文数据的XML文件中的关键信息之后,可以将这些关键信息存储在监测系统的内存或硬盘中,作为历史数据进行保存,以备调用或统计。 [0035] extraction agent service a request packet data, the response packet data, after the key information in the XML file abnormal message data may be critical information stored in the monitoring system's memory or hard disk, make as historical data Retain for calls or statistics.

[0036] 优选地,在解析报文数据以分别提取报文数据中多种类型的数据之后,方法包括:将多种类型的数据转换为统一格式的数据。 After [0036] Preferably, parsing data packets in data packets to a plurality of types of data are extracted, the method comprising: converting a plurality of types of data are unified data format.

[0037] 在代理服务提取出请求报文数据、响应报文数据、异常报文数据的XML文件中的关键信息之后,监测系统可以将这些关键信息转换为自身的存储格式,存储在监测系统的内存或硬盘中,作为历史数据进行保存,以备调用或统计。 [0037] The extraction agent service the request packet data, the response packet data, after the key information in the XML file abnormal message data, the monitoring system may convert key information for their own storage format, is stored in the monitoring system memory or hard disk, as historical data, saved, or call statistics.

[0038] 优选地,基于多种类型数据对代理服务数据的传输进行监测包括:接收查询请求;根据查询请求在监测系统中查找出对应的多种类型数据作为查找结果;根据预设条件将查找结果转换为显示结果;以及显示显示结果。 [0038] Preferably, a plurality of types of data based on monitoring data includes transmitting proxy service: receiving a query request; lookup according to a query request in the monitoring system of the corresponding plurality of types of data as a search result; finds according to preset conditions result into a display result; and displaying the results.

[0039]当用户对历史数据或实时数据有查询的需求时,可以向监测系统输入查询指令,该查询指令可以是查询某目标服务在某一时间段之内的所有响应的关键信息,也可以是查询某一段时间之内源服务与目标服务之间传输数据的过程中发生异常的关键信息。 [0039] When a user needs to query historical data or real-time data, you can enter a query instruction to the monitoring system, the query instruction may be a key objective information inquiry service all responses within a certain time period, you can also information is the key exception occurred query transmission between the source and destination services data within a certain period of time in the process. 监测系统根据该查询指令查询存储在监测系统中的历史报文数据或实时报文数据的关键信息,获得对应的以监测系统存储格式存储的报文数据的关键信息。 Monitoring system queries the history of critical information stored message data in the monitoring system or real-time packet data in accordance with the query instruction, access to critical information storage system storage format to monitor the corresponding message data. 用户可以预先设置显示的格式和内容,也可以根据出厂设置显示查询结果显示的格式和内容,根据该设置显示出查询的结果。 The user may set in advance the display format and content, format and content may be displayed in search results display factory setting, based on the results of a query to set the display. 通过此步骤,可以对代理服务中的历史传输数据进行分析,也可以查询代理服务实时的传输数据,监测代理服务中数据传输的当前状态。 This step can be carried out on historical data transfer agency services in the analysis, it can query the proxy service real-time transmission of data, the current condition monitoring agency services in data transmission.

[0040] 优选地,基于多种类型数据对代理服务数据的传输进行监测包括:统计多种类型数据的预设信息,得到监测统计数据;在接收查询请求之后,方法还包括:根据查询请求在监测系统中查找出对应的监测统计数据作为查找结果。 [0040] Preferably, based on various types of data including monitoring data transmission proxy service: Statistics plurality of preset information types of data, statistical data monitored; after receiving the query request, the method further comprising: according to a query request in monitoring system to find out the corresponding monitoring statistics as a search result.

[0041] 监测系统可以计算出代理服务中传输数据的统计信息,例如,某段时间的异常发生的次数,源服务向目标服务请求的每种业务种类次数统计,目标服务成功响应的次数等。 [0041] The monitoring system can calculate the statistical information in the proxy service for transmitting data, e.g., count occurrence of certain period of time, the number of sources for each type of business service request to the target service statistics, the number of times of success response target service. 通过代理服务实时的获取源服务与目标服务之间传输的数据,解析并存储关键信息以备查询或统计,达到了实现对代理服务中传输的数据进行监测的目的。 Agency services available through real-time data transmission between the source and destination services, parse and store critical information for future reference or statistical, to achieve the purpose of data transfer agency services to monitor. 统计信息可以保存在监测系统中,以备用户查询,用户可以根据查询结果对历史数据进行分析。 Statistical information can be stored in the monitoring system, to prepare for a user query, the user can analyze historical data based on the query results.

[0042] 需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。 [0042] It should be noted that the steps illustrated in the flowchart drawings can be executed on a computer system such as a set of executable instructions, and, although in the flowchart shown in a logical order, but in some case, the steps shown or may be performed in a different order than described herein.

[0043] 本发明的实施例还提供了一种代理服务数据的传输监测装置。 [0043] Example embodiments of the present invention further provides an apparatus for monitoring transmission proxy service data. 需要说明的是,本发明实施例的代理服务数据的传输监测装置可以用于执行本发明的代理服务数据的传输监测方法。 It should be noted that the proxy service data transmission monitoring apparatus of the embodiment of the present invention can be used to transmit data of the service execution agent monitoring method according to the present invention.

[0044]图2是本发明实施例的代理服务数据的传输监测装置的示意图。 [0044] FIG. 2 is a schematic view of the transmission monitoring device proxy service data according to embodiments of the present invention. 如图2所示,该装置包括:获取单元10,解析单元20和监测单元30。 2, the apparatus comprising: an acquisition unit 10, analytical unit 20 and monitoring unit 30.

[0045] 获取单元10,用于获取源服务与目标服务之间传输的报文数据。 [0045] The acquisition unit 10 for acquiring the packet data transmission between source and target service.

[0046] 获取单元10可以是监测系统的一个接口,用于获取源服务与目标服务之间传输的报文数据。 [0046] The acquisition unit 10 may be an interface to a monitoring system for acquiring transmission between source and destination services of data packets. 源服务与目标服务之间传输的报文数据通常包含一个XML文件。 Transmission of data packets between the source and destination services usually contains an XML file. 该XML文件可以作为一个参数调用监测系统,此时,该XML文件可以视为监测系统的接口文件,监测系统监测到代理服务中有XML文件时开始工作,获取该报文数据。 The XML file can call the monitoring system as a parameter, this time, the XML file can be viewed as an interface file monitoring system, monitoring system to monitor agency services when there is an XML file to begin work to get the message data.

[0047] 解析单元20,用于解析报文数据以分别提取报文数据中的多种类型数据。 [0047] The parsing unit 20 for parsing data packets were extracted from a plurality of types of data packets.

[0048] 代理服务可以对源服务和目标服务之间传输的报文数据中的XML文件进行解析,得到该报文数据的上下文数据。 [0048] proxy service can parse the message data transmission between the source and destination services in the XML file, obtain context data packet data. 该上下文数据可以包含源服务的标识,目标服务的标识以及报文数据所调用的业务的标识等关键信息。 The context data may include identification of the source services, key information identifies the target service and identifying the data packets called by the business and so on. 当获取源服务与目标服务之间传输的报文数据之后,代理服务可以提取出报文数据的XML文件中的关键信息。 After acquiring the packet data transmission between the source and destination services, agency services can extract key information in the XML file in the message data.

[0049] 监测单元30,用于基于多种类型数据对代理服务数据的传输进行监测。 [0049] The monitoring unit 30, a plurality of types of data based on monitoring of the service data transfer agent.

[0050] 在代理服务提取出报文数据的XML文件中的关键信息之后,监测系统可以将这些关键信息转换为自身的存储格式,存储在监测系统的内存或硬盘中。 After the [0050] XML file to extract key information packet data in the proxy service, the monitoring system can convert these critical information for their own storage format, memory or hard disk storage in the monitoring system. 当用户对历史数据或实时数据有查询的需求时,可以向监测系统输入查询指令,查询存储在监测系统中的历史报文数据或实时报文数据的关键信息,以得知某传输过程的请求报文、响应报文或异常报文。 When a user needs to query historical data or real-time data, you can enter a query instruction to the monitoring system, the key message data query historical information stored in the monitoring system or real-time packet data, to request that a transfer process packets, response packets or abnormal packets. 也可以计算出代理服务中传输数据的统计信息,例如,某段时间的异常发生的次数,源服务向目标服务请求的每种业务种类次数统计,目标服务成功响应的次数等。 Statistical information can also be calculated in the proxy service for transmitting data, e.g., count occurrence of certain period of time, the number of sources for each type of business service request to the target service statistics, the number of times of success response target service. 通过代理服务实时的获取源服务与目标服务之间传输的数据,解析并存储关键信息以备查询或统计,达到了实现对代理服务中传输的数据进行监测的目的。 Agency services available through real-time data transmission between the source and destination services, parse and store critical information for future reference or statistical, to achieve the purpose of data transfer agency services to monitor.

[0051] 本发明实施例提供的代理服务数据的传输监测装置,通过获取单元10获取源服务与目标服务之间传输的报文数据;解析单元20解析报文数据以分别提取报文数据中的多种类型数据;以及监测单元30基于多种类型数据对代理服务数据的传输进行监测,解决了相关技术中不能对代理服务中传输的数据进行实时监测的问题,进而达到了对代理服务中传输的数据进行实时监测效果。 [0051] The transmission monitoring apparatus provided in the agent of the present invention the service data, obtain the message data transmission between source and destination services by the acquiring unit 10; parsing unit 20 parses the message data to the message data are extracted in many types of data; and a monitoring unit 30 based on various types of data to monitor data transfer agency services, can not solve the problem of real-time monitoring of the data transfer agency services in the related art, and thus achieve the transfer of proxy service data for real-time monitoring results.

[0052] 优选地,报文数据包括请求报文数据、响应报文数据和异常报文数据,解析单元包括:第一解析模块,用于解析源服务发送至目标服务的请求报文数据,得到第一类型数据;第二解析模块,用于解析目标服务发送至源服务的响应报文数据,得到第二类型数据;以及第三解析模块,用于解析源服务与目标服务之间传输报文数据的过程中存在异常时的异常报文数据,得到第三类型数据。 [0052] Preferably, the message data comprises a data request packet, response packet data and abnormal data packet, parsing unit comprising: a first parsing module, for parsing the source to the target service transmits the service request packet data, to obtain a first type of data; a second parsing module configured to parse the target service response message transmitted to the data source service, to obtain a second data type; and a third parsing module for parsing transmission between source and destination services packet abnormal message data when an abnormality process data to obtain third data type.

[0053] 优选地,监测单元包括:存储模块,用于分别存储第一类型数据、第二类型数据和第三类型数据。 [0053] Preferably, the monitoring unit comprising: a storage module for storing a first type of data, respectively, a second type of data and the third data type.

[0054] 优选地,装置还包括:格式转换单元,用于在解析报文数据以分别提取所述报文数据中多种类型的数据之后,将所述多种类型的数据转换为统一格式的数据。 [0054] Preferably, the apparatus further comprising: a format conversion unit, configured to parse the message data were extracted from the data packet after the plurality of types of data, converting the plurality of types of data in a uniform format data.

[0055] 显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 [0055] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be used general-purpose computing device, they can be integrated in a single computing device or distributed across multiple computing devices available on the Internet, optionally, they can be implemented with program codes executable by a computing device, so that, to be performed by a computing device stored in a storage device, or they are made into integrated circuit modules, or they plurality of modules or steps are manufactured into a single integrated circuit module. 这样,本发明不限制于任何特定的硬件和软件结合。 Thus, the present invention is not limited to any particular hardware and software combination.

[0056] 以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。 [0056] The above description is only preferred embodiments of the present invention, it is not intended to limit the invention to those skilled in the art, the present invention may have various changes and variations. 凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Any modification within the spirit and principle of the present invention, made, equivalent substitutions, improvements, etc., should be included within the scope of the present invention.

Claims (10)

1.一种代理服务数据的传输监测方法,其特征在于,包括: 获取源服务与目标服务之间传输的报文数据; 解析所述报文数据以分别提取所述报文数据中的多种类型数据;以及基于所述多种类型数据对代理服务数据的传输进行监测。 1. A method of monitoring transmission proxy service data, wherein, comprising: acquiring packet data transmission between the source and destination services; parsing the data packet to said plurality of respectively extracting packet data type data; and a transmission proxy service data based on the plurality of types of monitor data.
2.根据权利要求1所述的方法,其特征在于,所述报文数据包括请求报文数据、响应报文数据和异常报文数据,解析所述报文数据以分别提取所述报文数据中的多种类型数据包括: 解析所述源服务发送至所述目标服务的所述请求报文数据,得到第一类型数据; 解析所述目标服务发送至所述源服务的所述响应报文数据,得到第二类型数据;以及解析所述源服务与所述目标服务之间传输所述报文数据的过程中存在异常时的所述异常报文数据,得到第三类型数据。 2. The method according to claim 1, wherein said data packet comprises a data request packet, response packet data and abnormal data packet, parsing the data packet to extract the packet data, respectively the plurality of types of data comprises: parsing the source to send the service request to the target service data packet to obtain a first type of data; parsing the target service to send the response packet service source data, to obtain a second type of data; and a transmission process of parsing the service packet between the source and the target service data exists in the abnormality when an abnormality message data, to obtain a third data type.
3.根据权利要求2所述的方法,其特征在于,基于所述多种类型数据对代理服务数据的传输进行监测包括: 分别存储所述第一类型数据、所述第二类型数据和所述第三类型数据。 3. The method according to claim 2, wherein the monitoring comprises transmitting proxy service data based on the plurality of types of data: the first type of data store, and the second type of the data The third type of data.
4.根据权利要求1所述的方法,其特征在于,在解析所述报文数据以分别提取所述报文数据中多种类型的数据之后,所述方法还包括: 将所述多种类型的数据转换为统一格式的数据。 4. The method according to claim 1, characterized in that, after parsing the data packet to extract the packet data, respectively, in a plurality of types of data, the method further comprising: the plurality of types data into a unified data format.
5.根据权利要求1所述的方法,其特征在于,基于所述多种类型数据对代理服务数据的传输进行监测包括: 接收查询请求; 根据所述查询请求在所述监测系统中查找出对应的所述多种类型数据作为查找结果; 根据预设条件将所述查找结果转换为显示结果;以及显示所述显示结果。 5. The method according to claim 1, wherein the monitoring comprises a transmission proxy service data based on the plurality of types of data: receiving a query request; corresponds to find out the monitoring system according to the query request the plurality of types of data as a search result; a preset condition according to the search results into a display result; display and displaying the result.
6.根据权利要求5所述的方法,其特征在于,基于所述多种类型数据对代理服务数据的传输进行监测包括: 统计所述多种类型数据的预设信息,得到监测统计数据; 在接收查询请求之后,所述方法还包括: 根据所述查询请求在所述监测系统中查找出对应的所述监测统计数据作为所述查找结果。 6. The method as claimed in claim 5, wherein the monitoring comprises a transmission proxy service data based on the plurality of types of data: Statistical information of the plurality of predetermined types of data, statistical data monitored; in after receiving the query request, the method further comprising: according to the query request to find the monitoring system the monitoring the corresponding statistical data as the search result.
7.—种代理服务数据的传输监测装置,其特征在于,包括: 获取单元,用于获取源服务与目标服务之间传输的报文数据; 解析单元,用于解析所述报文数据以分别提取所述报文数据中的多种类型数据;以及监测单元,用于基于所述多种类型数据对代理服务数据的传输进行监测。 7.- species proxy service data transmission monitoring apparatus, characterized by comprising: an acquisition unit for acquiring transmission between source and destination services message data; parsing unit configured to parse the packet data, respectively extracting the plurality of types of data in the data packet; and a monitoring unit for monitoring transmission data based on the proxy service plurality of types of data.
8.根据权利要求7所述的装置,其特征在于,所述解析单元包括: 第一解析模块,用于解析所述源服务发送至所述目标服务的所述请求报文数据,得到第一类型数据; 第二解析模块,用于解析所述目标服务发送至所述源服务的所述响应报文数据,得到第二类型数据;以及第三解析模块,用于解析所述源服务与所述目标服务之间传输所述报文数据的过程中存在异常时的所述异常报文数据,得到第三类型数据。 8. The apparatus according to claim 7, characterized in that the parsing means comprises: a first parsing module configured to parse the source to send the service request to the target service data packet, to obtain a first type data; a second parsing module configured to parse the target service transmits the response message to the data source service, to obtain a second data type; and a third parsing module configured to parse the source of the service and the process serving the transfer between said target packet data when there is an abnormality in the abnormality data packet, to obtain a third data type.
9.根据权利要求8所述的装置,其特征在于,所述监测单元包括: 存储模块,用于分别存储所述第一类型数据、所述第二类型数据和所述第三类型数据。 9. The apparatus according to claim 8, wherein the monitoring unit comprises: a storage means for respectively storing the first data type, the second type data and the third data type.
10.根据权利要求7所述的装置,其特征在于,所述装置还包括: 格式转换单元,用于在解析所述报文数据以分别提取所述报文数据中多种类型的数据之后,将所述多种类型的数据转换为统一格式的数据。 10. The apparatus according to claim 7, wherein said apparatus further comprises: format conversion means for, after parsing the data packet to extract the packet data, respectively, in a plurality of types of data, converting the plurality of types of data are unified data format.
CN201510596102.9A 2015-09-17 2015-09-17 Method and apparatus for monitoring transmission of proxy service data CN105281976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510596102.9A CN105281976A (en) 2015-09-17 2015-09-17 Method and apparatus for monitoring transmission of proxy service data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510596102.9A CN105281976A (en) 2015-09-17 2015-09-17 Method and apparatus for monitoring transmission of proxy service data

Publications (1)

Publication Number Publication Date
CN105281976A true CN105281976A (en) 2016-01-27

Family

ID=55150345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510596102.9A CN105281976A (en) 2015-09-17 2015-09-17 Method and apparatus for monitoring transmission of proxy service data

Country Status (1)

Country Link
CN (1) CN105281976A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805373A (en) * 2005-01-12 2006-07-19 国际商业机器公司 System and method for management nonapplication specific errors in network
US20080040094A1 (en) * 2006-08-08 2008-02-14 Employease, Inc. Proxy For Real Time Translation of Source Objects Between A Server And A Client
CN101799751A (en) * 2009-12-02 2010-08-11 山东浪潮齐鲁软件产业股份有限公司 Method for building monitoring agent software of host machine
CN102624920A (en) * 2012-03-31 2012-08-01 奇智软件(北京)有限公司 Method and device for performing access through proxy server
CN103595559A (en) * 2013-11-05 2014-02-19 深圳市远行科技有限公司 System and method for transmitting big data and service system thereof
CN103605020A (en) * 2013-11-14 2014-02-26 广东电网公司电力科学研究院 Processing method and apparatus for electric energy quality data
CN104410675A (en) * 2014-11-12 2015-03-11 北京奇虎科技有限公司 Data transmission method, data system and related devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805373A (en) * 2005-01-12 2006-07-19 国际商业机器公司 System and method for management nonapplication specific errors in network
US20080040094A1 (en) * 2006-08-08 2008-02-14 Employease, Inc. Proxy For Real Time Translation of Source Objects Between A Server And A Client
CN101799751A (en) * 2009-12-02 2010-08-11 山东浪潮齐鲁软件产业股份有限公司 Method for building monitoring agent software of host machine
CN102624920A (en) * 2012-03-31 2012-08-01 奇智软件(北京)有限公司 Method and device for performing access through proxy server
CN103595559A (en) * 2013-11-05 2014-02-19 深圳市远行科技有限公司 System and method for transmitting big data and service system thereof
CN103605020A (en) * 2013-11-14 2014-02-26 广东电网公司电力科学研究院 Processing method and apparatus for electric energy quality data
CN104410675A (en) * 2014-11-12 2015-03-11 北京奇虎科技有限公司 Data transmission method, data system and related devices

Similar Documents

Publication Publication Date Title
US8266097B2 (en) System analysis program, system analysis method, and system analysis apparatus
US7685270B1 (en) Method and apparatus for measuring latency in web services
US10404556B2 (en) Methods and computer program products for correlation analysis of network traffic in a network device
KR100943012B1 (en) Merging multi-line log entries
US20120297059A1 (en) Automated creation of monitoring configuration templates for cloud server images
US9015278B2 (en) Transaction correlation using three way handshake
CA2816069C (en) Data loss monitoring of partial data streams
CN101997925A (en) Server monitoring method with early warning function and system thereof
CN101131747A (en) Method, device and system for catching and/or analyzing Web page events at client terminal
CN103095819A (en) Data information pushing method and data information pushing system
KR101327317B1 (en) Apparatus and method for sap application traffic analysis and monitoring, and the information protection system thereof
CN101316226A (en) Method, device and system for acquiring resources
US9037555B2 (en) Asynchronous collection and correlation of trace and communications event data
US9100291B2 (en) Systems and methods for extracting structured application data from a communications link
CN103297270A (en) Application type recognition method and network equipment
US7991827B1 (en) Network analysis system and method utilizing collected metadata
US7647530B2 (en) Network fault pattern analyzer
CN103763337A (en) Mobile terminal, server and corresponding methods
US9767291B2 (en) Systems and methods for security and risk assessment and testing of applications
US9571373B2 (en) System and method for combining server side and network side transaction tracing and measurement data at the granularity level of individual transactions
US20100017486A1 (en) System analyzing program, system analyzing apparatus, and system analyzing method
US20130191890A1 (en) Method and system for user identity recognition based on specific information
CN102158355A (en) Log event correlation analysis method and device capable of concurrent and interrupted analysis
US9633106B1 (en) Log data analysis
CN101375253B (en) System and method to resolve an identity interactively

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination