[go: up one dir, main page]

CN101188505B - content type recognition method and device - Google Patents

content type recognition method and device Download PDF

Info

Publication number
CN101188505B
CN101188505B CN2007101250485A CN200710125048A CN101188505B CN 101188505 B CN101188505 B CN 101188505B CN 2007101250485 A CN2007101250485 A CN 2007101250485A CN 200710125048 A CN200710125048 A CN 200710125048A CN 101188505 B CN101188505 B CN 101188505B
Authority
CN
China
Prior art keywords
content
content type
message
unit
type
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.)
Expired - Fee Related
Application number
CN2007101250485A
Other languages
Chinese (zh)
Other versions
CN101188505A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2007101250485A priority Critical patent/CN101188505B/en
Publication of CN101188505A publication Critical patent/CN101188505A/en
Application granted granted Critical
Publication of CN101188505B publication Critical patent/CN101188505B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例公开了一种内容类型识别的方法,包括步骤:接收通信用户的数据报文,并通过分析所述数据报文获得所述数据报文的内容类型;当所述获取所述报文内容类型失败时,根据配置的失败处理策略进行处理,并根据失败处理的结果进行内容类型的识别。应用本发明实施例公开的方法,可以解决当识别报文类型内容失败的问题,为内容计费铺平道路。尤其是可以解决因为URL设置错误或者URL为相对路径时的内容类型和内容计费失败问题。本发明实施例实现简单,有效可行,为可以解决数据业务按内容计费的错误和失败,保证运营商的利益和增强用户使用数据业务满意度。

Figure 200710125048

The embodiment of the present invention discloses a method for content type identification, comprising the steps of: receiving a data message from a communication user, and obtaining the content type of the data message by analyzing the data message; When the content type of the document fails, it will be processed according to the configured failure processing policy, and the content type will be identified according to the result of the failure processing. By applying the method disclosed in the embodiment of the present invention, the problem of failure in identifying message type and content can be solved, paving the way for content charging. In particular, it can solve the problem of content type and content billing failure due to wrong URL setting or URL is a relative path. The embodiments of the present invention are simple to implement, effective and feasible, and can solve errors and failures of content-based billing for data services, ensure the interests of operators and enhance users' satisfaction with using data services.

Figure 200710125048

Description

内容类型识别的方法和设备Method and device for content type identification

技术领域technical field

本发明涉及通信领域,尤其涉及一种内容类型识别的方法和设备。The present invention relates to the communication field, in particular to a method and device for content type identification.

背景技术Background technique

在通信领域中,运营商进行计费的方式主要有按时间计费和按流量计费两种方式。例如在针对语音业务的一般采用按语音业务使用的时长进行计费。按流量计费按用户进行某项通信业务时实际产生的数据比特流来进行计费。在非语音业务中,不同的通信业务所使用的流量差异很大。例如,短信业务和视频电视业务的流量就不在一个数量级,而且两个业务所占用的网络资源也不同。运营商由于用户业务的不同而对单个用户的运营成本是有差异的,按时间计费不能更好的进行这方面的区分:按流量计费则可以解决这个问题,但是按流量计费也有一定的局限性:例如视频电话业务等实时性业务和音乐下载业务等非实时性业务如果都按流量进行计费就显得不合理。因为不同的业务所占用的网络资源是不同的,也就是运营商为使用不同业务的用户投入的成本不相同,但是如果计费方式相同就显然违背经济规律。因此,单纯按流量计费和按时间计费一样,都不能很好地体现通信业务中内容的价值。In the communication field, there are mainly two charging methods for operators: charging by time and charging by traffic. For example, for voice services, billing is generally performed according to the duration of use of the voice services. Billing by traffic is billed according to the data bit stream actually generated when the user conducts a certain communication service. In non-speech services, the traffic used by different communication services varies greatly. For example, the traffic of SMS service and video TV service are not in the same order of magnitude, and the network resources occupied by the two services are also different. Operators have different operating costs for a single user due to different user services. Billing by time cannot make a better distinction in this regard: billing by traffic can solve this problem, but billing by traffic also has certain limitations. Limitations: For example, real-time services such as video telephony services and non-real-time services such as music download services are unreasonable if they are all charged according to traffic. Because the network resources occupied by different services are different, that is, the cost invested by operators for users using different services is different, but if the billing methods are the same, it is obviously against the economic law. Therefore, billing by traffic alone is the same as billing by time, which cannot well reflect the value of content in communication services.

随着数据业务的发展,各种数据业务应用的种类日益丰富,而基于流量或时长的计费方式由于其缺点,无法满足运营商的计费需求,由此引入了按内容计费的方式。按内容计费是指运营商通过对数据包进行过滤和分析,然后识别和区分出数据包的内容种类和属性,并把相关信息传送到计费系统进行计费。与根据时长或者流量进行计费不同的是,内容计费可依据增值业务的内容类型进行计费,这样可以根据通信业务的内容信息,对用户作出灵活、合理的计费。With the development of data services, various types of data service applications are becoming more and more abundant. However, due to its shortcomings, the charging method based on traffic or duration cannot meet the charging needs of operators. Therefore, the content-based charging method has been introduced. Content-based charging means that the operator filters and analyzes the data packets, then identifies and distinguishes the content types and attributes of the data packets, and transmits the relevant information to the billing system for billing. Different from billing based on duration or traffic, content billing can be billed based on the content type of value-added services, so that flexible and reasonable billing can be made to users based on the content information of communication services.

实现内容计费通常有两种方式,一是增强GPRS网关支撑节点GGSN(GatewayGPRS Support Node)的功能以支持内容计费,二是在GPRS网关支撑节点GGSN(Gateway GPRS Support Node)和外部网络之间设置独立的计费网关以支持内容计费。GGSN实现的内容计费一般是根据IP五元组(源IP地址、源端口号、目的IP地址、目的端口号和协议号)和/或通用资源定位器URL(UniversalResource Locator)识别用户的通信业务内容,并根据识别结果进行内容计费。其中当URL为相对路径时,通过解析报文中的Host字段并与URL进行拼接,从而得到绝对路径的URL进行匹配,最后得到用户通信业务的内容类型。There are usually two ways to implement content billing. One is to enhance the function of the GPRS gateway support node GGSN (Gateway GPRS Support Node) to support content billing. Set up an independent billing gateway to support content billing. The content billing implemented by GGSN is generally based on the IP five-tuple (source IP address, source port number, destination IP address, destination port number and protocol number) and/or Universal Resource Locator URL (Universal Resource Locator) to identify the user's communication services content, and perform content billing based on the recognition result. Wherein, when the URL is a relative path, the URL of the absolute path is obtained by parsing the Host field in the message and splicing with the URL for matching, and finally the content type of the user communication service is obtained.

在实际应用中经常会出现无法进行内容识别,从而导致按内容计费无法实现或者计费错误。例如在用户发送彩信时,如果彩信中心的URL设置错误,则当彩信数据到达GGSN时,会导致GGSN无法识别当前的业务为彩信业务,从而无法针对当前的彩信业务按内容进行计费,可能会错误地按照一般业务流量的计费方式进行计费。另外,当用户访问WAP业务时,GET/POST报文中的目的IP地址为WAP网关的IP地址,实际访问的目的地由GET/POST报文中的URL来标识,由WAP网关根据所述GET/POST报文中的URL将WAP数据发送到实际的目的地。但是手机在访问WAP业务并且携带相对路径的URL字段时,则会因为无法获得绝对路径而造成内容类型识别和内容计费的失败。In practical applications, it often happens that the content identification cannot be performed, which leads to the inability to realize the content-based charging or charging errors. For example, when a user sends a MMS, if the URL of the MMS center is set incorrectly, when the MMS data arrives at the GGSN, the GGSN will not be able to identify the current service as a MMS service, and thus will not be able to charge for the current MMS service according to the content, which may cause Mistakenly perform billing according to the billing method of general business traffic. In addition, when a user accesses a WAP service, the destination IP address in the GET/POST message is the IP address of the WAP gateway, and the actual visited destination is identified by the URL in the GET/POST message, and the WAP gateway uses the GET The URL in the /POST message sends the WAP data to the actual destination. However, when the mobile phone accesses the WAP service and carries the URL field of the relative path, it will fail to identify the content type and charge for the content because the absolute path cannot be obtained.

发明内容Contents of the invention

本发明实施例公开了一种内容类型识别的方法和设备,可以解决因为地址错误而导致无法识内容类型的问题。尤其是可以解决根据URL相对路径得到绝对路径或者URL地址设置错误而导致内容类型识别失败的问题。以此为基础可以解决按内容计费错误或者无法进行内容计费的问题。The embodiment of the invention discloses a content type identification method and device, which can solve the problem of not being able to identify the content type due to wrong addresses. In particular, it can solve the problem that the content type identification fails due to the absolute path obtained according to the relative path of the URL or the setting error of the URL address. On the basis of this, the problem of incorrect charging by content or failure to perform content charging can be solved.

本发明实施例公开了一种内容类型识别的方法,包括步骤:接收通信用户的数据报文,并通过分析所述数据报文获得所述数据报文的内容类型;当所述获取所述报文内容类型失败时,根据配置的失败处理策略进行处理,并根据失败处理的结果进行内容类型的识别。当URL为相对路径时,根据报文中的X-Online-Host字段和URL拼接得到绝对路径,从而进行内容类型的识别;或者当URL设置错误时,根据报文中的Content-Type内容进行内容类型的识别。The embodiment of the present invention discloses a method for content type identification, which includes the steps of: receiving a data message from a communication user, and obtaining the content type of the data message by analyzing the data message; When the content type of the document fails, it will be processed according to the configured failure processing policy, and the content type will be identified according to the result of the failure processing. When the URL is a relative path, the absolute path is spliced according to the X-Online-Host field in the message and the URL to identify the content type; or when the URL is set incorrectly, the content is identified according to the Content-Type content in the message type identification.

本发明还公开了一种内容类型识别的设备,包括接收单元,用于接收用户的数据报文;配置单元,配置单元包括识别规则单元,用于保存内容类型识别的规则;识别单元,用于根据配置单元保存的规则进行内容类型的识别;其中,所述配置单元还包括失败处理单元,用于保存失败处理策略;识别单元无法按照识别规则单元保存的规则识别报文的内容类型时,则根据失败处理单元的失败处理策略进行内容类型的识别。所述失败处理单元包括第一子单元和/或第二子单元;所述第一子单元用于指示识别单元根据报文中的URL信息和X-Online-Host字段拼接出绝对路径;所述第二子单元用于指示识单元根据报文的Content-Type内容识别报文的内容类型。The invention also discloses a device for content type identification, which includes a receiving unit for receiving user data packets; a configuration unit, the configuration unit includes an identification rule unit for storing content type identification rules; an identification unit for Identify the content type according to the rules saved by the configuration unit; wherein, the configuration unit also includes a failure processing unit for saving the failure processing strategy; when the identification unit cannot identify the content type of the message according to the rules saved by the identification rule unit, then Identify the content type according to the failure handling policy of the failure handling unit. The failure processing unit includes a first subunit and/or a second subunit; the first subunit is used to instruct the identification unit to splice out an absolute path according to the URL information in the message and the X-Online-Host field; the The second subunit is used to instruct the identification unit to identify the content type of the message according to the Content-Type content of the message.

应用本发明实施例的方案,可以解决识别报文类型内容失败的问题,特别是因为地址信息如URL信息错误导致无法误别业务内容类型的问题。从而为有效实现内容计费铺平道路。尤其是可以解决因为URL设置错误或者URL为相对路径时的内容类型和内容计费失败问题。本发明实施例实现简单,有效可行,为可以解决数据业务按内容计费的错误和失败,保证运营商的利益和增强用户使用数据业务满意度。Applying the solutions of the embodiments of the present invention can solve the problem of failure to identify message type and content, especially the problem of being unable to identify the type of business content due to incorrect address information such as URL information. So as to pave the way for the effective implementation of content billing. In particular, it can solve the problem of content type and content billing failure due to wrong URL setting or URL is a relative path. The embodiments of the present invention are simple to implement, effective and feasible, and can solve the errors and failures of content-based billing of data services, ensure the interests of operators and enhance users' satisfaction with using data services.

附图说明Description of drawings

图1为本发明实施例一的方法流程图;Fig. 1 is the method flowchart of embodiment one of the present invention;

图2为本发明实施例二的方法流程图;Fig. 2 is the method flowchart of the second embodiment of the present invention;

图3为本发明实施例三的方法流程图;Fig. 3 is the method flowchart of the third embodiment of the present invention;

图4为本发明实施例四的设备结构图。Fig. 4 is a device structure diagram of Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面结合附图及具体实施例对本发明进行详细的说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

如图1所示为本发明第一实施例的方法流程图,现结果附图进行详细介绍:As shown in Fig. 1, it is the method flow chart of the first embodiment of the present invention, now the result accompanying drawing is introduced in detail:

101、配置内容识别规则,并增加内容识别失败处理的策略;例如建立“Content-Type”字段与内容类型之间的对应关系,或者增加X-Online-Host字段配置信息等;一般所述内容识别规则和失败处理策略可以配置在GGSN或者计费网关上。101. Configure content identification rules, and add a strategy for handling content identification failures; for example, establish a correspondence between the "Content-Type" field and the content type, or add X-Online-Host field configuration information, etc.; generally, the content identification Rules and failure handling policies can be configured on the GGSN or the charging gateway.

102、当接收到通信用户的数据报文如GET或POST报文时,对所接收到数据报文的信元进行分析,并与所配置的内容识别规则进行匹配,识别用户所使用通信业务的内容类型;当内容识别失败时,根据配置的内容识别处理策略进行处理。例如可通过“Content-Type”字段确定通信业务数据的内容类型,或者通过X-Online-Host信息进行失败处理。102. When receiving a data message from a communication user such as a GET or POST message, analyze the cells of the received data message and match it with the configured content identification rules to identify the communication service used by the user Content type; when the content identification fails, it will be processed according to the configured content identification processing policy. For example, the content type of the communication service data can be determined through the "Content-Type" field, or failure processing can be performed through the X-Online-Host information.

103、根据失败处理的结果,将识别所得的内容类型与计费规则进行匹配,获得相应的内容计费规则,并从计费规则中获得计费信息,根据所述计费信息对用户使用的通信业务进行计费。103. According to the result of the failure processing, match the identified content type with the charging rule to obtain the corresponding content charging rule, and obtain charging information from the charging rule, and use the charging information for the user according to the charging information. Billing for communication services.

图2所示为本发明第二实施的流程图,现结合附图对详细步骤进行介绍:Fig. 2 shows the flowchart of the second implementation of the present invention, now in conjunction with the accompanying drawings the detailed steps are introduced:

在计费网关或者GGSN上配置内容识别规则,增加内容失败处理策略:建立相应“Content-Type”信息与内容类型之间的对应关系。Configure content identification rules on the billing gateway or GGSN, and add a content failure processing strategy: establish the corresponding relationship between the corresponding "Content-Type" information and the content type.

当计费网关或者GGSN接收到通信用户的数据报文后,按内容识别规则分析所述报文以识别其内容类型;当按所述内容识别规则无法识别内容类型时,则按失败处理策略进行处理。通过“Content-Type”信息进行识别,例如当报文中的Content-Type为application/vnd.wap.mms-message时,即表示为彩信业务,后续即可按彩信业务的费率进行内容计费。具体可包括以下三种情况:当根据报文中的URL可以进行内容类型匹配时,则直接使用报文中的URL进行识别;当根据报文中的URL无法进行识别相应的类型内容时,则按失败处理策略进行处理,即根据Content-Type信息识别内容类型;当根据报文中的URL信息匹配内容类型失败而且报文中未携带Content-Type信息时,则根据配置策略允许报文通过或选择丢弃报文。After the billing gateway or GGSN receives the data message of the communication user, analyze the message according to the content identification rules to identify its content type; when the content type cannot be identified according to the content identification rules, then proceed according to the failure processing strategy deal with. Use the "Content-Type" information to identify, for example, when the Content-Type in the message is application/vnd.wap.mms-message, it means that it is a MMS service, and then the content can be billed according to the rate of the MMS service . Specifically, the following three situations may be included: when the content type can be matched according to the URL in the message, the URL in the message is directly used for identification; when the corresponding type of content cannot be identified according to the URL in the message, then According to the failure processing policy, the content type is identified according to the Content-Type information; when the content type matching fails based on the URL information in the message and the content-type information is not carried in the message, the message is allowed to pass according to the configured policy or Choose to discard packets.

识别出用户通信业务的数据报文后,通过分析所述报文进行内容识别,则可以根据所述内容类型与计费规则进行匹配,得到相应的计费规则,并按计费规则中的计费信息进行内容计费的后续处理。在上述流程中说到的内容识别规则可包括但不限于IP五元组信息(源IP地址、源端口号、目的IP地址、目的端口号和协议号)、URL信息和“Content-Type”信息等。所述计费规则包括但不限于:计费方式(如按流量或者按时长计费)、时间阈值(描述按一定时间产生一张话单)、流量阈值(描述一定流量产生一张话单)、业务ID和计费组ID。所述的IP五元组信息、URL信息、Content-Type信息用于识别数据报文所属的业务;计费方式用于指定相应的业务按流量计费还是按时长计费;时间阈值用于指定相应的业务间隔多长时间产生一张中间话单;流量阈值用于指定相应的业务当流量达到多少时产生一张中间话单;业务ID填写在话单中,用于标识相应的业务,以便计费中心按相应的业务扣费;计费组ID用于指定一个费率组,多个业务如果在计费时的费率相同,则可以属于同一个计费组,即他们的计费组ID相同。本发明一个实例中具体实施细节如下:After identifying the data message of the user's communication service, by analyzing the message for content identification, the content type can be matched with the charging rule to obtain the corresponding charging rule, and the billing rule can be calculated according to the billing rule. Subsequent processing of content charging based on fee information. The content identification rules mentioned in the above process may include but not limited to IP quintuple information (source IP address, source port number, destination IP address, destination port number and protocol number), URL information and "Content-Type" information wait. The billing rules include, but are not limited to: billing methods (such as billing by traffic or duration), time thresholds (describe a bill for a certain time), traffic thresholds (describe a bill for a certain amount of traffic) , service ID, and billing group ID. The IP quintuple information, URL information, and Content-Type information are used to identify the service to which the data message belongs; the charging method is used to specify whether the corresponding service is charged by traffic or by duration; the time threshold is used to specify How long does the corresponding business interval generate an intermediate bill; the traffic threshold is used to specify the corresponding service when the traffic reaches a certain amount to generate an intermediate bill; the service ID is filled in the bill to identify the corresponding business, so that The billing center deducts fees according to the corresponding business; the billing group ID is used to specify a rate group, and multiple services can belong to the same billing group if they have the same rate during billing, that is, their billing group IDs are the same. Concrete implementation details in an example of the present invention are as follows:

如下表所示为设置的内容识别规则:The following table shows the set content identification rules:

规则IDrule ID 源IP地址source IP address 源端口号source port number   目的IP地址Destination IP address   目的端口号Destination port number   协议号agreement number   URLURL   Content-TypeContent-Type   1 1   anyany   anyany   anyany   8080   tcptcp   anyany   anyany   2 2   anyany   anyany   anyany   anyany   anyany   anyany   application/vnd.wap.mms-messageapplication/vnd.wap.mms-message

如下表所示为设置的计费规则:The following table shows the billing rules set:

  规则IDRule ID   内容识别规则IDContent Identification Rule ID   计费方式billing method   时间阈值time threshold   流量阈值Traffic Threshold   业务IDBusiness ID   计费Billing

组IDgroup ID  1 1  1 1 按时长计费Billing by duration 10秒10 seconds  NANA  NANA 浏览类browsing class 22  2 2 按流量计费Pay by traffic NANA  100kByte100kByte 彩信MMS NANA

用户进行WAP业务时,报文(如GET报文)中的URL为相对地址,HOST字段填写的是WAP网关的址,X-Online-Host字段则填写实际访问的服务器信息,通过识别X-Online-Host字段可以确定用户实际访问业务的目的主机。将X-Online-Host字段与相对路径的URL进行拼接,即可得到用户实际访问的目的业务信息,从而正确实现内容计费。图3所示为本发明第三实施例的方法流程图,现结合附图对方法步骤进行详细的介绍:When a user conducts WAP services, the URL in the message (such as a GET message) is a relative address, the HOST field is filled with the address of the WAP gateway, and the X-Online-Host field is filled with the actual access server information. By identifying the X-Online The -Host field can determine the destination host that the user actually accesses the service. By concatenating the X-Online-Host field with the URL of the relative path, you can get the target business information actually accessed by the user, so as to correctly implement content billing. Fig. 3 shows the method flowchart of the third embodiment of the present invention, now in conjunction with the accompanying drawings the method steps are introduced in detail:

在GGSN或者计费网关上配置内容识别规则,并增加内容失败处理策略:在内容识别规则中增加X-Online-Host字段配置信息。Configure content identification rules on the GGSN or billing gateway, and add content failure handling policies: Add X-Online-Host field configuration information in the content identification rules.

当GGSN或计费网关获取通信用户进行业务时的GET/POST数据业务报文时,分析所述报文并与配置的内容识别规则相匹配,识别所述报文的内容类型。如果按所述识别规则无法识别报文的内容类型,则,按失败处理策略进行失败处理:URL为相对路径时,使用X-Online-Hos t字段与相对URL进行拼接,从而获得绝对路径。例如绝对的URL为类似“http://a.b.c/内容”的形式,其中http://a.b.c是主机的域名,用于解释其IP地址,也可以是“http://a.b.c.d”的形式,其中的a.b.c.d是IP地址,“内容”则为要访问的内容在主机中的路径,如果只带了在主机中的路径,则为相对路径。通过将URL的相对地址和X-Online-Host字段进行拼接,则可获得绝对路径。When the GGSN or the billing gateway obtains the GET/POST data service message when the communication user conducts business, it analyzes the message and matches with the configured content identification rules to identify the content type of the message. If the content type of the message cannot be identified by the identification rules, then the failure processing is carried out according to the failure handling strategy: when the URL is a relative path, use the X-Online-Host field to splice with the relative URL to obtain the absolute path. For example, the absolute URL is in the form of "http://a.b.c/content", where http://a.b.c is the domain name of the host to explain its IP address, or it can be in the form of "http://a.b.c.d", where The a.b.c.d is the IP address, and the "content" is the path of the content to be accessed in the host. If only the path in the host is included, it is a relative path. The absolute path can be obtained by concatenating the relative address of the URL with the X-Online-Host field.

具体包括以下处理过程:Specifically, it includes the following processing procedures:

当报文中的URL为绝对路径时,直接使用报文中的URL进行内容类型的识别处理;When the URL in the message is an absolute path, directly use the URL in the message to identify the content type;

当报文中的URL为相对址且携带了X-Online-Host字段时,使用报文中的X-Online-Host字段与URL进行拼接处理后得到绝对路径,识别所述报文的内容类型;When the URL in the message is a relative address and carries the X-Online-Host field, use the X-Online-Host field in the message to splice the URL with the URL to obtain an absolute path to identify the content type of the message;

当所述报文的URL为相对路径,且没有携带X-Online-Host字段时,使用报文中的Host字段与URL与拼接后进行内容识别。When the URL of the message is a relative path and does not carry the X-Online-Host field, use the Host field in the message and the URL to splicing to perform content identification.

识别出用户通信业务的数据报文后,通过分析所述报文进行内容识别,则可以根据所述内容类型与计费规则进行匹配,得到相应的计费规则,并按计费规则中的计费信息进行内容计费的后续处理。其中所述内容识别规则包括但不限于:IP五元组信息(源IP地址、源端口号、目的IP地址、目的端口号和协议号)、URL、X-Online-Host信息等等;其中所计费规则的计费信息包括但不限于计费方式(按流量计费或者按时长计费)、时间阈值(产生一张话单的时间隔)、流量阈值(按多少流量产生一张话单)、业务ID和计费ID等。所述的IP五元组信息、URL信息、X-Online-Host信息用于识别数据报文所属的业务;计费方式用于指定相应的业务按流量计费还是按时长计费;时间阈值用于指定相应的业务间隔多长时间产生一张中间话单;流量阈值用于指定相应的业务当流量达到多少时产生一张中间话单;业务ID填写在话单中,用于标识相应的业务,以便计费中心按相应的业务扣费;计费组ID用于指定一个费率组,多个业务如果在计费时的费率相同,则可以属于同一个计费组,即他们的计费组ID相同。现通过一个实施例进行详细介绍内容识别规则和计费规则:After identifying the data message of the user's communication service, by analyzing the message for content identification, the content type can be matched with the charging rule to obtain the corresponding charging rule, and the billing rule can be calculated according to the billing rule. Subsequent processing of content charging based on fee information. Wherein the content identification rules include but are not limited to: IP quintuple information (source IP address, source port number, destination IP address, destination port number and protocol number), URL, X-Online-Host information, etc.; The charging information of the charging rule includes but is not limited to the charging method (according to traffic or charging by duration), time threshold (time interval for generating a bill), traffic threshold (according to the amount of traffic to generate a bill) ), business ID and billing ID, etc. Described IP quintuple information, URL information, X-Online-Host information are used to identify the service to which the data message belongs; The charging method is used to specify whether the corresponding service is charged by traffic or by duration; the time threshold is used How long does it take to specify the corresponding business interval to generate an intermediate bill; the traffic threshold is used to specify the corresponding business when the traffic reaches a certain amount to generate an intermediate bill; the service ID is filled in the bill to identify the corresponding business , so that the billing center can deduct charges according to the corresponding services; the billing group ID is used to specify a rate group, and multiple services can belong to the same billing group if they have the same rate during billing, that is, their billing groups The fee group ID is the same. An embodiment is now used to introduce the content identification rules and charging rules in detail:

内容识别规则:Content-aware rules:

规则IDrule ID 源IP地址source IP address 源端口号source port number 目的IP地址Destination IP address 目的端口号destination port number 协议号agreement number  URLURL X-Online-HostX-Online-Host  1 1   anyany   anyany  anyany  8080  TcpTcp  anyany 211.136.2.238:8080\R\N211.136.2.238:8080\R\N  2 2   anyany   anyany  anyany  anyany  anyany  anyany 10.0.0.172:80\R\N10.0.0.172:80\R\N

计费规则:Billing rules:

规则IDrule ID 内容识别规则IDContent Identification Rule ID 计费方式billing method 时间阈值time threshold 流量阈值flow threshold 业务IDBusiness ID 计费组IDBilling group ID 11  1 1 按时长计费Billing by duration 10秒10 seconds  NANA  NANA 浏览类browsing class 22  2 2 按流量计费Pay by traffic NANA  100kByte100kByte  彩信MMS NANA

本发明还公开了一种装置用于进行内容计费失败的处理。所述装置可以内置在GGSN中和/或计费网关等网关设备中,也可以是一个具有独立功能的物理实体,通过外部接口与GGSN或计费网关等网关设备进行交互,实现对内容计费失败的处理。包括:The invention also discloses a device for processing content charging failure. The device can be built into the GGSN and/or gateway devices such as billing gateways, or it can be a physical entity with independent functions, which interacts with gateway devices such as GGSN or billing gateways through external interfaces to realize content billing Failed handling. include:

接收单元:用于接收用户的数据报文,例如GET/POST报文。Receiving unit: used to receive user data packets, such as GET/POST packets.

配置单元:包括识别规则单元,用于保存内容类型识的规则,例如根据IP五元组信息进行内容类型识别的规则;还包括失败策略单元,用于保存失败处理策略。当根据识别规则单元无法识别报文的内容类型时,根据失败处理策略可进一步识别出报文的内容类型。更具体的,失败处理策略单元保存了URL为相对路径的处理策略和URL设置错误的处理策略。所述失败处理单元包括第一子单元和/或第二子单元;所述第一子单元用于指示识别单元根据报文中的URL信息和X-Online-Host字段拼接出绝对路径;所述第二子单元用于指示识单元根据报文的Content-Type内容识别报文的内容类型。Configuration unit: includes a recognition rule unit for storing content type identification rules, such as rules for content type identification based on IP quintuple information; also includes a failure policy unit for storing failure processing policies. When the content type of the message cannot be identified according to the identification rule unit, the content type of the message can be further identified according to the failure processing strategy. More specifically, the failure handling strategy unit stores the processing strategy of URL being a relative path and the processing strategy of URL setting error. The failure processing unit includes a first subunit and/or a second subunit; the first subunit is used to instruct the identification unit to splice out an absolute path according to the URL information in the message and the X-Online-Host field; the The second subunit is used to instruct the identification unit to identify the content type of the message according to the Content-Type content of the message.

识别单元:用于根据配置单元配置的识别规则,识别用户报文的内容类型。当无法识别用户报文的内容类型时,从配置单元获得失败处理策略,根据所述失败处理策略进行内容类型的识别。例如URL为相对路径时,可以根据X-Online-Host的信息拼接出绝对路径;或者根据“Content-Type”信息进行内容类型的识别。Identification unit: used to identify the content type of the user message according to the identification rules configured by the configuration unit. When the content type of the user message cannot be identified, a failure processing strategy is obtained from the configuration unit, and the content type is identified according to the failure processing strategy. For example, when the URL is a relative path, the absolute path can be concatenated according to the information of X-Online-Host; or the content type can be identified according to the "Content-Type" information.

计费单元:当识别单元识别出报文的内容类型后,计费单元根据报文的内容类型匹配到对应的计费规则,按匹配得到的计费规则中的计费信息进行内容计费的处理;或者上报给计费网关进行计费相关处理。Billing unit: After the identification unit identifies the content type of the message, the billing unit matches the corresponding charging rule according to the content type of the message, and performs content charging according to the charging information in the matching charging rule processing; or report to the charging gateway for charging-related processing.

应用本发明实施例公开的方法,可以解决当识别报文类型内容失败的问题,为内容计费铺平道路。尤其是可以解决因为URL设置错误或者URL为相对路径时的内容类型和内容计费失败问题。本发明实施例实现简单,有效可行,为可以解决数据业务按内容计费的错误和失败,保证运营商的利益和增强用户使用数据业务满意度。By applying the method disclosed in the embodiment of the present invention, the problem of failure in identifying message type and content can be solved, paving the way for content charging. In particular, it can solve the problem of content type and content billing failure due to wrong URL setting or URL is a relative path. The embodiments of the present invention are simple to implement, effective and feasible, and can solve the errors and failures of content-based billing of data services, ensure the interests of operators and enhance users' satisfaction with using data services.

以上应用了优选实施例对本发明进行了描述,但以上优选实施例仅用于帮助理解本发明的核心思想及其实施方式,因此本领域的一般技术人员在不偏离本发明的思想和范围的情形下,可以在具体实施方式及细节上有所改变。这些改变应当理解为实施了本发明。The preferred embodiment has been used above to describe the present invention, but the above preferred embodiment is only used to help understand the core idea of the present invention and its implementation, so those of ordinary skill in the art will not depart from the thinking and scope of the present invention. Below, there may be some changes in the specific implementation and details. These changes should be understood as carrying out the present invention.

Claims (5)

1.一种内容类型识别的方法,其特征在于,包括步骤:1. A method for content type identification, comprising the steps of: 接收通信用户的数据报文,并通过分析所述数据报文获得所述数据报文的内容类型;receiving a data message from a communication user, and obtaining the content type of the data message by analyzing the data message; 当所述获取所述报文内容类型失败时,根据预先配置的失败处理策略进行处理,并根据失败处理的结果重新进行内容类型的识别,When the acquisition of the content type of the message fails, process it according to a pre-configured failure processing strategy, and re-identify the content type according to the result of the failure processing, 所述失败处理策略为:当通用资源定位器URL为相对路径时,根据报文中的X-Online-Host字段和URL拼接得到绝对路径,从而进行内容类型的识别;或者,当URL设置错误时,根据报文中的Content-Type内容进行内容类型的识别。The failure handling strategy is: when the Universal Resource Locator URL is a relative path, an absolute path is spliced according to the X-Online-Host field in the message and the URL, so as to identify the content type; or, when the URL is set incorrectly , identify the content type according to the content of the Content-Type in the packet. 2.根据权利要求1所述的方法,其特征在于,进一步包括步骤:2. The method according to claim 1, further comprising the steps of: 将所识别出的内容类型与内容计费规则进行匹配,得到计费信息,并根据计费信息进行内容计费。The identified content type is matched with content charging rules to obtain charging information, and content charging is performed according to the charging information. 3.一种内容类型识别的设备,包括接收单元,用于接收用户的数据报文;配置单元,配置单元包括识别规则单元,用于保存内容类型识别的规则;识别单元,用于根据配置单元保存的规则进行内容类型的识别;其特征在于,所述配置单元还包括保存失败处理策略的失败处理单元,所述失败处理策略用于指示所述识别单元进行失败处理,按失败策略识别报文的内容类型;所述识别单元用于按照识别规则单元保存的规则识别报文的内容类型,如果失败则根据失败处理单元的失败处理策略进行内容类型的识别;其中,所述失败处理单元包括第一子单元和/或第二子单元;所述第一子单元用于指示所述识别单元根据报文中的URL信息和X-Online-Host字段拼接出绝对路径,从而进行识别报文的内容类型别;所述第二子单元用于指示所述识别单元根据报文的Content-Type内容识别报文的内容类型。3. A device for content type identification, comprising a receiving unit for receiving user data packets; a configuration unit, the configuration unit including a recognition rule unit for storing the rules for content type identification; a recognition unit for according to the configuration unit The saved rules identify the content type; it is characterized in that the configuration unit also includes a failure processing unit that saves a failure processing strategy, and the failure processing strategy is used to instruct the identification unit to perform failure processing, and identify the message according to the failure strategy The content type of the content type; the identification unit is used to identify the content type of the message according to the rules saved by the identification rule unit, and if it fails, the identification of the content type is carried out according to the failure processing strategy of the failure processing unit; wherein, the failure processing unit includes the first A subunit and/or a second subunit; the first subunit is used to instruct the identification unit to splice out an absolute path according to the URL information in the message and the X-Online-Host field, so as to identify the content of the message type; the second subunit is used to instruct the identification unit to identify the content type of the message according to the Content-Type of the message. 4.根据权利要求3所述的设备,其特征在于,所述设备还包括计费单元,用于在识别出内容类型后进行内容计费的处理;或者用于将识别的内容类型上报给计费网关进行处理。4. The device according to claim 3, characterized in that the device further comprises a billing unit, configured to perform content billing processing after the content type is identified; or to report the identified content type to the accounting unit. fee gateway for processing. 5.根据权利要求3所述的设备,其特征在于,所述设备为独立的物理实体;或者5. The device according to claim 3, wherein the device is an independent physical entity; or 集成于计费网关和/或GPRS网关支撑节点GGSN中。Integrated in the charging gateway and/or GPRS gateway support node GGSN.
CN2007101250485A 2007-12-11 2007-12-11 content type recognition method and device Expired - Fee Related CN101188505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101250485A CN101188505B (en) 2007-12-11 2007-12-11 content type recognition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101250485A CN101188505B (en) 2007-12-11 2007-12-11 content type recognition method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201110339376.1A Division CN102395117B (en) 2007-12-11 2007-12-11 Method and device for identifying content type

Publications (2)

Publication Number Publication Date
CN101188505A CN101188505A (en) 2008-05-28
CN101188505B true CN101188505B (en) 2011-12-07

Family

ID=39480706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101250485A Expired - Fee Related CN101188505B (en) 2007-12-11 2007-12-11 content type recognition method and device

Country Status (1)

Country Link
CN (1) CN101188505B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395117B (en) * 2007-12-11 2014-08-06 华为技术有限公司 Method and device for identifying content type

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778366B (en) * 2009-01-14 2013-03-27 华为技术有限公司 Method, device and system for improving content billing accuracy
CN102083046B (en) * 2009-11-30 2013-09-18 中国移动通信集团宁夏有限公司 Content charging method and device
CN101867585B (en) * 2010-06-30 2013-04-17 赛尔网络有限公司 Service control method and device supporting IPv6 multi-address access
CN102572840B (en) * 2012-03-06 2016-06-15 北京中创信测科技股份有限公司 A kind of method utilizing monitoring signaling technology to differentiate novel malicious callback service
CN103888925B (en) * 2012-12-20 2017-11-21 中国移动通信集团江苏有限公司 Charging method and system, the intelligent Matching module of a kind of business
CN105224573B (en) * 2014-06-30 2019-02-26 华为技术有限公司 A method, device and system for configuring rule data
CN106815248B (en) * 2015-11-30 2020-07-03 北京国双科技有限公司 Website analysis method and device
CN113055420B (en) * 2019-12-27 2023-07-25 中国移动通信集团陕西有限公司 HTTPS service identification method, device and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1492645A (en) * 2002-10-21 2004-04-28 Sk Device and method for forming charge data according to content of mobile communication system
EP1416698A1 (en) * 2002-10-28 2004-05-06 Openwave Systems Inc. Method and apparatus for recognising the access of data previously notified via a push message
CN1744559A (en) * 2005-10-14 2006-03-08 中国移动通信集团公司 A method for implementing routing through service attributes or according to service charging types
CN1794638A (en) * 2005-08-03 2006-06-28 华为技术有限公司 Method of cut-in charge system for OMA service application and charge angine
CN1913661A (en) * 2006-08-11 2007-02-14 华为技术有限公司 Message transmitting equipment and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1492645A (en) * 2002-10-21 2004-04-28 Sk Device and method for forming charge data according to content of mobile communication system
EP1416698A1 (en) * 2002-10-28 2004-05-06 Openwave Systems Inc. Method and apparatus for recognising the access of data previously notified via a push message
CN1794638A (en) * 2005-08-03 2006-06-28 华为技术有限公司 Method of cut-in charge system for OMA service application and charge angine
CN1744559A (en) * 2005-10-14 2006-03-08 中国移动通信集团公司 A method for implementing routing through service attributes or according to service charging types
CN1913661A (en) * 2006-08-11 2007-02-14 华为技术有限公司 Message transmitting equipment and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395117B (en) * 2007-12-11 2014-08-06 华为技术有限公司 Method and device for identifying content type

Also Published As

Publication number Publication date
CN101188505A (en) 2008-05-28

Similar Documents

Publication Publication Date Title
CN101188505B (en) content type recognition method and device
JP5269980B2 (en) Billing in LTE / EPC communication networks
KR101296048B1 (en) Online charging architecture in lte/epc communication networks
TW200947945A (en) Online charging for roaming users in a proxy online charging system of a visited network
JP5989134B2 (en) Method and apparatus for performing billing control for sponsored data applications
US9209983B2 (en) Generating a single advice of charge request for multiple sessions in a network environment
CN101212319A (en) Method and system for counting traffic in mobile communication
CN105828310B (en) Charging method, device and system for data service
WO2013108138A1 (en) Method and apparatus for performing charging control to application- layer data
CN101075884B (en) Service Content Billing Method
CN104486091A (en) Charging method and device
CN109996201A (en) A kind of Network Access Method and the network equipment
US11503442B2 (en) Methods of enabling flexible charging in M2M IoT service layer
CN102395117B (en) Method and device for identifying content type
CN100493025C (en) A method for implementing routing through service attributes or according to service charging types
CN104301880B (en) A kind of data service charge on traffic accuracy detection method for the network mobile communication systems of CDMA 2000
US20070195801A1 (en) Context-based processing of data flows
CN102075386A (en) Identification method and device
CN101729266B (en) Charging method and device for link building messages
CN101854334B (en) Admission control system, device and method
CN100496079C (en) A method for implementing routing according to service charging type
JP6050526B2 (en) Communication cost calculation method, management device, and network system
CN103888925A (en) Billing method and system for service and intelligent matching module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111207

CF01 Termination of patent right due to non-payment of annual fee