CN106330563B - A kind of method and device of determining Intranet http communication stream service type - Google Patents

A kind of method and device of determining Intranet http communication stream service type Download PDF

Info

Publication number
CN106330563B
CN106330563B CN201610787223.6A CN201610787223A CN106330563B CN 106330563 B CN106330563 B CN 106330563B CN 201610787223 A CN201610787223 A CN 201610787223A CN 106330563 B CN106330563 B CN 106330563B
Authority
CN
China
Prior art keywords
service
stream
url
http
communication flow
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610787223.6A
Other languages
Chinese (zh)
Other versions
CN106330563A (en
Inventor
徐牧池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nsfocus Technologies Inc
Nsfocus Technologies Group Co Ltd
Original Assignee
NSFOCUS Information Technology Co Ltd
Beijing NSFocus Information Security Technology Co Ltd
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 NSFOCUS Information Technology Co Ltd, Beijing NSFocus Information Security Technology Co Ltd filed Critical NSFOCUS Information Technology Co Ltd
Priority to CN201610787223.6A priority Critical patent/CN106330563B/en
Publication of CN106330563A publication Critical patent/CN106330563A/en
Application granted granted Critical
Publication of CN106330563B publication Critical patent/CN106330563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/508Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明涉及计算机技术领域,尤其涉及一种确定内网HTTP通信流服务类型的方法及装置,包括:解析HTTP通信流得到URL,判断是否满足触发条件,若满足,则判断当前时间与最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;若不小于,表明最有效服务通信流列表中的HTTP通信流趋于稳定,则解析出最有效服务通信流列表中的HTTP通信流的服务类型和服务标志信息,并建立识别规则。本发明实施例,从大量通信流中筛选出部分最有效服务通信流来建立识别规则,从而实现了自动化的对内部网络中HTTP通信流中的有效服务完成识别,在无人工参与情况下可以有效管控内部网络中的HTTP通信流。

The present invention relates to the field of computer technology, in particular to a method and device for determining the type of intranet HTTP communication flow service. Whether the difference between the update time of the communication flow list is not less than the update time threshold; if it is not less than, it indicates that the HTTP communication flow in the most effective service communication flow list tends to be stable, then parse out the HTTP communication flow in the most effective service communication flow list service type and service logo information, and establish identification rules. In the embodiment of the present invention, some of the most effective service communication flows are selected from a large number of communication flows to establish identification rules, thereby realizing the automatic identification of effective services in the HTTP communication flow in the internal network, which can be effectively performed without manual participation. Control HTTP communication flow in the internal network.

Description

一种确定内网HTTP通信流服务类型的方法及装置A method and device for determining the service type of intranet HTTP communication flow

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种确定内网HTTP通信流服务类型的方法及装置。The invention relates to the technical field of communication, in particular to a method and a device for determining the service type of an intranet HTTP communication flow.

背景技术Background technique

当前对HTTP(HyperText Transfer Protocol,超文本传输协议)通信流对应的服务类型的识别都偏重于对公网流量的识别,而内网中HTTP通信流因差异性大,目前在无人工参与情况下一般只能做基础应用协议的服务类型识别,例如将内网中HTTP通信流识别为HTTP上传协议类型的服务,或者是将内网中HTTP通信流识别为HTTP下载协议类型的服务。At present, the identification of service types corresponding to HTTP (HyperText Transfer Protocol, hypertext transfer protocol) communication flow is more focused on the identification of public network traffic, and the HTTP communication flow in the intranet is very different, so it is currently possible to use it without manual participation. Generally, it can only identify the service type of the basic application protocol, such as identifying the HTTP communication flow in the intranet as a service of the HTTP upload protocol type, or identifying the HTTP communication flow in the intranet as a service of the HTTP download protocol type.

如果想要获取内网中HTTP通信流对应的服务类型的精确信息,一般可以选择预先建立好HTTP通信流与服务类型之间的识别规则,但由于实际应用中HTTP通信流的类型的总数量较大,如果对每种HTTP通信流都建立一个HTTP通信流与服务类型之间的识别规则,则将会造成应用识别规则列表中识别规则数量较大,因而一般还需要人工参与,去除其中的一些无效服务,造成现有技术在无人工参与情况下对内网中服务的管控力度较差。If you want to obtain accurate information about the service type corresponding to the HTTP communication flow in the intranet, you can generally choose to establish the identification rules between the HTTP communication flow and the service type in advance. If an identification rule between HTTP communication flow and service type is established for each HTTP communication flow, the number of identification rules in the application identification rule list will be large, so manual participation is generally required to remove some of them. Ineffective services, resulting in poor control of services in the intranet in the prior art without manual participation.

综上所述,现有技术下在无人工参与情况下无法有效管控内部网络中的HTTP通信流,对内网HTTP通信流对应服务类型的识别比较困难。To sum up, the prior art cannot effectively control the HTTP communication flow in the internal network without manual participation, and it is difficult to identify the service type corresponding to the HTTP communication flow in the internal network.

发明内容Contents of the invention

本发明提供一种确定HTTP通信流识别方法及装置,用以解决现有技术中存在的在无人工参与情况下无法有效管控内部网络中的HTTP通信流,对内网HTTP通信流对应服务类型的识别比较困难的技术问题。The present invention provides a method and device for determining HTTP communication flow identification, which is used to solve the problem in the prior art that the HTTP communication flow in the internal network cannot be effectively controlled without manual participation, and the service type corresponding to the HTTP communication flow in the internal network is solved. Identify more difficult technical issues.

一方面,本发明实施例提供一种确定内网HTTP通信流服务类型的方法,包括:On the one hand, the embodiment of the present invention provides a method for determining the type of intranet HTTP communication flow service, including:

解析获取的HTTP通信流,得到所述HTTP通信流的URL;Analyzing the obtained HTTP communication flow to obtain the URL of the HTTP communication flow;

判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同,所述最有效服务通信流列表为根据历史HTTP通信流中访问量排名最高的前N个URL得到的;Judging whether the URL of the HTTP communication flow is the same as the URL stored in the preset position in the most effective service communication flow list, the most effective service communication flow list is obtained according to the top N URLs with the highest traffic ranking in the historical HTTP communication flow of;

若确定所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL相同,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;If it is determined that the URL of the HTTP communication flow is identical to the URL stored in the preset position in the most effective service communication flow list, then it is judged whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold ;

若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值不小于所述更新时间阈值,则将所述最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流;If it is determined that the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold, then use the HTTP communication flow corresponding to the URL in the most effective service communication flow list as the target communication flow the target communication flow in the list;

针对所述目标通信流列表中的任一个目标通信流,解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表,所述服务标识信息和服务类型的应用识别规则列表用于为待识别的HTTP通信流确定所述待识别的HTTP通信流的服务类型。For any target communication flow in the target communication flow list, analyze the target communication flow, obtain the identification rule of the service type and service identification information of the target communication flow, and add it to the application identification of the service identification information and service type The rule list, the service identification information and the service type application identification rule list are used to determine the service type of the HTTP communication flow to be identified for the HTTP communication flow to be identified.

可选地,所述得到所述HTTP通信流的URL之后,还包括:Optionally, after obtaining the URL of the HTTP communication flow, it also includes:

确定有效服务通信流列表包含所述HTTP通信流的URL对应的服务,并将所述有效服务通信流列表中所述HTTP通信流的URL对应的服务的访问量加一,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量。Determine that the effective service communication flow list includes the service corresponding to the URL of the HTTP communication flow, and add one to the visit volume of the service corresponding to the URL of the HTTP communication flow in the effective service communication flow list, and the effective service communication flow The list is used to store the URLs of all valid service communication flows in the intranet and the visits of services corresponding to the URLs of all valid service communication flows.

可选地,所述得到所述HTTP通信流的URL之后,还包括:Optionally, after obtaining the URL of the HTTP communication flow, it also includes:

确定有效服务通信流列表不包含所述HTTP通信流的URL对应的服务,且确定所述HTTP通信流的URL对应的服务是有效服务,并将所述HTTP通信流的URL及所述HTTP通信流的URL对应的服务添加至所述有效服务通信流列表,所述有效服务是指对服务的不同的访问者的数量大于预设访问者阈值的服务,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量。Determining that the valid service communication flow list does not include the service corresponding to the URL of the HTTP communication flow, and determining that the service corresponding to the URL of the HTTP communication flow is a valid service, and combining the URL of the HTTP communication flow and the HTTP communication flow The service corresponding to the URL is added to the effective service communication flow list. The effective service refers to the service whose number of different visitors to the service is greater than the preset visitor threshold. The effective service communication flow list is used to store The URLs of all valid service communication flows in the network and the service visits corresponding to the URLs of all valid service communication flows.

可选地,所述确定所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL相同之后,还包括:Optionally, after determining that the URL of the HTTP communication flow is the same as the URL stored in a preset location in the most effective service communication flow list, the method further includes:

若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值小于所述更新时间阈值,则获取所述有效服务通信流列表中访问量排名最高的前N个URL作为目标URL;If it is determined that the difference between the current time and the update time of the most effective service communication flow list is less than the update time threshold, obtain the top N URLs with the highest traffic ranking in the effective service communication flow list as target URLs ;

若获取的所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL不完全相同,则根据所述目标URL,更新所述最有效服务通信流列表,以及根据所述当前时间更新所述最有效服务通信流列表的更新时间。If the obtained target URL is not exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, update the most effective service communication flow list according to the target URL, and update the most effective service communication flow list according to the current time Updating the update time of the most effective service communication flow list.

可选地,判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同之前,还包括:Optionally, before judging whether the URL of the HTTP communication flow is the same as the URL stored in a preset position in the most effective service communication flow list, it also includes:

确定所述HTTP通信流的URL对应的服务不是噪声服务。It is determined that the service corresponding to the URL of the HTTP communication flow is not a noise service.

可选地,若满足下列部分或全部条件,则将所述HTTP通信流的URL对应的服务确定为噪声服务:Optionally, if some or all of the following conditions are met, the service corresponding to the URL of the HTTP communication flow is determined to be a noise service:

所述HTTP通信流的首个请求报文中包含请求参数、所述HTTP通信流的URL中包含预设的异常字符、所述HTTP通信流的URL中包含图片类型关键词。The first request message of the HTTP communication flow includes request parameters, the URL of the HTTP communication flow includes preset abnormal characters, and the URL of the HTTP communication flow includes image type keywords.

可选地,所述解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表之后,还包括:Optionally, after parsing the target communication flow, obtaining the service type of the target communication flow and identification rules for service identification information and adding them to the list of application identification rules for service identification information and service types, the method further includes:

获取第一待识别HTTP通信流;Obtain the first HTTP communication flow to be identified;

解析出所述第一待识别HTTP通信流中的服务标识信息;Parsing out the service identification information in the first HTTP communication flow to be identified;

根据所述服务标识信息与服务类型的应用识别规则列表,确定所述第一待识别HTTP通信流所对应的服务类型。The service type corresponding to the first HTTP communication flow to be identified is determined according to the service identification information and the application identification rule list of the service type.

可选地,所述解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则,包括:Optionally, the parsing the target communication flow to obtain the identification rules of the service type and service identification information of the target communication flow includes:

解析所述目标通信流,得到所述目标通信流中的回应报文及服务标识信息;Analyzing the target communication flow to obtain the response message and service identification information in the target communication flow;

解析所述回应报文,得到所述目标通信流的服务类型;Analyzing the response message to obtain the service type of the target communication flow;

根据所述目标通信流的服务类型及所述服务标识信息,得到所述目标通信流的服务类型和服务标识信息的识别规则。According to the service type of the target communication flow and the service identification information, an identification rule for the service type of the target communication flow and the service identification information is obtained.

另一方面,本发明实施例提供一种确定内网HTTP通信流服务类型的装置,包括:On the other hand, an embodiment of the present invention provides a device for determining the type of intranet HTTP communication flow service, including:

解析单元,用于解析获取的HTTP通信流,得到所述HTTP通信流的URL;A parsing unit, configured to parse the obtained HTTP communication flow to obtain the URL of the HTTP communication flow;

判断单元,用于判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同,所述最有效服务通信流列表为根据历史HTTP通信流中访问量排名最高的前N个URL得到的;若确定所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL相同,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;A judging unit, configured to judge whether the URL of the HTTP communication flow is the same as the URL stored in a preset position in the most effective service communication flow list, the most effective service communication flow list is the highest ranking according to the historical HTTP communication flow The first N URLs are obtained; if it is determined that the URL of the HTTP communication flow is the same as the URL stored in the preset position in the most effective service communication flow list, then judge the difference between the current time and the update time of the most effective service communication flow list Whether the value is not less than the update time threshold;

目标通信流确定单元,用于若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值不小于所述更新时间阈值,则将所述最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流;A target communication flow determining unit, configured to match the URL in the most effective service communication flow list to The HTTP communication flow of is used as the target communication flow in the target communication flow list;

识别规则设置单元,用于针对所述目标通信流列表中的任一个目标通信流,解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表,所述服务标识信息和服务类型的应用识别规则列表用于为待识别的HTTP通信流确定所述待识别的HTTP通信流的服务类型。An identification rule setting unit, configured to analyze the target communication flow for any target communication flow in the target communication flow list, obtain the identification rules of the service type and service identification information of the target communication flow, and add them to the service identification Information and a service type application identification rule list, the service identification information and service type application identification rule list are used to determine the service type of the HTTP communication flow to be identified for the HTTP communication flow to be identified.

可选地,所述装置还包括访问量设置单元,用于:Optionally, the device further includes a traffic volume setting unit, configured to:

确定有效服务通信流列表包含所述HTTP通信流的URL对应的服务,并将所述有效服务通信流列表中所述HTTP通信流的URL对应的服务的访问量加一,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量。Determine that the effective service communication flow list includes the service corresponding to the URL of the HTTP communication flow, and add one to the visit volume of the service corresponding to the URL of the HTTP communication flow in the effective service communication flow list, and the effective service communication flow The list is used to store the URLs of all valid service communication flows in the intranet and the visits of services corresponding to the URLs of all valid service communication flows.

可选地,所述装置还包括有效服务确定单元,用于:Optionally, the device further includes an effective service determination unit, configured to:

确定有效服务通信流列表不包含所述HTTP通信流的URL对应的服务,且确定所述HTTP通信流的URL对应的服务是有效服务,并将所述HTTP通信流的URL及所述HTTP通信流的URL对应的服务添加至所述有效服务通信流列表,所述有效服务是指对服务的不同的访问者的数量大于预设访问者阈值的服务,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量。Determining that the valid service communication flow list does not include the service corresponding to the URL of the HTTP communication flow, and determining that the service corresponding to the URL of the HTTP communication flow is a valid service, and combining the URL of the HTTP communication flow and the HTTP communication flow The service corresponding to the URL is added to the effective service communication flow list. The effective service refers to the service whose number of different visitors to the service is greater than the preset visitor threshold. The effective service communication flow list is used to store The URLs of all valid service communication flows in the network and the service visits corresponding to the URLs of all valid service communication flows.

可选地,所述装置还包括更新单元,用于:Optionally, the device further includes an updating unit, configured to:

若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值小于所述更新时间阈值,则获取所述有效服务通信流列表中访问量排名最高的前N个URL作为目标URL;If it is determined that the difference between the current time and the update time of the most effective service communication flow list is less than the update time threshold, obtain the top N URLs with the highest traffic ranking in the effective service communication flow list as target URLs ;

若获取的所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL不完全相同,则根据所述目标URL,更新所述最有效服务通信流列表,以及根据所述当前时间更新所述最有效服务通信流列表的更新时间。If the obtained target URL is not exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, update the most effective service communication flow list according to the target URL, and update the most effective service communication flow list according to the current time Updating the update time of the most effective service communication flow list.

可选地,所述装置还包括噪声服务确定单元,用于在判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同之前,确定所述HTTP通信流的URL对应的服务不是噪声服务。Optionally, the device further includes a noisy service determination unit, configured to determine whether the URL of the HTTP communication flow is the same as the URL stored in a preset location in the most effective service communication flow list, before determining whether the URL of the HTTP communication flow is identical. The service corresponding to the URL is not a noise service.

可选地,若满足下列部分或全部条件,则将所述HTTP通信流的URL对应的服务确定为噪声服务:Optionally, if some or all of the following conditions are met, the service corresponding to the URL of the HTTP communication flow is determined to be a noise service:

所述HTTP通信流的首个请求报文中包含请求参数、所述HTTP通信流的URL中包含预设的异常字符、所述HTTP通信流的URL中包含图片类型关键词。The first request message of the HTTP communication flow includes request parameters, the URL of the HTTP communication flow includes preset abnormal characters, and the URL of the HTTP communication flow includes image type keywords.

可选地,所述装置还包括服务类型识别单元,用于:Optionally, the device further includes a service type identification unit, configured to:

获取第一待识别HTTP通信流;Obtain the first HTTP communication flow to be identified;

解析出所述第一待识别HTTP通信流中的服务标识信息;Parsing out the service identification information in the first HTTP communication flow to be identified;

根据所述服务标识信息与服务类型的应用识别规则列表,确定所述第一待识别HTTP通信流所对应的服务类型。The service type corresponding to the first HTTP communication flow to be identified is determined according to the service identification information and the application identification rule list of the service type.

可选地,所述识别规则设置单元,具体用于:Optionally, the identification rule setting unit is specifically used for:

解析所述目标通信流,得到所述目标通信流中的回应报文及服务标识信息;Analyzing the target communication flow to obtain the response message and service identification information in the target communication flow;

解析所述回应报文,得到所述目标通信流的服务类型;Analyzing the response message to obtain the service type of the target communication flow;

根据所述目标通信流的服务类型及所述服务标识信息,得到所述目标通信流的服务类型和服务标识信息的识别规则。According to the service type of the target communication flow and the service identification information, an identification rule for the service type of the target communication flow and the service identification information is obtained.

本发明实施例,解析获取的HTTP通信流,得到所述HTTP通信流的URL,通过判断HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同来确定是否满足触发条件,若满足触发条件,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;若不小于,则表明最有效服务通信流列表中URL对应的HTTP通信流趋于稳定,然后将最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流,并解析出其服务类型和服务标志信息,以及建立服务标志信息和服务类型的识别规则。本发明实施例,从大量通信流中筛选出部分最有效服务通信流来建立识别规则,从而实现了自动化的对内部网络中HTTP通信流中的有效服务完成识别,在无人工参与情况下可以有效管控内部网络中的HTTP通信流。In the embodiment of the present invention, the obtained HTTP communication flow is analyzed to obtain the URL of the HTTP communication flow, and whether the trigger condition is satisfied is determined by judging whether the URL of the HTTP communication flow is the same as the URL stored in a preset position in the most effective service communication flow list , if the trigger condition is met, it is judged whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold; if not, it indicates that the HTTP communication corresponding to the URL in the most effective service communication flow list The flow tends to be stable, and then the HTTP communication flow corresponding to the URL in the most effective service communication flow list is used as the target communication flow in the target communication flow list, and its service type and service mark information are parsed out, and the service mark information and service type are established identification rules. In the embodiment of the present invention, some of the most effective service communication flows are selected from a large number of communication flows to establish identification rules, thereby realizing the automatic identification of effective services in the HTTP communication flow in the internal network, which can be effectively performed without manual participation. Control HTTP communication flow in the internal network.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例提供的一种确定内网HTTP通信流服务类型的方法流程图;Fig. 1 is a kind of flow chart of the method for determining intranet HTTP communication flow service type provided by the embodiment of the present invention;

图2为本发明实施例提供的一种确定内网HTTP通信流服务类型的方法详细流程图;Fig. 2 is a detailed flowchart of a method for determining the type of intranet HTTP communication flow service provided by an embodiment of the present invention;

图3为本发明实施例提供的一种确定内网HTTP通信流服务类型的装置示意图。FIG. 3 is a schematic diagram of an apparatus for determining an intranet HTTP communication flow service type provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

下面结合说明书附图对本发明实施例作进一步详细描述。The embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

内部网络中,HTTP通信流指的是以HTTP协议访问方式产生的客户端与服务器之间的通信,举例来说,客户端想要向服务器请求某种服务(如请求财务报表服务等),则客户端向服务器发送一个HTTP请求,用于向服务器请求服务,服务器收到该HTTP请求后,会回应所请求的服务对应的内容。In the internal network, the HTTP communication flow refers to the communication between the client and the server generated by HTTP protocol access. For example, if the client wants to request a certain service from the server (such as requesting financial statement services, etc.), then The client sends an HTTP request to the server to request services from the server. After receiving the HTTP request, the server will respond with the content corresponding to the requested service.

一个HTTP通信流一般包含以下信息:An HTTP communication flow generally includes the following information:

目的IP(Internet Protocol,网络之间互连的协议):表示提供服务的服务器的IP信息;Destination IP (Internet Protocol, the protocol for interconnection between networks): indicates the IP information of the server providing the service;

源IP:表示访问者的客户端的IP信息;Source IP: Indicates the IP information of the visitor's client;

URL(Uniform Resoure Locator,统一资源定位器):表示要请求的服务的地址信息,可从HTTP通信流中解析得到;URL (Uniform Resoure Locator, Uniform Resource Locator): Indicates the address information of the service to be requested, which can be parsed from the HTTP communication flow;

为了确定一个HTTP通信流中的URL所对应的服务的类型(也可以称为HTTP通信流所对应的服务类型),例如HTTP通信流A对应的服务类型为财务报表服务,HTTP通信流B对应的服务类型为工资报表服务,等等。In order to determine the type of service corresponding to the URL in an HTTP communication flow (also called the service type corresponding to the HTTP communication flow), for example, the service type corresponding to HTTP communication flow A is financial report service, and the corresponding service type of HTTP communication flow B The service type is Payroll Report Service, etc.

具体地,可以使用下列方式来得到一个HTTP通信流中的URL所对应的服务类型:Specifically, the following methods can be used to obtain the service type corresponding to the URL in an HTTP communication flow:

通过分析发现,大部分服务对应的前台页面的源码中都包含<title>信息,该信息可以有效描述服务页面所提供的服务信息,可以进行服务类型的判定。而在HTTP通信流中,<title>信息一般都包含回应报文中,所以本发明实施例选择通过解析HTTP通信流中的回应报文,进而获取<title>信息完成服务类型的判定。Through analysis, it is found that the source code of the front page corresponding to most services contains <title> information, which can effectively describe the service information provided by the service page and determine the service type. In the HTTP communication flow, the <title> information is generally included in the response message, so the embodiment of the present invention chooses to obtain the <title> information to complete the determination of the service type by analyzing the response message in the HTTP communication flow.

例如,通过解析HTTP通信流C中的回应报文,得到其服务类型为业绩报表服务。For example, by parsing the response message in the HTTP communication flow C, it is obtained that its service type is performance report service.

因此,如果想得到一个HTTP通信流对应的服务类型,可以通过解析其中的回应报文来得到,但实际应用中,由于实时解析HTTP通信流得到其对应的服务类型效率低下,且无法做应用管控,所以可以选择实现建立HTTP流与服务类型的应用识别规则列表。。Therefore, if you want to get the service type corresponding to an HTTP communication flow, you can get it by parsing the response message. However, in practical applications, due to the low efficiency of analyzing the HTTP communication flow in real time to obtain the corresponding service type, and it is impossible to do application control, So you can choose to implement a list of application identification rules for establishing HTTP streams and service types. .

即通过解析HTTP通信流,得到HTTP通信流中的回应报文及服务标识信息;解析所述回应报文,得到HTTP通信流的服务类型;根据HTTP通信流的服务类型及服务标识信息,得到HTTP通信流的服务类型和服务标识信息的识别规则。That is, by analyzing the HTTP communication flow, the response message and service identification information in the HTTP communication flow are obtained; the response message is analyzed to obtain the service type of the HTTP communication flow; according to the service type and service identification information of the HTTP communication flow, the HTTP The service type of the communication flow and the identification rule of the service identification information.

其中,建立HTTP通信流与服务类型之间的识别规则,一般可以选择对每一个HTTP通信流,都建立一个HTTP通信流与服务类型之间的识别规则,举例来说,内网中一共有1万种HTTP通信流(即这1万种HTTP通信流对应的URL和服务类型各不相同),则需要建立1万个HTTP通信流与服务类型的识别规则,很显然,这种方法比较耗费资源,尤其是有些HTTP通信流与服务类型的识别规则很少被用到的情况下,建立大量的识别规则会导致占用过多的系统资源,并且如果收集的服务过多,会导致有效服务被湮没在大量无效服务里,导致用户很难使用这个功能。Among them, to establish the identification rule between HTTP communication flow and service type, you can generally choose to establish an identification rule between HTTP communication flow and service type for each HTTP communication flow. For example, there are 1 If there are 10,000 HTTP communication flows (that is, the URLs and service types corresponding to these 10,000 HTTP communication flows are different), it is necessary to establish 10,000 identification rules for HTTP communication flows and service types. Obviously, this method consumes more resources. , especially when some HTTP communication flow and service type identification rules are rarely used, establishing a large number of identification rules will lead to excessive system resources, and if too many services are collected, effective services will be obliterated In a large number of invalid services, it makes it difficult for users to use this function.

下面结合附图1,给出一中确定HTTP通信流对应的服务类型的方法,如图1所示,为本发明实施例提供的确定内网HTTP通信流服务类型的方法,包括:Below in conjunction with accompanying drawing 1, provide a method for determining the service type corresponding to the HTTP communication flow, as shown in Figure 1, the method for determining the service type of the intranet HTTP communication flow provided by the embodiment of the present invention includes:

步骤101、解析获取的HTTP通信流,得到所述HTTP通信流的URL;Step 101, analyzing the acquired HTTP communication flow to obtain the URL of the HTTP communication flow;

步骤102、判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同,所述最有效服务通信流列表为根据历史HTTP通信流中访问量排名最高的前N个URL得到的;Step 102, judging whether the URL of the HTTP communication flow is the same as the URL stored in the preset position in the most effective service communication flow list, the most effective service communication flow list is the top N with the highest number of visits in the historical HTTP communication flow obtained from a URL;

步骤103、若确定所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL相同,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;Step 103, if it is determined that the URL of the HTTP communication flow is the same as the URL stored in the preset position in the most effective service communication flow list, then determine whether the difference between the current time and the update time of the most effective service communication flow list is not less than update time threshold;

步骤104、若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值不小于所述更新时间阈值,则将所述最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流;Step 104: If it is determined that the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold, then use the HTTP communication flow corresponding to the URL in the most effective service communication flow list as the target communication flow in the target communication flow list;

步骤105、针对所述目标通信流列表中的任一个目标通信流,解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表,所述服务标识信息和服务类型的应用识别规则列表用于为待识别的HTTP通信流确定所述待识别的HTTP通信流的服务类型。Step 105: For any target communication flow in the target communication flow list, analyze the target communication flow, obtain the service type and service identification information identification rules of the target communication flow, and add them to the service identification information and service type The application identification rule list of the service identification information and the service type application identification rule list are used to determine the service type of the HTTP communication flow to be identified for the HTTP communication flow to be identified.

上述步骤101中,首先解析获取的HTTP通信流,得到所述HTTP通信流的URL。In the above step 101, the acquired HTTP communication flow is firstly parsed to obtain the URL of the HTTP communication flow.

一般情况下,可以从HTTP通信流的首个请求报文中解析得到URL,且一个URL用于表示要请求的服务的地址,即一个URL与一个服务之间存在一一对应的关系。Generally, the URL can be obtained by parsing the first request message of the HTTP communication flow, and a URL is used to indicate the address of the service to be requested, that is, there is a one-to-one correspondence between a URL and a service.

在内网中存在非常多的HTTP通信流,在这里,本发明实施例预先设定一个最有效服务通信流列表,所述最有效服务通信流列表为根据历史HTTP通信流中访问量排名最高的前N个URL得到的,即最有效服务通信流列表存储的是访问量排名最高的的前N个URL。There are a lot of HTTP communication flows in the intranet. Here, the embodiment of the present invention pre-sets a list of the most effective service communication flows. The top N URLs, that is, the most effective service communication flow list stores the top N URLs with the highest number of visits.

举例来说,假设内网中一共有1万个HTTP通信流,N取值为20,且将HTTP通信流的URL对应的服务访问量排名前20的HTTP通信流对应的URL存储至所述最有效服务通信流列表。For example, suppose there are 10,000 HTTP communication flows in the intranet, and the value of N is 20, and URLs corresponding to the top 20 HTTP communication flows corresponding to the URLs of the HTTP communication flows are stored in the last List of valid service communication flows.

可选地,可以再建立一个有效服务通信流列表,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量,从而在上述步骤101中,得到所述HTTP通信流的URL之后,若确定有效服务通信流列表不包含所述HTTP通信流的URL对应的服务,且确定所述HTTP通信流的URL对应的服务是有效服务,则将所述HTTP通信流的URL及所述HTTP通信流的URL对应的服务添加至所述有效服务通信流列表。Optionally, an effective service communication flow list can be established again, and the effective service communication flow list is used to store the URLs of all effective service communication flows in the intranet and the service traffic corresponding to the URLs of all effective service communication flows, so that In the above step 101, after obtaining the URL of the HTTP communication flow, if it is determined that the valid service communication flow list does not include the service corresponding to the URL of the HTTP communication flow, and it is determined that the service corresponding to the URL of the HTTP communication flow is valid service, add the URL of the HTTP communication flow and the service corresponding to the URL of the HTTP communication flow to the effective service communication flow list.

其中,所述有效服务是指对服务的不同的访问者的数量大于预设访问者阈值的服务。例如一个HTTP通信流的URL对应的服务一共有100个不同的访问者(可以用访问IP来区分不同的访问者),且访问者阈值为80,则可以认定该HTTP通信流的URL对应的服务为有效服务,则在当前有效服务通信流列表中不包含该HTTP通信流的URL对应的服务时,将HTTP通信流的URL及HTTP通信流的URL对应的服务加入到有效服务通信流列表中。Wherein, the valid service refers to a service for which the number of different visitors to the service is greater than a preset visitor threshold. For example, the service corresponding to the URL of an HTTP communication flow has a total of 100 different visitors (you can use the access IP to distinguish different visitors), and the visitor threshold is 80, then the service corresponding to the URL of the HTTP communication flow can be identified If it is an effective service, when the service corresponding to the URL of the HTTP communication flow is not included in the current effective service communication flow list, the URL of the HTTP communication flow and the service corresponding to the URL of the HTTP communication flow are added to the effective service communication flow list.

当然,如果确定有效服务通信流列表包含所述HTTP通信流的URL对应的服务,则将所述有效服务通信流列表中所述HTTP通信流的URL对应的服务的访问量加一。Of course, if it is determined that the valid service communication flow list includes the service corresponding to the URL of the HTTP communication flow, then add one to the visit volume of the service corresponding to the URL of the HTTP communication flow in the valid service communication flow list.

从而,本发明实施例中存在着两个通信流列表,一个是有效服务通信流列表,用于存储内网中所有有效服务通信流的URL及URL对应的服务,一个是最有效服务通信流列表,用于存储有效服务通信流列表中对应的服务访问量排名前N的HTTP通信流的URL。Therefore, there are two communication flow lists in the embodiment of the present invention, one is an effective service communication flow list, which is used to store the URLs of all effective service communication flows in the intranet and the services corresponding to the URLs, and the other is the most effective service communication flow list , which is used to store the URLs of the top N HTTP communication flows corresponding to the services in the list of valid service communication flows.

从而,本发明实施例中,最终是要对最有效服务通信流列表中的N个URL对应的HTTP通信流建立HTTP通信流与服务类型之间的识别规则,从而可以减少识别规则的建立数量,并且可以获取最有效服务,避免最有效服务被湮没在大量用户不关注的服务中。。Therefore, in the embodiment of the present invention, it is finally necessary to establish identification rules between HTTP communication flows and service types for the HTTP communication flows corresponding to the N URLs in the most effective service communication flow list, thereby reducing the number of establishment of identification rules, And the most effective service can be obtained, and the most effective service can be prevented from being buried in services that a large number of users do not pay attention to. .

上述有效服务通信流列表存储的是内网中所有有效服务通信流的URL及URL对应的服务的访问量,其中,有效服务指的是非噪声服务,对于噪声服务,可以有多种定义方式,可根据实际需要来定义。下面给出一种判断一个服务是有效服务还是噪声服务的方式:The above effective service communication flow list stores the URLs of all effective service communication flows in the intranet and the visits of the services corresponding to the URLs. Among them, the effective service refers to the non-noise service. For the noise service, there are many ways to define it. Define according to actual needs. Here is a way to determine whether a service is valid or noisy:

可选地,若满足下列部分或全部条件,则将所述HTTP通信流的URL对应的服务确定为噪声服务:所述HTTP通信流的首个请求报文中包含请求参数、所述HTTP通信流的URL中包含预设的异常字符、所述HTTP通信流的URL中包含图片等预设类型关键词。Optionally, if some or all of the following conditions are met, the service corresponding to the URL of the HTTP communication flow is determined to be a noise service: the first request message of the HTTP communication flow contains request parameters, the HTTP communication flow The URL of the URL contains preset abnormal characters, and the URL of the HTTP communication stream contains preset type keywords such as pictures.

在内部网络中存在众多的HTTP通信流对应的可能只是服务下图片的获取和页面的刷新等操作,对这些HTTP通信流的分析不仅无法增益内网服务信息的获取,反而会加大对服务信息的处理难度,所以认定这些HTTP流解析得到的URL对应的是噪声服务。为了过滤这些HTTP流,因此将满足以下条件的服务判定位噪声服务:There are many HTTP communication flows in the internal network, which may only correspond to operations such as image acquisition and page refresh under the service. The analysis of these HTTP communication flows will not only fail to increase the acquisition of intranet service information, but will increase the search for service information. Therefore, it is determined that the URLs obtained by parsing these HTTP streams correspond to noise services. In order to filter these HTTP streams, services that meet the following conditions are therefore identified as bit noise services:

1)、一个HTTP流中可能存在多个请求以得到同一服务下的多个资源,而首个请求报文中通常包含了这一服务下这些请求资源的通用信息,所以设定URL从HTTP流的首个请求报文中解析得到,若HTTP流首个请求报文中包含请求参数,则认定该请求对应的资源不是服务链接的信息,将此类HTTP通信流对应的服务确定为噪声服务。1) There may be multiple requests in an HTTP stream to obtain multiple resources under the same service, and the first request message usually contains the general information of these requested resources under this service, so set the URL from the HTTP stream If the first request message of the HTTP flow contains request parameters, it is determined that the resource corresponding to the request is not the information of the service link, and the service corresponding to this type of HTTP communication flow is determined to be a noise service.

2)、若HTTP通信流的URL中包含图片类型关键字,如“.jpg”等,则说明HTTP流是进行服务下图片资源的获取,则所以将此类HTTP通信流对应的服务确定为噪声服务。2) If the URL of the HTTP communication flow contains image type keywords, such as ".jpg", etc., it means that the HTTP flow is used to obtain image resources under the service, so the service corresponding to this type of HTTP communication flow is determined as noise Serve.

3)、若HTTP通信流的URL中包含异常字符,如“%”等,则说明解析得到的URL无法有效对应一个服务,则所以将此类HTTP通信流对应的服务确定为噪声服务。3) If the URL of the HTTP communication flow contains abnormal characters, such as "%", it means that the parsed URL cannot effectively correspond to a service, so the service corresponding to this type of HTTP communication flow is determined to be a noise service.

自此,本发明实施例中,在获取一个HTTP通信流时,若确定所述HTTP通信流的URL对应的服务不是噪声服务,则将所述HTTP通信流的URL对应的服务的访问量加一。Henceforth, in the embodiment of the present invention, when acquiring an HTTP communication flow, if it is determined that the service corresponding to the URL of the HTTP communication flow is not a noise service, then the visit amount of the service corresponding to the URL of the HTTP communication flow is increased by one .

然后,在上述步骤102中,将所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL进行比较,判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同,如果相同,则触发内网最有效服务通信流列表的收敛性判断,最有效服务通信流列表的收敛指的是最有效服务通信流列表在一段时间内保持不变,则认为最有效服务通信流列表中的URL对应的服务是最有效的服务,即是访问量最高的服务。Then, in the above step 102, the URL of the HTTP communication flow is compared with the URL stored in the preset position in the most effective service communication flow list, and it is judged that the URL of the HTTP communication flow is the same as that preset in the most effective service communication flow list. Set whether the URLs stored in the location are the same. If they are the same, it will trigger the convergence judgment of the most effective service communication flow list on the intranet. The convergence of the most effective service communication flow list means that the most effective service communication flow list remains unchanged for a period of time , then it is considered that the service corresponding to the URL in the most effective service communication flow list is the most effective service, that is, the service with the highest number of visits.

上述步骤103中,若确定所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL相同,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值。In the above step 103, if it is determined that the URL of the HTTP communication flow is the same as the URL stored in the preset position in the most effective service communication flow list, then it is judged whether the difference between the current time and the update time of the most effective service communication flow list is Not less than the update time threshold.

之所以判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值,是基于一种前提,即认为如果最有效服务通信流列表在超过一定时长(即更新时间阈值)内未发生更新,则认为最有效服务通信流列表趋于稳定,则在上步骤104中,将所述最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流;然后在步骤105中,针对所述目标通信流列表中的任一个目标通信流,解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表,所述服务标识信息和服务类型的应用识别规则列表用于为待识别的HTTP通信流确定所述待识别的HTTP通信流的服务类型。The reason why it is judged whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold is based on a premise that if the most effective service communication flow list exceeds a certain period of time (that is, the update time Threshold) does not update, then it is considered that the most effective service communication flow list tends to be stable, then in step 104, the HTTP communication flow corresponding to the URL in the most effective service communication flow list is used as the target in the target communication flow list communication flow; then in step 105, for any target communication flow in the target communication flow list, analyze the target communication flow, obtain the service type and identification rules of service identification information of the target communication flow and add them to The service identification information and the application identification rule list of the service type are used to determine the service type of the HTTP communication flow to be identified for the HTTP communication flow to be identified.

当然,如果当前时间与所述最有效服务通信流列表的更新时间的差值小于更新时间阈值,则需要进一步判断最有效服务通信流列表是否可以更新,具体地,获取所述有效服务通信流列表中访问量排名最高的前N个URL作为目标URL;若获取的所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL不完全相同,则根据所述目标URL,更新所述最有效服务通信流列表,以及根据所述当前时间更新所述最有效服务通信流列表的更新时间。Of course, if the difference between the current time and the update time of the most effective service communication flow list is less than the update time threshold, it is necessary to further determine whether the most effective service communication flow list can be updated, specifically, to obtain the effective service communication flow list The top N URLs with the highest number of visits are used as target URLs; if the acquired target URL is not exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, then according to the target URL, update all The most effective service communication flow list, and update the update time of the most effective service communication flow list according to the current time.

下面结合一个具体的例子来说明上述步骤101~步骤105的实施方法。假设内网中一共有1万个历史HTTP通信流,一共对应1万个服务,其中,有效服务通信流列表存储了这1万个历史HTTP通信以及每个HTTP通信流对应的服务的访问量,最有效服务通信流列表中存储的对应的服务访问量排名前20的HTTP通信流的URL,对于这1万个HTTP通信流中的任一个,若确定该HTTP通信流对应的服务不是噪声服务,则判断该HTTP通信流的URL与最有效服务通信流列表预设位置(例如第5个位置)中的URL是否相同,如果相同,则触发以下收敛性判断(即判断最有效服务通信流列表是否趋于稳定):The implementation method of the above steps 101 to 105 will be described below in conjunction with a specific example. Suppose there are a total of 10,000 historical HTTP communication flows in the intranet, corresponding to a total of 10,000 services. Among them, the effective service communication flow list stores the 10,000 historical HTTP communications and the visits of services corresponding to each HTTP communication flow. For any of the 10,000 HTTP communication flows, if it is determined that the service corresponding to the HTTP communication flow is not a noise service, Then judge whether the URL of the HTTP communication flow is the same as the URL in the preset position (for example, the 5th position) of the most effective service communication flow list; becoming steady):

收敛性判断:判断当前时间与最有效服务通信流列表的更新时间的差值与更新时间阈值之间的大小关系:Convergence Judgment: Judging the relationship between the difference between the current time and the update time of the most effective service communication flow list and the update time threshold:

情形一、当前时间与最有效服务通信流列表的更新时间的差值大于或等于更新时间阈值Case 1: The difference between the current time and the update time of the most effective service communication flow list is greater than or equal to the update time threshold

则表明最有效服务通信流列表在更新时间阈值内,例如更新时间阈值设置为1小时,则表明在一个小时时间内,最有效服务通信流列表没有得到更新,此时认为最有效服务通信流列表趋于收敛,则将最有效服务通信流列表中的URL对应的HTTP通信流作为目标通信流列表中的目标通信流,进而解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表。It indicates that the most effective service communication flow list is within the update time threshold. For example, if the update time threshold is set to 1 hour, it indicates that the most effective service communication flow list has not been updated within one hour. At this time, the most effective service communication flow list is considered Tend to convergence, then use the HTTP communication flow corresponding to the URL in the most effective service communication flow list as the target communication flow in the target communication flow list, and then analyze the target communication flow to obtain the service type and service of the target communication flow Identification information identification rules are added to the list of application identification rules for service identification information and service types.

即本发明实施例中,首先筛选出一定数量的最有效服务对应的HTTP通信流,然后对这些HTTP通信流进行解析,得到服务类型和服务标识信息,并建立服务类型和服务标识信息的识别规则。其中,服务标识信息可以用URL来表示,当然也还可以是使用其它方式来表示,例如使用HTTP通信流的URL、请求方式等信息作为一个整体来表示服务标识信息。具体形式不限。That is, in the embodiment of the present invention, a certain number of HTTP communication streams corresponding to the most effective services are first screened out, and then these HTTP communication streams are analyzed to obtain the service type and service identification information, and establish identification rules for the service type and service identification information . Wherein, the service identification information can be represented by URL, and of course, it can also be represented by other means, for example, the service identification information can be represented by using information such as the URL of the HTTP communication flow and the request method as a whole. The specific form is not limited.

情形二、当前时间与最有效服务通信流列表的更新时间的差值小于更新时间阈值Scenario 2: The difference between the current time and the update time of the most effective service communication flow list is less than the update time threshold

表明最有效服务通信流列表还未趋于稳定收敛,因此,需要进一步判断是否可以对最有效服务通信流列表进行更新,具体地,可以获取有效服务通信流列表中访问量排名最高的前N个URL作为目标URL,若确定所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL不完全相同,则根据所述目标URL,更新所述最有效服务通信流列表,以及根据所述当前时间更新所述最有效服务通信流列表的更新时间。It shows that the most effective service communication flow list has not tended to be stable and convergent, therefore, it is necessary to further judge whether the most effective service communication flow list can be updated, specifically, the top N most visited traffic flow list in the effective service communication flow list can be obtained URL as the target URL, if it is determined that the target URL is not exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, then according to the target URL, update the most effective service communication flow list, and according to The update time of the most effective service communication flow list is updated by the current time.

若确定所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL完全相同,则不做任何操作,即不更新所述最有效服务通信流列表,也不更新所述最有效服务通信流列表的更新时间。If it is determined that the target URL is exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, then do nothing, that is, neither update the most effective service communication flow list nor update the most effective service communication flow list. The update time of the service traffic list.

从而,通过上述方法,从内网中大量的HTTP通信流中筛选出一部分最有效服务对应的HTTP通信流,然后建立这些HTTP通信流与服务类型之间的识别规则,并且,在得到服务标识信息和服务类型的应用识别规则列表之后,即可以使用该规则列表来判断一个新获取的第一待识别HTTP通信流的类别,具体地:Therefore, through the above method, a part of HTTP communication flows corresponding to the most effective services are selected from a large number of HTTP communication flows in the intranet, and then the identification rules between these HTTP communication flows and service types are established, and after obtaining the service identification information After the application identification rule list and service type, the rule list can be used to determine the category of a newly acquired first HTTP communication flow to be identified, specifically:

获取第一待识别HTTP通信流;解析出所述第一待识别HTTP通信流中的服务标识信息;根据所述服务标识信息与服务类型的应用识别规则列表,确定所述第一待识别HTTP通信流所对应的服务类型。Obtaining the first HTTP communication flow to be identified; parsing out the service identification information in the first HTTP communication flow to be identified; determining the first HTTP communication to be identified according to the service identification information and the application identification rule list of the service type The service type corresponding to the stream.

其中,第一待识别HTTP通信流指的是任意一个内网HTTP通信流,在获取到该HTTP通信流后,根据建立好的服务标识信息与服务类型的应用识别规则列表来确定所述第一待识别HTTP通信流所对应的服务类型。Wherein, the first HTTP communication flow to be identified refers to any intranet HTTP communication flow. After obtaining the HTTP communication flow, the first HTTP communication flow is determined according to the established service identification information and service type application identification rule list. The service type corresponding to the HTTP communication flow to be identified.

当然,由于服务标识信息与服务类型的应用识别规则列表中只存储了部分服务标识信息与服务类型的识别规则,因此也存在无法识别第一待识别HTTP通信流对应的服务类型的情况,但是这种概率是相对比较低的,因此本发明实施例中,以建立较少的HTTP通信流与服务类型的识别规则的基础上,保证以较大概率确定一个待识别HTTP通信流对应的服务类型,具有较好的实际应用性能。Of course, since only part of the service identification information and service type identification rules are stored in the service identification information and service type application identification rule list, there is also a situation where the service type corresponding to the first HTTP communication flow to be identified cannot be identified, but this This probability is relatively low. Therefore, in the embodiment of the present invention, on the basis of establishing fewer identification rules for HTTP communication flows and service types, it is guaranteed to determine the service type corresponding to an HTTP communication flow to be identified with a relatively high probability. It has good practical application performance.

本发明实施例,解析获取的HTTP通信流,得到所述HTTP通信流的URL,通过判断HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同来确定是否满足触发条件,若满足触发条件,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;若不小于,则表明最有效服务通信流列表中URL对应的HTTP通信流趋于稳定,然后将最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流,并解析出其服务类型和服务标志信息,以及建立服务标志信息和服务类型的识别规则。本发明实施例,从大量通信流中筛选出部分最有效服务通信流来建立识别规则,从而实现了自动化的对内部网络中HTTP通信流中的有效服务完成识别,在无人工参与情况下可以有效管控内部网络中的HTTP通信流。In the embodiment of the present invention, the obtained HTTP communication flow is analyzed to obtain the URL of the HTTP communication flow, and whether the trigger condition is satisfied is determined by judging whether the URL of the HTTP communication flow is the same as the URL stored in a preset position in the most effective service communication flow list , if the trigger condition is met, it is judged whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold; if not, it indicates that the HTTP communication corresponding to the URL in the most effective service communication flow list The flow tends to be stable, and then the HTTP communication flow corresponding to the URL in the most effective service communication flow list is used as the target communication flow in the target communication flow list, and its service type and service mark information are parsed out, and the service mark information and service type are established identification rules. In the embodiment of the present invention, some of the most effective service communication flows are selected from a large number of communication flows to establish identification rules, thereby realizing the automatic identification of effective services in the HTTP communication flow in the internal network, which can be effectively performed without manual participation. Control HTTP communication flow in the internal network.

下面对本发明实施例提供的确定内网HTTP通信流服务类型的方法做详细描述,如图2所示,包括:The method for determining the intranet HTTP communication flow service type provided by the embodiment of the present invention is described in detail below, as shown in FIG. 2 , including:

步骤201、解析获取的HTTP通信流,得到所述HTTP通信流的URL;Step 201, analyzing the acquired HTTP communication flow to obtain the URL of the HTTP communication flow;

步骤202、将有效服务通信流列表中所述HTTP通信流的URL对应的服务的访问量加一,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量;Step 202: Add one to the visit volume of the service corresponding to the URL of the HTTP communication flow in the effective service communication flow list, and the effective service communication flow list is used to store URLs of all effective service communication flows in the intranet and all effective services The visit volume of the service corresponding to the URL of the communication flow;

步骤203、判断URL对应的服务是否为噪声服务,若是,则结束流程,若否,则转到步骤204;Step 203, determine whether the service corresponding to the URL is a noise service, if so, end the process, if not, then go to step 204;

步骤204、判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同,若相同,则转到步骤205,若否,则结束流程;Step 204, judging whether the URL of the HTTP communication flow is the same as the URL stored in the preset position in the most effective service communication flow list, if they are the same, then go to step 205, if not, then end the process;

步骤205、判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值,若是,则转到步骤206,若否则转到步骤208;Step 205, judging whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold, if yes, go to step 206, otherwise go to step 208;

步骤206、所述最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流;Step 206, the HTTP communication flow corresponding to the URL in the most effective service communication flow list is used as the target communication flow in the target communication flow list;

步骤207、针对所述目标通信流列表中的任一个目标通信流,解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表,所述服务标识信息和服务类型的应用识别规则列表用于为待识别的HTTP通信流确定所述待识别的HTTP通信流的服务类型;Step 207: For any target communication flow in the target communication flow list, analyze the target communication flow, obtain the service type and service identification information identification rules of the target communication flow, and add them to the service identification information and service type A list of application identification rules, the service identification information and the application identification rule list of the service type are used to determine the service type of the HTTP communication flow to be identified for the HTTP communication flow to be identified;

步骤208、获取所述有效服务通信流列表中访问量排名最高的前N个URL作为目标URL;Step 208. Obtain the top N URLs with the highest number of visits in the effective service communication flow list as target URLs;

步骤209、判断获取的所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL是否不完全相同,若不完全相同,则转到步骤210,若完全相同,则结束流程;Step 209, judging whether the obtained target URL is not exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, if not completely the same, then go to step 210, if they are completely the same, then end the process;

步骤210、根据所述目标URL,更新所述最有效服务通信流列表,以及根据所述当前时间更新所述最有效服务通信流列表的更新时间。Step 210: Update the most effective service communication flow list according to the target URL, and update the update time of the most effective service communication flow list according to the current time.

本发明实施例,解析获取的HTTP通信流,得到所述HTTP通信流的URL,通过判断HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同来确定是否满足触发条件,若满足触发条件,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;若不小于,则表明最有效服务通信流列表中URL对应的HTTP通信流趋于稳定,然后将最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流,并解析出其服务类型和服务标志信息,以及建立服务标志信息和服务类型的识别规则。本发明实施例,从大量通信流中筛选出部分最有效服务通信流来建立识别规则,从而实现了自动化的对内部网络中HTTP通信流中的有效服务完成识别,在无人工参与情况下可以有效管控内部网络中的HTTP通信流。In the embodiment of the present invention, the obtained HTTP communication flow is analyzed to obtain the URL of the HTTP communication flow, and whether the trigger condition is satisfied is determined by judging whether the URL of the HTTP communication flow is the same as the URL stored in a preset position in the most effective service communication flow list , if the trigger condition is met, it is judged whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold; if not, it indicates that the HTTP communication corresponding to the URL in the most effective service communication flow list The flow tends to be stable, and then the HTTP communication flow corresponding to the URL in the most effective service communication flow list is used as the target communication flow in the target communication flow list, and its service type and service mark information are parsed out, and the service mark information and service type are established identification rules. In the embodiment of the present invention, some of the most effective service communication flows are selected from a large number of communication flows to establish identification rules, thereby realizing the automatic identification of effective services in the HTTP communication flow in the internal network, which can be effectively performed without manual participation. Control HTTP communication flow in the internal network.

基于相同的技术构思,本发明实施例还提供一种确定内网HTTP通信流服务类型的装置,如图3所示,包括:Based on the same technical concept, the embodiment of the present invention also provides a device for determining the type of intranet HTTP communication flow service, as shown in Figure 3, including:

解析单元301,用于解析获取的HTTP通信流,得到所述HTTP通信流的URL;The parsing unit 301 is configured to parse the obtained HTTP communication flow to obtain the URL of the HTTP communication flow;

判断单元302,用于判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同,所述最有效服务通信流列表为根据历史HTTP通信流中访问量排名最高的前N个URL得到的;若确定所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL相同,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;A judging unit 302, configured to judge whether the URL of the HTTP communication flow is the same as the URL stored in a preset location in the most effective service communication flow list, the most effective service communication flow list is ranked the highest according to the number of visits in the historical HTTP communication flow If it is determined that the URL of the HTTP communication flow is the same as the URL stored in the preset location in the most effective service communication flow list, then determine the difference between the current time and the update time of the most effective service communication flow list Whether the difference is not less than the update time threshold;

目标通信流确定单元303,用于若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值不小于所述更新时间阈值,则将所述最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流;The target communication flow determining unit 303 is configured to add the URL in the most effective service communication flow list to The corresponding HTTP communication flow is used as the target communication flow in the target communication flow list;

识别规则设置单元304,用于针对所述目标通信流列表中的任一个目标通信流,解析所述目标通信流,得到所述目标通信流的服务类型和服务标识信息的识别规则并添加至服务标识信息和服务类型的应用识别规则列表,所述服务标识信息和服务类型的应用识别规则列表用于为待识别的HTTP通信流确定所述待识别的HTTP通信流的服务类型。The identification rule setting unit 304 is configured to analyze the target communication flow for any target communication flow in the target communication flow list, obtain the identification rule of the service type and service identification information of the target communication flow, and add it to the service The identification information and the application identification rule list of the service type are used to determine the service type of the HTTP communication flow to be identified for the HTTP communication flow to be identified.

可选地,所述装置还包括访问量设置单元305,用于:Optionally, the device further includes a traffic volume setting unit 305, configured to:

确定有效服务通信流列表包含所述HTTP通信流的URL对应的服务,并将所述有效服务通信流列表中所述HTTP通信流的URL对应的服务的访问量加一,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量。Determine that the effective service communication flow list includes the service corresponding to the URL of the HTTP communication flow, and add one to the visit volume of the service corresponding to the URL of the HTTP communication flow in the effective service communication flow list, and the effective service communication flow The list is used to store the URLs of all valid service communication flows in the intranet and the visits of services corresponding to the URLs of all valid service communication flows.

可选地,所述装置还包括有效服务确定单元306,用于:Optionally, the device further includes a valid service determining unit 306, configured to:

确定有效服务通信流列表不包含所述HTTP通信流的URL对应的服务,且确定所述HTTP通信流的URL对应的服务是有效服务,并将所述HTTP通信流的URL及所述HTTP通信流的URL对应的服务添加至所述有效服务通信流列表,所述有效服务是指对服务的不同的访问者的数量大于预设访问者阈值的服务,所述有效服务通信流列表用于存储内网中所有有效服务通信流的URL及所有有效服务通信流的URL对应的服务的访问量。Determining that the valid service communication flow list does not include the service corresponding to the URL of the HTTP communication flow, and determining that the service corresponding to the URL of the HTTP communication flow is a valid service, and combining the URL of the HTTP communication flow and the HTTP communication flow The service corresponding to the URL is added to the effective service communication flow list. The effective service refers to the service whose number of different visitors to the service is greater than the preset visitor threshold. The effective service communication flow list is used to store The URLs of all valid service communication flows in the network and the service visits corresponding to the URLs of all valid service communication flows.

可选地,所述装置还包括更新单元307,用于:Optionally, the device further includes an updating unit 307, configured to:

若确定所述当前时间与所述最有效服务通信流列表的更新时间的差值小于所述更新时间阈值,则获取所述有效服务通信流列表中访问量排名最高的前N个URL作为目标URL;If it is determined that the difference between the current time and the update time of the most effective service communication flow list is less than the update time threshold, obtain the top N URLs with the highest traffic ranking in the effective service communication flow list as target URLs ;

若获取的所述目标URL与所述最有效服务通信流列表中的HTTP通信流的URL不完全相同,则根据所述目标URL,更新所述最有效服务通信流列表,以及根据所述当前时间更新所述最有效服务通信流列表的更新时间。If the obtained target URL is not exactly the same as the URL of the HTTP communication flow in the most effective service communication flow list, update the most effective service communication flow list according to the target URL, and update the most effective service communication flow list according to the current time Updating the update time of the most effective service communication flow list.

可选地,所述装置还包括噪声服务确定单元308,用于在判断所述HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同之前,确定所述HTTP通信流的URL对应的服务不是噪声服务。Optionally, the device further includes a noisy service determining unit 308, configured to determine whether the URL of the HTTP communication flow is the same as the URL stored in a preset location in the most effective service communication flow list, before determining whether the HTTP communication flow The service corresponding to the URL is not a noise service.

可选地,若满足下列部分或全部条件,则将所述HTTP通信流的URL对应的服务确定为噪声服务:Optionally, if some or all of the following conditions are met, the service corresponding to the URL of the HTTP communication flow is determined to be a noise service:

所述HTTP通信流的首个请求报文中包含请求参数、所述HTTP通信流的URL中包含预设的异常字符、所述HTTP通信流的URL中包含图片类型关键词。The first request message of the HTTP communication flow includes request parameters, the URL of the HTTP communication flow includes preset abnormal characters, and the URL of the HTTP communication flow includes image type keywords.

可选地,所述装置还包括服务类型识别单元309,用于:Optionally, the device further includes a service type identifying unit 309, configured to:

获取第一待识别HTTP通信流;Obtain the first HTTP communication flow to be identified;

解析出所述第一待识别HTTP通信流中的服务标识信息;Parsing out the service identification information in the first HTTP communication flow to be identified;

根据所述服务标识信息与服务类型的应用识别规则列表,确定所述第一待识别HTTP通信流所对应的服务类型。The service type corresponding to the first HTTP communication flow to be identified is determined according to the service identification information and the application identification rule list of the service type.

可选地,所述识别规则设置单元304,具体用于:Optionally, the identification rule setting unit 304 is specifically configured to:

解析所述目标通信流,得到所述目标通信流中的回应报文及服务标识信息;Analyzing the target communication flow to obtain the response message and service identification information in the target communication flow;

解析所述回应报文,得到所述目标通信流的服务类型;Analyzing the response message to obtain the service type of the target communication flow;

根据所述目标通信流的服务类型及所述服务标识信息,得到所述目标通信流的服务类型和服务标识信息的识别规则。According to the service type of the target communication flow and the service identification information, an identification rule for the service type of the target communication flow and the service identification information is obtained.

本发明实施例,解析获取的HTTP通信流,得到所述HTTP通信流的URL,通过判断HTTP通信流的URL与最有效服务通信流列表中预设位置存储的URL是否相同来确定是否满足触发条件,若满足触发条件,则判断当前时间与所述最有效服务通信流列表的更新时间的差值是否不小于更新时间阈值;若不小于,则表明最有效服务通信流列表中URL对应的HTTP通信流趋于稳定,然后将最有效服务通信流列表中URL对应的HTTP通信流作为目标通信流列表中的目标通信流,并解析出其服务类型和服务标志信息,以及建立服务标志信息和服务类型的识别规则。本发明实施例,从大量通信流中筛选出部分最有效服务通信流来建立识别规则,从而实现了自动化的对内部网络中HTTP通信流中的有效服务完成识别,在无人工参与情况下可以有效管控内部网络中的HTTP通信流。In the embodiment of the present invention, the obtained HTTP communication flow is analyzed to obtain the URL of the HTTP communication flow, and whether the trigger condition is satisfied is determined by judging whether the URL of the HTTP communication flow is the same as the URL stored in a preset position in the most effective service communication flow list , if the trigger condition is met, it is judged whether the difference between the current time and the update time of the most effective service communication flow list is not less than the update time threshold; if not, it indicates that the HTTP communication corresponding to the URL in the most effective service communication flow list The flow tends to be stable, and then the HTTP communication flow corresponding to the URL in the most effective service communication flow list is used as the target communication flow in the target communication flow list, and its service type and service mark information are parsed out, and the service mark information and service type are established identification rules. In the embodiment of the present invention, some of the most effective service communication flows are selected from a large number of communication flows to establish identification rules, thereby realizing the automatic identification of effective services in the HTTP communication flow in the internal network, which can be effectively performed without manual participation. Control HTTP communication flow in the internal network.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (14)

1. a kind of method of determining Intranet hypertext transfer protocol http communication stream service type characterized by comprising
The http communication stream obtained is parsed, the uniform resource position mark URL of the http communication stream is obtained;
Judge whether the URL of the http communication stream and the URL that predeterminated position in most effective communication for service stream list stores are identical, The most effective communication for service stream list is to be obtained according to the top ranked top n URL of amount of access in history http communication stream;
If it is determined that the URL of the http communication stream is identical as the URL that predeterminated position in most effective communication for service stream list stores, then Judge whether the difference of the renewal time of current time and the most effective communication for service stream list is not less than renewal time threshold value;
If it is determined that the difference of the renewal time of the current time and the most effective communication for service stream list not less than it is described more New time threshold is then arranged the corresponding http communication stream of URL in the most effective communication for service stream list as destinations traffic stream Destinations traffic stream in table;
For any one destinations traffic stream in the destinations traffic stream list, the destinations traffic stream is parsed, the mesh is obtained It marks the service type of communication stream and the recognition rule of service identity information and is added to answering for service identity information and service type With recognition rule list, the application recognition rule list of the service identity information and service type is used to be HTTP to be identified Communication stream determines the service type of the http communication stream to be identified;
The URL of the determination http communication stream is identical as the URL that predeterminated position in most effective communication for service stream list stores Later, further includes:
If it is determined that the difference of the renewal time of the current time and the most effective communication for service stream list is less than the update Time threshold then obtains amount of access is top ranked in effective communication for service stream list top n URL as target URL;
If the incomplete phase of URL of the target URL and the http communication stream in the most effective communication for service stream list obtained Together, then the most effective communication for service stream list is updated according to the target URL, and institute is updated according to the current time State the renewal time of most effective communication for service stream list.
2. the method as described in claim 1, which is characterized in that after the URL for obtaining the http communication stream, also wrap It includes:
Determine that effective communication for service stream list includes the corresponding service of URL of the http communication stream, and by effective service The amount of access of the corresponding service of the URL of http communication stream described in communication stream list adds one, effective communication for service stream list The visit of the corresponding service of URL of URL and all effective communication for service streams for effective communication for service streams all in storing intranet The amount of asking.
3. the method as described in claim 1, which is characterized in that after the URL for obtaining the http communication stream, also wrap It includes:
It determines that effective communication for service stream list does not include the corresponding service of URL of the http communication stream, and determines the HTTP The corresponding service of the URL of communication stream is effectively to service, and by the URL of the http communication stream and URL of the http communication stream Corresponding service is added to effective communication for service stream list, and effective service refers to the different visitors' of service Quantity is greater than the service of the amount threshold of default visitor, and effective communication for service stream list has for all in storing intranet Imitate the corresponding service of URL of the URL and all effective communication for service streams of communication for service stream.
4. method as claimed in any one of claims 1-3, which is characterized in that judge the URL of the http communication stream with most Before whether the URL of predeterminated position storage is identical in effective communication for service stream list, further includes:
Determine that the corresponding service of the URL of the http communication stream is not noise service.
5. method as claimed in claim 4, which is characterized in that if meeting following part or all of condition, by the HTTP The corresponding service of the URL of communication stream is determined as noise service:
It include in the URL of required parameter, the http communication stream in the first request message of the http communication stream comprising default Unusual character, the http communication stream URL in include picture type keyword.
6. method as claimed in any one of claims 1-3, which is characterized in that the parsing destinations traffic stream obtains The service type of the destinations traffic stream and the recognition rule of service identity information are simultaneously added to service identity information and service class After the application recognition rule list of type, further includes:
Obtain the first http communication stream to be identified;
Parse the service identity information in the described first http communication stream to be identified;
According to the application recognition rule list of the service identity information and service type, determine that the described first HTTP to be identified is logical Service type corresponding to letter flow.
7. method as claimed in any one of claims 1-3, which is characterized in that the parsing destinations traffic stream obtains The service type of the destinations traffic stream and the recognition rule of service identity information, comprising:
The destinations traffic stream is parsed, the back message and service identity information in the destinations traffic stream are obtained;
The back message is parsed, the service type of the destinations traffic stream is obtained;
According to the service type of the destinations traffic stream and the service identity information, the service class of the destinations traffic stream is obtained The recognition rule of type and service identity information.
8. a kind of device of determining Intranet http communication stream service type characterized by comprising
Resolution unit obtains the URL of the http communication stream for parsing the http communication stream obtained;
Judging unit, for judging that the URL of the http communication stream is stored with predeterminated position in most effective communication for service stream list URL it is whether identical, the most effective communication for service stream list be according to amount of access in history http communication stream it is top ranked Top n URL is obtained;If it is determined that predeterminated position stores in the URL of the http communication stream and most effective communication for service stream list URL it is identical, then judge whether current time and the difference of the renewal time of the most effective communication for service stream list are not less than Renewal time threshold value;
Destinations traffic stream determination unit, for if it is determined that the current time and the most effective communication for service stream list update The difference of time is not less than the renewal time threshold value, then by the corresponding HTTP of URL in the most effective communication for service stream list Communication stream is as the destinations traffic stream in destinations traffic stream list;
Recognition rule setting unit, for for any one destinations traffic stream in the destinations traffic stream list, described in parsing Destinations traffic stream obtains the service type of the destinations traffic stream and the recognition rule of service identity information and is added to service mark The application recognition rule of the application recognition rule list of knowledge information and service type, the service identity information and service type arranges Table is used to determine the service type of the http communication stream to be identified for http communication stream to be identified;
Updating unit is used for: if it is determined that the difference of the renewal time of the current time and the most effective communication for service stream list Value is less than the renewal time threshold value, then obtains the top n URL that amount of access is top ranked in effective communication for service stream list As target URL;If the URL of the http communication stream in the target URL obtained and the most effective communication for service stream list It is not exactly the same, then according to the target URL, update the most effective communication for service stream list, and according to it is described current when Between update renewal time of the most effective communication for service stream list.
9. device as claimed in claim 8, which is characterized in that described device further includes amount of access setting unit, is used for:
Determine that effective communication for service stream list includes the corresponding service of URL of the http communication stream, and by effective service The amount of access of the corresponding service of the URL of http communication stream described in communication stream list adds one, effective communication for service stream list The visit of the corresponding service of URL of URL and all effective communication for service streams for effective communication for service streams all in storing intranet The amount of asking.
10. device as claimed in claim 9, which is characterized in that described device further includes effective service determination unit, is used for:
It determines that effective communication for service stream list does not include the corresponding service of URL of the http communication stream, and determines the HTTP The corresponding service of the URL of communication stream is effectively to service, and by the URL of the http communication stream and URL of the http communication stream Corresponding service is added to effective communication for service stream list, and effective service refers to the different visitors' of service Quantity is greater than the service of the amount threshold of default visitor, and effective communication for service stream list has for all in storing intranet Imitate the amount of access of the corresponding service of URL of the URL and all effective communication for service streams of communication for service stream.
11. the device as described in any one of claim 8-10, which is characterized in that described device further includes that noise service determines Unit, the URL for storing in the URL for judging the http communication stream with predeterminated position in most effective communication for service stream list are It is no it is identical before, determine the URL of the http communication stream it is corresponding service be not noise service.
12. device as claimed in claim 8, which is characterized in that if meeting following part or all of condition, by the HTTP The corresponding service of the URL of communication stream is determined as noise service:
It include in the URL of required parameter, the http communication stream in the first request message of the http communication stream comprising default Unusual character, the http communication stream URL in include picture type keyword.
13. the device as described in any one of claim 8-10, which is characterized in that described device further includes service type identification Unit is used for:
Obtain the first http communication stream to be identified;
Parse the service identity information in the described first http communication stream to be identified;
According to the application recognition rule list of the service identity information and service type, determine that the described first HTTP to be identified is logical Service type corresponding to letter flow.
14. the device as described in any one of claim 8-10, which is characterized in that the recognition rule setting unit, specifically For:
The destinations traffic stream is parsed, the back message and service identity information in the destinations traffic stream are obtained;
The back message is parsed, the service type of the destinations traffic stream is obtained;
According to the service type of the destinations traffic stream and the service identity information, the service class of the destinations traffic stream is obtained The recognition rule of type and service identity information.
CN201610787223.6A 2016-08-30 2016-08-30 A kind of method and device of determining Intranet http communication stream service type Active CN106330563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610787223.6A CN106330563B (en) 2016-08-30 2016-08-30 A kind of method and device of determining Intranet http communication stream service type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610787223.6A CN106330563B (en) 2016-08-30 2016-08-30 A kind of method and device of determining Intranet http communication stream service type

Publications (2)

Publication Number Publication Date
CN106330563A CN106330563A (en) 2017-01-11
CN106330563B true CN106330563B (en) 2019-09-17

Family

ID=57790077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610787223.6A Active CN106330563B (en) 2016-08-30 2016-08-30 A kind of method and device of determining Intranet http communication stream service type

Country Status (1)

Country Link
CN (1) CN106330563B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491466B (en) * 2018-03-06 2022-08-30 平安科技(深圳)有限公司 Electronic device, access instruction information acquisition method, and storage medium
CN110311983B (en) * 2019-07-09 2021-04-06 北京字节跳动网络技术有限公司 Service request processing method, device and system, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720075A (en) * 2009-02-10 2010-06-02 中兴通讯股份有限公司 Method and device for reporting service information
CN101872347A (en) * 2009-04-22 2010-10-27 富士通株式会社 Method and device for judging webpage type
CN102098229A (en) * 2011-03-04 2011-06-15 北京星网锐捷网络技术有限公司 Method and device for optimizing and auditing uniform resource locator (URL) as well as network device
CN102857572A (en) * 2012-09-14 2013-01-02 北京星网锐捷网络技术有限公司 Method and device for processing HTTP (hyper text transport protocol) access request and gateway equipment
CN102932370A (en) * 2012-11-20 2013-02-13 华为技术有限公司 Safety scanning method, equipment and system
CN102946449A (en) * 2012-11-28 2013-02-27 网神信息技术(北京)股份有限公司 Uniform resource locator (URL) matching method, device and gateway
CN104052737A (en) * 2014-05-19 2014-09-17 北京网康科技有限公司 Network data message processing method and device
CN105005600A (en) * 2015-07-02 2015-10-28 焦点科技股份有限公司 Preprocessing method of URL (Uniform Resource Locator) in access log

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080209030A1 (en) * 2007-02-28 2008-08-28 Microsoft Corporation Mining Web Logs to Debug Wide-Area Connectivity Problems

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101720075A (en) * 2009-02-10 2010-06-02 中兴通讯股份有限公司 Method and device for reporting service information
CN101872347A (en) * 2009-04-22 2010-10-27 富士通株式会社 Method and device for judging webpage type
CN102098229A (en) * 2011-03-04 2011-06-15 北京星网锐捷网络技术有限公司 Method and device for optimizing and auditing uniform resource locator (URL) as well as network device
CN102857572A (en) * 2012-09-14 2013-01-02 北京星网锐捷网络技术有限公司 Method and device for processing HTTP (hyper text transport protocol) access request and gateway equipment
CN102932370A (en) * 2012-11-20 2013-02-13 华为技术有限公司 Safety scanning method, equipment and system
CN102946449A (en) * 2012-11-28 2013-02-27 网神信息技术(北京)股份有限公司 Uniform resource locator (URL) matching method, device and gateway
CN104052737A (en) * 2014-05-19 2014-09-17 北京网康科技有限公司 Network data message processing method and device
CN105005600A (en) * 2015-07-02 2015-10-28 焦点科技股份有限公司 Preprocessing method of URL (Uniform Resource Locator) in access log

Also Published As

Publication number Publication date
CN106330563A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
US9888089B2 (en) Client side cache management
CN103078881B (en) Internet resources Download Info share control system and method
US8843463B2 (en) Providing content by using a social network
JP6744480B2 (en) Network-based ad data traffic latency reduction
CN103780652B (en) A kind of method and system of microblogging resource sharing
CN104184832B (en) Data submission method and device in network application
CN111684448B (en) Enhanced online privacy
CN103002069A (en) Domain name resolution method, device and system
CN105610993B (en) A kind of domain name analytic method, apparatus and system
CN104219230B (en) Identify method and the device of malicious websites
CN111224831B (en) Method and system for generating call ticket
CN108076003B (en) Session hijacking detection method and device
CN105959358A (en) CDN server and method of CDN server of caching data
CN112231481A (en) Web site classification method, device, computer equipment and storage medium
CN106330563B (en) A kind of method and device of determining Intranet http communication stream service type
EP3789890A1 (en) Fully qualified domain name (fqdn) determination
CN108900566A (en) The location determining method and device of IP device in a kind of network
CN108600147B (en) A download speed prediction method and device
CN103067398A (en) Method and equipment for achieving third-party application accessing user data
CN113596105A (en) Content acquisition method, edge node and computer-readable storage medium
CN109804349B (en) System and method for reducing download requirements
CN107196986B (en) A redirection method and device
CN117040799A (en) Page interception rule generation, page access control method, device and electronic equipment
CN113190744A (en) Information processing and device for content management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building

Patentee after: NSFOCUS Technologies Group Co.,Ltd.

Patentee after: NSFOCUS TECHNOLOGIES Inc.

Address before: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building

Patentee before: NSFOCUS INFORMATION TECHNOLOGY Co.,Ltd.

Patentee before: NSFOCUS TECHNOLOGIES Inc.