CN109327634B - Method and device for solving repeated charging - Google Patents

Method and device for solving repeated charging Download PDF

Info

Publication number
CN109327634B
CN109327634B CN201710639243.3A CN201710639243A CN109327634B CN 109327634 B CN109327634 B CN 109327634B CN 201710639243 A CN201710639243 A CN 201710639243A CN 109327634 B CN109327634 B CN 109327634B
Authority
CN
China
Prior art keywords
bandwidth
charging
network area
target network
service node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710639243.3A
Other languages
Chinese (zh)
Other versions
CN109327634A (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.)
Guizhou Baishancloud Technology Co Ltd
Original Assignee
Guizhou Baishancloud 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 Guizhou Baishancloud Technology Co Ltd filed Critical Guizhou Baishancloud Technology Co Ltd
Priority to CN201710639243.3A priority Critical patent/CN109327634B/en
Publication of CN109327634A publication Critical patent/CN109327634A/en
Application granted granted Critical
Publication of CN109327634B publication Critical patent/CN109327634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for solving repeated charging, wherein the method comprises the following steps: when the condition that the service node bandwidth is repeatedly charged in the target network area is judged, an access source IP causing the service node repeated charging is searched in a request source IP list in a server mapping table of the target network area, and the server mapping table is modified to enable the access source IP to point to a node server IP which meets the preset bandwidth condition in the service node of the target network area. The invention can effectively solve the problem of repeated charging of the flow and effectively reduce the bandwidth cost.

Description

Method and device for solving repeated charging
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for solving repeated charging.
Background
The charging modes of multiple nodes in the same network area are mostly charged with the highest flow, for example, a certain area includes two nodes, the bandwidth flows of the two nodes are charged, if the bandwidth flows of the 2 nodes are all below 50G, the bandwidth flows of the 2 nodes are charged with the bandwidth flow level of 50G, but in the case of sudden increase of the user access volume, the bandwidth flows of the 2 nodes rapidly fall back after the bandwidth flows of the 2 nodes are suddenly increased to 70G in some time period, and then the bandwidth flows of the 2 nodes are all charged with the bandwidth flow level of 70G.
In order to solve the problem of repeated charging, L VS (L inux Virtual Server) is mostly used for load balancing in the prior art, but the addition of L VS increases the complexity of the System and L VS often becomes a bottleneck of scheduling.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method and a device for solving repeated charging.
The method for solving the problem of repeated charging provided by the invention comprises the following steps:
when the condition that the service node bandwidth is repeatedly charged in the target network area is judged, an access source IP causing the service node repeated charging is searched in a request source IP list in a server mapping table of the target network area, and the server mapping table is modified to enable the access source IP to point to a node server IP which meets the preset bandwidth condition in the service node of the target network area.
The above method for solving the repeated charging also has the following characteristics:
the method for judging the existence of the service node bandwidth repeated charging condition in the target network area comprises the following steps:
and counting network area charging bandwidths aiming at all nodes in the target network area, namely bandwidth one, counting network area charging bandwidths aiming at all IP in the target network area, namely bandwidth two, and judging that the service node bandwidth repeated charging condition exists in the target network area when the ratio of the bandwidth one to the bandwidth two is greater than a preset threshold value.
The above method for solving the repeated charging also has the following characteristics:
finding the access source IP that results in repeated charging by the serving node in the request source IP list in the server mapping table for this target network area comprises:
counting time sequence bandwidths of service nodes accessed by client IP in the target network area, determining client IP with consistent bandwidth value variation trends in time sequence sequencing at the server nodes, taking the determined client IP as suspected bandwidth repeated charging IP, selecting the charging bandwidth summation of the largest N suspected bandwidth repeated charging IPs in the charging bandwidth of the suspected bandwidth repeated charging IPs, and determining the difference value between the bandwidth I and the bandwidth II, wherein when the value of the sum value and the difference value is smaller than a preset error value, the N suspected bandwidth repeated charging IPs are taken as access source IPs which cause the service nodes to repeatedly charge.
The above method for solving the repeated charging also has the following characteristics:
the client IP which determines that the bandwidth values sorted according to the time sequence in each server node have consistent variation trends comprises the following steps: and judging that the trend of the increment point and the trend of the decrement point of the bandwidth of the client IP on each service node according to the time sequence are consistent, and judging that the client IP is the client IP with the consistent trend of the bandwidth value change of each server node according to the time sequence, wherein the increment point refers to the fact that the bandwidth increasing degree on two adjacent time points on the time sequence is greater than a second threshold value, and the decrement point refers to the fact that the bandwidth reducing degree on the two adjacent time points on the time sequence is greater than a third threshold value.
The above method for solving the repeated charging also has the following characteristics:
the second threshold is obtained by the following method: counting the average value of the bandwidth increase percentage corresponding to each increment point of all client IP in the target network area on the time sequence of each server node; the second threshold is a value of 20% to 60% of this average value;
the third threshold is obtained by the following method: counting the average value of the bandwidth reduction percentage corresponding to each decrement point of all client IP in the time sequence of each server node in the target network region; the third threshold value is a value of 20% to 60% of this average value.
The above method for solving the repeated charging also has the following characteristics:
the modifying the server mapping table to make the access source IP point to the node server IP meeting the preset bandwidth condition in the service node in the target network area comprises one of the following modes:
in the first way, the first step is to perform the following steps,
modifying a server mapping table to enable the access source IP to point to the same service node of a target network area, wherein the charging bandwidth of the service node is the lowest charging bandwidth of each service node in the target network area;
in the second mode, the server mapping table is modified to enable the access source IP to point to the service node in the target network area according to the following priority order: the service node with the lowest running bandwidth, the service node with the running bandwidth smaller than a preset bandwidth threshold value and the service node with the running bandwidth larger than the preset bandwidth threshold value.
The above method for solving the repeated charging also has the following characteristics:
the counting network region charging bandwidths of all nodes in the target network region comprises: acquiring the IP of all nodes in the target network area, acquiring the time sequence bandwidth of each service node in the target network area for the sum of the time sequence bandwidths of the IP of the clients accessing the same node, and calculating the network area charging bandwidth aiming at all the nodes in the target network area according to a node charging rule;
the counting network region charging bandwidths of the target network region for all the IPs comprises: and acquiring time point bandwidth values on time sequences of all client IPs in a preset time period according to the access logs of all the clients, summing the time point bandwidth values on the time sequences of all the client IPs in the network area to acquire the time sequence bandwidth of all the client IPs in the target network area, and acquiring the network area charging bandwidth of the target network area aiming at all the IPs according to the client charging mode.
The device for solving the problem of repeated charging provided by the invention comprises the following components:
the judging module is used for judging whether the repeated charging condition of the service node bandwidth exists in the target network area;
the searching module is used for searching an access source IP causing repeated charging of the service node in a request source IP list in a server mapping table of a target network area when the judging module judges that the repeated charging condition of the service node bandwidth exists in the target network area;
and the mapping table modifying module is used for modifying the server mapping table so that the access source IP points to the node server IP which meets the preset bandwidth condition in the service nodes of the target network area.
The device for solving the repeated charging also has the following characteristics:
the judging module comprises a first statistical unit, a second statistical unit and a judging unit;
the first statistic unit is used for counting network area charging bandwidth of all nodes in the target network area, namely bandwidth one;
the second statistical unit is used for counting the network region charging bandwidth of the target network region aiming at all the IPs, namely bandwidth two;
the judging unit is used for judging that the service node bandwidth repeated charging condition exists in the target network area when the ratio of the first bandwidth to the second bandwidth is larger than a preset threshold value.
The device for solving the repeated charging also has the following characteristics:
the searching module comprises a statistical unit, a first determining unit and a second determining unit;
the statistical unit is used for counting the time sequence bandwidth of each service node accessed by each client IP in the target network area;
the first determining unit is used for determining the client-side IPs with consistent bandwidth value change trends sorted according to time series at each server node, and taking the determined client-side IPs as suspected bandwidth repeated charging IPs;
the second determining unit is used for selecting the charging bandwidth summation of the largest N suspected bandwidth repeated charging IPs in the charging bandwidth of each suspected bandwidth repeated charging IP, determining the difference value of the bandwidth I and the bandwidth II, and when the value of the sum value and the difference value is smaller than a preset error value, taking the N suspected bandwidth repeated charging IPs as the access source IP causing the service node repeated charging.
The device for solving the repeated charging also has the following characteristics:
the first determination unit is configured to determine client IPs at which the bandwidth value variation trends in time series at the server nodes are consistent, using the following method: and judging that the trend of the increment point and the trend of the decrement point of the bandwidth of the client IP on each service node according to the time sequence are consistent, and judging that the client IP is the client IP with the consistent trend of the bandwidth value change of each server node according to the time sequence, wherein the increment point refers to the fact that the bandwidth increasing degree on two adjacent time points on the time sequence is greater than a second threshold value, and the decrement point refers to the fact that the bandwidth reducing degree on the two adjacent time points on the time sequence is greater than a third threshold value.
The device for solving the repeated charging also has the following characteristics:
the first determination unit includes a second threshold calculation unit and a third threshold calculation unit;
the second threshold calculation unit is used for determining a second threshold according to the following method: counting the average value of the bandwidth increase percentage corresponding to each increment point of all client IP in the target network area on the time sequence of each server node; setting the second threshold value to a value of 20% to 60% of this average value;
the third threshold calculation unit is used for determining a third threshold according to the following method: counting the average value of the bandwidth reduction percentage corresponding to each decrement point of all client IP in the time sequence of each server node in the target network region; the third threshold value is set to a value of 20% to 60% of this average value.
The device for solving the repeated charging also has the following characteristics:
the mapping table modifying module is used for modifying the server mapping table in the following way to enable the access source IP to point to the node server IP meeting the preset bandwidth condition in the service node in the target network area:
in the first way, the first step is to perform the following steps,
modifying a server mapping table to enable the access source IP to point to the same service node of a target network area, wherein the charging bandwidth of the service node is the lowest charging bandwidth of each service node in the target network area;
in the second mode, the server mapping table is modified to enable the access source IP to point to the service node in the target network area according to the following priority order: the service node with the lowest running bandwidth, the service node with the running bandwidth smaller than a preset bandwidth threshold value and the service node with the running bandwidth larger than the preset bandwidth threshold value.
The device for solving the repeated charging also has the following characteristics:
the first statistical unit is used for counting network region charging bandwidth of all nodes in the target network region by using the following method: acquiring the IP of all nodes in the target network area, acquiring the time sequence bandwidth of each service node in the target network area for the sum of the time sequence bandwidths of the IP of the clients accessing the same node, and calculating the network area charging bandwidth aiming at all the nodes in the target network area according to a node charging rule;
the second statistical unit is used for counting the network region charging bandwidth of the target network region for all the IPs by using the following method: and acquiring time point bandwidth values on time sequences of all client IPs in a preset time period according to the access logs of all the clients, summing the time point bandwidth values on the time sequences of all the client IPs in the network area to acquire the time sequence bandwidth of all the client IPs in the target network area, and acquiring the network area charging bandwidth of the target network area aiming at all the IPs according to the client charging mode.
The invention can effectively solve the problem of repeated charging of the flow and effectively reduce the bandwidth cost.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of a method for resolving duplicate charging in an embodiment;
fig. 2 is a block diagram of an apparatus for solving duplicate charging in the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart of a method for solving duplicate charging in an embodiment, as shown in fig. 1, the method includes:
step 101, when judging that the service node bandwidth repeated charging condition exists in a target network area, searching an access source IP causing the service node repeated charging in a request source IP list in a server mapping table of the target network area;
step 102, modifying the server mapping table to make the access source IP point to the node server IP meeting the preset bandwidth condition in the service node of the target network area.
The target network region in the method is a service provider region, which may be a relatively large-scale region such as a country-level region, a medium-scale region such as a provincial region, or a relatively small-scale region such as a county-level region.
Wherein the content of the first and second substances,
in step 101, the method for determining that there is a service node bandwidth repeated charging condition in a target network area includes: the network area charging bandwidth for all nodes in the statistical target network area is called bandwidth one, the network area charging bandwidth for all IP in the statistical target network area is called bandwidth two, and when the ratio of the bandwidth one to the bandwidth two is larger than a preset threshold (for example, 1.3), the situation that the service node bandwidth is repeatedly charged in the target network area is judged.
The counting of the network area charging bandwidth of all nodes in the target network area includes: acquiring the IP of all nodes in the target network area, acquiring the time sequence bandwidth of each service node in the target network area for the sum of the time sequence bandwidths of the IP of the clients accessing the same node, and calculating the network area charging bandwidth aiming at all the nodes in the target network area according to a node charging rule;
the above counting the network area charging bandwidth of the target network area for all the IPs includes: and acquiring time point bandwidth values on time sequences of all client IPs in a preset time period according to the access logs of all the clients, summing the time point bandwidth values on the time sequences of all the client IPs in the network area to acquire the time sequence bandwidth of all the client IPs in the target network area, and acquiring the network area charging bandwidth of the target network area aiming at all the IPs according to the client charging mode.
In step 101, searching a request source IP list in a server mapping table of a target network area for an access source IP causing repeated charging of a service node comprises: counting time sequence bandwidths of service nodes accessed by client IP in a target network area, determining client IP with consistent bandwidth value variation trends in time sequence sequencing at the server nodes, taking the determined client IP as suspected bandwidth repeated charging IP, selecting the charging bandwidth summation of the largest N suspected bandwidth repeated charging IP in the charging bandwidth of the suspected bandwidth repeated charging IP, and determining the difference value between the bandwidth I and the bandwidth II, wherein when the value of the sum value and the difference value is smaller than a preset error value, the N suspected bandwidth repeated charging IP is taken as an access source IP which causes the service nodes to be repeatedly charged.
The method for determining the client IP with consistent bandwidth value variation trend sorted according to the time sequence at each server node comprises the following steps: and judging that the trend of the increment point and the trend of the decrement point of the bandwidth of the client IP on each service node according to the time sequence are consistent, and judging that the client IP is the client IP with the consistent trend of the bandwidth value change of each server node according to the time sequence, wherein the increment point refers to the fact that the bandwidth increasing degree on two adjacent time points on the time sequence is greater than a second threshold value, and the decrement point refers to the fact that the bandwidth reducing degree on the two adjacent time points on the time sequence is greater than a third threshold value. The second threshold is obtained by the following method: counting the average value of the bandwidth increase percentage corresponding to each increment point of all client IP in the target network area on the time sequence of each server node; the second threshold value is a value of 20% to 60% of this average value. The third threshold is obtained by the following method: counting the average value of the bandwidth reduction percentage corresponding to each decrement point of all client IP in the time sequence of each server node in the target network region; the third threshold value is a value of 20% to 60% of this average value.
In step 102, modifying the server mapping table to enable the access source IP to point to the node server IP meeting the preset bandwidth condition in the service node in the target network area includes one of the following manners:
in the first way, the first step is to perform the following steps,
modifying a server mapping table to enable the access source IP to point to the same service node of a target network area, wherein the charging bandwidth of the service node is the lowest charging bandwidth of each service node in the target network area;
in the second mode, the server mapping table is modified to enable the access source IP to point to the service node in the target network area according to the following priority order: the service node with the lowest running bandwidth, the service node with the running bandwidth smaller than a preset bandwidth threshold value and the service node with the running bandwidth larger than the preset bandwidth threshold value.
Fig. 2 is a block diagram of an apparatus for solving duplicate charging according to an embodiment, where the apparatus includes a determining module 201, a searching module 202, and a mapping table modifying module 203.
The judging module 201 is configured to judge whether a service node bandwidth repeated charging condition exists in a target network area;
the searching module 202 is configured to search, when the determining module determines that the service node bandwidth repeated charging condition exists in the target network area, an access source IP causing the service node repeated charging in a request source IP list in a server mapping table of the target network area;
the mapping table modifying module 203 is configured to modify the server mapping table so that the access source IP points to a node server IP that meets a preset bandwidth condition among the service nodes in the target network area.
Wherein the content of the first and second substances,
the judging module 201 comprises a first statistical unit, a second statistical unit and a judging unit;
the first statistic unit is used for counting network area charging bandwidth of all nodes in the target network area, namely bandwidth one; for example, the following method is used to count the network region charging bandwidth of all nodes in the target network region: and acquiring the IP of all nodes in the target network area, acquiring the time sequence bandwidth of each service node in the target network area for the sum of the time sequence bandwidths of the IP of the clients accessing the same node, and calculating the network area charging bandwidth aiming at all the nodes in the target network area according to a node charging rule.
The second statistical unit is used for counting the network region charging bandwidth of the target network region aiming at all the IPs, namely the bandwidth II; for example, the method for counting the network area charging bandwidth for all IPs of the target network area is as follows: and acquiring time point bandwidth values on time sequences of all client IPs in a preset time period according to the access logs of all the clients, summing the time point bandwidth values on the time sequences of all the client IPs in the network area to acquire the time sequence bandwidth of all the client IPs in the target network area, and acquiring the network area charging bandwidth of the target network area aiming at all the IPs according to the client charging mode.
The judging unit is used for judging that the service node bandwidth repeated charging condition exists in the target network area when the ratio of the first bandwidth to the second bandwidth is larger than a preset threshold value.
The searching module 202 comprises a statistical unit, a first determining unit and a second determining unit;
the statistic unit is used for counting the time sequence bandwidth of each service node accessed by each client IP in the target network area;
and the first determining unit is used for determining the client IP with consistent bandwidth value change trends sorted according to the time sequence at each server node, and taking the determined client IP as the suspected bandwidth repeated charging IP.
The first determination unit is configured to determine client IPs at which the bandwidth value variation trends in time series at the server nodes are consistent, using the following method: and judging that the trend of the increment point and the trend of the decrement point of the bandwidth of the client IP on each service node according to the time sequence are consistent, and judging that the client IP is the client IP with the consistent trend of the bandwidth value change of each server node according to the time sequence, wherein the increment point refers to the fact that the bandwidth increasing degree on two adjacent time points on the time sequence is greater than a second threshold value, and the decrement point refers to the fact that the bandwidth reducing degree on the two adjacent time points on the time sequence is greater than a third threshold value.
The first determination unit includes a second threshold calculation unit and a third threshold calculation unit. The second threshold calculation unit is used for determining a second threshold according to the following method: counting the average value of the bandwidth increase percentage corresponding to each increment point of all client IP in the target network area on the time sequence of each server node; the second threshold value is set to a value of 20% to 60% of this average value. The third threshold calculation unit is used for determining a third threshold according to the following method: counting the average value of the bandwidth reduction percentage corresponding to each decrement point of all client IP in the time sequence of each server node in the target network region; the third threshold value is set to a value of 20% to 60% of this average value.
The second determining unit is used for selecting the charging bandwidth summation of the largest N suspected bandwidth repeated charging IPs in the charging bandwidth of each suspected bandwidth repeated charging IP, determining the difference value of the bandwidth I and the bandwidth II, and when the value of the sum value and the difference value is smaller than a preset error value, taking the N suspected bandwidth repeated charging IPs as the access source IP causing the service node repeated charging.
The mapping table modifying module 203 is configured to modify the server mapping table in such a way that the access source IP points to the node server IP meeting the preset bandwidth condition in the service node in the target network area:
in the first way, the first step is to perform the following steps,
modifying a server mapping table to enable the access source IP to point to the same service node of a target network area, wherein the charging bandwidth of the service node is the lowest charging bandwidth of each service node in the target network area;
in the second mode, the server mapping table is modified to enable the access source IP to point to the service node in the target network area according to the following priority order: the service node with the lowest running bandwidth, the service node with the running bandwidth smaller than a preset bandwidth threshold value and the service node with the running bandwidth larger than the preset bandwidth threshold value.
The invention can effectively solve the problem of repeated charging of the flow and effectively reduce the bandwidth cost.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
For example, the origin server mapping table for a network region is as follows:
Figure BDA0001365513480000101
wherein each server IP represents a node.
And counting that the network area charging bandwidth for all nodes in the network area is 7G, counting that the network area charging bandwidth for all IP in the network area is 4G, and judging that the service node bandwidth repeated charging condition exists in the network area if the ratio of the first bandwidth to the second bandwidth is greater than a preset threshold value 1.3.
And counting the time-series bandwidth of each service node accessed by each client IP in the network area, determining the client IPs with consistent bandwidth value change trends sorted according to the time series at each server node, taking the determined client IPs as suspected bandwidth repeated charging IPs, wherein the suspected bandwidth repeated charging IPs are IP7, IP8 and IP6, and the charging bandwidths are IP7, IP8 and IP6 from large to small. And selecting the sum of the charging bandwidths of all the suspected bandwidth repeated charging IPs in the charging bandwidths of the suspected bandwidth repeated charging IPs, determining the difference value between the bandwidth one and the bandwidth two, wherein the sum value and the difference value are larger than a preset error value, continuing to calculate, selecting the sum of the charging bandwidths of the largest 2 suspected bandwidth repeated charging IPs in the charging bandwidths of the suspected bandwidth repeated charging IPs, and taking the 2 suspected bandwidth repeated charging IPs, namely IP7 and IP8, as access source IPs for causing the service node to repeatedly charge.
Modifying the original server mapping table, directing the two IPs (IP 7 and IP 8) to the IPD (node IP) with the lowest charging bandwidth, wherein the modified server mapping table is as follows:
source IP List Server IP
IP1,IP2、IP3、IP4、IP5、IP6、IP9 IPA、IPB、IPC、IPD
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits, and accordingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
It is to be noted that, in this document, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that an article or apparatus including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
The above embodiments are merely to illustrate the technical solutions of the present invention and not to limit the present invention, and the present invention has been described in detail with reference to the preferred embodiments. It will be understood by those skilled in the art that various modifications and equivalent arrangements may be made without departing from the spirit and scope of the present invention and it should be understood that the present invention is to be covered by the appended claims.

Claims (12)

1. A method for resolving duplicate charging, comprising:
when the condition that the service node bandwidth is repeatedly charged in the target network area is judged, an access source IP causing the service node repeated charging is searched in a request source IP list in a server mapping table of the target network area, and the server mapping table is modified to enable the access source IP to point to a node server IP meeting the preset bandwidth condition in the service node of the target network area;
the modifying the server mapping table to make the access source IP point to the node server IP meeting the preset bandwidth condition in the service node in the target network area comprises one of the following modes:
in the first way, the first step is to perform the following steps,
modifying a server mapping table to enable the access source IP to point to the same service node of a target network area, wherein the charging bandwidth of the service node is the lowest charging bandwidth of each service node in the target network area;
in the second mode, the server mapping table is modified to enable the access source IP to point to the service node in the target network area according to the following priority order: the service node with the lowest running bandwidth, the service node with the running bandwidth smaller than a preset bandwidth threshold value and the service node with the running bandwidth larger than the preset bandwidth threshold value.
2. The method for resolving duplicate charging of claim 1,
the method for judging the existence of the service node bandwidth repeated charging condition in the target network area comprises the following steps:
and counting network area charging bandwidths aiming at all nodes in the target network area, namely bandwidth one, counting network area charging bandwidths aiming at all IP in the target network area, namely bandwidth two, and judging that the service node bandwidth repeated charging condition exists in the target network area when the ratio of the bandwidth one to the bandwidth two is greater than a preset threshold value.
3. The method of resolving duplicate charging of claim 2, comprising:
finding the access source IP that results in repeated charging by the serving node in the request source IP list in the server mapping table for this target network area comprises:
counting time sequence bandwidths of service nodes accessed by client IP in the target network area, determining client IP with consistent bandwidth value variation trends in time sequence sequencing at the server nodes, taking the determined client IP as suspected bandwidth repeated charging IP, selecting a charging bandwidth summation value of the largest N suspected bandwidth repeated charging IPs in the charging bandwidth of the suspected bandwidth repeated charging IPs, and determining a difference value between a first bandwidth and a second bandwidth, wherein when the summation value and the difference value are smaller than a preset error value, the N suspected bandwidth repeated charging IPs are taken as access source IPs which cause the service nodes to repeatedly charge.
4. The method of resolving duplicate charging of claim 3, comprising:
the client IP which determines that the bandwidth values sorted according to the time sequence in each server node have consistent variation trends comprises the following steps: and judging that the trend of the increment point and the trend of the decrement point of the bandwidth of the client IP on each service node according to the time sequence are consistent, and judging that the client IP is the client IP with the consistent trend of the bandwidth value change of each server node according to the time sequence, wherein the increment point refers to the fact that the bandwidth increasing degree on two adjacent time points on the time sequence is greater than a second threshold value, and the decrement point refers to the fact that the bandwidth reducing degree on the two adjacent time points on the time sequence is greater than a third threshold value.
5. The method of resolving duplicate charging of claim 4, comprising:
the second threshold is obtained by the following method: counting the average value of the bandwidth increase percentage corresponding to each increment point of all client IP in the target network area on the time sequence of each server node; the second threshold is a value of 20% to 60% of this average value;
the third threshold is obtained by the following method: counting the average value of the bandwidth reduction percentage corresponding to each decrement point of all client IP in the time sequence of each server node in the target network region; the third threshold value is a value of 20% to 60% of this average value.
6. The method for resolving duplicate charging of claim 2,
the counting network region charging bandwidths of all nodes in the target network region comprises: acquiring the IP of all nodes in the target network area, acquiring the time sequence bandwidth of each service node in the target network area for the sum of the time sequence bandwidths of the IP of the clients accessing the same node, and calculating the network area charging bandwidth aiming at all the nodes in the target network area according to a node charging rule;
the counting network region charging bandwidths of the target network region for all the IPs comprises: and acquiring time point bandwidth values on time sequences of all client IPs in a preset time period according to the access logs of all the clients, summing the time point bandwidth values on the time sequences of all the client IPs in the network area to acquire the time sequence bandwidth of all the client IPs in the target network area, and acquiring the network area charging bandwidth of the target network area aiming at all the IPs according to the client charging mode.
7. An apparatus for resolving duplicate charging, comprising:
the judging module is used for judging whether the repeated charging condition of the service node bandwidth exists in the target network area;
the searching module is used for searching an access source IP causing repeated charging of the service node in a request source IP list in a server mapping table of a target network area when the judging module judges that the repeated charging condition of the service node bandwidth exists in the target network area;
the mapping table modifying module is used for modifying the server mapping table to enable the access source IP to point to a node server IP which meets the preset bandwidth condition in the service nodes of the target network area;
the mapping table modifying module is used for modifying the server mapping table in the following way to enable the access source IP to point to the node server IP meeting the preset bandwidth condition in the service node in the target network area:
in the first way, the first step is to perform the following steps,
modifying a server mapping table to enable the access source IP to point to the same service node of a target network area, wherein the charging bandwidth of the service node is the lowest charging bandwidth of each service node in the target network area;
in the second mode, the server mapping table is modified to enable the access source IP to point to the service node in the target network area according to the following priority order: the service node with the lowest running bandwidth, the service node with the running bandwidth smaller than a preset bandwidth threshold value and the service node with the running bandwidth larger than the preset bandwidth threshold value.
8. The apparatus for resolving duplicate charging of claim 7,
the judging module comprises a first statistical unit, a second statistical unit and a judging unit;
the first statistic unit is used for counting network area charging bandwidth of all nodes in the target network area, namely bandwidth one;
the second statistical unit is used for counting the network region charging bandwidth of the target network region aiming at all the IPs, namely bandwidth two;
the judging unit is used for judging that the service node bandwidth repeated charging condition exists in the target network area when the ratio of the first bandwidth to the second bandwidth is larger than a preset threshold value.
9. The apparatus for resolving duplicate charging of claim 8,
the searching module comprises a statistical unit, a first determining unit and a second determining unit;
the statistical unit is used for counting the time sequence bandwidth of each service node accessed by each client IP in the target network area;
the first determining unit is used for determining the client-side IPs with consistent bandwidth value change trends sorted according to time series at each server node, and taking the determined client-side IPs as suspected bandwidth repeated charging IPs;
the second determining unit is used for selecting a charging bandwidth summation value of the largest N suspected bandwidth repeated charging IPs in the charging bandwidths of the suspected bandwidth repeated charging IPs, determining a difference value between the bandwidth I and the bandwidth II, and when the summation value and the difference value are smaller than a preset error value, taking the N suspected bandwidth repeated charging IPs as the access source IPs which cause the service node repeated charging.
10. The apparatus for resolving duplicate charging of claim 9,
the first determination unit is configured to determine client IPs at which the bandwidth value variation trends in time series at the server nodes are consistent, using the following method: and judging that the trend of the increment point and the trend of the decrement point of the bandwidth of the client IP on each service node according to the time sequence are consistent, and judging that the client IP is the client IP with the consistent trend of the bandwidth value change of each server node according to the time sequence, wherein the increment point refers to the fact that the bandwidth increasing degree on two adjacent time points on the time sequence is greater than a second threshold value, and the decrement point refers to the fact that the bandwidth reducing degree on the two adjacent time points on the time sequence is greater than a third threshold value.
11. The apparatus for resolving duplicate charging of claim 10,
the first determination unit includes a second threshold calculation unit and a third threshold calculation unit;
the second threshold calculation unit is used for determining a second threshold according to the following method: counting the average value of the bandwidth increase percentage corresponding to each increment point of all client IP in the target network area on the time sequence of each server node; setting the second threshold value to a value of 20% to 60% of this average value;
the third threshold calculation unit is used for determining a third threshold according to the following method: counting the average value of the bandwidth reduction percentage corresponding to each decrement point of all client IP in the time sequence of each server node in the target network region; the third threshold value is set to a value of 20% to 60% of this average value.
12. The apparatus for resolving duplicate charging of claim 8,
the first statistical unit is used for counting network region charging bandwidth of all nodes in the target network region by using the following method: acquiring the IP of all nodes in the target network area, acquiring the time sequence bandwidth of each service node in the target network area for the sum of the time sequence bandwidths of the IP of the clients accessing the same node, and calculating the network area charging bandwidth aiming at all the nodes in the target network area according to a node charging rule;
the second statistical unit is used for counting the network region charging bandwidth of the target network region for all the IPs by using the following method: and acquiring time point bandwidth values on time sequences of all client IPs in a preset time period according to the access logs of all the clients, summing the time point bandwidth values on the time sequences of all the client IPs in the network area to acquire the time sequence bandwidth of all the client IPs in the target network area, and acquiring the network area charging bandwidth of the target network area aiming at all the IPs according to the client charging mode.
CN201710639243.3A 2017-07-31 2017-07-31 Method and device for solving repeated charging Active CN109327634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710639243.3A CN109327634B (en) 2017-07-31 2017-07-31 Method and device for solving repeated charging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710639243.3A CN109327634B (en) 2017-07-31 2017-07-31 Method and device for solving repeated charging

Publications (2)

Publication Number Publication Date
CN109327634A CN109327634A (en) 2019-02-12
CN109327634B true CN109327634B (en) 2020-08-07

Family

ID=65245686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710639243.3A Active CN109327634B (en) 2017-07-31 2017-07-31 Method and device for solving repeated charging

Country Status (1)

Country Link
CN (1) CN109327634B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615097B (en) * 2022-03-02 2023-09-19 北京云享智胜科技有限公司 Method and device for determining client paid bandwidth ratio and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101626617B1 (en) * 2009-09-29 2016-06-01 삼성전자주식회사 Apparatus and method for modifying internet protocol connectivity access network session in the internet protocol multimedia subsystem network
CN102546189B (en) * 2010-12-07 2015-03-04 ***通信集团上海有限公司 Rebilling method and device for telephone bills
US8509148B2 (en) * 2010-12-29 2013-08-13 Industrial Technology Research Institute System and method for application layer gateway assisted local IP access at a femto base station by network address translation
WO2012088716A1 (en) * 2010-12-31 2012-07-05 华为技术有限公司 Internet protocol (ip) stream motion method, policy and charging rules function (pcrf) and access network discovery and selection function (andsf)
CN102761425B (en) * 2012-07-20 2018-06-12 中兴通讯股份有限公司 Charging method and device
CN103067903A (en) * 2012-12-31 2013-04-24 华为技术有限公司 Charging method and device and system
CN103684870A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and system for obtaining bandwidth flow of CDN (Content Delivery Network)
CN104486091A (en) * 2014-12-05 2015-04-01 中国联合网络通信集团有限公司 Charging method and device
CN106211116A (en) * 2015-04-29 2016-12-07 中兴通讯股份有限公司 Policing rule formulating method, system and device
CN106789117A (en) * 2015-11-19 2017-05-31 中兴通讯股份有限公司 The processing method and processing device of PCC rules

Also Published As

Publication number Publication date
CN109327634A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
JP5851648B2 (en) Network virtual user risk control method and system
CN108499100B (en) Cloud game error recovery method and system based on edge calculation
CN107360117B (en) Data processing method, device and system
US20140115147A1 (en) Adjusting quality of service in a cloud environment based on application usage
US20150163299A1 (en) Load balancer
CN113132443A (en) Resource acquisition method and device and node equipment in CDN (content delivery network)
CN107622197B (en) Equipment identification method and device, and weight calculation method and device for equipment identification
US10264128B1 (en) Dynamic machine-learning-based contact processing
CN110933136A (en) Service node selection method, device, equipment and readable storage medium
CN109327634B (en) Method and device for solving repeated charging
WO2022199473A1 (en) Service analysis method and apparatus based on differential privacy
CN108446170A (en) A kind of DNS thread management methods, device and server based on machine learning
CN112328865A (en) Information processing and recommending method, device, equipment and storage medium
CN108259532B (en) Scheduling method and device of cloud resources
CN115842828A (en) Gateway load balancing control method, device, equipment and readable storage medium
US20140215075A1 (en) Load balancing apparatus and method based on estimation of resource usage
CN112491066B (en) Load balancing method, device, system, target load balancing equipment and medium
CN113783919B (en) Access request distribution method, system, equipment and storage medium
Alhihi et al. Operating task redistribution in hyperconverged networks
CN111241376B (en) Multistage information matching method and device and cloud service platform
CN110175182B (en) Data checking method and device
CN112596992A (en) Application activity calculation method and device
CN112988983A (en) Video customer service distribution method and device, computer equipment and storage medium
CN110569475A (en) Evaluation method, device, equipment and storage medium for netizen influence
US20140358945A1 (en) Systems and Methods for Matching Users

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant