CN102055594B - Method and device for determining charging strategy based on IP addresses - Google Patents

Method and device for determining charging strategy based on IP addresses Download PDF

Info

Publication number
CN102055594B
CN102055594B CN 201010614111 CN201010614111A CN102055594B CN 102055594 B CN102055594 B CN 102055594B CN 201010614111 CN201010614111 CN 201010614111 CN 201010614111 A CN201010614111 A CN 201010614111A CN 102055594 B CN102055594 B CN 102055594B
Authority
CN
China
Prior art keywords
analysis
address
length
analytical table
level
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
CN 201010614111
Other languages
Chinese (zh)
Other versions
CN102055594A (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.)
SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd filed Critical SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN 201010614111 priority Critical patent/CN102055594B/en
Publication of CN102055594A publication Critical patent/CN102055594A/en
Application granted granted Critical
Publication of CN102055594B publication Critical patent/CN102055594B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for determining a charging strategy based on IP addresses. Analysis tables are established according to the assigned IP addresses, and the IP addresses required for analysis are introduced into the analysis tables to obtain a corresponding charging strategy. The invention has the advantages that: the analysis tables corresponding to the individual digits of the IP addresses are established and provided with the matching analytical results and the matching charging strategies; the charging strategy of the assigned IP addresses is analyzed by retrieving the tables; and the method is easy to implement, and the execution efficiency is increased by reducing the data configuration load, so that the increase in the efficiency of analyzing the charging strategy is facilitated.

Description

A kind of method and device according to IP Address Confirmation charging policy
Technical field
The present invention relates to communication and field of computer technology, relate in particular to a kind of method and device according to IP Address Confirmation charging policy.
Background technology
Along with disposing down to the quickening of LTE wireless cellular network 3G, domestic mobile operator advances, and fairly perfect in the wireless coverage of densely populated urban place.The urbanization of China and reconstruction of the old city town all will continue to carry out in one quite long period; Operator originally became big to the estimation and the deviation between the existing urban construction of high wireless flow area and hot zones gradually; Cause the radio honeycomb of original hot spot region to cover to be difficult to and bear the more and more mobile user and insert the flow requirements for access with sustainable growth, and the new population that constantly occurs converges the high traffic access problem on ground.Operator is making great efforts radio honeycomb access network infrastructure such as the more base station of addressing construction always; But because the addressing of newly-increased radio honeycomb website is relatively more difficult; And be subject to the high bandwidth cost of wireless cellular network, in densely populated area or focus commercial affairs area increase the cellular radio access device and more and more become and be difficult to carry out.
On the other hand, domestic operator more and more payes attention to the operation and the fusion of full-service.Be that master's operator is constantly increasing the investment that fixed network is built to move originally, original was that main operator is in the investment that constantly increases mobile network's construction with fixed network services.For the operator that grasps a large amount of fixed network resources, how to utilize the capacity of fixed network to accept the high load capacity that moves the hot zones access flow, become operator the problem that must consider.The WLAN Radio Access Network is as the extension of fixed broadband network, and its construction cost is low, dispose more flexible, and WLAN and radio honeycomb dual-mode terminal or the successful on-line running of client.So in WLAN wireless coverage and wireless mobile cellular network overlay area stack place; Perhaps build the WLAN hotspot in mobile wireless cellular network high flow capacity area; Make the user when these wireless coverage overlap-add region are used mobile service; Can insert via wlan network, can effectively reduce the flow pressure and the load of radio honeycomb access network, guarantee or improve the quality of service of mobile subscriber when inserting via the radio honeycomb access network; Reduce customer complaint, and can satisfy and adapt to the business demand of the access data network that use large-screen multimedia mobile terminal user increases day by day fast.
Operator is that traditional mobile network obtains the service of moving and obtains the service of moving and formulated the different tariff lists from moving fusion network device admittedly.Because it is consistent with traditional mobile device in core-network side to move fusion network device admittedly, so just requires to move admittedly the fusion webmaster the needed charge information of mobile network and different with the charge information of move mode access can be provided.In practical application, admittedly move AP MAC Address that fusion device need serve from IP address that the user inserts with for the user charge information of calculating of falling into a trap, operand is very big, is unfavorable for improving the efficiency of operation of network.
Summary of the invention
Technical problem to be solved by this invention is, provides a kind of, can distinguish the type and the location assignment charging policy that insert IP quickly and effectively, thereby improves network operation efficient.
In order to address the above problem, the invention provides a kind of method of chargeing according to the IP Address Confirmation, comprising: (a) given a plurality of needs carry out the IP address or the IP address field of distinctive charging; (b) initialization one analytical table; Said analytical table comprises the level of analysis, numeral, analysis length and index four hurdles as a result; The said level of analysis is meant the figure place that rise on an IP address field left side, and said numeral is meant corresponding characters on this level of analysis, and said analysis length is meant the length of the IP address of being analyzed; The perhaps section length of IP address field acceptance of the bid measure net, said index as a result is meant corresponding analysis result; (c) with each character of given a plurality of IP address, and the character of IP address field acceptance of the bid measure barrier section is inserted in the initialized analytical table of step (b) and distribute analysis result, each analysis result all to have corresponding with it charging policy for it; (d) an IP address to be analyzed is provided; (e) the initial analysis level of setting retrieval be the numeral of ground floor character and correspondence with numeral, and setting initial analysis length is the maximum length of IP address to be analyzed; (f) retrieve in analytical table according to setting numeral, as not having this in the analytical table, then there is this in execution in step (g) if under a certain analysis length, retrieve in the analytical table, then execution in step (h); (g) keeping the level of analysis and numeral is ground floor character and corresponding numeral, and analysis length is deducted 1, and returns step (f) and retrieve, and has been 1 like analysis length, then withdraws from retrieval and obtains this illegal result in IP address to be analyzed; (h) continue each character that the retrieval analysis level is less than or equal to this analysis length, in analytical table, do not exist, then return and continue execution in step (g),, then obtain analysis result like whole existence if any a certain item.
As optional technical scheme, said step (h) further comprises: (h1), the character that at first level of analysis is equaled this analysis length is retrieved; As not having this in the analytical table; Then return execution in step (g), as there being this in the analytical table, execution in step (h2) then; (h2), again the level of analysis is retrieved less than each character of this analysis length, in analytical table, do not existed, then return and continue execution in step (g),, then obtain analysis result like whole existence if any a certain item.
As optional technical scheme, what need carry out distinctive charging is the IP address field, in the said step (c) of setting up IP adress analysis table; Further comprise: (c1); Whether the subnet mask of judging the IP address field is 4 multiple, as for being execution in step (c2) then, as is otherwise execution in step (c3); (c2), directly adopt step (c) that this IP address field is configured; (c3),, this IP address field is split into two parts, adopt step (c) to be configured respectively respectively with the most contiguous this subnet mask and be that two numerals of 4 multiple are two new subnet masks.
As optional technical scheme, said IP address and IP address field are with the character representation of 16 systems.
The present invention further provides a kind of device that charges according to the IP Address Confirmation, comprising: cell is given in the IP address, is used for IP address or IP address field that given a plurality of needs carry out distinctive charging; The analytical table initialization unit; Be used for initialization one analytical table, said analytical table comprises the level of analysis, numeral, analysis length and index four hurdles as a result, and the said level of analysis is meant the figure place that rise on an IP address field left side; Said numeral is meant corresponding characters on this level of analysis; Said analysis length is meant the length of the IP address of being analyzed, the perhaps section length of IP address field acceptance of the bid measure net, and said index as a result is meant corresponding analysis result; Analytical table is set up the unit; Be used for each character with given a plurality of IP address; And the character of IP address field acceptance of the bid measure barrier section is inserted in the initialized analytical table of analytical table initialization unit and distribute analysis result, each analysis result all to have corresponding with it charging policy for it; The IP address provides the unit, is used to provide an IP address to be analyzed; Initial retrieval value setup unit, the initial analysis level that is used to set retrieval is ground floor character and corresponding numeral with numeral, sets initial analysis length and be the maximum length of IP address to be analyzed; The initial retrieval unit is used for retrieving at analytical table according to setting numeral, as not having this in the analytical table, then gets into the analysis length adjustment unit, has this if under a certain analysis length, retrieve in the analytical table, then gets into the later retrieval unit; The analysis length adjustment unit; Be used to keep the level of analysis and numeral to be ground floor character and corresponding numeral, and analysis length is deducted 1, and return the initial retrieval unit and retrieve; Like analysis length has been 1, then withdraws from retrieval and obtains this illegal result in IP address to be analyzed; The later retrieval unit is used to continue each character that the retrieval analysis level is less than or equal to this analysis length, does not exist in analytical table if any a certain item, then returns the analysis length adjustment unit, like whole existence, then obtains analysis result.
As optional technical scheme; Said later retrieval unit further comprises: first retrieval module; The character that is used for the level of analysis is equaled this analysis length is retrieved, and as not having this in the analytical table, then returns the execution analysis length adjustment means; As having this in the analytical table, then get into second retrieval module; Second retrieval module is used for the level of analysis is retrieved less than each character of this analysis length, does not exist in analytical table if any a certain item, then returns the execution analysis length adjustment means, like whole existence, then obtains analysis result.
As optional technical scheme; What need carry out distinctive charging is the IP address field; Said analytical table is set up the unit and is further comprised: judge module; Whether the subnet mask that is used to judge the IP address field is 4 multiple, as for being then to carry out first configuration module, as is otherwise execution in step second configuration module; First configuration module is used for direct execution analysis table and sets up the unit this IP address field is configured; Second configuration module is used for respectively with the most contiguous this subnet mask and is that two numerals of 4 multiple are two new subnet masks, and this IP address field is split into two parts, and the execution analysis table is set up the unit and is configured respectively.
As optional technical scheme, said IP address and IP address field are with the character representation of 16 systems.
The invention has the advantages that; For each numerical digit of IP address is set up adress analysis table and The matching analysis result and charging policy for it; And analyze the charging policy of given IP address through the mode of retrieval tabulation; The method that is provided is implemented simple, and has improved execution efficient through reducing the data configuration amount, helps improving the analysis efficiency of charging policy.
Description of drawings
Accompanying drawing 1 is the implementation step sketch map of the embodiment of the method for the invention.
Accompanying drawing 2 is IP adress analysis tables that the embodiment of the method for the invention generates.
Accompanying drawing 3 is device architecture figure of the embodiment of device according to the invention.
Embodiment
Next combine accompanying drawing a kind ofly to make detailed description according to the method for IP Address Confirmation charging policy and the embodiment of device to of the present invention.
At first provide the embodiment of the method for the invention.Be the implementation step sketch map of this embodiment shown in the accompanying drawing 1, next combine instance that step described in the figure is made an explanation one by one.
Step a, given a plurality of needs carry out the IP address or the IP address field of distinctive charging.Can implement distinctive charging to a certain IP address, also can implement distinctive charging,, also the IP address field can be provided, also can both have both at the same time so step can promptly can provide the IP address to a certain IP address field.IP address in this execution mode and IP address field are all with 16 system character representations.If adopt 10 systems or 2 system numerals also can implement, but adopt 16 systems to represent required number of characters minimum (being merely 8 characters), so take 16 system characters for best for the IPv4 network.The IP address 192.168.0.0/16 and the 172.168.10.0/24 that for example represent with 10 systems, the character that converts 16 systems to should be C0A80000/16 and ACA80A00/24, wherein 16 and 24 is subnet mask.Suppose that here the 192.168.0.0/16 network segment is the local WLAN network segment, corresponding local charging policy, and 172.168.10.0/24 is the wireless cellular network network segment, corresponding roam charge strategy.As for similarities and differences local and the roam charge strategy, can define voluntarily and adjustment at any time by Virtual network operator.Certainly, this method also is applicable to the Access Network of other various access waies, and perhaps other need be according to inserting the scene that distinctive charging is come in the IP address.
Step b sets up an analytical table, and said analytical table comprises the level of analysis, numeral, analysis length and index four hurdles as a result.The said level of analysis is meant the figure place that rise on an IP address field left side, and obviously the IP adress analysis level for the IPv4 network should be any numeral in 1~8; Said numeral is meant corresponding characters on this level of analysis, and for the IP address code of 16 systems, this field should be any numeral among 1~F; Said analysis length is meant the length of the IP address of being analyzed; This field of IP address for the IPv4 network should be 8; The perhaps section length of IP address field acceptance of the bid measure net; If the subnet mask of the IP address code of 16 systems is 16, obviously this section length should be 4, and subnet mask is that the section length of 24 correspondences should be 6; Said index as a result is meant corresponding analysis result, and this can be defined by the user voluntarily, and for example local policy is 10, and the roam charge strategy is 11 etc.
Step c, with each character of given a plurality of IP address, and the character of IP address field acceptance of the bid measure barrier section is inserted in the analytical table that step b sets up and distribute analysis result, each analysis result all to have corresponding with it charging policy for it.Tabulation shown in the accompanying drawing 2 promptly for this reason step fill the IP adress analysis table after finishing.For example for first character C of C0A80000/16, it is in an IP address field left side and plays first, so the level of analysis is 1, numeral is C obviously, because the subnet mask of this IP address is 16, so corresponding analysis length is 4.The fill method of all the other each items repeats no more by that analogy here.Configuration for result for retrieval can be grasped by the user flexibly.For example, in this embodiment, can index as a result be extended this as 0 less than the item of analysis length, mean invalid value and represent to analyze also and finish, need to continue to analyze for the level of analysis.For the item that the level of analysis equates with analysis length, can give non-0 value, the corresponding a kind of analysis strategy of each non-0 value.C0A80000/16 is the local WLAN network segment, and corresponding analysis result should be 10, so with (4; 8,4) analysis result is set at 10, and ACA80A00/24 is the wireless cellular network network segment; So with (6; A, 6) analysis result is set at the charging policy of 11,10 and 11 corresponding respectively the local WLAN network segments and the charging policy of the wireless cellular network network segment.In other execution mode, also can be for the item configuration result index of the level of analysis, to realize that the different subnet network segments is carried out functions such as grouping management less than analysis length.In a word to the collocation method of index should be according to the flexible configuration that requires of network application as a result.
If the subnet mask of given IP address field is 4 multiple just, then directly adopt above-mentioned steps c that this IP address field is configured.If given subnet mask is not 4 multiple just; ACA80A00/19 for example; Then respectively with the most contiguous this subnet mask and be that the numeral 16 and 20 of 4 multiple is two new subnet masks; This IP address field being split into two parts ACA80A00/16 and ACA80A00/20, adopt step (c) to be configured respectively, should be identical for the analysis result that these two parts disposed certainly.For ACA80A00/16, the section of sign subnet should be preceding 4, so only need configuration ACA8,4 of back needn't dispose, and for ACA80A00/20; The section of sign subnet is preceding 5, so need configuration ACA80, and the analysis length of correspondence should be 5, for example (1; A, 5) and (5,0,5).Because this section is the wireless cellular network network segment, so the analysis result of (5,0,5) configuration should be 11.
Steps d provides an IP address to be analyzed.192.168.10.10 for example, changing into 16 systems is C0A80A0A.Only have under the situation of two address fields in this example; Range estimation can find out that this IP address should be local WLAN address; But in the server of reality, exist under the situation of a lot of the network segments and charging policy, need can confirm the network segment of living in and corresponding charging policy through analysis and judgement usually.Below be step how to judge this IP address charging policy.
Step e sets the initial value of retrieving.The initial analysis level of setting retrieval be the numeral of ground floor character and correspondence with numeral, and setting initial analysis length is the maximum length of IP address to be analyzed.Should be to set the initial retrieval value to be (1, C, 8) in this example.
Step f retrieves in analytical table according to setting numeral, and as not having this in the analytical table, then there is this in execution in step g if under a certain analysis length, retrieve in the analytical table, then execution in step h.At first retrieval (1, C, 8) does not obviously exist, then execution in step g in this example.
Step g, keeping the level of analysis and numeral is ground floor character and corresponding numeral, and analysis length is deducted 1, and returns step f and retrieve, and has been 1 like analysis length, then withdraws from retrieval and obtains this illegal result in IP address to be analyzed.In this example, the searching value (1, C, 7) that analysis length is deducted after 1 obviously also is non-existent.So chaining search exists in adress analysis table table to (1, C, 4), so according to the record of step f, at this moment should execution in step h.
Step h continues each character that the retrieval analysis level is less than or equal to this analysis length, does not exist in analytical table if any a certain item, then returns and continues execution in step g, like whole existence, then obtains analysis result.Should retrieve (2,0,4), (3, A, 4) and (4,8,4) in this example, the result exists.With to set up analysis strategy among the step c corresponding, the analysis result that obtains should be (4,8,4) pairing index as a result as analysis result, this execution mode is 10, means that this address is a local address.
Step h has more succinct method: the character that at first level of analysis is equaled this analysis length is retrieved, and promptly at first retrieval (4,8,4) in analytical table as not having this in the analytical table, is then returned execution in step g.There is this in the analytical table in this example, then again the level of analysis retrieved (2,0,4), (3 less than each character of this analysis length; A, 4) retrieve, do not exist in analytical table if any a certain; Then return and continue execution in step g, all exist in this example, then obtaining analysis result is 10.Below at first the level of analysis is equaled the method that the character of this analysis length retrieves and helps getting rid of rapidly illegal IP address, for example for one promptly not in local network segment also not for the 192.160.10.10/16 of the address of the wireless cellular network network segment, its 16 carry system code should be C0A00A0A; If adopt the method for retrieval one by one, (2,0; 4) and (3, A, 4) all exist; Only retrieving (4,0,4), just to judge this address be not exist in the adress analysis table; Be non-existent address and adopt the method for at first retrieving the 4th level (4,0,4) then can judge this rapidly.Though consider in simple mathematics probability angle; The probability that occurs difference at all levels should be identical; Change sorted order and as if can not improve recall precision; But consider that address visiting under the actual conditions normally more comes from the contiguous network segment, and the address difference of the contiguous network segment mainly concentrates on the back segment of IP address code, can effectively increase work efficiency in real work so in step h, at first retrieve last method.
Provide the embodiment of a kind of device that charges according to the IP Address Confirmation according to the invention below in conjunction with accompanying drawing.Accompanying drawing 3 is Organization Charts of the said device of this embodiment, comprising: cell 200 is given in the IP address, is used for IP address or IP address field that given a plurality of needs carry out distinctive charging; Analytical table initialization unit 210; Be used for initialization one analytical table, said analytical table comprises the level of analysis, numeral, analysis length and index four hurdles as a result, and the said level of analysis is meant the figure place that rise on an IP address field left side; Said numeral is meant corresponding characters on this level of analysis; Said analysis length is meant the length of the IP address of being analyzed, the perhaps section length of IP address field acceptance of the bid measure net, and said index as a result is meant corresponding analysis result; Analytical table is set up unit 220; Be used for each character with given a plurality of IP address; And the character of IP address field acceptance of the bid measure barrier section is inserted in the analytical table initialization unit 210 initialized analytical tables and distribute analysis result, each analysis result all to have corresponding with it charging policy for it; The IP address provides unit 230, is used to provide an IP address to be analyzed; Initial retrieval value setup unit 240, the initial analysis level that is used to set retrieval is ground floor character and corresponding numeral with numeral, sets initial analysis length and be the maximum length of IP address to be analyzed; Initial retrieval unit 250; Be used for retrieving at analytical table,, then get into analysis length adjustment unit 260 as not having this in the analytical table according to setting numeral; There is this if under a certain analysis length, retrieve in the analytical table, then gets into later retrieval unit 270; Analysis length adjustment unit 260; Be used to keep the level of analysis and numeral to be ground floor character and corresponding numeral; And analysis length deducted 1; And return initial retrieval unit 250 and retrieve, be 1 like analysis length, then withdraw from retrieval and obtain this illegal result in IP address to be analyzed; Later retrieval unit 270 is used to continue each character that the retrieval analysis level is less than or equal to this analysis length, does not exist in analytical table if any a certain item, then returns analysis length adjustment unit 260, like whole existence, then obtains analysis result.
Said later retrieval unit 270 further comprises: first retrieval module; The character that is used for the level of analysis is equaled this analysis length is retrieved, and as not having this in the analytical table, then returns execution analysis length adjustment means 260; As having this in the analytical table, then get into second retrieval module; Second retrieval module is used for the level of analysis is retrieved less than each character of this analysis length, does not exist in analytical table if any a certain item, then returns execution analysis length adjustment means 260, like whole existence, then obtains analysis result.
When needs carry out distinctive charging be the IP address field time; Said analytical table is set up unit 220 and is further comprised: judge module; Whether the subnet mask that is used to judge the IP address field is 4 multiple, as for being then to carry out first configuration module, as is otherwise execution in step second configuration module; First configuration module is used for direct execution analysis table and sets up 2230 pairs of these IP address fields in unit and be configured; Second configuration module is used for respectively with the most contiguous this subnet mask and is that two numerals of 4 multiple are two new subnet masks, and this IP address field is split into two parts, and the execution analysis table is set up unit 220 and is configured respectively.
More than each unit and the operation principle of module and the embodiment that correlation please refer to last method in the device repeat no more here.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (8)

1. a method of chargeing according to the IP Address Confirmation is characterized in that, comprising:
(a) given a plurality of needs carry out the IP address or the IP address field of distinctive charging;
(b) initialization one analytical table; Said analytical table comprises the level of analysis, numeral, analysis length and index four hurdles as a result; The said level of analysis is meant the figure place that rise on an IP address field left side, and said numeral is meant corresponding characters on this level of analysis, and said analysis length is meant the length of the IP address of being analyzed; The perhaps section length of IP address field acceptance of the bid measure net, said index as a result is meant corresponding analysis result;
(c) with each character of given a plurality of IP address, and the character of IP address field acceptance of the bid measure barrier section is inserted in the initialized analytical table of step (b) and distribute analysis result, each analysis result all to have corresponding with it charging policy for it;
(d) an IP address to be analyzed is provided;
(e) the initial analysis level of setting retrieval be the numeral of ground floor character and correspondence with numeral, and setting initial analysis length is the maximum length of IP address to be analyzed;
(f) retrieve in analytical table according to setting numeral, as not having this in the analytical table, execution in step then
(g), there is this if under a certain analysis length, retrieve in the analytical table, then execution in step (h);
(g) keeping the level of analysis and numeral is ground floor character and corresponding numeral, and analysis length is deducted 1, and returns step (f) and retrieve, and has been 1 like analysis length, then withdraws from retrieval and obtains this illegal result in IP address to be analyzed;
(h) continue each character that the retrieval analysis level is less than or equal to this analysis length, in analytical table, do not exist, then return and continue execution in step (g),, then obtain analysis result like whole existence if any a certain item.
2. method according to claim 1; It is characterized in that; Said step (h) further comprises: the character that (h1) at first the level of analysis is equaled this analysis length is retrieved, and as not having this in the analytical table, then returns execution in step (g); As there being this in the analytical table, execution in step (h2) then; (h2) again the level of analysis is retrieved less than each character of this analysis length, in analytical table, do not existed, then return and continue execution in step (g),, then obtain analysis result like whole existence if any a certain item.
3. method according to claim 1 is characterized in that, what need carry out distinctive charging is the IP address field, in the said step (c) of setting up IP adress analysis table, further comprises:
Whether the subnet mask of (c1) judging the IP address field is 4 multiple, as for being execution in step (c2) then, as is otherwise execution in step (c3);
(c2) directly adopt step (c) that this IP address field is configured;
(c3) respectively with the most contiguous this subnet mask and be that two numerals of 4 multiple are two new subnet masks, this IP address field is split into two parts, adopt step (c) to be configured respectively.
4. method according to claim 1 is characterized in that, said IP address and IP address field are with the character representation of 16 systems.
5. a device that charges according to the IP Address Confirmation is characterized in that, comprising:
Cell is given in the IP address, is used for IP address or IP address field that given a plurality of needs carry out distinctive charging;
The analytical table initialization unit; Be used for initialization one analytical table, said analytical table comprises the level of analysis, numeral, analysis length and index four hurdles as a result, and the said level of analysis is meant the figure place that rise on an IP address field left side; Said numeral is meant corresponding characters on this level of analysis; Said analysis length is meant the length of the IP address of being analyzed, the perhaps section length of IP address field acceptance of the bid measure net, and said index as a result is meant corresponding analysis result;
Analytical table is set up the unit; Be used for each character with given a plurality of IP address; And the character of IP address field acceptance of the bid measure barrier section is inserted in the initialized analytical table of analytical table initialization unit and distribute analysis result, each analysis result all to have corresponding with it charging policy for it;
The IP address provides the unit, is used to provide an IP address to be analyzed;
Initial retrieval value setup unit, the initial analysis level that is used to set retrieval is ground floor character and corresponding numeral with numeral, sets initial analysis length and be the maximum length of IP address to be analyzed;
The initial retrieval unit is used for retrieving at analytical table according to setting numeral, as not having this in the analytical table, then gets into the analysis length adjustment unit, has this if under a certain analysis length, retrieve in the analytical table, then gets into the later retrieval unit;
The analysis length adjustment unit; Be used to keep the level of analysis and numeral to be ground floor character and corresponding numeral, and analysis length is deducted 1, and return the initial retrieval unit and retrieve; Like analysis length has been 1, then withdraws from retrieval and obtains this illegal result in IP address to be analyzed;
The later retrieval unit is used to continue each character that the retrieval analysis level is less than or equal to this analysis length, does not exist in analytical table if any a certain item, then returns the analysis length adjustment unit, like whole existence, then obtains analysis result.
6. device according to claim 5 is characterized in that, said later retrieval unit further comprises:
First retrieval module, the character that is used for the level of analysis is equaled this analysis length is retrieved, and as not having this in the analytical table, then returns the execution analysis length adjustment means, as having this in the analytical table, then gets into second retrieval module;
Second retrieval module is used for the level of analysis is retrieved less than each character of this analysis length, does not exist in analytical table if any a certain item, then returns the execution analysis length adjustment means, like whole existence, then obtains analysis result.
7. device according to claim 5 is characterized in that, what need carry out distinctive charging is the IP address field, and said analytical table is set up the unit and further comprised:
Whether judge module, the subnet mask that is used to judge the IP address field are 4 multiples, as for being then to carry out first configuration module, as are otherwise execution in step second configuration module;
First configuration module is used for direct execution analysis table and sets up the unit this IP address field is configured;
Second configuration module is used for respectively with the most contiguous this subnet mask and is that two numerals of 4 multiple are two new subnet masks, and this IP address field is split into two parts, and the execution analysis table is set up the unit and is configured respectively.
8. device according to claim 5 is characterized in that, said IP address and IP address field are with the character representation of 16 systems.
CN 201010614111 2010-12-30 2010-12-30 Method and device for determining charging strategy based on IP addresses Expired - Fee Related CN102055594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010614111 CN102055594B (en) 2010-12-30 2010-12-30 Method and device for determining charging strategy based on IP addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010614111 CN102055594B (en) 2010-12-30 2010-12-30 Method and device for determining charging strategy based on IP addresses

Publications (2)

Publication Number Publication Date
CN102055594A CN102055594A (en) 2011-05-11
CN102055594B true CN102055594B (en) 2012-12-26

Family

ID=43959553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010614111 Expired - Fee Related CN102055594B (en) 2010-12-30 2010-12-30 Method and device for determining charging strategy based on IP addresses

Country Status (1)

Country Link
CN (1) CN102055594B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184732A (en) * 2014-08-25 2014-12-03 浪潮集团有限公司 Hardware implementation method for matching IP address with IP range strategy
CN108964936B (en) * 2018-07-11 2021-08-27 北京尚闻科技(集团)有限公司 Configurable Internet of things traffic charging system and charging method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725708A (en) * 2005-06-24 2006-01-25 杭州华为三康技术有限公司 Statistical method of data stream
CN101499912A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Fee charging method and system
CN101867902A (en) * 2010-05-28 2010-10-20 上海顶竹通讯技术有限公司 Network capable of realizing international roaming and method for managing roaming terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8289885B2 (en) * 2006-10-27 2012-10-16 Alcatel Lucent Third party charging for SIP sessions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725708A (en) * 2005-06-24 2006-01-25 杭州华为三康技术有限公司 Statistical method of data stream
CN101499912A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Fee charging method and system
CN101867902A (en) * 2010-05-28 2010-10-20 上海顶竹通讯技术有限公司 Network capable of realizing international roaming and method for managing roaming terminal

Also Published As

Publication number Publication date
CN102055594A (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN103547333B (en) A kind of advertisement sending method, equipment and system
CN100411480C (en) Method for realizing network service provider selection
CN106375987A (en) Method and system for selecting network slice
CN106886918A (en) A kind of determination method of targeted customer, apparatus and system
CN103262503B (en) Node selecting method and equipment in packet core network
CN101198188B (en) Method for storing cell system information across network
CN109151824B (en) Library data service expansion system and method based on 5G architecture
CN101355595A (en) Method and apparatus for locating physical location of IP address
CN101951551A (en) Network having wireless local area network and method for accessing terminal to wireless local area network
CN101106818B (en) A system and method for summarizing user roaming status in GSM network service area
CN101895818A (en) Method for pushing information according to weather forecast and server
CN102811435A (en) Method and system for smart phone user identity identification
CN102255736A (en) Method of controlling mobile terminal, home hub, and visited hub
CN104348798A (en) Network assigning method and device, scheduling server, and system
CN105978748A (en) Terminal equipment information counting method and terminal equipment information counting device based on Hash node
Zhang et al. Social-aware cache information processing for 5G ultra-dense networks
CN101187949B (en) A high-capacity data statistical method and system
CN102055594B (en) Method and device for determining charging strategy based on IP addresses
CN103096239A (en) Information publish method, device and system
CN103426105B (en) Advertising information push method facing public wireless network
CN101198102B (en) Method, device and system for terminal access network
CN103268584B (en) The native place method of discrimination of floating population and device
CN101699885B (en) Method, device and system for allocating and querying service gateway
CN105430062A (en) Mobile P2P network data prefetching method based on interest-relevance
CN104378806A (en) Information processing method and terminal device

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: 20121226

Termination date: 20211230

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