CN108270697B - Method and device for adjusting flow quota and server - Google Patents

Method and device for adjusting flow quota and server Download PDF

Info

Publication number
CN108270697B
CN108270697B CN201611267876.8A CN201611267876A CN108270697B CN 108270697 B CN108270697 B CN 108270697B CN 201611267876 A CN201611267876 A CN 201611267876A CN 108270697 B CN108270697 B CN 108270697B
Authority
CN
China
Prior art keywords
gsu
value
target
calculating
threshold interval
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
CN201611267876.8A
Other languages
Chinese (zh)
Other versions
CN108270697A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Hubei 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 China Mobile Communications Group Co Ltd, China Mobile Group Hubei Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611267876.8A priority Critical patent/CN108270697B/en
Publication of CN108270697A publication Critical patent/CN108270697A/en
Application granted granted Critical
Publication of CN108270697B publication Critical patent/CN108270697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic

Abstract

The invention discloses a method, a device and a server for adjusting a flow quota, which are used for the technical field of communication and can solve the problem that the use requirement cannot be met by a method which needs to spend a long time to ensure the hit accuracy. The method comprises the following steps: counting the time interval of two adjacent CCR messages in the CCR messages sent to the same user by an online charging system in a preset time period and the network rate in the time period between the two adjacent CCR messages, and calculating at least one time threshold interval and at least one rate threshold interval; calculating the value of a first target GSU corresponding to each time threshold interval; calculating the value of a second target GSU corresponding to each rate threshold interval; and adjusting the flow quota distributed to the user by the online charging system based on the value of the first target GSU and the value of the second target GSU.

Description

Method and device for adjusting flow quota and server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a traffic quota, and a server.
Background
With the rapid development of the 4G online traffic service, compared with the online traffic service of the 2/3G network, the small traffic service is more and more developed into services such as online video, online live broadcast, and the like, so that the rate and frequency of the user traffic are changed. The online charging of the flow service takes real-time charging information interacted between a network side and an online charging system as a basis, the online charging system calculates and distributes flow quota for a user for the user to use, however, the change of the rate and frequency of the user using the flow makes the original flow quota calculation method no longer applicable, and the flow quota of the 4G online flow service needs to be adjusted. Currently, the method for adjusting online charging quota may be as follows: a quota adjusting method based on online flow service rate. The method mainly comprises the steps of calculating the using rate of a user to the requested flow, and adjusting the size of a quota value according to the corresponding relation between a fixed interval preset by a GSU (guaranteed-Service-Unit) and the using rate. However, this method only considers the rate dimension of traffic usage, and considers the parameter singleness, so that the adjusted quota value is easily unsuitable for the user.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a server for adjusting a flow quota, and aims to solve the problem that the use requirement cannot be met by a method which needs a long time to ensure the hit accuracy.
In a first aspect, the present invention provides a method for adjusting a traffic quota, including: counting time intervals of two adjacent CCR messages belonging to the same user in a CCR (Credit-Control-Request) message sent to the user by an online charging system in a preset time period and network rates of the user in the time period between the two adjacent CCR messages;
calculating at least one time threshold interval of the time interval based on the time interval;
calculating a value of a first target GSU corresponding to each time threshold interval based on values of first used quota authorized amounts GSUs distributed by an online charging system for two CCR messages of which the time intervals belong to the time threshold intervals and corresponding to users;
calculating at least one rate threshold interval of the network rate based on the network rate;
calculating the value of a second target GSU corresponding to each rate threshold interval based on the values of second GSUs allocated by an online charging system to users corresponding to two CCR messages of which the network rates belong to the rate threshold intervals;
and adjusting the flow quota distributed to the user by the online charging system based on the value of the first target GSU and the value of the second target GSU.
In a second aspect, the present invention provides an apparatus for adjusting a traffic quota, including:
the device comprises a counting unit, a processing unit and a processing unit, wherein the counting unit is used for counting the time interval of two adjacent CCR messages belonging to the same user in the CCR messages sent to the user by an online charging system in a preset time period and the network rate of the user in the time period between the two adjacent CCR messages;
a calculation unit for calculating at least one time threshold interval of the time interval based on the time interval;
the calculating unit is further configured to calculate, based on the value of a first used quota authorized amount GSU allocated by the online charging system to the user corresponding to two CCR messages having time intervals belonging to a time threshold interval, a value of a first target GSU corresponding to each time threshold interval;
the computing unit is further configured to compute at least one rate threshold interval of the network rate based on the network rate;
the calculating unit is further used for calculating a value of a second target GSU corresponding to each rate threshold interval based on values of second GSUs allocated by the online charging system to users corresponding to two CCR messages of which the network rates belong to the rate threshold intervals;
and the adjusting unit is used for adjusting the flow quota distributed to the user by the online charging system based on the value of the first target GSU and the value of the second target GSU.
In a third aspect, the present invention provides a traffic quota adjusting server, including:
a memory, a processor, a communication interface, and a bus;
the memory, the processor and the communication interface are connected through a bus and complete mutual communication;
the memory is used for storing program codes;
the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute a traffic quota adjusting method; the method for adjusting the flow quota comprises the following steps:
counting time intervals of two adjacent CCR messages belonging to the same user in the CCR messages sent to the user by an online charging system in a preset time period and network rates of the user in the time period between the two adjacent CCR messages;
calculating at least one time threshold interval of the time interval based on the time interval;
calculating a value of a first target GSU corresponding to each time threshold interval based on values of first used quota authorized amounts GSUs distributed by an online charging system for two CCR messages of which the time intervals belong to the time threshold intervals and corresponding to users;
calculating at least one rate threshold interval of the network rate based on the network rate;
calculating the value of a second target GSU corresponding to each rate threshold interval based on the values of second GSUs allocated by an online charging system to users corresponding to two CCR messages of which the network rates belong to the rate threshold intervals;
and adjusting the flow quota distributed to the user by the online charging system based on the value of the first target GSU and the value of the second target GSU.
The embodiment of the invention provides a method, a device and a server for adjusting a flow quota, wherein a threshold interval for two-dimensional calculation of flow quota allocation is carried out through two parameters of rate and time interval, and a GSU value corresponding to the threshold interval is calculated aiming at the threshold interval, so that the adjustment of a flow quota value is realized, the problem that the adjusted quota value is not suitable for a user due to single considered parameter in the prior art is solved, the timely adjusted quota value can be obtained, the condition that the user requests for many times due to the fact that the quota allocated to the user is not suitable is avoided, the interaction times of messages are reduced, and resources are saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic architecture diagram of an online charging system in an embodiment of the present invention;
fig. 2 shows a schematic flow chart of a method for adjusting a traffic quota according to an embodiment of the invention;
fig. 3 is a schematic block diagram of an apparatus for adjusting a traffic quota according to an embodiment of the present invention;
fig. 4 shows a schematic block diagram of an apparatus for adjusting a traffic quota according to a further embodiment of the present invention;
fig. 5 is a schematic block diagram of a traffic quota adjusting server according to an embodiment of the present invention.
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 combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The embodiment of the invention is suitable for a scene of dynamically adjusting the quota in an online charging system. Fig. 1 is a schematic architecture diagram of an online charging system according to an embodiment of the present invention. As shown in fig. 1, the online charging system includes: the system comprises a flow sample acquisition device, a quota calculation device, a message routing device, a fusion charging device and an accounting processing device. The message routing device is used for communicating with network element equipment such as SCP (service control point), transmitting messages such as CCR (service control point), and sending the messages such as CCR (service control point) sent by the network element side to the fusion charging device for authentication and calculating the value of the GSU (global system for mobile communications) according to a routing rule; the traffic sample acquisition device is used for acquiring traffic and other samples on the message routing device, acquiring sample data of the CCR message through technologies such as port mirroring and storing the sample data in the device; the quota calculation device is used for analyzing and calculating data collected by the flow sample collection device, and calculating a threshold interval of a time interval and network rate two-dimensional quota and a quota value corresponding to the threshold interval; the integrated charging device is used for calling data and services of the accounting processing device to finish user authentication and accounting processing, calculating a GSU (global system unit) and returning a message to the message routing device according to a quota value output by the quota calculating device, and has functions of real-time reminding and the like; and the accounting processing device is used for finishing functions of user authentication, accounting processing and the like.
Fig. 2 is a schematic flow chart of a method for adjusting a traffic quota according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps of 110, counting a time interval of two adjacent CCR messages belonging to the same user in CCR messages sent to the user by an online charging system within a preset time period and a network rate of the user within a time period between the two adjacent CCR messages; 120, calculating at least one time threshold interval of the time interval based on the time interval; 130, calculating a value of a first target GSU corresponding to each time threshold interval based on values of first GSUs allocated by an online charging system to users corresponding to two CCR messages of which the time intervals belong to the time threshold interval; 140, calculating at least one rate threshold interval of the network rate based on the network rate; 150, calculating the value of a second target GSU corresponding to each rate threshold interval based on the values of second GSUs allocated by the online charging system to the users corresponding to the two CCR messages of which the network rates belong to the rate threshold interval; and 160, adjusting the flow quota distributed to the user by the online charging system based on the value of the first target GSU and the value of the second target GSU.
In step 110, the CCR message sent by the online charging system to the user within the preset time period is a pre-obtained CCR message, the online charging system sends the CCR message to the user through a network element, the network element may be an SCP network element, the CCR message includes Initial, Update, Terminal, and the like, and in the implementation of the present invention, the CCR message sent by the online charging system to the user may be Update (CCR-U). The network rate in the time period between two adjacent CCR messages can be calculated based on the time interval between the two adjacent CCR messages and the traffic quota used by the user in the time interval, where the traffic quota used by the user is the traffic quota allocated by the online charging system in the previous CCR message in the two adjacent CCR messages.
It should be noted that the method for acquiring the CCR message is not limited herein, and for example, the network port for transmitting the CCR message may be acquired by mirroring.
In step 120, there are a plurality of time intervals counted in step 110, and the time threshold interval indicates that a ratio of the time interval belonging to the time threshold interval reaches a preset ratio of time, that is, the time interval with the preset ratio falls within the time threshold interval in the plurality of time intervals, and the time threshold interval may include a plurality of intervals.
In step 130, the values of GSUs allocated by the online charging system for the users corresponding to the two CCR messages belonging to the time interval of the time threshold interval, that is, the value of the first GSU, are obtained from the CCR messages obtained in advance, and then the value of the first target GSU corresponding to the time threshold interval is calculated according to the values of the GSUs. The value of the first target GSU corresponding to the time threshold interval indicates a value of allocating a traffic quota to a certain user when the time interval between two adjacent CCR messages of the user is within a preset threshold interval, and when the time threshold interval includes a plurality of time threshold intervals, each time threshold interval corresponds to a value of the first target GSU.
In step 140, there are a plurality of network rates counted in step 110, and the rate threshold interval indicates that the ratio of the network rate belonging to the rate threshold interval reaches a preset rate ratio, that is, in a plurality of network rate intervals, the network rate with the preset rate ratio falls within the rate threshold interval, and the rate threshold interval may include a plurality of intervals.
In step 150, the value of the GSU allocated by the online charging system for the user corresponding to the network rate belonging to the rate threshold interval, that is, the value of the second GSU, is obtained from the CCR message obtained in advance, and then the value of the second target GSU corresponding to the rate threshold interval is calculated according to the values of these GSUs. And when the number of the rate threshold intervals is multiple, each rate threshold interval corresponds to the value of one second target GSU.
In step 160, after the first target GSU value and the second target GSU value are calculated, the calculated first target GSU value and the second target GSU value are compared with the current GSU value to determine whether the two values are consistent, and if not, the current GSU value is adjusted to the first target GSU value and the second target GSU value.
In the embodiment of the invention, the threshold interval of flow quota allocation is calculated in a two-dimensional manner through two parameters of rate and time interval, the GSU value corresponding to the threshold interval is calculated aiming at the threshold interval, and the adjustment of the flow quota value is realized, so that the problem that the adjusted quota value is not suitable for a user easily due to single parameter is avoided, the quota value can be adjusted in time, the condition that the user requests for many times due to the fact that the quota allocated to the user is not suitable is avoided, the interaction times of messages are reduced, and resources are saved.
It will be appreciated that, on the basis of the embodiment shown in fig. 1, the method further comprises: 170, when receiving a traffic request message sent by a target user, determining a target time interval between two nearest CCR message deliveries to the target user from the received traffic request message, and a value of a third GSU allocated to the target user when the CCR message is delivered to the target user from the nearest traffic request message; 180, calculating a target network rate of the user based on the target time interval and the value of the third GSU; 190, determining a value of the GSU allocated for the user based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval.
It should be noted that, in the online charging system, the convergence charging device performs forward rating processing according to the service fragment definition and the RSU request usage amount, and calculates the GSU allocated to the user. VQT (Volume-quote-Threshold) and VT (Validity-Time) are basically kept unchanged depending on the efficiency of network communication, and when the balance of the user is sufficient, the integration charging device calculates the value of the GSU through steps 170-190, so as to realize the dynamic adjustment of the GSU.
The traffic request message sent by the target user may be an Initial CCR request. When receiving a traffic request message sent by a target user, firstly determining two CCR messages issued to the target user before the current traffic request message and at the closest time to the current traffic request message, and further determining a target time interval of the two CCR messages issued to the target user, and a value of a GSU (third GSU value) allocated to the target user when the CCR message is issued to the target user at the closest time to the current traffic request message. In step 180, the target network rate of the user is calculated by dividing the value of the third GSU by the target time interval. The user is then assigned a current GSU value based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval.
It should be noted that, in the embodiment of the present invention, the priority of the network rate may also be set to be higher than the interval time, that is, if T satisfies the time threshold interval and R also satisfies the rate threshold interval, the value of the second target GSU corresponding to the rate threshold interval that is satisfied by R is determined to allocate the current GSU value to the user.
It is understood that, in the embodiment of the present invention, step 180 may be further specifically performed as: determining a rate threshold interval to which a target network rate belongs; determining a value of a fourth GSU corresponding to a rate threshold interval to which the target network rate belongs in the values of the second target GSU; determining a time threshold interval to which the target time interval belongs; determining a value of a fifth GSU corresponding to a time threshold interval to which a target time interval belongs in the values of the first target GSU; and determining the larger value of the fourth GSU value and the fifth GSU value as the GSU value allocated to the target user.
Specifically, assuming that the time threshold intervals include (0, T1), [ T1, T2], (T2, + ∞), the values of the first target GSU sequentially corresponding to the time threshold intervals are G1, G2, and G3, the values of the rate threshold intervals include (0, R1), [ R1, R2], (R2, + ∞), and the values of the second target GSU sequentially corresponding to the time threshold intervals are G1 ', G2 ', and G3 ', after the target time interval T and the target network rate R of the target user are calculated, it is determined to which interval the current time interval T and the current network rate R belong. When R < R1, the value of the fifth GSU is G1'; when R > -R1 and R < ═ R2, the value of the fifth GSU is G2'; when R > R2, the value of the fifth GSU is G3'. When T < T1, the value of the fourth GSU is G1; when T > -T1 and T < -T2, the value of the fourth GSU is G2; when T > T2, the fourth GSU has a value of G3. After the value of the fourth GSU and the value of the fifth GSU are respectively determined, the magnitude of the fourth GSU and the magnitude of the fifth GSU are compared, and then the larger value of the fourth GSU and the fifth GSU is determined as the value of the GSU allocated to the target user.
It is understood that in the embodiment shown in fig. 1, step 120 may be specifically performed as: 121, calculating a time interval average value and a standard deviation corresponding to each peak in the multi-peak normal distribution of the time intervals; and 122, calculating at least one time threshold interval according to the time interval average value and the standard deviation corresponding to each peak value.
The time interval obtained in step 110 satisfies a multi-peak normal distribution, and a defining formula of the multi-peak normal distribution is shown in formula (1), so that a plurality of peaks can be determined from the multi-peak normal distribution of the time interval, each peak has a corresponding time interval mean and variance, and a time interval mean and a standard deviation corresponding to each peak can be calculated. After the time interval average value and the standard deviation corresponding to each peak value are calculated, the end points of the time threshold interval can be calculated, so that the time threshold interval is obtained, and the number of the peak values in the common case is the number of the time threshold intervals.
Figure BDA0001200978400000081
In equation (1), i represents the number of peaks, the summation is for i, where each i corresponds to an independent mean value μ i, standard deviation σ i, and its probability peak position, and each ki is a coefficient, and their sum is 1. The ratio f (x) of the time intervals follows a multimodal normal distribution, where μ represents a time interval, describing a location parameter; σ represents the standard deviation of the time interval, describing the degree of dispersion. P represents the proportion of the time interval, and the end point T of the time threshold interval can be calculated according to the formula (2)iWherein P (X ≦ Ti) The value of (b) is preset.
Figure BDA0001200978400000082
To be explainedIs, a plurality of pairs of T are obtained by the formula (2)i-1And TiThen select Ti-1The smallest set is the result of the calculation.
For example, the time interval mean and standard deviation for each peak is calculated for a certain statistical time interval as: mu.s1=3.2578,σ1=98.73;μ2=8.0001,σ2=119.99;μ3=12.9056,σ3167.65, the preset P is 94.8%, that is, the three peaks of the multimodal normal distribution in the time interval are 3.2578 seconds, 8.0001 seconds and 12.9056 seconds, the standard deviations of the three peaks are 98.73, 119.99 and 167.65, respectively, and the end point of the time threshold interval occupying 94.8% of the whole sample probability needs to be calculated. According to the data, T1 is 6, T2 is 9, namely the time threshold interval comprises three intervals of 0-6, 6-9, 9-plus-infinity, and the proportion of each interval can reach a relative maximum value.
It is understood that in the embodiment shown in fig. 1, step 150 may be specifically performed as: 141, calculating the average value and standard deviation of the network rate corresponding to each peak in the multimodal normal distribution of the network rate; and 142, calculating at least one speed threshold interval according to the network speed average value and the standard deviation corresponding to each peak value.
The network rate obtained in step 110 satisfies a multimodal normal distribution, and a defining formula of the multimodal normal distribution is shown in formula (1), so that a plurality of peak values can be determined from the multimodal normal distribution of the network rate, each peak value has a corresponding rate mean and variance, and a rate mean and a standard deviation corresponding to each peak value can be calculated. After the average rate value and the standard deviation corresponding to each peak value are calculated, the end points of the rate threshold interval can be calculated, so that the rate threshold interval is obtained, and the number of the peak values is the number of the rate threshold interval in the common case. The end points of the rate threshold interval may be calculated according to equation (2).
It should be noted that the data processing principle of step 141 and step 142 is the same as that of step 121 and step 122, and is not described herein again.
It is understood that, in the embodiment shown in fig. 1, step 130 may be specifically performed as: 131, counting the value of the first GSU within a preset time period; 132, calculating a first GSU mean and a first standard deviation of a normal distribution of values of the first GSU; a value for the first target GSU is calculated 133 based on the first GSU mean and the first standard deviation.
In this embodiment, for each time threshold interval, first, a value of a first GSU allocated when a time interval in the CCR message belongs to the time threshold interval is counted, and if the value of the first GSU satisfies a normal distribution, first, a first GSU average value and a first standard deviation of the normal distribution are calculated, and then, a value G of a first target GSU corresponding to the time threshold interval is calculated based on a formula (3)i
Figure BDA0001200978400000091
In equation (3), μ represents an average of values of the first target GSU, describing a location parameter; σ represents a standard deviation of the value of the first target GSU, describing the degree of dispersion, and P represents a proportion of the value of the first target GSU, which is set in advance.
For example, for a time threshold interval (0-6 s), the following is calculated: μ -12.564, σ -158.99, and P-0.97, that is, the average value of the first target GSU values is 12.564 seconds, the standard deviation of the first target GSU values is 158.99, and a value having a probability of 97% of the total first target GSU values needs to be calculated to obtain Gi20. Namely, the value of the first target GSU corresponding to the time threshold interval (0-6 s) is 20M.
It is understood that in the embodiment shown in fig. 1, step 150 may be specifically performed as: 151, counting the value of a second GSU allocated when the network rate in the CCR message belongs to a rate threshold interval; 152, calculating a second GSU mean and a second standard deviation of a normal distribution of values of the second GSU; and 153, calculating the value of the first target GSU according to the second GSU average value and the second standard deviation.
In this embodiment, for each rate threshold interval, first, a value of a second GSU allocated when a network rate in the CCR message belongs to the rate threshold interval is counted, where the value of the second GSU satisfies a requirementNormally distributing, first calculating the second GSU average value and the second standard deviation of the normal distribution, and then calculating the value G of the second target GSU corresponding to the time threshold interval based on the formula (3)i’。
It should be noted that the data processing principle of step 131 and step 133 is the same as that of step 151 and step 153, and is not described herein again.
Fig. 3 shows a schematic block diagram of an apparatus 200 for adjusting traffic quota according to an embodiment of the present invention. As shown in fig. 3, the apparatus 200 includes:
a counting unit 201, configured to count a time interval between two adjacent CCR messages in a CCR message sent by an online charging system to the same user within a preset time period and a network rate in a time period between the two adjacent CCR messages;
a calculating unit 202 for calculating at least one time threshold interval of a time interval based on the time interval;
the calculating unit 202 is further configured to calculate, based on the value of a first used quota authorized amount GSU allocated by the online charging system for a user corresponding to two CCR messages of the time interval belonging to the time threshold interval, a value of a first target GSU corresponding to each time threshold interval;
the calculating unit 202 is further configured to calculate at least one rate threshold interval of the network rate based on the network rate;
the calculating unit 202 is further configured to calculate, based on values of second GSUs allocated by the online charging system to users corresponding to two CCR messages of which the network rate belongs to the rate threshold interval, a value of a second target GSU corresponding to each rate threshold interval;
an adjusting unit 203, configured to adjust the traffic quota allocated by the online charging system to the user based on the value of the first target GSU and the value of the second target GSU.
In the embodiment of the invention, the threshold interval of flow quota allocation is calculated in a two-dimensional manner through two parameters of rate and time interval, the GSU value corresponding to the threshold interval is calculated aiming at the threshold interval, and the adjustment of the flow quota value is realized, so that the problem that the adjusted quota value is not suitable for a user easily due to single parameter is avoided, the quota value can be adjusted in time, the condition that the user requests for many times due to the fact that the quota allocated to the user is not suitable is avoided, the interaction times of messages are reduced, and resources are saved.
Fig. 4 shows a schematic block diagram of an apparatus 200 for adjusting traffic quota according to another embodiment of the present invention.
It is understood that, as shown in fig. 4, the apparatus 200 may further include:
a determining unit 204, configured to determine, when receiving a traffic request message sent by a target user, a target time interval between two closest CCR message issuers to the target user after receiving the traffic request message, and a value of a third GSU allocated to the target user when a CCR message is issued to the target user after the closest CCR message is received;
the calculating unit 202 is further configured to calculate a target network rate of the user based on the target time interval and the value of the third GSU;
the determining unit 204 is further configured to determine a value of the GSU allocated for the user based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval.
It is to be understood that the determining unit 204 is further configured to:
determining a rate threshold interval to which the target network rate belongs;
determining a value of a fourth GSU corresponding to a rate threshold interval to which the target network rate belongs in the values of the second target GSU;
determining a time threshold interval to which the target time interval belongs;
determining a value of a fifth GSU corresponding to a time threshold interval to which the target time interval belongs in the values of the first target GSU;
determining the larger of the value of the fourth GSU and the value of the fifth GSU as the value of the GSU allocated to the target user.
It is to be understood that the computing unit 202 is further configured to:
calculating the time interval mean value and standard deviation corresponding to each peak in the multi-peak normal distribution of the time interval;
and calculating the time threshold interval according to the time interval average value and the standard deviation corresponding to each peak value.
It is to be understood that the computing unit 202 is further configured to:
calculating the average value and the standard deviation of the network rate corresponding to each peak value in the multimodal normal distribution of the network rate;
and calculating the speed threshold interval according to the network speed average value and the standard deviation corresponding to each peak value.
It is to be understood that the computing unit 202 is further configured to:
counting the value of a first used quota authorized amount (GSU) distributed when the time interval in the CCR message belongs to the time threshold interval;
calculating a first GSU mean and a first standard deviation corresponding to each peak in a multi-peak normal distribution of the values of the first GSU;
calculating a value of the first target GSU based on the first GSU mean and the first standard deviation.
It is to be understood that the computing unit 202 is further configured to:
counting the value of a second GSU allocated when the network rate belongs to the rate threshold interval in the CCR message;
calculating a second GSU mean and a second standard deviation corresponding to each peak in a multi-peak normal distribution of values of the second GSU;
calculating a value of the first target GSU based on the second GSU mean and the second standard deviation.
The apparatus 200 for adjusting traffic distribution according to the embodiment of the present invention may correspond to an execution body in the method for adjusting traffic distribution according to the embodiment of the present invention, and the above and other operations and/or functions of each module in the apparatus 200 for adjusting traffic distribution are respectively for implementing corresponding processes of each method in fig. 1, and are not described herein again for brevity.
Fig. 5 is a schematic block diagram of a traffic quota adjusting server 300 according to an embodiment of the present invention. As shown in fig. 5, the server 300 includes a processor 301, a memory 302, and a communication interface 303, the memory 302 is used for storing executable program codes, the processor 301 executes programs corresponding to the executable program codes by reading the executable program codes stored in the memory 302, the communication interface 303 is used for communicating with external devices, such as terminals, websites, and the like, and the server 300 may further include a bus 304, and the bus 304 is used for connecting the processor 301, the memory 302, and the communication interface 303, so that the processor 301, the memory 302, and the communication interface 303 communicate with each other through the bus 304.
Specifically, the processor 301 is further configured to execute a method for adjusting a traffic quota; the method for adjusting the flow quota comprises the following steps:
counting the time interval of two adjacent CCR messages in the CCR messages sent to the same user by an online charging system in a preset time period and the network rate in the time period between the two adjacent CCR messages;
calculating at least one time threshold interval of a time interval based on the time interval;
calculating a value of a first target GSU corresponding to each time threshold interval based on values of first used quota authorized amounts GSUs distributed by the online charging system for users corresponding to two CCR messages of which the time intervals belong to the time threshold interval;
calculating at least one rate threshold interval for the network rate based on the network rate;
calculating the value of a second target GSU corresponding to each rate threshold interval based on the values of second GSUs allocated by the online charging system to the users corresponding to the two CCR messages of which the network rates belong to the rate threshold interval;
and adjusting the flow quota distributed to the user by the online charging system based on the value of the first target GSU and the value of the second target GSU.
The adjustment server 300 for traffic distribution according to the embodiment of the present invention may correspond to an execution main body in the adjustment method for traffic distribution according to the embodiment of the present invention, and the above and other operations and/or functions of each module in the adjustment server 300 for traffic distribution are respectively for implementing corresponding flows of each method in fig. 1, and are not described herein again for brevity.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (13)

1. A method for adjusting a traffic quota comprises the following steps:
counting time intervals of two adjacent CCR messages belonging to the same user in a credit control request CCR message sent to the user by an online charging system in a preset time period and network rates of the user in the time period between the two adjacent CCR messages;
calculating at least one time threshold interval of a time interval based on the time interval;
calculating a value of a first target GSU corresponding to each time threshold interval based on values of first used quota authorized amounts GSUs distributed by the online charging system for users corresponding to two CCR messages of which the time intervals belong to the time threshold interval;
calculating at least one rate threshold interval for the network rate based on the network rate;
calculating the value of a second target GSU corresponding to each rate threshold interval based on the values of second GSUs allocated by the online charging system to the users corresponding to the two CCR messages of which the network rates belong to the rate threshold interval;
adjusting the flow quota distributed by the online charging system for the user based on the value of the first target GSU and the value of the second target GSU;
wherein the step of calculating a rate threshold interval for the at least one network rate based on the network rate comprises:
calculating the average value and the standard deviation of the network rate corresponding to each peak value in the multimodal normal distribution of the network rate;
and calculating the at least one speed threshold interval according to the network speed average value and the standard deviation corresponding to each peak value.
2. The method of claim 1, further comprising:
when receiving a traffic request message sent by a target user, determining a target time interval between two nearest CCR messages issued to the target user after receiving the traffic request message, and a value of a third GSU allocated to the target user when the CCR message is issued to the target user after the nearest traffic request message is received;
calculating a target network rate for the user based on the target time interval and the value of the third GSU;
determining a value of a GSU allocated for the user based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval.
3. The method of claim 2, the determining a value for the allocated GSU for the user based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval comprising:
determining a rate threshold interval to which the target network rate belongs;
determining a value of a fourth GSU corresponding to a rate threshold interval to which the target network rate belongs in the values of the second target GSU;
determining a time threshold interval to which the target time interval belongs;
determining a value of a fifth GSU corresponding to a time threshold interval to which the target time interval belongs in the values of the first target GSU;
determining the larger of the value of the fourth GSU and the value of the fifth GSU as the value of the GSU allocated to the target user.
4. The method of claim 1, the step of calculating a time threshold interval for at least one time interval based on the time interval comprising:
calculating the time interval mean value and standard deviation corresponding to each peak in the multi-peak normal distribution of the time interval;
and calculating the at least one time threshold interval according to the time interval average value and the standard deviation corresponding to each peak value.
5. The method of claim 1, wherein the step of calculating the value of the first target GSU corresponding to the time threshold interval based on the value of the first used quota granted amount GSU allocated by the online charging system for the two CCR messages of the time interval belonging to the time threshold interval to the user comprises:
counting the value of the first GSU within the preset time period;
calculating a first GSU mean and a first standard deviation of a normal distribution of values of the first GSU;
calculating a value of the first target GSU based on the first GSU mean and the first standard deviation.
6. The method of claim 1, wherein the step of calculating the value of the second target GSU corresponding to the rate threshold interval based on the value of the second GSU allocated by the online charging system to the user corresponding to the two CCR messages of which the network rate belongs to the rate threshold interval comprises:
counting the value of the second GSU within the preset time period;
calculating a second GSU mean and a second standard deviation of a normal distribution of values of the second GSU;
calculating a value of the first target GSU based on the second GSU mean and the second standard deviation.
7. An apparatus for adjusting traffic quota, comprising:
the device comprises a counting unit, a sending unit and a receiving unit, wherein the counting unit is used for counting the time interval of two adjacent CCR messages belonging to the same user in a credit control request CCR message sent to the user by an online charging system in a preset time period and the network rate of the user in the time period between the two adjacent CCR messages;
a calculation unit for calculating at least one time threshold interval of a time interval based on the time interval;
the calculating unit is further configured to calculate, based on the value of a first used quota authorized amount GSU allocated by the online charging system to a user corresponding to two CCR messages of which the time interval belongs to the time threshold interval, a value of a first target GSU corresponding to each time threshold interval;
the computing unit is further configured to compute at least one rate threshold interval for the network rate based on the network rate;
the calculating unit is further configured to calculate, based on values of second GSUs allocated by the online charging system to users corresponding to two CCR messages of which the network rates belong to the rate threshold intervals, a value of a second target GSU corresponding to each rate threshold interval;
an adjusting unit, configured to adjust a traffic quota allocated to a user by the online charging system based on the value of the first target GSU and the value of the second target GSU;
the computing unit is further to:
calculating the average value and the standard deviation of the network rate corresponding to each peak value in the multimodal normal distribution of the network rate;
and calculating the speed threshold interval according to the network speed average value and the standard deviation corresponding to each peak value.
8. The apparatus of claim 7, further comprising:
a determining unit, configured to determine, when receiving a traffic request message sent by a target user, a target time interval between two nearest CCR message deliveries to the target user from the receiving of the traffic request message, and a value of a third GSU allocated to the target user when a CCR message is delivered to the target user from the one nearest traffic request message;
the computing unit is further configured to compute a target network rate for the user based on the target time interval and the value of the third GSU;
the determining unit is further configured to determine a value of a GSU allocated for the user based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval.
9. The apparatus of claim 8, the determination unit further to:
determining a rate threshold interval to which the target network rate belongs;
determining a value of a fourth GSU corresponding to a rate threshold interval to which the target network rate belongs in the values of the second target GSU;
determining a time threshold interval to which the target time interval belongs;
determining a value of a fifth GSU corresponding to a time threshold interval to which the target time interval belongs in the values of the first target GSU;
determining the larger of the value of the fourth GSU and the value of the fifth GSU as the value of the GSU allocated to the target user.
10. The apparatus of claim 7, the computing unit to further:
calculating the time interval mean value and standard deviation corresponding to each peak in the multi-peak normal distribution of the time interval;
and calculating the time threshold interval according to the time interval average value and the standard deviation corresponding to each peak value.
11. The apparatus of claim 7, the computing unit to further:
counting the value of a first used quota authorized amount (GSU) distributed when the time interval in the CCR message belongs to the time threshold interval;
calculating a first GSU mean and a first standard deviation corresponding to each peak in a multi-peak normal distribution of the values of the first GSU;
calculating a value of the first target GSU based on the first GSU mean and the first standard deviation.
12. The apparatus of claim 7, the computing unit to further:
counting the value of a second GSU allocated when the network rate belongs to the rate threshold interval in the CCR message;
calculating a second GSU mean and a second standard deviation corresponding to each peak in a multi-peak normal distribution of values of the second GSU;
calculating a value of the first target GSU based on the second GSU mean and the second standard deviation.
13. A traffic quota adjustment server, comprising:
a memory, a processor, a communication interface, and a bus;
the memory, the processor and the communication interface are connected through the bus and complete mutual communication;
the memory is used for storing program codes;
the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute a traffic quota adjusting method; the method for adjusting the traffic quota comprises the following steps:
counting time intervals of two adjacent CCR messages belonging to the same user in a credit control request CCR message sent to the user by an online charging system in a preset time period and network rates of the user in the time period between the two adjacent CCR messages;
calculating at least one time threshold interval of a time interval based on the time interval;
calculating a value of a first target GSU corresponding to each time threshold interval based on values of first used quota authorized amounts GSUs distributed by the online charging system for users corresponding to two CCR messages of which the time intervals belong to the time threshold interval;
calculating at least one rate threshold interval for the network rate based on the network rate;
calculating the value of a second target GSU corresponding to each rate threshold interval based on the values of second GSUs allocated by the online charging system to the users corresponding to the two CCR messages of which the network rates belong to the rate threshold interval;
adjusting the flow quota distributed by the online charging system for the user based on the value of the first target GSU and the value of the second target GSU;
wherein the step of calculating a rate threshold interval for the at least one network rate based on the network rate comprises:
calculating the average value and the standard deviation of the network rate corresponding to each peak value in the multimodal normal distribution of the network rate;
and calculating the at least one speed threshold interval according to the network speed average value and the standard deviation corresponding to each peak value.
CN201611267876.8A 2016-12-31 2016-12-31 Method and device for adjusting flow quota and server Active CN108270697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611267876.8A CN108270697B (en) 2016-12-31 2016-12-31 Method and device for adjusting flow quota and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611267876.8A CN108270697B (en) 2016-12-31 2016-12-31 Method and device for adjusting flow quota and server

Publications (2)

Publication Number Publication Date
CN108270697A CN108270697A (en) 2018-07-10
CN108270697B true CN108270697B (en) 2021-11-30

Family

ID=62770348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611267876.8A Active CN108270697B (en) 2016-12-31 2016-12-31 Method and device for adjusting flow quota and server

Country Status (1)

Country Link
CN (1) CN108270697B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111328036A (en) * 2018-12-17 2020-06-23 中国移动通信集团宁夏有限公司 Method and device for controlling dynamic authorization of online charging of flow data service
CN114189461A (en) * 2020-09-11 2022-03-15 北京金山云网络技术有限公司 Bandwidth bill generation method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10308289B4 (en) * 2003-02-26 2010-11-25 Bosch Rexroth Aktiengesellschaft LS-way valve block
CN102131174A (en) * 2010-11-16 2011-07-20 华为技术有限公司 Method, device and system for charging prepayment
CN103138951A (en) * 2011-11-30 2013-06-05 中兴通讯股份有限公司 Processing method and system of billing service, billing gateway, online billing system
CN103415006A (en) * 2013-07-26 2013-11-27 中国联合网络通信集团有限公司 Flow accounting service credit control method and device
CN103765814A (en) * 2012-08-08 2014-04-30 华为技术有限公司 Charging control method, charging trigger function and online charging system
CN104053141A (en) * 2010-03-31 2014-09-17 华为技术有限公司 Method and device for controlling data stream of user service

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2656741B2 (en) * 1994-01-31 1997-09-24 インターナショナル・ビジネス・マシーンズ・コーポレイション Information management method and bridge node
CN103929316B (en) * 2013-01-11 2017-10-31 阿尔卡特朗讯 A kind of method and corresponding Online Charging System for distributing communication quota
CN103974221B (en) * 2013-01-25 2018-10-26 中国移动通信集团广东有限公司 The distribution method and device of packet domain real time billing flow quota
US9930188B2 (en) * 2013-06-21 2018-03-27 Openet Telecom Ltd. System and method for dynamically allocating quota for shared balances in distributed telecommunications networks
US10063712B2 (en) * 2013-06-21 2018-08-28 Openet Telecom Ltd. System and method for dynamically allocating quota for shared balances in distributed telecommunications networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10308289B4 (en) * 2003-02-26 2010-11-25 Bosch Rexroth Aktiengesellschaft LS-way valve block
CN104053141A (en) * 2010-03-31 2014-09-17 华为技术有限公司 Method and device for controlling data stream of user service
CN102131174A (en) * 2010-11-16 2011-07-20 华为技术有限公司 Method, device and system for charging prepayment
CN103138951A (en) * 2011-11-30 2013-06-05 中兴通讯股份有限公司 Processing method and system of billing service, billing gateway, online billing system
CN103765814A (en) * 2012-08-08 2014-04-30 华为技术有限公司 Charging control method, charging trigger function and online charging system
CN103415006A (en) * 2013-07-26 2013-11-27 中国联合网络通信集团有限公司 Flow accounting service credit control method and device

Also Published As

Publication number Publication date
CN108270697A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
US11212247B2 (en) Systems and methods for fair information exchange using publish-subscribe with blockchain
CN103699445A (en) Task scheduling method, device and system
CN112131006A (en) Service request distribution method, device, computer equipment and storage medium
Intharawijitr et al. Simulation study of low latency network architecture using mobile edge computing
CN108270697B (en) Method and device for adjusting flow quota and server
CN113038187B (en) Method, apparatus and medium for video quality of experience fair and practical network bandwidth allocation
JP2003531517A (en) Method and system for network processor scheduling output using disconnect / reconnect flow queue
US7440403B2 (en) Method and software for calculating rate constraints
CN110210662A (en) A kind of method, apparatus, equipment and the storage medium of determining waiting time
CN102860051B (en) A kind of service billing control method and relevant device
CN106685846B (en) Flow control method and device
JP2016127359A (en) Communication controller
CN108632134A (en) Statistical method, system and the project setting method and system of channel evaluation parameter
CN110688615B (en) Method, device, equipment and storage medium for providing resource package service
CN107092999B (en) Task processing method and device
CN111278039A (en) User perception depression recognition method, device, equipment and medium
Suryanegara The economics of 5G: Shifting from revenue-per-user to revenue-per-machine
CN106302231B (en) The method and device of traffic queue shaping
KR101719724B1 (en) Resource management system and method, and method for deciding resource price by the same system
CN108111878B (en) Method and system for transmitting media stream image
CN112114949A (en) Service scheduling method and system for cloud computing
CN106789745B (en) bandwidth acquisition method and device
CN106612324B (en) Dynamic scheduling algorithm of virtual machine under condition of limited bandwidth in mobile cloud computing
CN105338575A (en) Control method, device and server
CN102246501B (en) Traffic allocation

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