技术领域technical field
本发明涉及移动通信领域,尤指一种用于多种业务融合计费的移动数据业务计费方法及装置。The invention relates to the field of mobile communication, in particular to a mobile data service charging method and device for multiple service integration charging.
背景技术Background technique
随着移动通信技术的发展,移动通信网络上承载的移动数据业务种类越来越多,发展规模越来越大。用户使用这些业务时,需要按照使用流量或使用时间等向移动运营商缴纳费用,对于移动数据业务比较常用的是按照流量收费的计费模式。但是,用户在使用移动数据业务时一般很难感性认知该业务所产生的业务数据流量的大小。如浏览一张图片、看一则新闻、看一段视频,将会产生多少流量不清楚,用户一般无法获知。因此,当用户的包流量套餐超出允许使用的流量后,用户也不能及时获知,甚至会对产生的使用流量不认可。With the development of mobile communication technology, there are more and more types of mobile data services carried on the mobile communication network, and the scale of development is getting larger and larger. When users use these services, they need to pay fees to the mobile operator according to the usage traffic or usage time. For mobile data services, the billing mode of charging according to the traffic is more commonly used. However, it is generally difficult for a user to perceptually recognize the size of the service data traffic generated by the service when using the mobile data service. For example, browsing a picture, watching a piece of news, or watching a piece of video, it is not clear how much traffic will be generated, and users generally cannot know it. Therefore, when the user's package data package exceeds the allowed traffic, the user cannot be notified in time, and even the generated usage traffic will not be recognized.
目前,对移动数据业务进行计费的方式,通常是单纯的包月和基于使用流量的计费模式。由于用户对流量的认知度比较低,对时长的认知度更高一些,而目前的上述计费方式无法满足用户对业务计费情况的及时获知的需求。At present, the billing method for mobile data services is usually a simple monthly subscription and a billing mode based on usage traffic. Since the user has a relatively low awareness of traffic and a higher awareness of duration, the current billing method cannot meet the user's demand for timely information on service billing.
例如:申请号为CN200710107098.0,名称为《一种实现预付费计费模式类型切换的方法》的中国专利申请文件,实现预付费客户端在基于时长与流量的不同的计费模式之间的切换。例如:100元包10G的流量,用户使用的流量超出10G后,则按2元/小时计费。For example: the application number is CN200710107098.0, and the Chinese patent application document titled "A Method for Realizing Switching of Prepaid Charging Mode Types" realizes the prepaid client between different charging modes based on duration and traffic. switch. For example: 100 yuan includes 10G traffic, and if the traffic used by the user exceeds 10G, it will be charged at 2 yuan/hour.
申请号为CN200810072463.3,名称为《数据业务平台融合计费方法》的中国专利申请。对复杂业务流程进行优惠批价处理,以实现复杂的资费和优惠计划,支撑多个业务能力之间的组合优惠策略。例如:使用业务A优惠业务B。The application number is CN200810072463.3, and the Chinese patent application titled "Data Service Platform Fusion Billing Method". Perform preferential pricing processing for complex business processes to realize complex tariff and preferential plans, and support combined preferential strategies among multiple business capabilities. For example: Use service A to offer service B a discount.
可见,传统的计费方式均无法实现为用户提供基于不同数据业务的按时长和按流量的融合计费。对于使用多种数据业务的用户而言,不同业务的运营商也难以通过设置不同的计费模式和费率,来满足用户对业务计费及时了解和获知的需求。因此,对于使用不同业务的用户来说传统的计费方式不再适合,由于其不能针对不同的数据业务灵活的选择所需要的计费模式,灵活性和选择性差,因此传统的计费方法对用户而言存在不公平之处。It can be seen that none of the traditional billing methods can provide users with integrated billing based on duration and traffic based on different data services. For users who use multiple data services, it is also difficult for operators of different services to set different charging modes and rates to meet users' needs for timely understanding and learning of service charging. Therefore, the traditional billing method is no longer suitable for users who use different services. Because it cannot flexibly select the required billing mode for different data services, the flexibility and selectivity are poor. Injustice to users.
发明内容Contents of the invention
本发明实施例提供一种移动数据业务计费方法及装置,用以解决现有数据业务计费中存在的灵活性和选择性差的问题。The embodiments of the present invention provide a mobile data service charging method and device, which are used to solve the problems of poor flexibility and selectivity existing in existing data service charging.
一种移动数据业务计费方法,包括:A mobile data service charging method, comprising:
获取用户使用移动数据业务所产生的通信记录;Obtain communication records generated by users using mobile data services;
根据所述通信记录中包含的业务标识,将所述通信记录拆分为与每一种业务对应的若干子通信记录;Splitting the communication record into several sub-communication records corresponding to each type of service according to the service identifier contained in the communication record;
针对拆分出的每一个子通信记录,根据所述子通信记录中包含的用户信息和业务标识,查找预先设定的用户信息、业务标识和计费模式的对应关系,确定对所述子通信记录计费所采用的计费模式,对所述子通信记录进行计费。For each sub-communication record that is split, according to the user information and service identification contained in the sub-communication record, search for the correspondence between the preset user information, service identification and charging mode, and determine the corresponding relationship between the sub-communication The charging mode adopted for charging is recorded, and the sub-communication records are charged.
一种移动数据业务计费装置,包括:A charging device for mobile data services, comprising:
配置模块,用于预先建立用户信息、业务标识和计费模式的对应关系;The configuration module is used to pre-establish the corresponding relationship between user information, service identification and charging mode;
获取模块,用于获取用户使用移动数据业务所产生的通信记录;An acquisition module, configured to acquire communication records generated by users using mobile data services;
拆分模块,用于根据所述通信记录中包含的业务标识,将所述通信记录拆分为与每一种业务对应的若干子通信记录;A splitting module, configured to split the communication record into several sub-communication records corresponding to each business according to the service identifier contained in the communication record;
计费模块,用于针对拆分出的每一个子通信记录,根据所述子通信记录中包含的用户信息和业务标识,查找预先设定的用户信息、业务标识和计费模式的对应关系确定对所述子通信记录计费所采用的所述计费模式,对所述子通信记录进行计费。The billing module is configured to, for each sub-communication record split out, search for a preset correspondence between user information, service identifiers, and charging modes according to the user information and service identifier contained in the sub-communication record The charging mode adopted for charging the sub-communication record is used to charge the sub-communication record.
本发明实施例提供的移动数据业务计费方法及装置,通过将用户使用移动数据业务所产生的通信记录拆分为与每一种业务对应的若干子通信记录;针对拆分出的每一个子通信记录所涉及到的用户和业务,确定对所述子通信记录计费所采用的所述计费模式,实现对所述子通信记录的计费;所述计费模式为所述用户选择或为所述用户设定的所涉及到的业务的计费模式。上述方法允许运营商规定计费模式,也允许用户选择适合自己的计费模式,从而能够为用户提供更灵活、多样和可选择性计费策略,实现移动数据业务计费的更公平、合理、准确,同时达到合理利用网络资源的目的。The mobile data service charging method and device provided by the embodiments of the present invention split the communication records generated by the user using the mobile data service into several sub-communication records corresponding to each service; For the users and services involved in the communication record, determine the charging mode adopted for charging the sub-communication record, and realize the charging for the sub-communication record; the charging mode is selected by the user or The charging mode of the involved service set for the user. The above method allows the operator to specify the billing mode, and also allows the user to choose a billing mode that suits him, so that the user can be provided with more flexible, diverse and optional billing strategies, and the billing of mobile data services can be more fair, reasonable, and efficient. Accurate, while achieving the purpose of rational use of network resources.
附图说明Description of drawings
图1为本发明实施例中移动数据业务计费方法的流程图;FIG. 1 is a flowchart of a mobile data service charging method in an embodiment of the present invention;
图2为本发明实施例中移动数据业务计费装置的结构示意图。Fig. 2 is a schematic structural diagram of a mobile data service charging device in an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供的移动数据业务计费方法,对获取到的移动数据业务通信记录进行拆分,针对拆分出来的的子通信记录所涉及到的用户和业务,确定该用户的该业务的计费模式,实现对所拆分出来的子通信记录的分别计费。The mobile data service charging method provided by the embodiment of the present invention splits the obtained mobile data service communication records, and determines the user's service for the users and services involved in the split sub-communication records. The billing mode implements separate billing for the split sub-communication records.
首先,为移动数据业务所涉及到的每种业务预先配置至少一种计费模式。First, at least one charging mode is pre-configured for each service involved in the mobile data service.
例如:为每种业务分别配置按时长计费和按流量计费两种计费模式。其中,不同业务的按时长计费规则和按流量计费规则分别配置如下:对于普通无线接入协议(Wireless Access Protocol,WAP)浏览业务,按时长计费为5元/小时,按流量计费为1元/10M;收发彩信业务,无论按时长计费和按流量计费,费用均为0;手机视频业务,按时长计费为3元/小时,按流量计费为1元/10M。For example: two charging modes of billing by duration and billing by flow are configured for each service. Among them, the time-based billing rules and traffic-based billing rules for different services are configured as follows: For ordinary Wireless Access Protocol (WAP) browsing services, the time-based billing is 5 yuan/hour, and the traffic-based billing It is 1 yuan/10M; sending and receiving multimedia messages, regardless of the time-based billing or traffic-based billing, the fee is 0; mobile video services, the time-based billing is 3 yuan/hour, and the traffic-based billing is 1 yuan/10M.
运营商可以为用户规定某种业务的计费模式,用户可以根据自身的需求为所使用的每一种业务选择预先配置好的计费模式。则当用户使用移动数据业务后,根据用户选择好的计费模式对用户所使用的业务进行计费。这样就建立起了用户信息、业务标识和计费模式的对应关系。Operators can specify a charging mode for a certain service for users, and users can choose a pre-configured charging mode for each service they use according to their own needs. Then, after the user uses the mobile data service, the service used by the user is charged according to the charging mode selected by the user. In this way, the corresponding relationship between user information, service identifier and charging mode is established.
当用户使用数据业务后,对用户使用移动数据业务所产生的通信记录进行计费的流程如图1所示,执行步骤如下:After the user uses the data service, the flow of charging the communication records generated by the user using the mobile data service is shown in Figure 1, and the execution steps are as follows:
步骤S11:获取用户使用移动数据业务所产生的通信记录。Step S11: Obtain the communication records generated by the user using the mobile data service.
通信记录可以是网关GPRS支持节点(Gateway GPRS Support Node,GGSN)原始话单。一般可以从计费网关(Charging Gateway,CG)上采集经合并处理后最终生成的GGSN原始话单,原始话单可能是一次完整的分组数据协议(Packet Data Protocol,PDP)激活话单,也可能是对大流量和超时长的业务使用进行话单分割产生的部分话单。The communication record can be the original bill of the Gateway GPRS Support Node (GGSN). Generally, the original bill of GGSN generated after merging and processing can be collected from the charging gateway (CG). The original bill may be a complete packet data protocol (Packet Data Protocol, PDP) activation bill, or it may be It is a part of bills generated by splitting bills for large traffic and overtime service usage.
步骤S12:判断获取的通信记录是否为数据流量为零的通信记录。Step S12: judging whether the acquired communication record is a communication record with zero data flow.
该步骤是对获取的原始话单进行分拣处理的步骤,以便剔除掉上行和下行流量均为0的原始话单。判断出上行和下行流量均为0,确定该话单为数据流量为零的话单,即判断为是时,执行步骤S13;若确定话单的数据流量不为零,即判断为否时,执行步骤S14。This step is a step of sorting the obtained original bills, so as to eliminate the original bills whose uplink and downlink traffics are both 0. Judging that the uplink and downlink traffic are both 0, and determining that the bill is a bill with zero data traffic, that is, when it is judged to be yes, execute step S13; if it is determined that the data traffic of the bill is not zero, that is, when it is judged as no, execute Step S14.
该步骤为可选步骤,当不执行该步骤时,在执行步骤S11后,直接进入步骤S14。This step is an optional step, and if this step is not performed, directly enter step S14 after performing step S11.
步骤S13:删除数据流量为零的通信记录。Step S13: Delete the communication record with zero data flow.
该步骤是为了对于上行和下行流量均为0的通信记录,剔除掉不计费,避免对长时间激活却未使用移动数据业务的情况进行计费。This step is to eliminate the non-charging communication records with 0 uplink and downlink traffic, so as to avoid charging when the mobile data service is activated for a long time but not used.
尤其是针对按时长计费的计费模式,该步骤的处理进一步保证了对激活业务后未及时退出的用户的计费公平性。Especially for the billing mode of billing by duration, the processing of this step further ensures the fairness of billing for users who fail to log out in time after activating the service.
步骤S14:按照业务的不同,将获取到的通信记录拆分为若干子通信记录。Step S14: Split the obtained communication record into several sub-communication records according to different services.
根据获取到的原始通信记录中包含的业务标识,将原始通信记录拆分为与每一种业务对应的若干子通信记录。拆分出的子通信记录中包括:用户信息、业务标识、该业务本次的使用时长和该业务本次的上行流量与下行流量等信息。According to the business identifier contained in the obtained original communication record, the original communication record is split into several sub-communication records corresponding to each kind of business. The split sub-communication records include information such as user information, service identification, current usage time of the service, uplink traffic and downlink traffic of the service this time.
例如:根据GGSN网关所产生的话单中包含的业务标识,按照业务种类对原始话单进行分拆。拆分成针对不同业务的多条子话单。例如用户在一次PDP激活中使用了WAP浏览、收发彩信、手机视频等三项业务,那么就将原始话单拆分成三条子话单:第一条话单记录为WAP浏览业务,使用时长为20分钟,上行流量为24K,下行流量为1000K;第二条话单记录为收发彩信业务,使用时长为1分钟,上行流量为60K,下行流量为80K;第三条话单记录为手机视频业务,使用时长为1小时,上行流量为512K,下行流量为100M。For example: according to the service identification included in the bill generated by the GGSN gateway, the original bill is divided according to the business type. Split into multiple sub-CDRs for different services. For example, a user uses three services such as WAP browsing, MMS sending and receiving, and mobile video during a PDP activation, then the original bill is split into three sub-calls: the first bill is recorded as WAP browsing service, and the usage time is For 20 minutes, the uplink traffic is 24K, and the downlink traffic is 1000K; the second call record is sending and receiving MMS business, the usage time is 1 minute, the uplink traffic is 60K, and the downlink traffic is 80K; the third call record is mobile video service , the use time is 1 hour, the uplink traffic is 512K, and the downlink traffic is 100M.
步骤S15:依次获取拆分出的子通信记录。Step S15: Obtain the divided sub-communication records sequentially.
拆分出的若干子通信记录,从第一个子通信记录开始依次读取,以便依次对每一个子通信记录执行下面的计费过程,实现对每个子通信记录的计费。The divided sub-communication records are read sequentially from the first sub-communication record, so as to perform the following charging process on each sub-communication record in turn, and realize the charging of each sub-communication record.
步骤S16:确定获取的子通信记录所采用的计费模式以及获取该子通信记录所涉及到的业务的累计使用情况。Step S16: Determine the billing mode adopted by the obtained sub-communication record and the accumulative use of services involved in the sub-communication record.
其中,确定对子通信记录计费所采用的计费模式,是根据获取的子通信记录中包含的用户信息和业务标识,查找预先设定的用户信息、业务标识和计费模式的对应关系确定的。Wherein, the determination of the charging mode adopted for charging the sub-communication record is determined by searching for the corresponding relationship between the preset user information, service ID and charging mode according to the user information and service identifier contained in the obtained sub-communication record of.
具体根据子通信记录包含的用户标识,查找与该用户对应的各种业务的计费模式。根据获取到的子通信记录中涉及到业务,查找到该用户的各种业务的计费模式设置中包含的的该业务的计费模式,作为对子通信记录计费所采用的计费模式。计费模式可以包括按时长计费和按流量计费。Specifically, according to the user identifier included in the sub-communication record, the charging modes of various services corresponding to the user are searched. According to the business involved in the acquired sub-communication record, find out the charging mode of the service included in the charging mode settings of various services of the user, and use it as the charging mode adopted for charging the sub-communication record. The billing mode may include billing by duration and billing by traffic.
上述计费模式可以是用户选择系统预先配置的相关业务的计费模式,例如:用户根据自己的业务使用习惯,选择WAP浏览业务按时长计费或者按流量计费;或也可以是系统/运营商为用户设定的相关业务的计费模式,例如:运营商已经预先明确规定为按时长计费或规定为按流量计费的业务。比如:收发彩信业务,运营商规定为按流量计费,且全免费;手机视频业务,运营商规定为按时长计费等等。The above-mentioned billing mode can be the billing mode that the user chooses the related business pre-configured by the system, for example: the user chooses the WAP browsing service to be billed according to the length of time or according to the traffic according to his business usage habits; or it can also be the system/operation The charging mode of related services set by the operator for the user, for example, the operator has clearly stipulated in advance that it is a service that is charged by time or by traffic. For example: send and receive MMS services, the operator stipulates that the billing is based on traffic, and it is all free; mobile phone video services, the operator stipulates that billing is based on the length of time, and so on.
因此,不论是预先为用户设定的还是用户选择的计费模式,均与用户相关,所以此处只需针对子通信记录涉及到的用户和业务,确定子通信记录所采取的计费模式就可以了。Therefore, whether it is the charging mode set in advance for the user or the charging mode selected by the user, it is related to the user, so here it is only necessary to determine the charging mode adopted by the sub-communication record for the users and services involved in the sub-communication record. OK.
其中,获取子通信记录所涉及到的业务的累计使用情况,一般也需要根据获取到的子通信记录所涉及到的用户,获取该用户在设定的计费周期内使用该子通信记录所涉及到的业务的累计使用情况。Among them, the accumulative use of the services involved in the acquisition of sub-communication records generally needs to be obtained according to the user involved in the obtained sub-communication records, and the information related to the use of the sub-communication records by the user within the set billing cycle. Accumulated usage of services received.
步骤S17:计算获取到的子通信记录所产生的计费值。Step S17: Calculate the charging value generated by the obtained sub-communication records.
根据上述获取到的用户使用子通信记录所涉及到的业务的累计使用情况、子通信记录中包含的用户本次使用所涉及到的业务的使用情况,采用确定出的该子通信记录所采用的计费模式,计算该子通信记录所产生的计费值。According to the accumulative use of the services involved in the user's use of the sub-communication record obtained above, and the usage of the business involved in the user's current use contained in the sub-communication record, the determined service used by the sub-communication record is adopted. In the charging mode, the charging value generated by the sub-communication record is calculated.
若确定出对获取的子通信记录计费所采用的计费模式为按时长计费时,计算子通信记录所产生的计费值,具体包括:If it is determined that the charging mode adopted for charging the obtained sub-communication record is billing by duration, calculate the billing value generated by the sub-communication record, specifically including:
将该子通信记录中包含的本次使用所涉及到的业务的使用时长与该用户在设定的计费周期内使用该业务的累计使用时长相加,得到本次使用后的新的累计使用时长。Add the usage time of the service involved in this use contained in the sub-communication record to the cumulative usage time of the user in the set billing cycle to obtain the new cumulative usage after this use duration.
用新的累计使用时长向上取整后的值减去本次使用之前的累计使用时长向上取整后的值,得到用户本次使用该子通信记录所涉及到的业务的有效使用时长,计算有效使用时长所产生的计费值。Subtract the rounded-up value of the cumulative usage time before this use from the new cumulative usage time rounded up value to obtain the effective usage time of the business involved in the user's use of the sub-communication record this time, and calculate the effective The billing value generated by the usage time.
若确定出对子通信记录计费所采用的计费模式为按流量计费,计算所述子通信记录所产生的计费值,具体包括:If it is determined that the billing mode adopted for billing the sub-communication record is billing by traffic, calculate the billing value generated by the sub-communication record, specifically including:
将获取到的子通信记录中包含的本次使用所涉及到的业务的上行流量与下行流量之和,与该用户在设定的计费周期内使用该业务的累计使用流量相加,得到本次使用后的新的累计使用流量。Add the sum of the uplink traffic and downlink traffic of the service involved in the current use contained in the obtained sub-communication records to the accumulated usage traffic of the service used by the user in the set billing period to obtain the current The new accumulative traffic used after the second use.
用新的累计使用流量向上取整后的值减去本次使用之前的累计使用流量向上取整后的值,得到用户本次使用该子通信记录所涉及到的业务的有效使用流量,计算有效使用流量所产生的计费值。Subtract the rounded-up value of the accumulative used traffic before this use from the new cumulative used traffic rounded up value to obtain the effective used traffic of the business involved in the user’s use of the sub-communication record this time, and calculate the effective The billing value generated by traffic usage.
下面以按时长计费说明累积计费方式对用户而言更具有合理性。例如:设定的计费周期为一个月,则每次对子话单进行计费时,获取涉及到的业务在本月内已使用的总时间,例如已使用了15分15秒。本次话单的使用时间为5分10秒,则15分15秒加上5分10秒总共是20分25秒。对20分25秒向上取整后是21分,对15分15秒向上取整后是16分,两者相减得到有效的使用时长为5分,则计算该5分钟内产生的费用(计费值)。The accumulative billing method is more reasonable for users in terms of billing by duration. For example, if the billing cycle is set to one month, then each time the sub-record is billed, the total time used by the service involved in this month is obtained, for example, 15 minutes and 15 seconds have been used. The usage time of this bill is 5 minutes and 10 seconds, then 15 minutes and 15 seconds plus 5 minutes and 10 seconds is a total of 20 minutes and 25 seconds. After rounding up 20 minutes and 25 seconds, it is 21 points, and after rounding up 15 minutes and 15 seconds, it is 16 points. Subtract the two to get an effective use time of 5 points, then calculate the cost generated within the 5 minutes (calculated fee value).
如果按照以前非累计的计费方式,则本次的计费时间应该是5分10秒取整后的6分的时间。避免了因网关侧通信记录分割导致多收取用户1分钟或1K流量的费用的问题,体现了计费的准确性和公平性。因此,累积的计费方式对用户来说更公平、合理。If the previous non-cumulative billing method is used, the billing time this time should be 6 minutes after rounding off 5 minutes and 10 seconds. It avoids the problem of overcharging users for 1 minute or 1K traffic due to the division of communication records on the gateway side, reflecting the accuracy and fairness of billing. Therefore, the accumulative billing method is more fair and reasonable for the user.
需要说明的是,本申请中获取到子通信记录之后,仅给出了采用累积计费的方式对子通信记录进行计费处理的过程,及步骤S16和S17的处理过程,显然的,获取到子通信记录之后,依然可以采用现有技术的计费方式对子通信记录进行计费处理,此时在步骤S16中和S17中则不必再获取和使用用户在设定周期内的业务上的累计使用情况。It should be noted that after the sub-communication record is obtained in this application, only the process of charging the sub-communication record in the way of accumulative charging, and the processing procedures of steps S16 and S17 are given. Obviously, the acquired After the sub-communication record, the billing method of the prior art can still be used to charge the sub-communication record. At this time, in steps S16 and S17, it is no longer necessary to obtain and use the user's accumulated service in the set period. Usage.
步骤S18:判断是否处理完拆分出的所有子通信记录。Step S18: Judging whether all the split sub-communication records have been processed.
若是,则执行步骤S19;否则,返回继续执行步骤S15,继续获取并处理下一个子通信记录。If yes, execute step S19; otherwise, return to continue executing step S15, and continue to obtain and process the next sub-communication record.
步骤S19:计费结束,生成计费结果。Step S19: the charging ends, and a charging result is generated.
例如:对按时长计费模式计费的用户的手机视频业务最后的批价结果(计费值)为3元;对于按流量计费模式计费的用户的WAP浏览业务批价为0.1元,收发彩信业务批价为0元。则将该结果反馈给用户或记录在该用户的移动数据业务费用记录中。For example: the final approval result (billing value) of the mobile video service for users billed by the time-based billing mode is 3 yuan; The approved price for sending and receiving MMS services is 0 yuan. Then the result is fed back to the user or recorded in the mobile data service expense record of the user.
根据本发明实施例提供的上述移动数据业务计费方法,可以构建一种移动数据业务计费装置,如图2所示,包括:配置模块10、获取模块20、拆分模块30和计费模块40。According to the above mobile data service charging method provided by the embodiment of the present invention, a mobile data service charging device can be constructed, as shown in Figure 2, including: a configuration module 10, an acquisition module 20, a split module 30 and a charging module 40.
配置模块10,用于预先建立用户信息、业务标识和计费模式的对应关系。具体可以为移动数据业务所涉及到的每种计费业务预先配置至少一种计费模式,通过用户选择或为用户设定的方式为用户选择的移动数据业务配置相应的计费模式。The configuration module 10 is used to pre-establish the corresponding relationship between user information, service identifier and charging mode. Specifically, at least one charging mode may be pre-configured for each charging service involved in the mobile data service, and a corresponding charging mode may be configured for the mobile data service selected by the user in a manner selected by the user or set for the user.
获取模块20,用于获取用户使用移动数据业务所产生的通信记录。The acquisition module 20 is configured to acquire communication records generated by users using mobile data services.
拆分模块30,用于根据获取模块20获取的通信记录中包含的业务标识,将获取到的通信记录拆分为与每一种业务对应的若干子通信记录。The splitting module 30 is configured to split the obtained communication record into several sub-communication records corresponding to each type of service according to the service identifier contained in the communication record obtained by the obtaining module 20 .
计费模块40,用于针对拆分出的每一个子通信记录,根据所述子通信记录中包含的用户信息和业务标识,查找预先设定的用户信息、业务标识和计费模式的对应关系确定对所述子通信记录计费所采用的所述计费模式,对所述子通信记录进行计费。The billing module 40 is configured to, for each split sub-communication record, search for a preset correspondence between user information, service identifier and charging mode according to the user information and service identifier contained in the sub-communication record Determine the charging mode adopted for charging the sub-communication record, and charge the sub-communication record.
上述计费模块40,具体可以包括:获取单元401、确定单元402和计费单元403。The charging module 40 described above may specifically include: an acquiring unit 401 , a determining unit 402 and a charging unit 403 .
获取单元401,用于依次获取拆分模块30拆分出的子通信记录,将获取的子通信记录提供给确定单元402;The obtaining unit 401 is configured to sequentially obtain the sub-communication records split by the splitting module 30, and provide the obtained sub-communication records to the determining unit 402;
确定单元402,用根据获取单元401获取到的子通信记录中包含的用户信息和业务标识,查找预先设定的用户信息、业务标识和计费模式的对应关系确定用户的该业务的计费模式,作为对子通信记录计费所采用的计费模式;以及获取该用户在设定的计费周期内使用子通信记录所涉及到的业务的累计使用情况。The determination unit 402 uses the user information and service identifier contained in the sub-communication record acquired by the acquisition unit 401 to search for the preset correspondence between user information, service identifier and charging mode to determine the charging mode of the service of the user , as the charging mode adopted for charging the sub-communication record; and acquiring the accumulated usage of services involved in using the sub-communication record by the user within the set charging period.
计费单元403,用于根据子通信记录中包含的用户本次使用所涉及到的业务的使用情况和累计使用情况,采用确定出的计费模式,计算子通信记录所产生的计费值。The billing unit 403 is configured to calculate the billing value generated by the sub-communication record by adopting the determined billing mode according to the service usage and accumulated usage of the service involved in the user's current use contained in the sub-communication record.
较佳的,上述计费单元403,进一步可以包括:第一累计子单元4031和第一计费子单元4032。Preferably, the above charging unit 403 may further include: a first accumulating subunit 4031 and a first charging subunit 4032 .
第一累计子单元4031,用于当确定单元402确定出的子通信记录所对应的计费模式为按时长计费时,将子通信记录中包含的本次使用所涉及到的业务的使用时长与该用户在设定的计费周期内使用该业务的累计使用时长相加,得到本次使用后的新的累计使用时长。The first accumulating subunit 4031 is configured to: when the charging mode corresponding to the sub-communication record determined by the determining unit 402 is billing by duration, the usage time of the service involved in this use contained in the sub-communication record It is added to the accumulative usage time of the service used by the user in the set billing period to obtain the new accumulative usage time after this usage.
第一计费子单元4032,用于用新的累计使用时长向上取整后的值减去累计使用时长向上取整后的值,得到用户本次使用所述子通信记录所涉及到的业务的有效使用时长,计算有效使用时长所产生的计费值。The first billing subunit 4032 is configured to subtract the rounded-up value of the accumulated usage time from the rounded-up value of the new cumulative usage time to obtain the business information involved in the user's use of the sub-communication record this time. Effective use time, the billing value generated by calculating the effective use time.
较佳的,上述计费单元403,进一步可以包括:第二累计子单元4033和第二计费子单元4034。Preferably, the above charging unit 403 may further include: a second accumulating subunit 4033 and a second charging subunit 4034 .
第二累计子单元4033,用于当确定单元确定出的所述子通信记录所对应的计费模式为按流量计费时,将子通信记录中包含的本次使用所涉及到的业务的上行流量与下行流量之和,与该用户在设定的计费周期内使用该业务的累计使用流量相加,得到本次使用后的新的累计使用流量。The second accumulating subunit 4033 is configured to, when the charging mode corresponding to the sub-communication record determined by the determining unit is charging by flow rate, add the uplink of the service involved in this use contained in the sub-communication record The sum of traffic and downlink traffic is added to the accumulative usage traffic of the service used by the user in the set billing period to obtain the new accumulative usage traffic after this usage.
第二计费子单元4034,用于用新的累计使用流量向上取整后的值减去累计使用流量向上取整后的值,得到用户本次使用子通信记录所涉及到的业务的有效使用流量,计算有效使用流量所产生的计费值。The second billing subunit 4034 is used to subtract the rounded up value of the accumulated used traffic from the rounded up value of the new accumulated used traffic to obtain the effective use of the service involved in the sub-communication record used by the user this time Traffic, calculate the billing value generated by the effective use of traffic.
上述计费单元403中根据计费需求可以仅设置第一累计子单元4031和第一计费子单元4032,或仅设置第二累计子单元4033和第二计费子单元4034。或者同时设置这四个子单元。In the charging unit 403, only the first accumulation subunit 4031 and the first charging subunit 4032 may be set, or only the second accumulation subunit 4033 and the second charging subunit 4034 may be set according to charging requirements. Or set all four subunits at the same time.
较佳的,上述移动数据业务计费装置,还包括:筛选模块50,用于判断获取模块20获取的通信记录是否为数据流量为零的通信记录,当判断为是时,删除数据流量为零的通信记录,当判断为否时,提供给拆分模块30。Preferably, the mobile data service billing device further includes: a screening module 50, configured to judge whether the communication record acquired by the acquisition module 20 is a communication record with zero data flow, and when it is judged to be yes, delete the data flow to be zero. The communication record of is provided to the splitting module 30 when the judgment is no.
本发明实施例提供的上述移动数据业务计费方法及装置,可以预先为每种业务设置多种可供选择的计费模式,运营商可以为用户指定某种业务的计费模式,用户也可以自行选择某种业务的计费模式,实现了对业务采用多模式融合计费。例如:对现有移动通信网络上承载的不同移动数据业务的按时长、按流量等计费模式的融合计费。用户可以根据自己的上网习惯、上网要求选择适合自己的计费模式;运营商可以提供丰富灵活的计费模式和计费策略,根据业务的特点,鼓励或限制用户长时间使用某一数据业务,合理使用网络资源,设定合适的营销策略。从而能够为用户提供更灵活、多样和可选择性计费策略。The above-mentioned mobile data service charging method and device provided by the embodiments of the present invention can pre-set a variety of optional charging modes for each service, and the operator can specify a certain service charging mode for the user, and the user can also Choose the billing mode of a certain business by yourself, and realize the multi-mode converged billing for the business. For example: convergent charging of charging modes such as time-based and traffic-based charging for different mobile data services carried on the existing mobile communication network. Users can choose a billing mode that suits them according to their Internet habits and Internet requirements; operators can provide rich and flexible billing models and billing strategies, and encourage or restrict users to use a certain data service for a long time according to the characteristics of the service. Rational use of network resources, set the appropriate marketing strategy. Thus, more flexible, diverse and optional charging policies can be provided for users.
上述方法还可以实现通信记录的拆分和分拣,实现将一个原始通信记录中的不同的业务的通信记录分割出来以及将数据流量为零的通信记录剔除,并采用累计计费的方式,分业务累计用户整月已使用的总时长或总流量后再进行批价,实现对使用业务的用户的更客观的计费,使移动数据业务计费更公平、合理、准确。The above method can also realize the splitting and sorting of communication records, realize the division of communication records of different services in an original communication record and eliminate the communication records with zero data flow, and adopt the accumulative billing method, divide The service is approved after accumulating the total time or total traffic that users have used for the whole month, so as to realize more objective billing for users who use the service, and make mobile data service billing more fair, reasonable and accurate.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化、替换或应用到其他类似的装置,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any skilled person in the technical field can easily think of changes, Replacement or application to other similar devices shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910224198.0ACN102083042B (en) | 2009-11-27 | 2009-11-27 | Charging method and device of mobile data services |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910224198.0ACN102083042B (en) | 2009-11-27 | 2009-11-27 | Charging method and device of mobile data services |
| Publication Number | Publication Date |
|---|---|
| CN102083042A CN102083042A (en) | 2011-06-01 |
| CN102083042Btrue CN102083042B (en) | 2014-09-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910224198.0AActiveCN102083042B (en) | 2009-11-27 | 2009-11-27 | Charging method and device of mobile data services |
| Country | Link |
|---|---|
| CN (1) | CN102083042B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102256028B (en)* | 2011-07-21 | 2014-08-27 | 中国移动通信集团山西有限公司 | Charging method and device for over-length telephone bill |
| CN103095945A (en)* | 2011-11-03 | 2013-05-08 | 中国电信股份有限公司 | Charging method and charging system based on bill classification and classification charging device |
| CN103684803B (en)* | 2013-12-11 | 2017-02-22 | 中国联合网络通信集团有限公司 | Flow collecting device and system and method for directional flow accounting |
| CN106878031B (en)* | 2017-01-23 | 2020-03-27 | 北京思特奇信息技术股份有限公司 | Method and system for accelerating processing of telephone bill of telecommunication package user |
| CN107104806A (en)* | 2017-04-13 | 2017-08-29 | 中国联合网络通信集团有限公司 | Call bill processing method, apparatus and system |
| CN107154857A (en)* | 2017-04-18 | 2017-09-12 | 北京思特奇信息技术股份有限公司 | The method and device that a kind of flow and expense double-core subtract |
| CN109981911B (en)* | 2017-12-27 | 2021-07-02 | 中国移动通信集团山东有限公司 | A calculation method and device for optimizing the billing charge of a call service |
| CN114698015B (en)* | 2022-04-12 | 2024-07-30 | 中国联合网络通信集团有限公司 | Service monitoring method, device, system and storage medium |
| CN115118535B (en)* | 2022-05-25 | 2023-08-25 | 成都吉胜科技有限责任公司 | Internet bar distributed parallel charging method and system based on cyclic responsibility chain |
| CN115801574A (en)* | 2022-10-11 | 2023-03-14 | 贵州电网有限责任公司 | Method and system for optimizing public network communication resources |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1937511A (en)* | 2005-09-23 | 2007-03-28 | 中兴通讯股份有限公司 | Charged information acquisition system and method, and charge realizing system and method |
| CN101001156A (en)* | 2006-01-12 | 2007-07-18 | 中兴通讯股份有限公司 | Method of authentication prepayment by remote dial switch-in service authentication protocol |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8345676B2 (en)* | 2002-09-20 | 2013-01-01 | Nokia Corporation | Method for charging of data reaching a network element of a communication network during a data session |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1937511A (en)* | 2005-09-23 | 2007-03-28 | 中兴通讯股份有限公司 | Charged information acquisition system and method, and charge realizing system and method |
| CN101001156A (en)* | 2006-01-12 | 2007-07-18 | 中兴通讯股份有限公司 | Method of authentication prepayment by remote dial switch-in service authentication protocol |
| Publication number | Publication date |
|---|---|
| CN102083042A (en) | 2011-06-01 |
| Publication | Publication Date | Title |
|---|---|---|
| CN102083042B (en) | Charging method and device of mobile data services | |
| CN1867024B (en) | Charging information transmitting method | |
| US8879417B2 (en) | Providing toll free data in a wireless system | |
| US20150223042A1 (en) | Independent roaming charging for a roaming user equipment in a visited network | |
| US20090068981A1 (en) | Charging efficiency | |
| CN102098650A (en) | Content charging-based flow adaptive method and system | |
| WO2018107822A1 (en) | Traffic accounting method and system, and control server | |
| TW200947945A (en) | Online charging for roaming users in a proxy online charging system of a visited network | |
| CN101523861A (en) | A method, communication system and collection controller allowing third party influence on the provision of a service to a user station | |
| CN102017670A (en) | Billing in LTE/ECP communication network | |
| CN102413547A (en) | Network selection method and device of multimode terminal | |
| WO2010139239A1 (en) | Method and device for grading charging | |
| US20060007928A1 (en) | Flexible traffic rating interworking | |
| CN102137205A (en) | Account recharging method and device and charging method, device and system | |
| CN104301874B (en) | Notifications sending method, equipment and system | |
| CN102387486A (en) | Method and device for charging general packet radio service (GPRS) partition bill | |
| JP2011205404A (en) | Apparatus and system | |
| KR100294360B1 (en) | Method for Internet Free Handphone Service and Apparatus thereof | |
| Cushnie et al. | Evolution of charging and billing models for GSM and future mobile Internet services | |
| CN107294735B (en) | Order supplementing method and online charging system | |
| CN1867022B (en) | A method and device for realizing diversified charging of multicast services | |
| KR102249463B1 (en) | Method of seperated accounting for wireless data service fee, seperated accounting system for wireless data service fee and user device performing the same | |
| Bormann et al. | Business models for local mobile services enabled by convergent online charging | |
| CN101754159A (en) | Charging method, charging server and charging system | |
| CN103906025B (en) | A kind of processing method of third party charging business, apparatus and system |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |