CN108270697A - A kind of method of adjustment, device and the server of flow quota - Google Patents
A kind of method of adjustment, device and the server of flow quota Download PDFInfo
- Publication number
- CN108270697A CN108270697A CN201611267876.8A CN201611267876A CN108270697A CN 108270697 A CN108270697 A CN 108270697A CN 201611267876 A CN201611267876 A CN 201611267876A CN 108270697 A CN108270697 A CN 108270697A
- Authority
- CN
- China
- Prior art keywords
- value
- gsu
- target
- rate
- user
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种流量配额的调整方法、装置及服务器。The present invention relates to the technical field of communications, and in particular to a flow quota adjustment method, device and server.
背景技术Background technique
随着4G在线流量业务的迅速发展,相比于2/3G网络的在线流量业务,小流量业务越来越多的发展为在线视频、在线直播等业务,使用户使用流量的速率和频率发生了变化。流量业务的在线计费以网络侧和在线计费系统交互的实时计费消息作为依据,在线计费系统为用户计算并分配流量配额供用户使用,但是,用户使用流量的速率和频率的变化,使得原来的流量配额计算方法不再适用,需要对4G在线流量业务的流量配额进行调整。目前调整在线计费的配额的方式可以为:基于在线流量业务速率的配额调整方法。该方法主要通过计算用户对请求的流量的使用速率,根据GSU(Granted-Service-Unit,已使用配额授权量)预设的固定区间和使用速率的对应关系,调整配额值的大小。但是,该方法仅考虑了流量使用的速率维度,考虑参数单一,很容易使调整的配额值不适合用户。With the rapid development of 4G online traffic services, compared with the online traffic services of 2/3G networks, more and more small traffic services have developed into online video, online live broadcast and other services, making the speed and frequency of users' traffic usage change. Variety. The online billing of traffic service is based on the real-time billing messages exchanged between the network side and the online billing system. The online billing system calculates and allocates traffic quotas for users. However, the rate and frequency of traffic usage by users changes, The original traffic quota calculation method is no longer applicable, and the traffic quota of the 4G online traffic service needs to be adjusted. At present, the way of adjusting the quota of online charging may be: a method of adjusting quota based on the service rate of online traffic. This method mainly adjusts the size of the quota value by calculating the user's usage rate of the requested traffic, and according to the corresponding relationship between the fixed interval preset by the GSU (Granted-Service-Unit, used quota authorization amount) and the usage rate. However, this method only considers the rate dimension of traffic usage, and considering a single parameter, it is easy to make the adjusted quota value unsuitable for users.
发明内容Contents of the invention
本发明实施例提供了一种流量配额的调整方法、装置及服务器,能够解决需要花费较长的时间才能得保证命中准确率的方法,无法满足使用需求的问题。Embodiments of the present invention provide a traffic quota adjustment method, device, and server, which can solve the problem that it takes a long time to obtain a method to ensure the accuracy of the hit rate, and cannot meet the use requirements.
第一方面,本发明提供了一种流量配额的调整方法,包括:统计预设时间段内在线计费系统向用户发送的CCR(Credit-Control-Request,信用控制请求)消息中属于同一用户的两个相邻的CCR消息的时间间隔和两个相邻CCR消息之间的时间段内用户的网络速率;In a first aspect, the present invention provides a flow quota adjustment method, including: counting the CCR (Credit-Control-Request, credit control request) messages sent by the online charging system to the user within a preset period of time and belonging to the same user The time interval between two adjacent CCR messages and the user's network rate in the time period between two adjacent CCR messages;
基于时间间隔计算时间间隔的至少一个时间阈值区间;calculating at least one time threshold interval for a time interval based on the time interval;
基于在线计费系统为时间间隔属于时间阈值区间的两个CCR消息对应用户分配的第一已使用配额授权量GSU的值,计算每个时间阈值区间对应的第一目标GSU的值;Calculate the value of the first target GSU corresponding to each time threshold interval based on the value of the first used quota authorization amount GSU allocated to the user corresponding to the two CCR messages whose time interval belongs to the time threshold interval by the online charging system;
基于网络速率计算网络速率的至少一个速率阈值区间;calculating at least one rate threshold interval of the network rate based on the network rate;
基于在线计费系统为网络速率属于速率阈值区间的两个CCR消息对应用户分配的第二GSU的值,计算每个速率阈值区间对应的第二目标GSU的值;Calculate the value of the second target GSU corresponding to each rate threshold interval based on the value of the second GSU allocated to the user for the two CCR messages whose network rate belongs to the rate threshold interval by the online charging system;
基于第一目标GSU的值和第二目标GSU的值调整在线计费系统为用户分配的流量配额。The traffic quota allocated to the user by the online charging system is adjusted 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 a traffic quota adjustment device, including:
统计单元,用于统计预设时间段内在线计费系统向用户发送的CCR消息中属于同一用户的两个相邻的CCR消息的时间间隔和两个相邻CCR消息之间的时间段内用户的网络速率;The statistical unit is used to count the time interval between two adjacent CCR messages belonging to the same user among the CCR messages sent by the online charging system to the user within the preset time period and the user within the time period between two adjacent CCR messages network speed;
计算单元,用于基于时间间隔计算时间间隔的至少一个时间阈值区间;a calculation unit, configured to calculate at least one time threshold interval of the time interval based on the time interval;
计算单元还用于基于在线计费系统为时间间隔属于时间阈值区间的两个CCR消息对应用户分配的第一已使用配额授权量GSU的值,计算每个时间阈值区间对应的第一目标GSU的值;The calculation unit is further configured to calculate the value of the first target GSU corresponding to each time threshold interval based on the value of the first used quota authorization amount GSU allocated to the user corresponding to the two CCR messages whose time interval belongs to the time threshold interval by the online charging system. value;
计算单元还用于基于网络速率计算网络速率的至少一个速率阈值区间;The calculation unit is also used to calculate at least one rate threshold interval of the network rate based on the network rate;
计算单元还用于基于在线计费系统为网络速率属于速率阈值区间的两个CCR消息对应用户分配的第二GSU的值,计算每个速率阈值区间对应的第二目标GSU的值;The calculation unit is further configured to calculate the value of the second target GSU corresponding to each rate threshold range based on the value of the second GSU allocated to the user corresponding to the two CCR messages whose network rate belongs to the rate threshold range by the online charging system;
调整单元,用于基于第一目标GSU的值和第二目标GSU的值调整在线计费系统为用户分配的流量配额。An adjustment unit, configured to adjust the traffic quota allocated 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 adjustment server, including:
存储器、处理器、通信接口和总线;memory, processor, communication interface and bus;
存储器、处理器和通信接口通过总线连接并完成相互间的通信;The memory, the processor and the communication interface are connected through the bus and complete the mutual communication;
存储器用于存储程序代码;The memory is used to store program code;
处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行一种流量配额的调整方法;其中,流量配额的调整方法包括:The processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute a traffic quota adjustment method; wherein, the traffic quota adjustment method includes:
统计预设时间段内在线计费系统向用户发送的CCR消息中属于同一用户的两个相邻的CCR消息的时间间隔和两个相邻CCR消息之间的时间段内用户的网络速率;Count the time interval between two adjacent CCR messages belonging to the same user among the CCR messages sent by the online charging system to the user within the preset time period and the user's network rate in the time period between two adjacent CCR messages;
基于时间间隔计算时间间隔的至少一个时间阈值区间;calculating at least one time threshold interval for a time interval based on the time interval;
基于在线计费系统为时间间隔属于时间阈值区间的两个CCR消息对应用户分配的第一已使用配额授权量GSU的值,计算每个时间阈值区间对应的第一目标GSU的值;Calculate the value of the first target GSU corresponding to each time threshold interval based on the value of the first used quota authorization amount GSU allocated to the user corresponding to the two CCR messages whose time interval belongs to the time threshold interval by the online charging system;
基于网络速率计算网络速率的至少一个速率阈值区间;calculating at least one rate threshold interval of the network rate based on the network rate;
基于在线计费系统为网络速率属于速率阈值区间的两个CCR消息对应用户分配的第二GSU的值,计算每个速率阈值区间对应的第二目标GSU的值;Calculate the value of the second target GSU corresponding to each rate threshold interval based on the value of the second GSU allocated to the user for the two CCR messages whose network rate belongs to the rate threshold interval by the online charging system;
基于第一目标GSU的值和第二目标GSU的值调整在线计费系统为用户分配的流量配额。The traffic quota allocated to the user by the online charging system is adjusted based on the value of the first target GSU and the value of the second target GSU.
本发明实施例提供了一种流量配额的调整方法、装置及服务器,本发明中通过速率和时间间隔两种参数,进行二维的计算流量配额分配的阈值区间,并针对阈值区间计算与阈值区间对应的GSU的值,实现对流量配额取值的调整,如此避免了现有技术中考虑参数单一,很容易使调整的配额值不适合用户的问题,并且能够适时调整的配额取值,避免由于为用户分配的配额不合适,而导致用户多次请求的情况,缩减消息的交互次数,节省资源。The embodiment of the present invention provides a traffic quota adjustment method, device, and server. In the present invention, two parameters of rate and time interval are used to calculate the threshold interval of traffic quota allocation two-dimensionally, and the threshold interval calculation and threshold interval The value of the corresponding GSU realizes the adjustment of the value of the traffic quota, thus avoiding the problem that the adjusted quota value is not suitable for the user due to the single parameter considered in the prior art, and the quota value can be adjusted in time to avoid the problem caused by The quota assigned to the user is not appropriate, resulting in multiple requests from the user, reducing the number of message interactions and saving resources.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为本发明实施例中在线计费系统的示意性架构图;FIG. 1 is a schematic architecture diagram of an online charging system in an embodiment of the present invention;
图2示出了根据本发明一实施例的流量配额的调整方法的示意性流程图;FIG. 2 shows a schematic flowchart of a method for adjusting a traffic quota according to an embodiment of the present invention;
图3示出了根据本发明一实施例的流量配额的调整装置的示意性框图;Fig. 3 shows a schematic block diagram of a flow quota adjustment device according to an embodiment of the present invention;
图4示出了根据本发明又一实施例的流量配额的调整装置的示意性框图;Fig. 4 shows a schematic block diagram of an apparatus for adjusting a traffic quota according to yet another embodiment of the present invention;
图5是根据本发明一实施例的流量配额的调整服务器的示意性框图。Fig. 5 is a schematic block diagram of a traffic quota adjustment server according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
本发明实施例适用于在线计费系统中对配额进行动态调整的场景。图1为本发明实施例中在线计费系统的示意性架构图。如图1所示,在线计费系统包括:流量样本采集装置、配额计算装置、消息路由装置、融合计费装置和账务处理装置。其中,消息路由装置,用于同SCP等网元设备通信,传输进行CCR等消息,并将网元侧发送来的CCR等消息根据路由规则发送给融合计费装置鉴权和计算GSU的值;流量样本采集装置,用于在消息路由装置上采集流量等样本,通过端口镜像等技术,获取CCR消息的样本数据,存储于该装置中;配额计算装置,用于分析计算流量样本采集装置中采集的数据,计算时间间隔和网络速率二维度的配额的阀值区间和阀值区间对应的配额值;融合计费装置,用于调用账务处理装置的数据和服务完成用户鉴权和账务处理,并根据配额计算装置输出的配额值,计算GSU并返回消息给消息路由装置,以及实时提醒等功能;账务处理装置,用于完成用户鉴权和账务处理等功能。The embodiment of the present invention is applicable to the scenario of dynamically adjusting the quota in the online charging system. Fig. 1 is a schematic architecture diagram of an online charging system in an embodiment of the present invention. As shown in Figure 1, the online billing system includes: a traffic sample collection device, a quota calculation device, a message routing device, a converged billing device and an account processing device. Among them, the message routing device is used to communicate with network element equipment such as SCP, transmit messages such as CCR, and send messages such as CCR sent from the network element side to the converged billing device for authentication and calculation of the value of GSU according to routing rules; The traffic sample collection device is used to collect traffic and other samples on the message routing device, and obtains the sample data of CCR messages through port mirroring and other technologies, and stores them in the device; the quota calculation device is used to analyze and calculate the traffic samples collected by the traffic sample collection device Calculate the time interval and network rate two-dimensional quota threshold interval and the quota value corresponding to the threshold interval; the integrated billing device is used to call the data and services of the accounting processing device to complete user authentication and accounting processing , and according to the quota value output by the quota calculation device, calculate the GSU and return a message to the message routing device, as well as functions such as real-time reminder; the account processing device is used to complete functions such as user authentication and account processing.
图2示出了根据本发明一实施例的流量配额的调整方法的示意性流程图。如图2所示,该方法包括以下步骤:110,统计预设时间段内在线计费系统向用户发送的CCR消息中属于同一用户的两个相邻的CCR消息的时间间隔和两个相邻CCR消息之间的时间段内用户的网络速率;120,基于时间间隔计算时间间隔的至少一个时间阈值区间;130,基于在线计费系统为时间间隔属于时间阈值区间的两个CCR消息对应用户分配的第一GSU的值,计算每个时间阈值区间对应的第一目标GSU的值;140,基于网络速率计算网络速率的至少一个速率阈值区间;150,基于在线计费系统为网络速率属于速率阈值区间的两个CCR消息对应用户分配的第二GSU的值,计算每个速率阈值区间对应的第二目标GSU的值;160,基于第一目标GSU的值和第二目标GSU的值调整在线计费系统为用户分配的流量配额。Fig. 2 shows a schematic flowchart of a method for adjusting a traffic quota according to an embodiment of the present invention. As shown in Figure 2, the method includes the following steps: 110, in the CCR message that the online charging system sends to the user within the preset time period, the time interval and the time interval between two adjacent CCR messages belonging to the same user are counted. The network rate of the user in the time period between the CCR messages; 120, calculate at least one time threshold interval of the time interval based on the time interval; 130, allocate the corresponding user for two CCR messages whose time interval belongs to the time threshold interval based on the online charging system Calculate the value of the first target GSU corresponding to each time threshold interval; 140, calculate at least one rate threshold interval of the network rate based on the network rate; 150, determine that the network rate belongs to the rate threshold based on the online charging system The two CCR messages in the interval correspond to the value of the second GSU allocated by the user, and calculate the value of the second target GSU corresponding to each rate threshold interval; 160, adjust the online calculation based on the value of the first target GSU and the value of the second target GSU The traffic quota assigned by the fee system to the user.
在步骤110中,预设时间段内在线计费系统向用户发送的CCR消息为预先获取,在线计费系统通过网元向用户发送的CCR消息,网元可以为SCP网元,CCR消息包括Initial、Update、Terminal等,本发明实施中在线计费系统向用户发送的CCR消息可以为Update(CCR-U)。两个相邻CCR消息之间的时间段内的网络速率可以基于两个相邻CCR消息之间的时间间隔和这段时间间隔内用户使用的流量配额计算得出,用户使用的流量配额即为在线计费系统在两个相邻CCR消息中前一个CCR消息中分配的流量配额。In step 110, the CCR message sent by the online charging system to the user within the preset time period is pre-acquisition, and the CCR message sent by the online charging system to the user through a network element, the network element may be an SCP network element, and the CCR message includes Initial , Update, Terminal, etc. 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 two adjacent CCR messages and the traffic quota used by the user in this time interval. The traffic quota used by the user is The traffic quota allocated by the online charging system in the previous CCR message of two adjacent CCR messages.
需要说明的是,获取CCR消息的方式在此不做限定,例如,可以对传输CCR消息的网络端口进行镜像来获取。It should be noted that the manner of obtaining the CCR message is not limited here, for example, the network port transmitting the CCR message may be mirrored to obtain the CCR message.
在步骤120中,通过步骤110统计出的时间间隔有多个,时间阈值区间表示时间间隔属于时间阈值区间的比例达到时间预设比例,即多个时间间隔中,有时间预设比例的时间间隔落入时间阈值区间内,时间阈值区间可以包括多个区间。In step 120, there are multiple time intervals counted by step 110, and the time threshold interval indicates that the proportion of the time interval belonging to the time threshold interval reaches the time preset ratio, that is, among the multiple time intervals, there is a time interval with a time preset ratio Falling within the time threshold interval, the time threshold interval may include multiple intervals.
在步骤130中,从预先获取的CCR消息中得出在线计费系统为属于时间阈值区间的时间间隔的两个CCR消息对应用户分配的GSU的值,即第一GSU的值,然后根据这些GSU的值计算出时间阈值区间对应的第一目标GSU的值。时间阈值区间对应的第一目标GSU的值表示某用户的两个相邻的CCR消息的时间间隔处于预设阈值区间内时向该用户分配流量配额的值,时间阈值区间包括多个时,每个时间阈值区间会对应一个第一目标GSU的值。In step 130, the value of the GSU assigned to the user by the online charging system for the two CCR messages corresponding to the time interval belonging to the time threshold interval is obtained from the pre-acquired CCR message, that is, the value of the first GSU, and then according to these GSU Calculate the value of the first target GSU corresponding to the time threshold interval. The value of the first target GSU corresponding to the time threshold interval indicates the value of traffic quota assigned to the user when the time interval between two adjacent CCR messages of a user is within the preset threshold interval. A time threshold interval corresponds to a value of the first target GSU.
在步骤140中,通过步骤110统计出的网络速率有多个,速率阈值区间表示网络速率属于速率阈值区间的比例达到速率预设比例,即多个网络速率间隔中,有速率预设比例的网络速率落入速率阈值区间内,速率阈值区间可以包括多个区间。In step 140, there are multiple network rates calculated by step 110, and the rate threshold interval indicates that the proportion of the network rate belonging to the rate threshold interval reaches the rate preset ratio, that is, among multiple network rate intervals, the network with the rate preset ratio The rate falls within the rate threshold interval, and the rate threshold interval may include multiple intervals.
在步骤150中,从预先获取的CCR消息中得出在线计费系统为属于速率阈值区间的网络速率对应用户分配的GSU的值,即第二GSU的值,然后根据这些GSU的值计算出速率阈值区间对应的第二目标GSU的值。速率阈值区间对应的第二目标GSU的值表示某用户的网络速率处于预设阈值区间内时向该用户分配流量配额的值,速率阈值区间包括多个时,每个速率阈值区间会对应一个第二目标GSU的值。In step 150, the value of the GSU assigned by the online charging system to 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 pre-acquired CCR message, and then the rate is calculated according to these GSU values The value of the second target GSU corresponding to the threshold interval. The value of the second target GSU corresponding to the rate threshold range indicates the value of the traffic quota allocated to the user when the network rate of the user is within the preset threshold range. When there are multiple rate threshold ranges, each rate threshold range corresponds to a first 2 The value of the target GSU.
在步骤160中,通过计算出第一目标GSU的值和第二目标GSU的值后,将计算的第一目标GSU的值和第二目标GSU的值与现行的GSU的值比较,判断两者是否一致,如果不一致,则将现行的GSU的值调整为第一目标GSU的值和第二目标GSU的值。In step 160, after calculating the value of the first target GSU and the value of the second target GSU, compare the calculated value of the first target GSU and the value of the second target GSU with the value of the current GSU, and determine whether the two Whether they are consistent, if not, adjust the current GSU value to the value of the first target GSU and the value of the second target GSU.
本发明实施例中通过速率和时间间隔两种参数,进行二维的计算流量配额分配的阈值区间,并针对阈值区间计算与阈值区间对应的GSU的值,实现对流量配额取值的调整,如此避免了现有技术中考虑参数单一,很容易使调整的配额值不适合用户的问题,并且能够适时调整的配额取值,避免由于为用户分配的配额不合适,而导致用户多次请求的情况,缩减消息的交互次数,节省资源。In the embodiment of the present invention, the two-dimensional calculation of the threshold interval of traffic quota allocation is carried out through the two parameters of rate and time interval, and the value of the GSU corresponding to the threshold interval is calculated for the threshold interval to realize the adjustment of the value of the traffic quota. It avoids the problem that the adjusted quota value is not suitable for the user due to single parameter consideration in the prior art, and can adjust the quota value in a timely manner to avoid the situation that the user requests multiple times due to the inappropriate quota allocated to the user , reducing the number of message interactions and saving resources.
可以理解的是,在图1所示实施例的基础上,该方法还包括:170,当接收到目标用户发送的流量请求消息时,确定距离接收流量请求消息最近的两次向目标用户下发CCR消息之间的目标时间间隔,以及距离接收流量请求消息最近的一次向目标用户下发CCR时为目标用户分配的第三GSU的值;180,基于目标时间间隔和第三GSU的值计算用户的目标网络速率;190,基于目标时间间隔、目标网络速率、时间阈值区间和速率阈值区间确定为用户分配的GSU的值。It can be understood that, on the basis of the embodiment shown in FIG. 1 , the method further includes: 170, when receiving the traffic request message sent by the target user, determine the two times closest to receiving the traffic request message to the target user The target time interval between CCR messages, and the value of the third GSU assigned to the target user when the CCR is issued to the target user the closest to receiving the traffic request message; 180, calculate the user based on the target time interval and the value of the third GSU The target network rate; 190, determine the value of the GSU allocated to the user based on the target time interval, the target network rate, the time threshold interval and the rate threshold interval.
需要说明的是,在线计费系统中,融合计费装置会根据业务分片定义和RSU请求使用量,进行正向批价处理,计算分配给用户的GSU。VQT(Volume-Quota-Threshold,流量配额阈值)和VT(Validity-Time,配额有效时间)取决于网络通信的效率基本保持不变,在用户余额充足时融合计费装置通过步骤170-步骤190计算GSU的值,实现GSU的动态调整。It should be noted that, in the online billing system, the converged billing device will perform forward pricing processing and calculate the GSU allocated to the user according to the service segment definition and the requested usage of RSU. VQT (Volume-Quota-Threshold, traffic quota threshold) and VT (Validity-Time, quota effective time) depend on the efficiency of network communication and remain basically unchanged. When the user balance is sufficient, the fusion billing device calculates through steps 170-190 The value of GSU realizes the dynamic adjustment of GSU.
其中,目标用户发送的流量请求消息可以为Initial CCR请求。当接收到目标用户发送的流量请求消息时,首先确定在本次流量请求消息之前、距离本次流量请求消息的时间最近的两次向目标用户下发的CCR消息,进而确定出这两次向目标用户下发的CCR消息的目标时间间隔,以及距离本次流量请求消息最近的一次向目标用户下发CCR消息时,为目标用户分配的GSU的值(第三GSU的值)。在步骤180中,将第三GSU的值除以目标时间间隔即可计算出用户的目标网络速率。然后基于目标时间间隔、目标网络速率、时间阈值区间和速率阈值区间为用户分配当前GSU的值。Wherein, the traffic request message sent by the target user may be an Initial CCR request. When receiving the flow request message sent by the target user, first determine the two CCR messages sent to the target user before the current flow request message and the time closest to the current flow request message, and then determine the two CCR messages sent to the target user The target time interval of the CCR message sent by the target user, and the value of the GSU allocated to the target user (the value of the third GSU) when the CCR message is sent to the target user closest to the current traffic request message. In step 180, the target network rate of the user can be calculated by dividing the value of the third GSU by the target time interval. Then assign the current GSU value to the user based on the target time interval, target network rate, time threshold interval, and rate threshold interval.
需要说明的是,本发明实施例中还可以设定网络速率的优先级高于间隔时间,即如果T满足时间阈值区间的同时R也满足速率阈值区间,那么以R所满足的速率阈值区间对应的第二目标GSU的值确定为用户分配当前GSU的值。It should be noted that in the embodiment of the present invention, the priority of the network rate can also be set higher than the interval time, that is, if T satisfies the time threshold interval and R also satisfies the rate threshold interval, then the rate threshold interval satisfied by R corresponds to The value of the second target GSU determines the value of the current GSU assigned to the user.
可以理解的是,本发明实施例中步骤180还可以具体执行为:确定目标网络速率属于的速率阈值区间;确定第二目标GSU的值中目标网络速率属于的速率阈值区间对应的第四GSU的值;确定目标时间间隔属于的时间阈值区间;确定第一目标GSU的值中目标时间间隔属于的时间阈值区间对应的第五GSU的值;将第四GSU的值和第五GSU的值中较大的值确定为目标用户分配的GSU的值。It can be understood that step 180 in the embodiment of the present invention can also be specifically executed as: determining the rate threshold interval to which the target network rate belongs; determining the value of the fourth GSU corresponding to the rate threshold interval to which the target network rate belongs in the second target GSU value; determine the time threshold interval to which the target time interval belongs; determine the value of the fifth GSU corresponding to the time threshold interval to which the target time interval belongs in the value of the first target GSU; compare the value of the fourth GSU with the value of the fifth GSU Larger values determine the value of the GSU assigned to the target user.
具体的,假设时间阈值区间包括(0,T1)、[T1,T2]、(T2,+∞),依次对应时间阈值区间的第一目标GSU的值为G1、G2、G3,速率阈值区间包括(0,R1)、[R1,R2]、(R2,+∞),依次对应时间阈值区间的第二目标GSU的值为G1’、G2’、G3’,则在计算出目标用户的目标时间间隔T、目标网络速率R后,判断当前时间间隔T和当前网络速率R属于哪个区间。当R<R1时,第五GSU的值为G1’;当R>=R1且R<=R2时,第五GSU的值为G2’;当R>R2时,第五GSU的值为G3’。当T<T1时,第四GSU的值为G1;当T>=T1且T<=T2时,第四GSU的值为G2;当T>T2时,第四GSU的值为G3。在分别确定出第四GSU的值和第五GSU的值后,比较这两者的大小,然后将两者之中较大的值确定为目标用户分配的GSU的值。Specifically, assuming that the time threshold interval includes (0, T1), [T1, T2], (T2, +∞), the values of the first target GSU corresponding to the time threshold interval are G1, G2, G3, and the rate threshold interval includes (0, R1), [R1, R2], (R2, +∞), and the values of the second target GSU corresponding to the time threshold interval are G1', G2', G3' in sequence, then when the target user's target time is calculated After the interval T and the target network rate R, determine which interval the current time interval T and the current network rate R belong to. 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 value of the fourth GSU is G3. After the value of the fourth GSU and the value of the fifth GSU are respectively determined, the sizes of the two are compared, and then the larger value of the two is determined as the value of the GSU allocated to the target user.
可以理解的是,在图1所示实施例中,步骤120可以具体执行为:121,计算时间间隔的多峰正态分布中每个峰值对应的时间间隔平均值和标准差;122,根据每个峰值对应的时间间隔平均值和标准差计算至少一个时间阈值区间。It can be understood that, in the embodiment shown in FIG. 1 , step 120 can be specifically executed as: 121, calculate the mean value and standard deviation of each peak corresponding to the time interval in the multi-peak normal distribution of the time interval; 122, according to each The time interval mean and standard deviation corresponding to peaks are calculated for at least one time threshold interval.
其中,步骤110中得出的时间间隔满足多峰正态分布,多峰正态分布的定义公式如公式(1)所示,则可以从时间间隔的多峰正态分布确定出多个峰值,每个峰值具有对应的时间间隔平均值和方差,则可以计算出每个峰值对应的时间间隔平均值和标准差。在计算出每个峰值对应的时间间隔平均值和标准差后,可以计算时间阈值区间的端点,进而得出时间阈值区间,通常情况峰值的个数即为时间阈值区间的个数。Wherein, the time interval obtained in step 110 satisfies the multi-peak normal distribution, and the definition formula of the multi-peak normal distribution is as shown in formula (1), then can determine a plurality of peaks from the multi-peak normal distribution of the time interval, Each peak has a corresponding time interval mean and variance, and the time interval mean and standard deviation corresponding to each peak can be calculated. After calculating the average value and standard deviation of the time interval corresponding to each peak, the endpoint of the time threshold interval can be calculated, and then the time threshold interval can be obtained. Usually, the number of peaks is the number of the time threshold interval.
在公式(1)中,i表示峰值的个数,求和是针对i的,这里每个i对应一个独立的平均值μi、标准差σi,以及它的概率峰位置,而各个ki是一个系数,并且它们的合计值=1。时间间隔的占比f(x)服从多峰正态分布,其中μ代表时间间隔,描述位置参数;σ代表时间间隔的标准差,描述离散程度。P代表时间间隔出现的比例,则根据公式(2)可以计算出时间阈值区间的端点Ti,其中P(X≤Ti)的值为预先设置。In formula (1), i represents the number of peaks, and 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 total value = 1. The proportion f(x) of the time interval follows a multimodal normal distribution, where μ represents the time interval and describes the location parameter; σ represents the standard deviation of the time interval and describes the degree of dispersion. P represents the proportion of time intervals, and the endpoint T i of the time threshold interval can be calculated according to the formula (2), where the value of P (X≤T i ) is preset.
需要说明的是,通过公式(2)得出多对Ti-1和Ti,则选取Ti-1最小的一组作为计算的结果。It should be noted that, if multiple pairs of T i-1 and T i are obtained through the formula (2), the group with the smallest T i-1 is selected as the calculation result.
例如,针对某次统计的时间间隔计算出来每个峰值的时间间隔平均值和标准差为:μ1=3.2578,σ1=98.73;μ2=8.0001,σ2=119.99;μ3=12.9056,σ3=167.65,预设P=94.8%,即时间间隔中多峰正态分布的三个峰值分别为3.2578秒、8.0001秒、12.9056秒,三个峰值的标准差分别为98.73、119.99、167.65,需要计算出占整个样本概率为94.8%的时间阈值区间的端点。根据上述数据可以计算得出T1=6,T2=9,即时间阈值区间包括三个区间0~6,6~9,9~+∞,每个区间的占比都能够达到相对最大值。For example, the time interval mean and standard deviation of each peak calculated for a statistical time interval are: μ 1 =3.2578, σ 1 =98.73; μ 2 =8.0001, σ 2 =119.99; μ 3 =12.9056, σ 3 = 167.65, preset P = 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, respectively, and the standard deviations of the three peaks are 98.73, 119.99, and 167.65, respectively. Calculate the endpoints of the time threshold intervals that account for 94.8% of the probability of the entire sample. According to the above data, it can be calculated that T1=6, T2=9, that is, the time threshold interval includes three intervals 0~6, 6~9, 9~+∞, and the proportion of each interval can reach a relative maximum.
可以理解的是,在图1所示实施例中,步骤150可以具体执行为:141,计算网络速率的多峰正态分布中每个峰值对应的网络速率平均值和标准差;142,根据每个峰值对应的网络速率平均值和标准差计算至少一个速率阈值区间。It can be understood that, in the embodiment shown in FIG. 1, step 150 can be specifically executed as: 141, calculating the network rate average and standard deviation corresponding to each peak in the multi-peak normal distribution of the network rate; 142, according to each Calculate at least one rate threshold interval based on the network rate average and standard deviation corresponding to each peak value.
其中,步骤110中得出的网络速率满足多峰正态分布,多峰正态分布的定义公式如公式(1)所示,则可以从网络速率的多峰正态分布确定出多个峰值,每个峰值具有对应的速率平均值和方差,则可以计算出每个峰值对应的速率平均值和标准差。在计算出每个峰值对应的速率平均值和标准差后,可以计算速率阈值区间的端点,进而得出速率阈值区间,通常情况峰值的个数即为速率阈值区间的个数。根据公式(2)可以计算出速率阈值区间的端点。Wherein, the network rate obtained in step 110 satisfies the multimodal normal distribution, and the definition formula of the multimodal normal distribution is shown in formula (1), then multiple peaks can be determined from the multimodal normal distribution of the network rate, Each peak has a corresponding average rate and variance, and the average rate and standard deviation corresponding to each peak can be calculated. After calculating the average rate and standard deviation corresponding to each peak, you can calculate the endpoint of the rate threshold interval, and then obtain the rate threshold interval. Usually, the number of peaks is the number of rate threshold intervals. The endpoint of the rate threshold interval can be calculated according to formula (2).
需要说明的是,步骤141和步骤142的数据处理原理与步骤121和步骤122的数据处理原理相同,在此不再赘述。It should be noted that the data processing principle of step 141 and step 142 is the same as the data processing principle of step 121 and step 122, and will not be repeated here.
可以理解的是,在图1所示实施例中,步骤130可以具体执行为:131,统计预设时间段内的第一GSU的值;132,计算第一GSU的值的正态分布的第一GSU平均值和第一标准差;133,根据第一GSU平均值和第一标准差计算第一目标GSU的值。It can be understood that, in the embodiment shown in FIG. 1 , step 130 can be specifically executed as: 131, counting the value of the first GSU within a preset time period; 132, calculating the first GSU value of the normal distribution of the first GSU A GSU average value and the first standard deviation; 133, calculate the value of the first target GSU according to the first GSU average value and the first standard deviation.
其中,本实施例中,对于每个时间阈值区间,首先统计CCR消息中时间间隔属于时间阈值区间时分配的第一GSU的值,第一GSU的值满足正态分布,则首先计算出其正态分布的第一GSU平均值和第一标准差,然后基于公式(3)计算此时间阈值区间对应的第一目标GSU的值Gi。Wherein, in this embodiment, for each time threshold interval, first, the value of the first GSU assigned when the time interval in the CCR message belongs to the time threshold interval is counted, and the value of the first GSU satisfies a normal distribution, then firstly calculate its normal The first GSU average value and first standard deviation of the state distribution, and then calculate the value G i of the first target GSU corresponding to this time threshold interval based on formula (3).
在公式(3)中,μ代表第一目标GSU的值的平均值,描述位置参数;σ代表第一目标GSU的值的标准差,描述离散程度,P代表第一目标GSU的值的比例,为预先设置。In formula (3), μ represents the mean value of the value of the first target GSU, describing the location parameter; σ represents the standard deviation of the value of the first target GSU, describing the degree of dispersion, and P represents the ratio of the value of the first target GSU, is preset.
例如,对于时间阈值区间(0~6s),计算出:μ=12.564,σ=158.99,预设P=0.97,即第一目标GSU的值的平均值为12.564秒,第一目标GSU的值的标准差为158.99,需要计算出占整体第一目标GSU的值概率为97%的值,计算得出Gi=20。即时间阈值区间(0~6s)对应的第一目标GSU的值为20M。For example, for the time threshold interval (0-6s), it is calculated: μ=12.564, σ=158.99, preset P=0.97, that is, the average value of the value of the first target GSU is 12.564 seconds, and the value of the first target GSU The standard deviation is 158.99, and it is necessary to calculate a value that accounts for 97% of the value of the overall first target GSU, and G i =20 is calculated. That is, the value of the first target GSU corresponding to the time threshold interval (0-6s) is 20M.
可以理解的是,在图1所示实施例中,步骤150可以具体执行为:151,统计CCR消息中网络速率属于速率阈值区间时分配的第二GSU的值;152,计算第二GSU的值的正态分布的第二GSU平均值和第二标准差;153,根据第二GSU平均值和第二标准差计算第一目标GSU的值。It can be understood that, in the embodiment shown in FIG. 1, step 150 can be specifically executed as: 151, counting the value of the second GSU allocated when the network rate in the CCR message belongs to the rate threshold interval; 152, calculating the value of the second GSU The second GSU average value and the second standard deviation of the normal distribution; 153, calculate the value of the first target GSU according to the second GSU average value and the second standard deviation.
其中,本实施例中,对于每个速率阈值区间,首先统计CCR消息中网络速率属于速率阈值区间时分配的第二GSU的值,第二GSU的值满足正态分布,则首先计算出其正态分布的第二GSU平均值和第二标准差,然后基于公式(3)计算此时间阈值区间对应的第二目标GSU的值Gi’。Wherein, in this embodiment, for each rate threshold interval, the value of the second GSU allocated when the network rate in the CCR message belongs to the rate threshold interval is firstly counted, and the value of the second GSU satisfies a normal distribution, then the normal distribution is first calculated. The second GSU average value and the second standard deviation of the state distribution, and then calculate the value G i ' of the second target GSU corresponding to this time threshold interval based on formula (3).
需要说明的是,步骤131和步骤133的数据处理原理与步骤151和步骤153的数据处理原理相同,在此不再赘述。It should be noted that the data processing principle of step 131 and step 133 is the same as the data processing principle of step 151 and step 153, and will not be repeated here.
图3示出了根据本发明一实施例的流量配额的调整装置200的示意性框图。如图3所示,该装置200包括:Fig. 3 shows a schematic block diagram of an apparatus 200 for adjusting a traffic quota according to an embodiment of the present invention. As shown in Figure 3, the device 200 includes:
统计单元201,用于统计预设时间段内在线计费系统向同一用户发送的CCR消息中两个相邻的所述CCR消息的时间间隔和两个相邻所述CCR消息之间的时间段内的网络速率;A statistical unit 201, configured to count the time interval between two adjacent CCR messages and the time period between two adjacent CCR messages among the CCR messages sent by the online charging system to the same user within a preset time period The network speed within;
计算单元202,用于基于所述时间间隔计算时间间隔的至少一个时间阈值区间;a calculation unit 202, configured to calculate at least one time threshold interval of the time interval based on the time interval;
所述计算单元202还用于基于所述在线计费系统为所述时间间隔属于所述时间阈值区间的两个CCR消息对应用户分配的第一已使用配额授权量GSU的值,计算每个所述时间阈值区间对应的第一目标GSU的值;The calculation unit 202 is further configured to calculate the value of the first used quota authorization amount GSU allocated by the online charging system to the corresponding users of the two CCR messages whose time interval belongs to the time threshold interval, and calculate each The value of the first target GSU corresponding to the time threshold interval;
所述计算单元202还用于基于所述网络速率计算所述网络速率的至少一个速率阈值区间;The calculation unit 202 is further configured to calculate at least one rate threshold interval of the network rate based on the network rate;
所述计算单元202还用于基于所述在线计费系统为所述网络速率属于所述速率阈值区间的两个CCR消息对应用户分配的第二GSU的值,计算每个所述速率阈值区间对应的第二目标GSU的值;The calculation unit 202 is further configured to calculate the value of the second GSU corresponding to each of the rate threshold intervals based on the value of the second GSU allocated by the online charging system to the users corresponding to the two CCR messages whose network rates belong to the rate threshold interval. The value of the second target GSU;
调整单元203,用于基于所述第一目标GSU的值和所述第二目标GSU的值调整所述在线计费系统为用户分配的流量配额。An adjusting unit 203, configured to adjust the traffic quota allocated 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.
本发明实施例中通过速率和时间间隔两种参数,进行二维的计算流量配额分配的阈值区间,并针对阈值区间计算与阈值区间对应的GSU的值,实现对流量配额取值的调整,如此避免了现有技术中考虑参数单一,很容易使调整的配额值不适合用户的问题,并且能够适时调整的配额取值,避免由于为用户分配的配额不合适,而导致用户多次请求的情况,缩减消息的交互次数,节省资源。In the embodiment of the present invention, the two-dimensional calculation of the threshold interval of traffic quota allocation is carried out through the two parameters of rate and time interval, and the value of the GSU corresponding to the threshold interval is calculated for the threshold interval to realize the adjustment of the value of the traffic quota. It avoids the problem that the adjusted quota value is not suitable for the user due to single parameter consideration in the prior art, and can adjust the quota value in a timely manner to avoid the situation that the user requests multiple times due to the inappropriate quota allocated to the user , reducing the number of message interactions and saving resources.
图4示出了根据本发明又一实施例的流量配额的调整装置200的示意性框图。Fig. 4 shows a schematic block diagram of an apparatus 200 for adjusting a traffic quota according to yet another embodiment of the present invention.
可以理解的是,如图4所示,该装置200还可以包括:It can be understood that, as shown in FIG. 4, the device 200 may also include:
确定单元204,用于当接收到目标用户发送的流量请求消息时,确定距离接收所述流量请求消息最近的两次向所述目标用户下发CCR消息之间的目标时间间隔,以及距离接收所述流量请求消息最近的一次向所述目标用户下发CCR时为所述目标用户分配的第三GSU的值;The determining unit 204 is configured to, when receiving a flow request message sent by a target user, determine a target time interval between two times of sending a CCR message to the target user closest to receiving the flow request message, and a target time interval between two times of receiving the CCR message to the target user, and a distance from receiving the flow request message. The value of the third GSU allocated to the target user when the traffic request message issued the CCR to the target user last time;
所述计算单元202还用于基于所述目标时间间隔和所述第三GSU的值计算所述用户的目标网络速率;The calculation unit 202 is further configured to calculate the target network rate of the user based on the target time interval and the value of the third GSU;
所述确定单元204还用于基于所述目标时间间隔、所述目标网络速率、所述时间阈值区间和所述速率阈值区间确定为所述用户分配的GSU的值。The determining unit 204 is further configured to determine the value of the GSU allocated to the user based on the target time interval, the target network rate, the time threshold interval, and the rate threshold interval.
可以理解的是,所述确定单元204还用于:It can be understood that the determining unit 204 is also configured to:
确定所述目标网络速率属于的速率阈值区间;determining a rate threshold interval to which the target network rate belongs;
确定所述第二目标GSU的值中所述目标网络速率属于的速率阈值区间对应的第四GSU的值;determining the value of the fourth GSU corresponding to the rate threshold interval to which the target network rate belongs among the values of the second target GSU;
确定所述目标时间间隔属于的时间阈值区间;determining a time threshold interval to which the target time interval belongs;
确定所述第一目标GSU的值中所述目标时间间隔属于的时间阈值区间对应的第五GSU的值;determining the value of the fifth GSU corresponding to the time threshold interval to which the target time interval belongs among the values of the first target GSU;
将所述第四GSU的值和所述第五GSU的值中较大的值确定为所述目标用户分配的GSU的值。Determine the larger value 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.
可以理解的是,所述计算单元202还用于:It can be understood that the calculation unit 202 is also used for:
计算所述时间间隔的多峰正态分布中每个峰值对应的时间间隔平均值和标准差;Compute the time interval mean and standard deviation corresponding to each peak in the multimodal normal distribution for said time interval;
根据所述每个峰值对应的时间间隔平均值和标准差计算所述时间阈值区间。The time threshold interval is calculated according to the time interval mean value and standard deviation corresponding to each peak value.
可以理解的是,所述计算单元202还用于:It can be understood that the calculation unit 202 is also used for:
计算所述网络速率的多峰正态分布中每个峰值对应的网络速率平均值和标准差;calculating the mean and standard deviation of the network rate corresponding to each peak in the multi-peak normal distribution of the network rate;
根据所述每个峰值对应的网络速率平均值和标准差计算所述速率阈值区间。The rate threshold interval is calculated according to the network rate average value and standard deviation corresponding to each peak value.
可以理解的是,所述计算单元202还用于:It can be understood that the calculation unit 202 is also used for:
统计所述CCR消息中所述时间间隔属于所述时间阈值区间时分配的第一已使用配额授权量GSU的值;Counting the value of the first used quota authorization amount GSU allocated when the time interval in the CCR message belongs to the time threshold interval;
计算所述第一GSU的值的多峰正态分布中每个峰值对应的第一GSU平均值和第一标准差;calculating the first GSU mean and the first standard deviation corresponding to each peak in the multimodal normal distribution of the value of the first GSU;
根据所述第一GSU平均值和所述第一标准差计算所述第一目标GSU的值。calculating the first target GSU value according to the first GSU average value and the first standard deviation.
可以理解的是,所述计算单元202还用于:It can be understood that the calculation unit 202 is also used for:
统计所述CCR消息中所述网络速率属于所述速率阈值区间时分配的第二GSU的值;Counting the value of the second GSU allocated when the network rate in the CCR message belongs to the rate threshold interval;
计算所述第二GSU的值的多峰正态分布中每个峰值对应的第二GSU平均值和第二标准差;calculating the second GSU mean and the second standard deviation corresponding to each peak in the multimodal normal distribution of the value of the second GSU;
根据所述第二GSU平均值和所述第二标准差计算所述第一目标GSU的值。calculating the first target GSU value based on the second GSU average value and the second standard deviation.
根据本发明实施例的流量配的调整装置200可对应于根据本发明实施例的流量配的调整方法中的执行主体,并且流量配的调整装置200中的各个模块的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。The flow meter adjustment device 200 according to the embodiment of the present invention may correspond to the execution subject in the flow meter adjustment method according to the embodiment of the present invention, and the above-mentioned and other operations and/or other operations of each module in the flow meter adjustment device 200 The functions are respectively to realize the corresponding flow of each method in FIG. 1 , and for the sake of brevity, details are not repeated here.
图5是根据本发明一实施例的流量配额的调整服务器300的示意性框图。如图5所示,服务器300包括处理器301、存储器302和通信接口303,存储器302用于存储可执行的程序代码,处理器301通过读取存储器302中存储的可执行程序代码来运行与可执行程序代码对应的程序,通信接口303用于与外部设备通信,例如与终端、网站等进行通信,服务器300还可以包括总线304,总线304用于连接处理器301、存储器302和通信接口303,使处理器301、存储器302和通信接口303通过总线304进行相互通信。FIG. 5 is a schematic block diagram of a traffic quota adjustment 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 to store executable program codes, and the processor 301 executes and executes by reading the executable program codes stored in the memory 302 Execute the program corresponding to the program code, the communication interface 303 is used to communicate with external devices, such as communicating with terminals, websites, etc., the server 300 can also include a bus 304, and the bus 304 is used to connect the processor 301, the memory 302 and the communication interface 303, The processor 301 , the memory 302 and the communication interface 303 communicate with each other through the bus 304 .
具体地,处理器301还用于执行一种流量配额的调整方法;其中,流量配额的调整方法包括:Specifically, the processor 301 is also configured to execute a traffic quota adjustment method; wherein, the traffic quota adjustment method includes:
统计预设时间段内在线计费系统向同一用户发送的CCR消息中两个相邻的所述CCR消息的时间间隔和两个相邻所述CCR消息之间的时间段内的网络速率;Counting the time interval between two adjacent CCR messages and the network rate in the time period between two adjacent CCR messages among the CCR messages sent by the online charging system to the same user within the preset time period;
基于所述时间间隔计算时间间隔的至少一个时间阈值区间;calculating at least one time threshold interval for a time interval based on the time interval;
基于所述在线计费系统为所述时间间隔属于所述时间阈值区间的两个CCR消息对应用户分配的第一已使用配额授权量GSU的值,计算每个所述时间阈值区间对应的第一目标GSU的值;Based on the value of the first used quota authorization amount GSU allocated by the online charging system to the two CCR messages whose time interval belongs to the time threshold interval, the first used quota authorization amount GSU is calculated for each of the time threshold intervals. the value of the target GSU;
基于所述网络速率计算所述网络速率的至少一个速率阈值区间;calculating at least one rate threshold interval for the network rate based on the network rate;
基于所述在线计费系统为所述网络速率属于所述速率阈值区间的两个CCR消息对应用户分配的第二GSU的值,计算每个所述速率阈值区间对应的第二目标GSU的值;Calculate the value of the second target GSU corresponding to each of the rate threshold intervals based on the value of the second GSU allocated by the online charging system to the users corresponding to the two CCR messages whose network rates belong to the rate threshold interval;
基于所述第一目标GSU的值和所述第二目标GSU的值调整所述在线计费系统为用户分配的流量配额。Adjusting the traffic quota allocated 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.
根据本发明实施例的流量配的调整服务器300可对应于根据本发明实施例的流量配的调整方法中的执行主体,并且流量配的调整服务器300中的各个模块的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。The traffic configuration adjustment server 300 according to the embodiment of the present invention may correspond to the execution subject in the traffic configuration adjustment method according to the embodiment of the present invention, and the above-mentioned and other operations and/or other operations of each module in the traffic configuration adjustment server 300 The functions are respectively to realize the corresponding flow of each method in FIG. 1 , and for the sake of brevity, details are not repeated here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (15)
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 true CN108270697A (en) | 2018-07-10 |
CN108270697B 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) |
Cited By (3)
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 |
CN120264337A (en) * | 2025-02-20 | 2025-07-04 | 北京道隆合创投资合伙企业(有限合伙) | A telecommunication business risk control system and method based on machine learning |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0669734A2 (en) * | 1994-01-31 | 1995-08-30 | International Business Machines Corporation | Method and apparatus for managing communications between multi-node quota-based communication systems |
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 prepaid billing |
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 | 华为技术有限公司 | Billing control method, billing trigger device, and online billing system |
CN103929316A (en) * | 2013-01-11 | 2014-07-16 | 阿尔卡特朗讯 | Communication quota distribution method and corresponding on-line billing system |
CN103974221A (en) * | 2013-01-25 | 2014-08-06 | 中国移动通信集团广东有限公司 | Method and device for distributing packet domain real-time charging flow quotas |
CN104053141A (en) * | 2010-03-31 | 2014-09-17 | 华为技术有限公司 | Method and device for controlling data flow of user services |
US20140378094A1 (en) * | 2013-06-21 | 2014-12-25 | Openet Telecom Ltd. | System and Method for Dynamically Allocating Quota for Shared Balances in Distributed Telecommunications Networks |
US20180167517A1 (en) * | 2013-06-21 | 2018-06-14 | Openet Telecom Ltd. | System and method for dynamically allocating quota for shared balances in distributed telecommunications networks |
-
2016
- 2016-12-31 CN CN201611267876.8A patent/CN108270697B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0669734A2 (en) * | 1994-01-31 | 1995-08-30 | International Business Machines Corporation | Method and apparatus for managing communications between multi-node quota-based communication systems |
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 flow of user services |
CN102131174A (en) * | 2010-11-16 | 2011-07-20 | 华为技术有限公司 | Method, device and system for prepaid billing |
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 | 华为技术有限公司 | Billing control method, billing trigger device, and online billing system |
CN103929316A (en) * | 2013-01-11 | 2014-07-16 | 阿尔卡特朗讯 | Communication quota distribution method and corresponding on-line billing system |
CN103974221A (en) * | 2013-01-25 | 2014-08-06 | 中国移动通信集团广东有限公司 | Method and device for distributing packet domain real-time charging flow quotas |
US20140378094A1 (en) * | 2013-06-21 | 2014-12-25 | Openet Telecom Ltd. | System and Method for Dynamically Allocating Quota for Shared Balances in Distributed Telecommunications Networks |
US20180167517A1 (en) * | 2013-06-21 | 2018-06-14 | Openet Telecom Ltd. | System and method for dynamically allocating quota for shared balances in distributed telecommunications networks |
CN103415006A (en) * | 2013-07-26 | 2013-11-27 | 中国联合网络通信集团有限公司 | Flow accounting service credit control method and device |
Non-Patent Citations (2)
Title |
---|
池炜成: "基于用户配额的LTE用量控制技术研究", 《移动通信》 * |
赵波,张华,王丽娟等: "4G实时计费关键技术研究", 《2014年度全国无线及移动通信学术大会》 * |
Cited By (3)
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 |
CN120264337A (en) * | 2025-02-20 | 2025-07-04 | 北京道隆合创投资合伙企业(有限合伙) | A telecommunication business risk control system and method based on machine learning |
Also Published As
Publication number | Publication date |
---|---|
CN108270697B (en) | 2021-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1217510C (en) | Communications network | |
CN106412628B (en) | Bandwidth adjusting method and related equipment | |
CN101300593B (en) | Method and apparatus for resource tracking and charging at end nodes | |
CN101061701B (en) | Methods and apparatus for tracking and charging for communications resource reallocation | |
CN101702669B (en) | Bandwidth allocation method and system | |
CN104270734B (en) | A method and device for online charging of cross-PLMN roaming data services | |
CN103974221B (en) | The distribution method and device of packet domain real time billing flow quota | |
CN105992282B (en) | A method and device for adjusting service quality parameters | |
US20050021819A1 (en) | Method, network element, and terminal device for making data packets | |
US11671803B2 (en) | Functions and method for handling a credit pool of service units | |
JP2011055526A (en) | Methods and apparatus for resource use tracking, accounting and billing | |
US9825768B2 (en) | Real-time charging system and method for managing QoS and charging rule of service | |
US10182161B2 (en) | Modifying a quality of a connection between a terminal and an application server | |
US20130326061A1 (en) | Method and apparatus of determining policy and charging rules based on network resource utilization information | |
CN103945356A (en) | A method, charging device and system for policy decision-making | |
CN109510775A (en) | Orient dispatching method, authentication device, the network equipment and the storage medium of flow | |
CN110740430A (en) | Resource charging method and system, AF, and policy and charging functional entity | |
CN108270697A (en) | A kind of method of adjustment, device and the server of flow quota | |
US20150004928A1 (en) | Group data plan quota allocation for mobile devices | |
WO2016107280A1 (en) | Data service charging method and system, and relevant device | |
JP2016127359A (en) | Communication control device | |
CN1795663B (en) | Method and system for controlling prepaid data services | |
Ma et al. | Congestion and its role in network equilibrium | |
JP6513205B2 (en) | Volume-Based Online Charging in Hybrid Networks | |
WO2017161522A1 (en) | Method, apparatus and system for collecting statistics of amount of flow usage |
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 |