CN101466088A - System for Java wireless service charging and implementing method thereof - Google Patents

System for Java wireless service charging and implementing method thereof Download PDF

Info

Publication number
CN101466088A
CN101466088A CNA2008100663856A CN200810066385A CN101466088A CN 101466088 A CN101466088 A CN 101466088A CN A2008100663856 A CNA2008100663856 A CN A2008100663856A CN 200810066385 A CN200810066385 A CN 200810066385A CN 101466088 A CN101466088 A CN 101466088A
Authority
CN
China
Prior art keywords
customized rules
charging regulation
custom fields
rules
steps
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.)
Pending
Application number
CNA2008100663856A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2008100663856A priority Critical patent/CN101466088A/en
Publication of CN101466088A publication Critical patent/CN101466088A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a charging system for a Java wireless service and an implementation method thereof, which belongs to the mobile telephone WAP online Java wireless service charging field. The implementation method comprises the following steps: A1, the charging rules and the customizing rules are allocated, the charging rules include the related information of the customizing rules, and the customizing rules include a customizing field and a business identifier; A2, the business flow is analyzed; whether the successfully matched charging rules include the related information of the customizing rules or not is determined; if so, the customizing field information of the business flow can be matched with the customizing field of the customizing rules; and A3, whether the matching is successful or not is determined, if so, the corresponding customizing rules can be obtained, and the charging can be executed according to the business identifier. Adopting the technical proposal can accurately match the real host address visited by the Java application user, so as to realize the charging according to various charging policies and different business contents.

Description

A kind of system of Java wireless service charging and implementation method
Technical field
The present invention relates to field of wireless communication, in particular, the system and the implementation method of a kind of Java wireless service charging of mobile phone WAP online.
Background technology
WAP (Wireless Application Protocol) WAP (wireless application protocol) is an open-standards agreement, utilizes it to be sent to the information on the network on mobile phone or other wireless communication terminal.By this technology of WAP, if no matter when, where need information, open the WAP mobile phone, the user just can enjoy inexhaustible network information or internet resource.
Java wireless service based on WAP is a kind of mobile service value-adding business, the cellphone subscriber can use mobile phone enjoy easily that mobile operator provides, be similar to Internet and go up the various services that each operator provides as the network user, the Java cellphone subscriber can download games, carry on business, reading electronic book nationality, inquiry electronic chart etc.
Present Java wireless service based on WAP, it also is the main flow business in the 3G communication network, but existing WAP standard is not made regulation to the Java wireless service charging, content charging at the Java wireless service seldom mentions especially, and this mainly is that the particularity of Java wireless service technology itself causes.
Java wireless service based on WAP is a kind of GPRS application model, the implementation that adopts is the pattern of " terminal+WAP gateway+WAP server ", the mode of operation that is different from general http " terminal+server ", main purpose are to finish the protocol conversion of WAP-WEB to reach saving network traffics and compatible existing WEB application aims by WAP gateway.
Existing realization all is to abide by http agreement matching way based on the content charging of Java wireless service, carry out the coupling of charging regulation according to the information of 5 tuples, 5 tuples comprise source IP address, purpose IP address, source port number, destination slogan and transport protocol type (ID); Because the WAP implementation is " terminal+WAP gateway+WAP server " pattern, all Business Streams all need elder generation through behind the WAP gateway, could arrive real WAP server.According to http agreement matching way, when disposing the WAP charging regulation in system, purpose IP address just can only be configured to the address of WAP gateway.
The WAP gateway that each operator provides now has only limited several, and for example the WAP gateway that provides of China Mobile has only one: 10.0.0.172 is used for WAP and browses service; The gateway of CHINAUNICOM also is that each area has only one.It is limited several that all like this WAP application aims IP addresses can only be configured to also that supplier provides.
In sum, prior art is when the content charging that realizes based on the Java wireless service of WAP, because the address of several limited WAP gateways can only be arranged in purpose IP address, for a cellphone subscriber, usually can only be configured to a gateway address of operator's appointment, and according to the matching scheme of content charging, the key of coupling charging regulation is a destination address, the different business browsed of mobile phone WAP like this, according to original charging regulation matching scheme, can't distinguish, therefore can't realize according to the different charge strategy, the fundamental requirement of chargeing according to the different business content.
Therefore, there is defective in prior art, needs to improve.
Summary of the invention
Technical problem to be solved by this invention is how to the different business content of Java wireless service, according to the different charge strategy, effectively charges.
Technical scheme of the present invention is as follows:
A kind of system of Java wireless service charging, it comprises flow analysis module, data configuration module, charging regulation matching module and accounting module, described charging regulation matching module is connected with described flow analysis module, described data configuration module, described accounting module respectively, and described flow analysis module also is connected with described accounting module; It also comprises the customized rules matching module, be connected with described flow analysis module, described data configuration module respectively, and described charging regulation matching module is connected with described accounting module by described customized rules matching module;
Described flow analysis module also is used to extract the custom fields information of Business Stream, and this custom fields information is sent to described customized rules matching module; Described data configuration module is used for configuring charging rule and customized rules, and described charging regulation comprises the customized rules relevant information, and described customized rules comprises custom fields and service identification; Described charging regulation matching module also is provided with the charging regulation judging unit, is used for when the charging regulation that the match is successful has customized rules, transfers to described customized rules matching module and handles; Described customized rules matching module is used for the custom fields information of Business Stream and the custom fields of customized rules are mated, and the match is successful then obtains corresponding customized rules, and its service identification is sent to described accounting module.
Described system, wherein, described customized rules matching module is provided with the customized rules table unit, is used for the store customized rule; Described customized rules comprise at least the following one of them: customized rules sign, custom fields title, custom fields content, service identification.
Described system, wherein, described customized rules matching module also is provided with customized rules collection table unit, is used for the store customized rule set; Described customized rules collection comprise at least the following one of them: customized rules set identifier, customized rules set name claim, customized rules sign; Described charging regulation matching module is provided with the charging regulation table unit, is used to store charging regulation, and described charging regulation comprises the customized rules set identifier; And described customized rules matching module also is provided with the customized rules judging unit, is used for calling described customized rules table unit when customized rules collection table has corresponding customized rules; Described charging regulation module is provided with the service identification table unit, and it is connected with described data configuration module, is used to store charging policy; Described charging policy comprise at least the following one of them: service identification, rate, whether coin free service, whether allow access.
A kind of implementation method of Java wireless service charging, it may further comprise the steps: A1, configuring charging rule and customized rules, described charging regulation comprises the customized rules relevant information, described customized rules comprises custom fields and service identification; A2, resolving Business Stream, judge whether the charging regulation that the match is successful comprises the customized rules relevant information, is then with the custom fields information of Business Stream, mates with the custom fields of customized rules; Whether A3, judgement mate successful, are then to obtain corresponding customized rules, charge according to its service identification.
Described implementation method, wherein, steps A 1 specifically may further comprise the steps: A11, configuration and customization rule list, wherein each customized rules comprise at least the following one of them: customized rules sign, custom fields title, custom fields content, service identification; A12, the described charging regulation table of configuration, wherein each charging regulation comprise at least the following one of them: charging regulation sign, server ip, initial/terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules sign, service identification;
And steps A 2 is also carried out following steps: judge whether the charging regulation that the match is successful comprises the customized rules sign, is then to obtain corresponding customized rules, with the custom fields information of Business Stream, mates with the custom fields of described customized rules.
Described implementation method, wherein, steps A 11 is also carried out following steps: configuration and customization rule set table, wherein each customized rules collection comprise at least the following one of them: customized rules set identifier, customized rules set name claim, customized rules sign;
And, steps A 2 is also carried out following steps: judge whether the charging regulation that the match is successful comprises the customized rules set identifier, be then to obtain corresponding customized rules collection,, concentrate the custom fields of each customized rules to mate with described customized rules respectively the custom fields information of Business Stream.
Described implementation method, wherein, steps A 2 specifically may further comprise the steps: A21, parsing Business Stream, according to its 5 tuple information and URL(uniform resource locator), each charging regulation of itself and described charging regulation table is mated, judging whether that the match is successful, obtain corresponding charging regulation, is then to carry out A22; Whether A22, the judgement charging regulation that the match is successful comprise the customized rules set identifier, are then to carry out A23, otherwise adopt the service identification of described charging regulation to charge; A23, obtain corresponding customized rules collection,, concentrate the custom fields of each customized rules to mate with described customized rules respectively the custom fields information of Business Stream.
Described implementation method wherein, in the steps A 22, judges that the charging regulation that the match is successful comprises the customized rules set identifier, and also carry out following steps: judging whether described customized rules set identifier is legal, is then to carry out A23; And, steps A 23 specifically may further comprise the steps: obtain corresponding customized rules collection, customized rules according to the described customized rules collection of described customized rules set identifier index, judge successively whether each customized rules sign is legal, be then with the custom fields information of Business Stream, mate with the custom fields of each customized rules respectively.
Described implementation method, wherein, in the steps A 23, described judgement obtains corresponding customized rules, may further comprise the steps one of them: obtain first customized rules that the match is successful; Perhaps, coupling is finished till all customized rules, obtains whole customized rules that the match is successful.
Described implementation method, wherein, steps A 1 is also carried out following steps: A10, configuration service label table, its comprise at least the following one of them: service identification, rate, whether coin free service, whether allow access; And, in the steps A 2, before current business and charging regulation mate, also carry out following steps:, judge whether current business needs to mate with charging regulation, is then to mate according to described service identification table.
Described implementation method, wherein, in the steps A 1, described custom fields form is: Hostname or IP address: port; And, in the steps A 2, custom fields information with Business Stream, mate with the custom fields of customized rules, specifically may further comprise the steps: A201, title in the custom fields information of Business Stream or IP address, the custom fields content of each customized rules of concentrating with described customized rules compares, and judges whether unanimity; Be then to carry out A202; A202, judge that whether the character late of the custom fields content of title in the custom fields information of Business Stream or IP address and current customized rules is ": ", is then to carry out A203, otherwise thinks that it fails to match with current customized rules; A203, with the port in the custom fields information of Business Stream, compare with the port of the custom fields content of current customized rules, judge whether unanimity, be to think that then the match is successful with current customized rules.
Adopt such scheme, the present invention can accurately match the real host address of Java user application visit, realizes according to the different charge strategy, charges according to the different business content.
Description of drawings
Fig. 1 is the flow chart of the inventive method;
Fig. 2 is the charging regulation coupling flow chart of the inventive method;
Fig. 3 is the customized rules coupling flow chart of the inventive method;
Fig. 4 is the mutual schematic diagram of customized rules module of system of the present invention
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
According to China Mobile or other Java wireless service development specifications, when the client-side program of online application program sends request to WAP gateway, must in packet header, add online server host identification information, these information all are with a certain keyword beginning, for example, keyword is X-Online-Host; General form is X-Online-Host: the host name of line server: port; For example, X-Online-Host:www.yourdomain.com perhaps also can be X-Online-Host:202.202.202.202:202.The common feature of these application is line server and port numbers that WAP gateway forwards message to as the agency host identification appointment, that is to say in the existing Java applied business stream based on WAP all has a keyword, and the real host name/IP address and the port numbers of user capture just are configured in thereafter.
Therefore, the present invention has increased by a customization field, and each custom fields of definition in charging policy at first, and when resolving Business Stream obtains the custom fields information of Business Stream behind the keyword, makes based on the charging of the Java wireless service of WAP more accurate.That is to say, the mode that the present invention proposes to effectively chargeing based on the Java wireless service of WAP, be at original charging regulation, according to 5 tuples charge the coupling the basis on increase one-level again: to the coupling of custom fields, for example, for the Java wireless service of China Mobile, this custom fields is exactly the X-Online-Host keyword, thereby makes based on the charging of the Java wireless service of WAP more accurate.
As shown in Figure 1, the invention provides a kind of implementation method of Java wireless service charging, it may further comprise the steps:
A1, configuring charging rule and customized rules, described charging regulation comprises the customized rules relevant information, described customized rules comprises custom fields and service identification, wherein, described service identification (comprising service identification described below) can comprise at the service identification of uplink service and at the service identification of downlink business; In when configuration during a customized rules, correspondence is provided with a service identification, software is in specific implementation, distinguishing according to the flow direction of business is uplink service, or downlink business, the arrival of uplink service message can match a service identification and identify as uplink service, and the arrival of downlink business message also matches a service identification and identifies as downlink business.
A2, resolving Business Stream, judge whether the charging regulation that the match is successful comprises the customized rules relevant information, is then with the custom fields information of Business Stream, mates with the custom fields of customized rules;
Whether A3, judgement mate successful, are then to obtain corresponding customized rules, charge according to its service identification.Promptly adopt the service identification of described customized rules, as uplink service sign of chargeing required or downlink business sign; Send to relevant charging flow then, this Business Stream is realized chargeing.
An embodiment first is that steps A 1 specifically may further comprise the steps:
A11, configuration and customization rule list, wherein each customized rules comprise at least the following one of them: customized rules sign, custom fields title, custom fields content, service identification; Promptly fixed configuration system rule list comprises and is configured to down content: in customized rules sign, custom fields title, custom fields content, the service identification one or multinomial, need to prove, in fact described service identification can comprise uplink service sign and/or downlink business sign.
A12, the described charging regulation table of configuration, wherein each charging regulation comprise at least the following one of them: charging regulation sign, server ip, initial/terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules sign, service identification; Be that the configuring charging rule list comprises and is configured to down content: in configuring charging rule sign, server ip, both port of origination, terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules set identifier, the service identification one or multinomial.
Wherein, uniform resource position mark URL (Uniform Resource Location, URL(uniform resource locator)) comprised and be used for the agreement name of access file resource, the domain name of sign certain specific computer on the internet, and pathname, for example, http://www.johnsonip.cn/index.htm; Also can be the IP address, perhaps IP address and port thereof can also be a string keyword, for example com; Perhaps asterisk wildcard and crucial contamination, for example * cn* or the like.
And steps A 2 is also carried out following steps: judge whether the charging regulation that the match is successful comprises the customized rules sign, is then to obtain corresponding customized rules, with the custom fields information of Business Stream, mates with the custom fields of described customized rules.
On the basis of embodiment first, an example is to adopt following examples second.
Steps A 11 is also carried out following steps: configuration and customization rule set table, wherein each customized rules collection comprise at least the following one of them: customized rules set identifier, customized rules set name claim, customized rules sign; Be that configure user customized rules collection table comprises and is configured to down content: in configuration rule set identifier, ruleset name, the user definition rule sign one or multinomial.
And, steps A 2 is also carried out following steps: judge whether the charging regulation that the match is successful comprises the customized rules set identifier, be then to obtain corresponding customized rules collection,, concentrate the custom fields of each customized rules to mate with described customized rules respectively the custom fields information of Business Stream.
That is to say that steps A 1 comprises the custom fields configuration step, on the basis of original charging regulation, increased the relevant configuration item of custom fields; The coupling step of charging regulation flows to relevant charging regulation according to 5 tuples and URL coupling business; The coupling step of customized rules judges charging regulation mates under the charging regulation that obtains whether disposed the customized rules collection, is then further to carry out the custom fields coupling.
On the basis of embodiment second, an example is, can adopt following examples the third, and steps A 2 specifically may further comprise the steps:
A21, resolving Business Stream, according to its 5 tuple information and URL(uniform resource locator), each charging regulation of itself and described charging regulation table is mated, judge whether that the match is successful, obtain corresponding charging regulation, is then to carry out A22; Wherein, resolve Business Stream, obtain service traffics information that 5 tuple information, URL(uniform resource locator), custom fields information and subsequent charging use or the like.
Whether A22, the judgement charging regulation that the match is successful comprise the customized rules set identifier, are then to carry out A23, otherwise adopt the service identification of described charging regulation to charge; The service identification that is about to described charging regulation sends to relevant charging flow, and this Business Stream is realized chargeing.
A23, obtain corresponding customized rules collection,, concentrate the custom fields of each customized rules to mate with described customized rules respectively the custom fields information of Business Stream.
On the basis of embodiment third, an example is to adopt following examples fourth, in the steps A 22, judge that the charging regulation that the match is successful comprises the customized rules set identifier, also carry out following steps: judging whether described customized rules set identifier is legal, is then to carry out A23;
And, steps A 23 specifically may further comprise the steps: obtain corresponding customized rules collection, customized rules according to the described customized rules collection of described customized rules set identifier index, judge successively whether each customized rules sign is legal, be then with the custom fields information of Business Stream, mate with the custom fields of each customized rules respectively.
Like this, when Business Stream arrives, can be earlier carry out the coupling of charging regulation according to 5 tuples and URL, coupling finishes the back just can obtain corresponding charging regulation.Judge then and whether disposed the customized rules collection under this charging regulation; If there is not the configuration and customization rule set, then adopt the service identification of this charging regulation, matching process finishes.
Result according to the charging regulation coupling, if disposed the customized rules collection under this charging regulation, then take out customized rules collection ID, whether judgment rule collection ID is legal then, ID is legal further to carry out the customized rules coupling according to rule set ID again, mate one by one according to the custom fields content in the customized rules that disposes in custom fields information of from Business Stream, obtaining and the system, up to having mated all customized rules, for example through finding corresponding customized rules after the customized rules coupling, matching process finishes.
Wherein said custom fields information matches step specifically can comprise: the custom fields content format is: host name (host)/IP address: port, at first compare the custom fields content part, and whether content-length is consistent with content; Confirm after the content part unanimity whether character late is ": ", if for ": " then the length of port is zero, otherwise port length is not 0; Port length is non-vanishing, and relatively whether the length of port is consistent with content again.
And for example, in the steps A 23, described judgement obtains corresponding customized rules, may further comprise the steps one of them: obtain first customized rules that the match is successful; Perhaps, coupling is finished till all customized rules, obtains whole customized rules that the match is successful.
On the basis of embodiment third, another example is, steps A 1 is also carried out following steps: A10, configuration service label table, its comprise at least the following one of them: service identification, rate, whether coin free service, whether allow access; That is, the configuration service label table comprises and is configured to down content: service identification, rate, whether coin free service, whether allow in the access one or multinomial.
And, in the steps A 2, before current business and charging regulation mate, also carry out following steps:, judge whether current business needs to mate with charging regulation, is then to mate according to described service identification table.
Another example is that in the steps A 1, described custom fields form is: Hostname or IP address: port; And, in the steps A 2,, mate with the custom fields of customized rules with the custom fields information of Business Stream, specifically may further comprise the steps.
A201, with title in the custom fields information of Business Stream or IP address, the custom fields content of each customized rules of concentrating with described customized rules compares, and judges whether unanimity; Be then to carry out A202;
A202, judge that whether the character late of the custom fields content of title in the custom fields information of Business Stream or IP address and current customized rules is ": ", is then to carry out A203, otherwise thinks that it fails to match with current customized rules;
A203, with the port in the custom fields information of Business Stream, compare with the port of the custom fields content of current customized rules, judge whether unanimity, be to think that then the match is successful with current customized rules.And then execution in step A3, according to the uplink and downlink sign, adopt and the corresponding charging regulation of current customized rules, current business is chargeed.
Continue in conjunction with the accompanying drawings below, the inventive method is described.
As shown in Figure 1, be the implementation method flow chart of the present invention to the custom fields coupling, this flow process has been described a kind of implementation method of custom fields, specifically comprise following three steps: step 201, the configuration of custom fields has increased customization rule set table and customized rules table on the basis of original charging regulation; Step 202, the coupling of charging regulation flows to relevant charging regulation according to 5 tuples with the URL coupling is professional, draws the service identification of this charging regulation, can be uplink service sign and/or downlink business sign; Step 203, the coupling of customized rules, the customized rules content that disposes in custom fields information of obtaining according to Business Stream and the system is mated one by one, up to the service identification that draws customized rules.
In step 201, further comprise configuration service label table, configure user customized rules collection table, configure user definition rule table and configuring charging rule list step.
In the step of configuration service label table, comprise of being configured to down in the content or multinomial:
A1) service identification, business of unique identification in the system;
A2) rate is according to the different price strategies of flow, time or number of times formulation;
A3) coin free service whether judges whether this business is free;
A4) whether allow access, judge whether this business can enter charge system.
In the step of configure user customized rules collection table, comprise of being configured to down in the content or multinomial:
B1) rule set sign, rule set can comprise a plurality of customized rules, rule set be with a charging regulation one to one.After matching a charging regulation, if this charging regulation has disposed the customized rules collection, system will further carry out the x-online-host matching process;
B2) ruleset name, the another name of rule set;
B3) user definition rule sign, all belong to the set of the customized rules below this rule set.
In configuration and customization rule list step, comprise of being configured to down in the content or multinomial:
C1) customized rules sign, customized rules of unique identification;
C2) custom fields title, for example: x-online-host
C3) custom fields content, the line server name and the port numbers of configuration, existing form is: host name (host)/IP address (string format): port (string format)
C4) the uplink service sign matches the uplink message service identification that obtains behind this charging regulation;
C5) the downlink business sign matches the downlink message service identification that obtains behind this charging regulation;
Wherein, also a service identification can only be set, match the message traffic sign that obtains behind this charging regulation.
In configuring charging rule list step, comprise of being configured to down in the content or multinomial:
D1) charging regulation sign, charging regulation of unique identification in the system;
D2) server ip, the gateway ip address of service request;
D3) initial/terminating port, the port numbers of service request are in this port range, and the WAP port numbers during WAP uses is operator's appointment;
D4) transport layer protocol, the application protocol on upper strata perhaps are to be carried on TCP to be carried on the UDP (User Datagram Protocol, User Datagram Protoco (UDP));
D5) priority charging regulation occurring when overlapping, judges that according to this priority Business Stream preferentially mates the high charging regulation of rank, and range of priority values is defined as from 1 to 255;
D6) application protocol comprises the agreement that existing system is supported: WAP1.x, HTTP, FTP, RTSP, POP3, SMTP, TELNET, WAP2.0; Need to prove that the present invention does not do additional limits to this, this application protocol also comprises the agreement that system in future is supported, should comprise the agreement that system supported in foreseeable future at least.
Wherein WAP (Wireless Application Protocol) is a WAP (wireless application protocol), RTSP (RealTime Streaming Protocol) is a real-time streaming protocol, POP3 (Post Office Protocol-Version3) is a Post Office Protocol,Version 3, and SMTP (Simple Mail Transfer Protocol) is simple Mail host-host protocol.
D7) URL, URL(uniform resource locator) mainly is to adopt the different charge strategy for the different content to same website;
D8) customized rules set identifier if upper-layer protocol is WAP1.x or WAP2.0, then will be filled in the customized rules that has been configured in the customized rules sign;
D9) the uplink service sign matches the uplink message service identification that obtains behind this charging regulation;
D10) the downlink business sign matches the downlink message service identification that obtains behind this charging regulation;
Wherein, also a service identification can only be set, match the message traffic sign that obtains behind this charging regulation.
The customization rule set be with charging regulation one to one, and the user definition rule set comprises a plurality of customized rules, an original like this charging regulation just can have a plurality of customized rules down.After user traffic flow matches a charging regulation, the coupling that can carry out customized rules according to the host name and the port numbers of customized rules configuration again, the WAP Business Stream of the coupling different Java wireless services in back just can match different business up-downgoing sign, thereby implements different charging policy.
In the step 202, mainly be that Java wireless service Business Stream is matched charging regulation, and further judge and whether disposed the customized rules collection under this charging regulation, if disposed the customized rules collection then will carry out the matching process of customized rules again.
As shown in Figure 2, be the flow chart of charging regulation coupling of the present invention, concrete steps are as follows:
When step 301, Business Stream arrival, elder generation carries out the coupling of charging regulation according to 5 tuples (purpose IP+ source, source destination interface+protocol type) and URL, in our system, mainly mate according to purpose IP address, destination interface, application protocol type and URL, coupling finishes the back just can obtain corresponding charging regulation, takes out the service identification of this charging regulation and preserves;
Step 302, obtain judging whether disposed the customized rules collection under this charging regulation behind the charging regulation that if there is not the rule set of configuration and customization, the charging regulation matching process finishes; If disposed the customized rules collection under this charging regulation, then take out customized rules collection ID;
Step 303, further carry out customized rules coupling according to rule set ID, wherein, the process of coupling is that all custom fields of custom fields content in the WAP Business Stream and customized rules centralized configuration are mated one by one;
If step 304 finds corresponding customized rules after mating through customized rules, the service identification that then takes out customized rules replaces the service identification of former charging regulation, and matching process finishes; If it fails to match for customized rules, then still keep the service identification of charging regulation, matching process finishes.
As shown in Figure 3, be the flow chart of customized rules coupling of the present invention, concrete steps are as follows:
Step 401, according to the result of charging regulation coupling, draw rule set ID, whether judgment rule collection ID legal then, because the restriction of system itself, the rule set size definition is 1-100, if rule set ID not in this scope then illegal, the customized rules coupling finishes;
Step 402, according to its following all customized rules of rule set ID index;
Step 403, read a rule ID in the rule set,, then get first rule ID, otherwise get next rule ID if coupling just begins;
Whether step 404, judgment rule ID be legal, and for example, because the restriction of system itself can be 1-400 with the size definition of rule ID, the rule ID in this scope is not considered as illegal.If the legal coupling of just carrying out customized rules of rule ID, otherwise jump to step 407;
Step 405, carry out the coupling of customized rules, matching process is to obtain the customized rules content that disposes in x-online-host information and the system according to Business Stream to mate one by one;
If the match is successful for step 406, then take out the service identification of this customized rules, matching process finishes;
Step 407, do not have that the match is successful, judge whether to travel through all charging regulations, do not have also that the match is successful if traveled through all customized rules, then matching process finishes;
If step 408 does not travel through end, then take out next customized rules, and judge whether its ID is zero, be that zero matching process finishes, continue matching process otherwise jump to 403.
And, as shown in Figure 4, the present invention also provides a kind of system of Java wireless service charging, it comprises flow analysis module, data configuration module, charging regulation matching module and accounting module, described charging regulation matching module is connected with described flow analysis module, described data configuration module respectively, and described flow analysis module also is connected with described accounting module.
This system also comprises the customized rules matching module, be connected with described flow analysis module, described data configuration module respectively, and described charging regulation matching module is connected with described accounting module by described customized rules matching module.
Described flow analysis module is used to extract 5 tuples, URL, custom fields information and service traffics information of Business Stream or the like, other module for system is used, comprise that 5 tuples, URL with this Business Stream send to described charging regulation matching module, the custom fields information of this Business Stream is sent to described customized rules matching module, and the service traffics information of this Business Stream is sent to described accounting module.
Described data configuration module is used for configuring charging rule and customized rules, and described charging regulation comprises the customized rules relevant information, and described customized rules comprises custom fields and service identification; For example, described charging regulation comprise at least the following one of them: charging regulation sign, server ip, initial/terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules sign, service identification.
Described charging regulation matching module is used for 5 tuples and the URL according to current business, mates with each charging regulation, and the match is successful then obtains corresponding charging regulation, thereby obtains its service identification; And described charging regulation matching module also is provided with the charging regulation judging unit, is used for when the charging regulation that the match is successful has customized rules, transfers to described customized rules matching module and handles; Otherwise, judge when the customized rules that the charging regulation that the match is successful does not have, directly, transfer to described accounting module and handle the uplink service sign or the downlink business sign of charging regulation.
Described customized rules matching module is used for the custom fields information of Business Stream and the custom fields of customized rules are mated, the match is successful then obtains corresponding customized rules, its service identification is sent to described accounting module, substituting the service identification that described charging regulation matching module obtains, and send to described accounting module and handle.
Described accounting module comprises uplink service sign and/or downlink business sign according to service identification, and the service traffics information of this Business Stream, searches corresponding rate, and this Business Stream is realized chargeing.
A better example is that described customized rules matching module is provided with the customized rules table unit, is used for the store customized rule; Described customized rules comprise at least the following one of them: customized rules sign, custom fields title, custom fields content, service identification.Like this, described charging regulation comprise at least the following one of them: charging regulation sign, server ip, initial/terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules sign, service identification.
On the basis of above-mentioned example, be more preferably, described customized rules matching module also is provided with customized rules collection table unit, is used for the store customized rule set; Described customized rules collection comprise at least the following one of them: customized rules set identifier, customized rules set name claim, customized rules sign.
Described charging regulation matching module is provided with the charging regulation table unit, is used to store charging regulation, and described charging regulation comprises the customized rules set identifier; Like this, described charging regulation comprise at least the following one of them: charging regulation sign, server ip, initial/terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules set identifier, service identification.
And described customized rules matching module also is provided with the customized rules judging unit, is used for calling described customized rules table unit when customized rules collection table has corresponding customized rules.
Described charging regulation module is provided with the service identification table unit, and it is connected with described data configuration module, is used to store charging policy; Described charging policy comprise at least the following one of them: service identification, rate, whether coin free service, whether allow access.
Like this, the data configuration module is configured system, comprises configuration service label table, configure user customized rules collection table, configure user definition rule table and configuring charging rule list.
A complete example of system of the present invention is described as follows: as shown in Figure 4, be the modular structure figure of system of the present invention, system of the present invention realizes that the module that Java wireless service charging coupling comprises has: flow analysis module 11, charging regulation matching module 12, data configuration module 13, customized rules matching module 14 and accounting module 15.
At first by flow analysis module 11, charging regulation matching module 12 and data configuration module 13 cooperate the coupling of carrying out charging regulation together; By flow analysis module 11, customized rules matching module 14 and data configuration module 13 cooperate the coupling of carrying out customized rules together again; The last service identification of the charging regulation that draws according to coupling by accounting module 15, the service identification that perhaps mates the customized rules that draws, determine the rate Calculation Method, and provide the flow size, calculate Java wireless service functional expenses together by flow analysis module 11.
11 pairs of user service flow of flow analysis module are analyzed, and extract 5 tuple information, URL, custom fields information and service traffics information etc. in user's stream, use for other module of system.With the mutual process of charging regulation matching module 12 in 5 tuple information and URL information are provided for the coupling of charging regulation; With user's message custom fields information is provided for the customization rule match in the mutual process of customized rules matching module 14; With the service traffics information that statistics is provided in the mutual process of accounting module 15.
Data configuration module 13 and charging regulation matching module 12, customized rules matching module 14 are mutual, all are to provide system configuration information by data configuration module 13.
Below in conjunction with System and method for of the present invention, with regard to the application of Java wireless service, custom fields is that the matching process of x-online-host is elaborated.
At first will be in the data configuration module configuration rule, guide supplier to dispose charging regulation and customized rules that the Java wireless service is used.Configuration step is as follows:
E1) configuration service label table, to all the business configuration corresponding business that relates to sign and rate, for example the configuration service sign 1,2,3,4,5 and 6, and 1 yuan/KB of rate allows access, and is non-free.
E2) configuration and customization rule set table, for example configuration rule set is designated 1, comprises customization rule sign 1, ruleset name x-online-host1.
E3) configuration and customization rule list, configuration and customization rule sign 1, custom fields title x-online-host, custom fields content www.game.com.cn:80, uplink service sign 5, downlink business sign 6.
E4) configuring charging rule list, charging regulation sign 1, server ip 10.0.0.172, port 9201, transport layer protocol TCP, priority 15, application protocol WAP2.0, URL are configured to * com*, customized rules set identifier 1, uplink service sign 3, downlink business sign 4.
When the Business Stream of mobile phone access WAP server www.game.com.cn arrives, 11 pairs of Business Streams of flow analysis module are analyzed, at first extract 5 tuple information and the URL of data service, for example, the IP address is: 10.0.0.172, port is 9028, the agreement of transport layer is TCP, application protocol is WAP2.0, URL is * sports*, and charging regulation matching module 12 mates according to the charging regulation of configuration in the data configuration module 13, matches on the charging regulation 1, taking out the up-downgoing sign 3,4 of this charging regulation preserves; Charging regulation matching module 12 checks that this charging regulation has also disposed the customized rules collection at this moment, then takes out the coupling that customized rules collection ID:1 proceeds x-online-host.
The customized rules set identifier that the coupling of x-online-host is obtained according to the charging regulation coupling by customized rules matching module 14 carries out the coupling of customized rules.The process of coupling is that the x-online-host that all customized rules under the customized rules collection are taken out in the message that obtains with flow analysis module 11 is in order compared.
X-online-host field contents form is: host name (host)/IP address (string format): port (string format).When handling coupling to the further refinement of x-online-host field.Thinning process: when obtaining the x-online-host information of configuration in the x-online-host content field of configuration, the x-online-host information of obtaining is divided into two parts is kept in the customized rules.These two parts such as undertissue: at first search ': ' in the x-online-host content of configuration, if search successfully, ': ' preceding content is kept at the content part of customized rules so, and writes down its length; Content after ': ' is kept at the port section of customized rules, and writes down its length.If in the x-online-host content of configuration, search less than ': ', think that so the user does not dispose the port part, user configured x-online-host content is written to the content part of customized rules, and writes down its length; And the port part of customized rules distinguished 0, and to write down its length be 0.
The customized rules of configuration and the x-online-host matching process in the message: at first compare the x-online-host content part, whether content-length is consistent with content; Confirm after the content part unanimity whether character late is ": ", if for ": " then the length of port is zero, otherwise port length is not 0; Port length is non-vanishing, and relatively whether the length of port is consistent with content again.
If the service identification that the service identification of customized rules replaces charging regulation, the unsuccessful service identification of then not replacing charging regulation of coupling are taken out in coupling x-online-host success back.For example the x-online-host that obtains in the message is: www.game.com.cn:80, then match customized rules 1, and the uplink and downlink service identification of obtaining is respectively 5,6.
Accounting module 15 is found the expense computational methods according to the service identification that matches in the service identification table, provide the flow of the Java wireless service of statistics, accounting module 15 directly to calculate the charge of user Java wireless service cost of use and call list by flow analysis module 11.
Adopt the present invention program, can accurately match the real host address of Java user application visit, realize according to the different charge strategy, charge according to the different business content.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (11)

1, a kind of system of Java wireless service charging, it comprises flow analysis module, data configuration module, charging regulation matching module and accounting module, described charging regulation matching module is connected with described flow analysis module, described data configuration module, described accounting module respectively, and described flow analysis module also is connected with described accounting module;
It is characterized in that it also comprises the customized rules matching module, be connected with described flow analysis module, described data configuration module respectively, and described charging regulation matching module is connected with described accounting module by described customized rules matching module;
Described flow analysis module also is used to extract the custom fields information of Business Stream, and this custom fields information is sent to described customized rules matching module;
Described data configuration module is used for configuring charging rule and customized rules, and described charging regulation comprises the customized rules relevant information, and described customized rules comprises custom fields and service identification;
Described charging regulation matching module also is provided with the charging regulation judging unit, is used for when the charging regulation that the match is successful has customized rules, transfers to described customized rules matching module and handles;
Described customized rules matching module is used for the custom fields information of Business Stream and the custom fields of customized rules are mated, and the match is successful then obtains corresponding customized rules, and its service identification is sent to described accounting module.
2, system according to claim 1 is characterized in that, described customized rules matching module is provided with the customized rules table unit, is used for the store customized rule;
Described customized rules comprise at least the following one of them: customized rules sign, custom fields title, custom fields content, service identification.
3, system according to claim 2 is characterized in that, described customized rules matching module also is provided with customized rules collection table unit, is used for the store customized rule set; Described customized rules collection comprise at least the following one of them: customized rules set identifier, customized rules set name claim, customized rules sign;
Described charging regulation matching module is provided with the charging regulation table unit, is used to store charging regulation, and described charging regulation comprises the customized rules set identifier;
And described customized rules matching module also is provided with the customized rules judging unit, is used for calling described customized rules table unit when customized rules collection table has corresponding customized rules;
Described charging regulation module is provided with the service identification table unit, and it is connected with described data configuration module, is used to store charging policy; Described charging policy comprise at least the following one of them: service identification, rate, whether coin free service, whether allow access.
4, a kind of implementation method of Java wireless service charging, it may further comprise the steps:
A1, configuring charging rule and customized rules, described charging regulation comprises the customized rules relevant information, described customized rules comprises custom fields and service identification;
A2, resolving Business Stream, judge whether the charging regulation that the match is successful comprises the customized rules relevant information, is then with the custom fields information of Business Stream, mates with the custom fields of customized rules;
Whether A3, judgement mate successful, are then to obtain corresponding customized rules, charge according to its service identification.
5, implementation method according to claim 4 is characterized in that, steps A 1 specifically may further comprise the steps:
A11, configuration and customization rule list, wherein each customized rules comprise at least the following one of them: customized rules sign, custom fields title, custom fields content, service identification;
A12, the described charging regulation table of configuration, wherein each charging regulation comprise at least the following one of them: charging regulation sign, server ip, initial/terminating port, transport layer protocol, priority, application protocol, URL(uniform resource locator), customized rules sign, service identification;
And steps A 2 is also carried out following steps: judge whether the charging regulation that the match is successful comprises the customized rules sign, is then to obtain corresponding customized rules, with the custom fields information of Business Stream, mates with the custom fields of described customized rules.
6, implementation method according to claim 5, it is characterized in that, steps A 11 is also carried out following steps: configuration and customization rule set table, wherein each customized rules collection comprise at least the following one of them: customized rules set identifier, customized rules set name claim, customized rules sign;
And, steps A 2 is also carried out following steps: judge whether the charging regulation that the match is successful comprises the customized rules set identifier, be then to obtain corresponding customized rules collection,, concentrate the custom fields of each customized rules to mate with described customized rules respectively the custom fields information of Business Stream.
7, implementation method according to claim 6 is characterized in that, steps A 2 specifically may further comprise the steps:
A21, resolving Business Stream, according to its 5 tuple information and URL(uniform resource locator), each charging regulation of itself and described charging regulation table is mated, judge whether that the match is successful, obtain corresponding charging regulation, is then to carry out A22;
Whether A22, the judgement charging regulation that the match is successful comprise the customized rules set identifier, are then to carry out A23, otherwise adopt the service identification of described charging regulation to charge;
A23, obtain corresponding customized rules collection,, concentrate the custom fields of each customized rules to mate with described customized rules respectively the custom fields information of Business Stream.
8, implementation method according to claim 7 is characterized in that, in the steps A 22, judges that the charging regulation that the match is successful comprises the customized rules set identifier, and also carry out following steps: judging whether described customized rules set identifier is legal, is then to carry out A23;
And, steps A 23 specifically may further comprise the steps: obtain corresponding customized rules collection, according to described customized rules set identifier, the customized rules of the described customized rules collection of index, judge successively whether each customized rules sign is legal, be then with the custom fields information of Business Stream, mate with the custom fields of each customized rules respectively.
9, implementation method according to claim 8 is characterized in that, in the steps A 23, described judgement obtains corresponding customized rules, may further comprise the steps one of them:
Obtain first customized rules that the match is successful; Perhaps, coupling is finished till all customized rules, obtains whole customized rules that the match is successful.
10, implementation method according to claim 5 is characterized in that, steps A 1 is also carried out following steps: A10, configuration service label table, its comprise at least the following one of them: service identification, rate, whether coin free service, whether allow access;
And, in the steps A 2, before current business and charging regulation mate, also carry out following steps:, judge whether current business needs to mate with charging regulation, is then to mate according to described service identification table.
11, implementation method according to claim 4 is characterized in that, in the steps A 1, described custom fields form is: Hostname or IP address: port;
And, in the steps A 2,, mate with the custom fields of customized rules with the custom fields information of Business Stream, specifically may further comprise the steps:
A201, with title in the custom fields information of Business Stream or IP address, the custom fields content of each customized rules of concentrating with described customized rules compares, and judges whether unanimity; Be then to carry out A202;
A202, judge that whether the character late of the custom fields content of title in the custom fields information of Business Stream or IP address and current customized rules is ": ", is then to carry out A203, otherwise thinks that it fails to match with current customized rules;
A203, with the port in the custom fields information of Business Stream, compare with the port of the custom fields content of current customized rules, judge whether unanimity, be to think that then the match is successful with current customized rules.
CNA2008100663856A 2008-03-28 2008-03-28 System for Java wireless service charging and implementing method thereof Pending CN101466088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100663856A CN101466088A (en) 2008-03-28 2008-03-28 System for Java wireless service charging and implementing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100663856A CN101466088A (en) 2008-03-28 2008-03-28 System for Java wireless service charging and implementing method thereof

Publications (1)

Publication Number Publication Date
CN101466088A true CN101466088A (en) 2009-06-24

Family

ID=40806391

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100663856A Pending CN101466088A (en) 2008-03-28 2008-03-28 System for Java wireless service charging and implementing method thereof

Country Status (1)

Country Link
CN (1) CN101466088A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883178A (en) * 2010-05-10 2010-11-10 天津通广集团数字通信有限公司 Method and system for automatically timing and metering during surfing Internet with cell phone on basis of cell phone terminal
CN102981882A (en) * 2011-09-05 2013-03-20 北京旋极信息技术股份有限公司 Analytic method and analytic device
CN104378258A (en) * 2014-11-14 2015-02-25 东莞宇龙通信科技有限公司 Network traffic monitoring method and device and terminal
CN108600107A (en) * 2017-11-07 2018-09-28 北京交通大学 A kind of stream matching process can customize content field

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883178A (en) * 2010-05-10 2010-11-10 天津通广集团数字通信有限公司 Method and system for automatically timing and metering during surfing Internet with cell phone on basis of cell phone terminal
CN102981882A (en) * 2011-09-05 2013-03-20 北京旋极信息技术股份有限公司 Analytic method and analytic device
CN102981882B (en) * 2011-09-05 2016-02-03 北京旋极信息技术股份有限公司 Analytic method and device
CN104378258A (en) * 2014-11-14 2015-02-25 东莞宇龙通信科技有限公司 Network traffic monitoring method and device and terminal
CN104378258B (en) * 2014-11-14 2019-01-15 东莞宇龙通信科技有限公司 A kind of network flow monitoring method, device and terminal
CN108600107A (en) * 2017-11-07 2018-09-28 北京交通大学 A kind of stream matching process can customize content field

Similar Documents

Publication Publication Date Title
US8326940B2 (en) Transfer device
EP1351434B1 (en) Billing method for an information communication network
CN100377523C (en) Data service information collecting device and charging method using same
CN101375264B (en) Techniques for accounting for multiple transactions in a transport control protocol (TCP) payload
CN1314251C (en) Comprehensive business platform and its business flow path control method
CN105828310B (en) Charging method, device and system for data service
CN101466088A (en) System for Java wireless service charging and implementing method thereof
KR20030046761A (en) Method for Generation of Charging Data per List in Mobile Communication System
CN100401676C (en) Method for content charging of data service
CN101232386B (en) Method for counting MMS flow quantity
JP3348714B2 (en) Apparatus in mobile terminal company, billing method, and recording medium recording billing program
CN101420310B (en) Implementing method for staged processing charging rule and system thereof
JP3987518B2 (en) Information communication system and method
CN1564552A (en) Method of carrying out radio data service integrated network gate
CN1318246A (en) Connection unit and method for establishing data connection
CN102239729A (en) Method, device and system for mobile network access control
NZ502690A (en) Push-type information transmission method and transfer device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090624