[go: up one dir, main page]

CN102739409A - Internet traffic charging device and method - Google Patents

Internet traffic charging device and method Download PDF

Info

Publication number
CN102739409A
CN102739409A CN2012101977560A CN201210197756A CN102739409A CN 102739409 A CN102739409 A CN 102739409A CN 2012101977560 A CN2012101977560 A CN 2012101977560A CN 201210197756 A CN201210197756 A CN 201210197756A CN 102739409 A CN102739409 A CN 102739409A
Authority
CN
China
Prior art keywords
data
service
module
traffic
forwarding
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
Application number
CN2012101977560A
Other languages
Chinese (zh)
Other versions
CN102739409B (en
Inventor
刘仓明
谢光华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210197756.0A priority Critical patent/CN102739409B/en
Publication of CN102739409A publication Critical patent/CN102739409A/en
Application granted granted Critical
Publication of CN102739409B publication Critical patent/CN102739409B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Meter Arrangements (AREA)

Abstract

本发明提供了一种上网流量计费装置及方法,其中,所述装置包括授权数据管理模块、流量信息分类统计模块以及数据交换模块;授权数据管理模块,用于存储数据业务分类策略和数据业务计费策略,数据业务分类策略记录数据业务类型的定义,数据业务计费策略记录数据业务类型与计费策略的对应关系;数据交换模块,用于转发上网设备与通信网络之间的数据;流量信息分类统计模块,用于根据数据业务分类策略确定统计的经数据交换模块转发的数据的业务类型,根据数据业务计费策略确定与该数据业务类型对应的计费策略,根据该计费策略计算统计的转发数据的流量费用。本发明实现了按上网业务的类型计算流量费用。

The present invention provides an Internet traffic billing device and method, wherein the device includes an authorized data management module, a traffic information classification and statistics module, and a data exchange module; the authorized data management module is used to store data service classification policies and data service Billing strategy, data service classification strategy records the definition of data service types, data service charging strategy records the corresponding relationship between data service types and charging policies; data exchange module, used to forward data between Internet devices and communication networks; traffic The information classification and statistics module is used to determine the statistical business type of the data forwarded by the data exchange module according to the data business classification policy, determine the charging policy corresponding to the data business type according to the data business charging policy, and calculate according to the charging policy Statistical traffic charges for forwarding data. The invention realizes the calculation of traffic charges according to the types of Internet access services.

Description

一种上网流量计费装置及方法Device and method for billing Internet traffic

技术领域 technical field

本发明涉及通信计费领域,尤其涉及一种上网流量计费装置及方法。The invention relates to the field of communication billing, in particular to an Internet traffic billing device and method.

背景技术 Background technique

随着通信网络提供的业务种类日益丰富,以及IPV6技术的日渐成熟和普及,越来越多的用户要求通过家用电器接入网络并获取通信网络提供的各种语音、视频和纯数据业务服务。用户通过家用电器从互联网获取业务服务的同时,也需要用户支付相应地服务费用。目前计算用户的服务费用的方式主要有两种,一种是按时计费,另一种是按流量计费。With the increasing variety of services provided by communication networks and the maturity and popularity of IPV6 technology, more and more users require to access the network through household appliances and obtain various voice, video and pure data services provided by communication networks. When users obtain business services from the Internet through household appliances, they also need to pay corresponding service fees. At present, there are mainly two ways to calculate the user's service fee, one is billing by hour, and the other is billing by traffic.

对于按流量计算用户的服务费用的方式,现有技术通常采用与家用电器相连的宽带接入服务器对家用电器上网流量进行计费。宽带接入服务器对授权的用户账户进行认证后,统计产生的数据流量,并根据统计的数据流量计算相应的流量费用。但是这种流量计费方式没有区分业务类型,不利于网络增值业务发展;无法实时向用户显示当前上网流量费用、预付费及余额告警等提示信息。For the method of calculating the user's service fee according to the flow rate, in the prior art, a broadband access server connected to the home appliance is usually used to charge the Internet traffic of the home appliance. After the broadband access server authenticates the authorized user account, counts the generated data traffic, and calculates the corresponding traffic fee according to the statistical data traffic. However, this traffic billing method does not distinguish between business types, which is not conducive to the development of network value-added services; it cannot display prompt information such as current Internet traffic charges, prepaid fees, and balance warnings to users in real time.

发明内容 Contents of the invention

本发明提供了一种上网流量计费装置及方法,以解决如何根据上网业务的类型计算流量费用的技术问题。The invention provides an Internet traffic charging device and method to solve the technical problem of how to calculate the traffic fee according to the type of Internet business.

为解决上述技术问题,本发明提供了一种上网流量计费装置,所述装置包括授权数据管理模块、流量信息分类统计模块以及数据交换模块,其中,In order to solve the above technical problems, the present invention provides an Internet traffic billing device, which includes an authorization data management module, a traffic information classification and statistics module, and a data exchange module, wherein,

所述授权数据管理模块,用于存储数据业务分类策略和数据业务计费策略;所述数据业务分类策略记录数据业务类型的定义;所述数据业务计费策略记录数据业务类型与计费策略的对应关系;The authorized data management module is used to store the data service classification strategy and the data service charging strategy; the data service classification strategy records the definition of the data service type; the data service charging strategy records the data service type and the charging policy Correspondence;

所述数据交换模块,用于转发上网设备与通信网络之间的数据;The data exchange module is used to forward the data between the Internet access device and the communication network;

所述流量信息分类统计模块,用于根据所述数据业务分类策略确定统计的经所述数据交换模块转发的数据的业务类型;根据所述数据业务计费策略确定与该数据业务类型对应的计费策略;根据该计费策略计算统计的转发数据的流量费用。The traffic information classification and statistics module is used to determine the statistical service type of the data forwarded by the data exchange module according to the data service classification policy; determine the corresponding data service type according to the data service charging policy Charge policy; calculate and count traffic charges for forwarded data according to the billing policy.

进一步地,所述流量信息分类统计模块,用于根据所述数据业务分类策略确定统计的经所述数据交换模块转发的数据的业务类型包括:Further, the traffic information classification and statistics module is used to determine and count the service types of the data forwarded by the data exchange module according to the data service classification policy, including:

所述流量信息分类统计模块,用于接收所述数据交换模块发送的对其自身转发数据的镜像数据;通过将所述镜像数据携带的关键信息与所述数据业务分类策略中记录的数据业务类型定义进行匹配,确定统计的经所述数据交换模块转发的数据的业务类型;The traffic information classification and statistics module is used to receive the mirror data sent by the data exchange module for its own forwarded data; by combining the key information carried by the mirror data with the data service type recorded in the data service classification policy Define and match, and determine the statistical business type of the data forwarded by the data exchange module;

所述关键信息包括以下一种或多种:The key information includes one or more of the following:

源地址、目的地址、源端口号、目的端口号和协议类型。Source address, destination address, source port number, destination port number and protocol type.

进一步地,further,

所述授权数据管理模块,还用于存储数据转发控制规则;The authorized data management module is also used to store data forwarding control rules;

所述数据交换模块,用于转发上网设备与通信网络之间的数据进一步包括:The data exchange module for forwarding the data between the Internet access device and the communication network further includes:

所述数据交换模块,用于根据所述数据转发控制规则转发上网设备与通信网络之间的数据。The data exchange module is used to forward the data between the Internet access device and the communication network according to the data forwarding control rules.

进一步地,further,

所述授权数据管理模块存储的数据转发控制规则包括免费业务转发控制规则;The data forwarding control rules stored by the authorized data management module include free service forwarding control rules;

所述授权数据管理模块,还用于存储用户预付费余额;The authorization data management module is also used to store the user's prepaid balance;

所述流量信息分类统计模块,还用于在计算统计的转发数据的流量费用后,更新所述授权数据管理模块存储的用户预付费余额,并在所述用户预付费余额为零时,通知所述数据交换模块根据所述免费业务转发控制规则转发上网设备与通信网络之间的数据。The traffic information classification and statistics module is further configured to update the user's prepaid balance stored in the authorized data management module after calculating the statistical traffic fee of the forwarded data, and notify the user when the user's prepaid balance is zero The data exchange module forwards the data between the Internet access device and the communication network according to the free service forwarding control rules.

进一步地,所述装置还包括显示模块,Further, the device also includes a display module,

所述显示模块,用于通过显示屏显示流量计费信息;The display module is used to display traffic billing information through a display screen;

所述流量计费信息包括:用户预付费余额以及流量费用。The traffic charging information includes: user prepaid balance and traffic charges.

进一步地,further,

所述授权数据管理模块还用于存储所述预付费余额的告警门限;The authorization data management module is also used to store the alarm threshold of the prepaid balance;

所述装置还包括预付费余额告警模块;The device also includes a prepaid balance warning module;

所述预付费告警模块,用于监控所述授权数据管理模块中存储的用户预付费余额,并在用户预付费余额达到其预设的告警门限时,改变显示模块中显示屏的颜色;以及当用户预付费余额存在多个预设告警门限时,在所述授权数据管理模块中存储的用户预付费余额从其所处的一个告警门限降低至另一个告警门限时,发送告警提示音。The prepaid alarm module is used to monitor the user's prepaid balance stored in the authorized data management module, and change the color of the display screen in the display module when the user's prepaid balance reaches its preset alarm threshold; and when When there are multiple preset warning thresholds for the user's prepaid balance, when the user's prepaid balance stored in the authorization data management module drops from one warning threshold to another, an alarm prompt tone is sent.

为解决上述技术问题,本发明还提供了一种上网流量计费方法,所述方法包括:In order to solve the above technical problems, the present invention also provides a method for billing Internet traffic, the method comprising:

接收数据业务分类策略和数据业务计费策略;所述数据业务分类策略记录数据业务类型的定义;所述数据业务计费策略记录数据业务类型与计费策略的对应关系;Receiving a data service classification policy and a data service charging policy; the data service classification policy records the definition of the data service type; the data service charging policy records the corresponding relationship between the data service type and the charging policy;

转发上网设备与通信网络之间的数据;Forwarding data between Internet-connected devices and communication networks;

根据所述数据业务分类策略确定统计的转发数据的业务类型;Determining the service type of the statistically forwarded data according to the data service classification strategy;

根据所述数据业务计费策略确定与转发数据的业务类型对应的计费策略;determining a charging policy corresponding to the service type of the forwarded data according to the data service charging policy;

根据该计费策略计算统计的转发数据的流量费用。The traffic charges for the forwarded data are calculated according to the billing policy.

进一步地,其特征在于,根据所述数据业务分类策略确定统计的转发数据的业务类型包括:Further, it is characterized in that, according to the data service classification policy, determining the statistical forwarding data service type includes:

接收统计的转发数据的镜像数据;Receive the mirror data of the statistics forwarded data;

将所述镜像数据携带的关键信息与所述数据业务分类策略记录的数据业务类型定义进行匹配;matching the key information carried by the mirrored data with the data service type definition recorded in the data service classification policy;

将匹配一致的数据业务分类策略记录的数据业务类型作为统计的转发数据的业务类型;Use the data service type recorded in the consistent data service classification policy as the statistical service type of the forwarded data;

所述关键信息包括以下一种或多种:The key information includes one or more of the following:

源地址、目的地址、源端口号、目的端口号和协议类型。Source address, destination address, source port number, destination port number and protocol type.

进一步地,所述方法还包括:Further, the method also includes:

接收数据转发控制规则;Receive data forwarding control rules;

所述转发上网设备与通信网络之间的数据进一步包括:The data forwarding between the Internet access device and the communication network further includes:

根据所述数据转发控制规则转发上网设备与通信网络之间的数据。The data between the Internet access device and the communication network is forwarded according to the data forwarding control rule.

进一步地,further,

所述数据转发控制规则包括免费业务转发控制规则;The data forwarding control rules include free service forwarding control rules;

所述方法还包括:The method also includes:

接收用户预付费余额;Receive the user's prepaid balance;

在计算统计的转发数据的流量费用后,更新所述用户预付费余额;After calculating the statistics of traffic charges for forwarding data, updating the user's prepaid balance;

判断所述用户预付费余额是否为零,当所述用户预付费余额为零时,根据所述免费业务转发控制规则转发上网设备与通信网络之间的数据。Judging whether the user's prepaid balance is zero, when the user's prepaid balance is zero, forward the data between the Internet access device and the communication network according to the free service forwarding control rule.

进一步地,所述方法还包括:Further, the method also includes:

通过显示屏显示所述用户预付费余额及流量费用。The user's prepaid balance and traffic charges are displayed through a display screen.

进一步地,所述方法还包括:Further, the method also includes:

接收预付费余额的告警门限;The alarm threshold for receiving the prepaid balance;

监控所述用户预付费余额,判断所述用户预付费余额是否达到预设的告警门限;在所述用户预付费余额达到所述告警门限时,改变所述显示屏的颜色;在所述用户预付费余额从其所处的一个告警门限降低至另一个告警门限时,发送告警提示音。Monitor the user's prepaid balance to determine whether the user's prepaid balance reaches a preset alarm threshold; when the user's prepaid balance reaches the alarm threshold, change the color of the display screen; When the fee balance drops from one alarm threshold to another, an alarm tone will be sent.

上述技术方案将用户与网络之间的通信数据按业务类型进行区分,并且给出了与业务类型相对应的计费策略,实现了区分业务类型对上网数据流量计费方式。The above technical solution distinguishes the communication data between the user and the network according to the service type, and provides a charging strategy corresponding to the service type, realizing the charging method for the online data traffic by distinguishing the service type.

附图说明 Description of drawings

图1为本实施例的上网流量计费装置组成模块图;Fig. 1 is a block diagram of the Internet traffic billing device of the present embodiment;

图2为本应用示例的上网流量计费装置的安装位置示意图;Fig. 2 is a schematic diagram of the installation position of the Internet traffic billing device of this application example;

图3为本实施例的上网流量计费方法流程图。FIG. 3 is a flow chart of the method for billing Internet traffic in this embodiment.

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. 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 arbitrarily with each other.

图1为本实施例的上网流量计费装置组成模块。FIG. 1 is a block diagram of the Internet traffic billing device of this embodiment.

该装置包括授权数据管理模块、流量信息分类统计模块以及数据交换模块,其中,The device includes an authorization data management module, a traffic information classification and statistics module, and a data exchange module, wherein,

所述授权数据管理模块,用于存储数据业务分类策略和数据业务计费策略;所述数据业务分类策略记录数据业务类型的定义;所述数据业务计费策略记录数据业务类型与计费策略的对应关系;The authorized data management module is used to store the data service classification strategy and the data service charging strategy; the data service classification strategy records the definition of the data service type; the data service charging strategy records the data service type and the charging policy Correspondence;

授权数据管理模块存储的数据可来自宽带接入服务器,接收宽带服务器对授权数据的更新操作;The data stored by the authorization data management module can come from the broadband access server, and receive the update operation of the authorization data from the broadband server;

所述数据交换模块,用于转发上网设备与通信网络之间的数据;The data exchange module is used to forward the data between the Internet access device and the communication network;

所述流量信息分类统计模块,用于根据所述数据业务分类策略确定统计的经所述数据交换模块转发的数据的业务类型;根据所述数据业务计费策略确定与该数据业务类型对应的计费策略;根据该计费策略计算统计的转发数据的流量费用;The traffic information classification and statistics module is used to determine the statistical service type of the data forwarded by the data exchange module according to the data service classification policy; determine the corresponding data service type according to the data service charging policy Fee policy; calculate and count traffic fees for forwarded data according to the billing policy;

该流量信息分类统计模块,可接收所述数据交换模块发送的对其自身转发数据的镜像数据,通过将所述镜像数据携带的关键信息与所述数据业务分类策略中记载的数据业务类型定义进行匹配,确定统计的经所述数据交换模块转发的数据的业务类型。镜像数据携带的关键信息包括以下一种或多种:数据的源地址、目的地址、源端口号、目的端口号和协议类型。流量信息分类统计模块通过获取数据交换模块的镜像数据,可减少对数据正常转发流程的影响。The traffic information classification and statistics module can receive the mirror data sent by the data exchange module to forward data to itself, and compare the key information carried by the mirror data with the data service type definition recorded in the data service classification policy Matching, determining the statistical service type of the data forwarded by the data exchange module. The key information carried by the image data includes one or more of the following: data source address, destination address, source port number, destination port number, and protocol type. The traffic information classification and statistics module can reduce the impact on the normal data forwarding process by obtaining the mirror data of the data exchange module.

上述授权数据管理模块,还可用于存储数据转发控制规则;The above authorized data management module can also be used to store data forwarding control rules;

上述用于控制数据交换模块转发数据的数据转发控制规则可包括免费业务转发控制规则。该免费业务转发控制规则包括:规定在用户预付费余额为零,允许免费业务转发;甚至可以规定允许转发的免费业务类型,如允许转发的免费业务类型为公益广告、免费视频等。The above data forwarding control rules for controlling data forwarding by the data exchange module may include free service forwarding control rules. The free service forwarding control rules include: stipulating that the user's prepaid balance is zero, allowing free service forwarding; and even specifying the types of free services that are allowed to be forwarded, such as public service advertisements and free videos that are allowed to be forwarded.

为了控制数据交换模块及时地采用免费业务转发控制规则,本实施例中的授权数据管理模块需要存储用户预付费余额;流量信息分类统计模块需要在计算流量费用后,更新所述授权数据管理模块存储的用户预付费余额,并在所述用户预付费余额为零时,通知所述数据交换模块根据所述免费业务转发控制规则转发上网设备与通信网络之间的数据。In order to control the data exchange module to adopt the free service forwarding control rules in a timely manner, the authorized data management module in this embodiment needs to store the user's prepaid balance; the traffic information classification and statistics module needs to update the authorized data management module after calculating the traffic fee. The user's prepaid balance, and when the user's prepaid balance is zero, notify the data exchange module to forward the data between the Internet access device and the communication network according to the free service forwarding control rule.

上述装置还可包括显示模块,用于通过显示屏显示用户预付费余额,上网流量和流量费用等,方便用户实时了解上网流量情况。The above device can also include a display module, which is used to display the user's prepaid balance, Internet traffic and traffic charges, etc. through the display screen, so as to facilitate users to know the Internet traffic situation in real time.

为了实现上述装置对用户预付费余额的告警功能,本实施例中授权数据管理模块还需要存储所述预付费余额的告警门限;另外,上述装置还需要新增预付费告警模块,用于监控所述授权数据管理模块中存储的用户预付费余额,并在用户预付费余额达到其预设的告警门限时,改变显示模块中显示屏的颜色;若告警门限有多个,通过显示屏显示不同的颜色区分用户预付费余额达到的不同的告警门限;以及在所述授权数据管理模块中存储的用户预付费余额从其所处的一个告警门限降低至另一个告警门限时,发送告警提示音。In order to realize the alarm function of the above-mentioned device on the user's prepaid balance, the authorization data management module in this embodiment also needs to store the alarm threshold of the prepaid balance; in addition, the above-mentioned device also needs to add a prepaid alarm module for monitoring all The user’s prepaid balance stored in the authorization data management module, and when the user’s prepaid balance reaches its preset alarm threshold, change the color of the display screen in the display module; if there are multiple alarm thresholds, different alarm thresholds are displayed on the display screen. The color distinguishes the different warning thresholds reached by the user's prepaid balance; and when the user's prepaid balance stored in the authorized data management module decreases from one warning threshold to another, an alarm prompt tone is sent.

上述装置还可包括计费信息发送模块,用于定时向宽带接入服务器上报流量计费信息,包括上网流量、流量费用和用户预付费余额等,以使宽带接入服务器将接收的流量计费信息上报至网络计费服务器。The above-mentioned device may also include a billing information sending module, which is used to regularly report traffic billing information to the broadband access server, including Internet traffic, traffic charges, and user prepaid balance, so that the broadband access server will charge the received traffic The information is reported to the network accounting server.

为保证用户的利益,上述装置中还可包括用户认证信息管理模块,用于在本装置上电时,与宽带接入服务器之间完成对用户信息的认证操作,并在认证通过后,使该装置中的其他模块处于工作状态。In order to ensure the interests of users, the above-mentioned device may also include a user authentication information management module, which is used to complete the authentication operation of user information with the broadband access server when the device is powered on, and after the authentication is passed, the Other modules in the device are in working condition.

下面以一个应用示例对上述实施例进行进一步详细说明。The above embodiment will be further described in detail below with an application example.

在该应用示例中,家用上网设备与上述实施例的上网流量计费装置相连后,通过接入网与宽带接入服务器通信,如图2所示。上网流量计费装置可以是一个单独的设备,也可以是家用小型路由器的一部分。该装置包括用户认证信息管理模块、授权数据管理模块、数据交换模块、流量信息分类统计模块、显示模块、预付费告警模块以及计费信息发送模块。In this application example, the home Internet access device communicates with the broadband access server through the access network after being connected to the Internet traffic accounting device of the above embodiment, as shown in FIG. 2 . The Internet traffic metering device can be a separate device, or a part of a small household router. The device includes a user authentication information management module, an authorization data management module, a data exchange module, a traffic information classification and statistics module, a display module, a prepaid alarm module and a billing information sending module.

对该装置上电,该装置中的用户认证信息管理模块,用于在检测到本装置上电时,通过PPPoE,DHCP等网络通信协议向宽带接入服务器发送用户认证信息,并接收来自所述宽带接入服务器的确认消息;以及在接收到来自所述宽带接入服务器的确认消息后,使该装置中的其他模块处于工作状态;Power on the device, the user authentication information management module in the device is used to send user authentication information to the broadband access server through network communication protocols such as PPPoE and DHCP when detecting that the device is powered on, and receive information from the A confirmation message from the broadband access server; and after receiving the confirmation message from the broadband access server, making other modules in the device work;

该装置上电认证通过后,授权数据管理模块接收并存储来自宽带服务器发送的授权数据,所述授权数据包括数据业务分类策略、数据业务计费策略、数据转发控制规则、用户预付费余额、用户预付费余额告警门限等。其中,数据业务分类策略记录增值数据业务类型的定义及其匹配关键字,不能与所有增值数据业务类型的匹配关键字匹配的数据,默认的普通网络数据;数据业务计费策略标注了增值业务和普通网络业务采用不同的计费策略;数据转发控制规则包括免费业务转发控制规则;After the device is powered on and authenticated, the authorization data management module receives and stores the authorization data sent from the broadband server. The authorization data includes data service classification policy, data service charging policy, data forwarding control rules, user prepaid balance, user Prepaid balance alarm threshold, etc. Among them, the data service classification policy records the definition of the value-added data service type and its matching keywords, and the data that cannot match the matching keywords of all value-added data service types is the default ordinary network data; the data service charging policy marks the value-added service and Common network services adopt different billing policies; data forwarding control rules include free service forwarding control rules;

所述数据交换模块,根据所述数据转发控制规则,转发或丢弃上网设备和通信网络之间的数据;The data exchange module, according to the data forwarding control rules, forwards or discards the data between the Internet access device and the communication network;

所述流量信息分类统计模块,接收从数据交换模块传输过来的业务数据的镜像数据,提取镜像数据的关键信息,如目的IP地址,目的端口号,源IP地址,源端口号等信息,和数据业务分类策略中记录的每种增值数据业务类型的匹配关键字进行匹配,确定数据交换模块转发数据属于何种业务类型;统计镜像数据的流量,累加并更新用户的业务流量信息;根据所述数据业务计费策略确定与该数据业务类型对应的计费策略;根据该计费策略计算流量费用;获取授权数据管理模块存储的用户预付费余额,将该用户预付费余额扣除计算出的流量费用得到更新的用户预付费余额,并将该更新的用户预付费余额发送至授权数据管理模块;判断更新的用户预付费余额是否为0,当更新的用户预付费余额为0时,通知所述数据交换模块采用免费业务转发控制规则转发上网设备与通信网络之间的数据,即仅允许免费业务通过数据交换模块;The traffic information classification statistics module receives the mirror data of the business data transmitted from the data exchange module, and extracts key information of the mirror data, such as destination IP address, destination port number, source IP address, source port number and other information, and data Match the matching keywords of each value-added data service type recorded in the business classification strategy to determine which business type the data forwarded by the data exchange module belongs to; count the traffic of mirrored data, accumulate and update the user's business flow information; according to the data The service charging strategy determines the charging strategy corresponding to the data service type; calculates the traffic fee according to the charging strategy; obtains the user's prepaid balance stored in the authorized data management module, and deducts the calculated traffic fee from the user's prepaid balance to obtain Update the user's prepaid balance, and send the updated user's prepaid balance to the authorization data management module; judge whether the updated user's prepaid balance is 0, and when the updated user's prepaid balance is 0, notify the data exchange The module adopts free service forwarding control rules to forward the data between the Internet device and the communication network, that is, only free services are allowed to pass through the data exchange module;

显示模块,用于通过显示屏显示用户预付费余额,上网业务流量和流量费用;The display module is used to display the user's prepaid balance, Internet service traffic and traffic charges through the display screen;

预付费告警模块,用于监控所述授权数据管理模块中存储的用户预付费余额,并在用户预付费余额达到告警门限时,改变显示模块中显示屏的颜色;当判断出用户预付费余额从其所处的一个告警门限降低至另一个告警门限时,发送告警提示音;The prepaid alarm module is used to monitor the user's prepaid balance stored in the authorized data management module, and when the user's prepaid balance reaches the alarm threshold, change the color of the display screen in the display module; when it is judged that the user's prepaid balance has changed from When one of its alarm thresholds drops to another alarm threshold, an alarm prompt tone is sent;

计费信息发送模块,用于定时向宽带接入服务器上报流量计费信息,包括上网流量、流量费用和用户预付费余额,以使宽带接入服务器将接收的流量计费信息上报至网络计费服务器。The billing information sending module is used to regularly report traffic billing information to the broadband access server, including Internet traffic, traffic charges and user prepaid balance, so that the broadband access server will report the received traffic billing information to the network billing server.

图3为本实施例的上网流量计费方法流程图。FIG. 3 is a flow chart of the method for billing Internet traffic in this embodiment.

S301接收数据业务分类策略和数据业务计费策略;S301 receiving a data service classification policy and a data service charging policy;

所述数据业务分类策略记录数据业务类型的定义;所述数据业务计费策略记录数据业务类型与计费策略的对应关系;The data service classification policy records the definition of data service types; the data service charging policy records the corresponding relationship between data service types and charging policies;

在步骤S301中还可接收数据转发控制规则、用户预付费余额以及预付费余额的告警门限;其中,数据转发控制规则可包括免费业务转发控制规则;该免费业务转发控制规则包括:规定在用户预付费余额为零,允许免费业务转发;甚至可以规定允许转发的免费业务类型,如允许转发的免费业务类型为公益广告、免费视频等;In step S301, data forwarding control rules, user prepaid balance, and alarm thresholds for prepaid balances may also be received; wherein, the data forwarding control rules may include free service forwarding control rules; the free service forwarding control rules include: If the fee balance is zero, free business forwarding is allowed; even the types of free business that are allowed to be forwarded can be specified, such as public service advertisements and free videos that are allowed to be forwarded;

上述业务分类策略、数据业务计费策略、数据转发控制规则、用户预付费余额以及预付费余额的告警门限可来自宽带接入服务器;The above service classification policy, data service charging policy, data forwarding control rules, user prepaid balance and alarm threshold of prepaid balance can come from the broadband access server;

S302转发上网设备与通信网络之间的数据;S302 Forwarding data between the Internet access device and the communication network;

若步骤S301接收了数据转发控制规则,步骤S302可根据所述数据转发控制规则转发上网设备与通信网络之间的数据;对于满足转发条件的数据执行转发操作,否则,可直接丢弃转发数据;If the data forwarding control rule is received in step S301, step S302 can forward the data between the Internet access device and the communication network according to the data forwarding control rule; perform a forwarding operation on the data satisfying the forwarding condition, otherwise, directly discard the forwarded data;

S303根据所述数据业务分类策略确定统计的转发数据的业务类型;S303 Determine according to the data service classification policy the statistical service type of the forwarded data;

步骤S303可包括以下步骤:Step S303 may include the following steps:

1)接收统计的转发数据的镜像数据;1) Receive the mirror image data of the statistically forwarded data;

2)将所述镜像数据携带的关键信息与所述数据业务分类策略记录的数据业务类型定义进行匹配;所述关键信息包括以下一种或多种:2) matching the key information carried by the mirrored data with the data service type definition recorded in the data service classification strategy; the key information includes one or more of the following:

源地址、目的地址、源端口号、目的端口号和协议类型;Source address, destination address, source port number, destination port number and protocol type;

3)将匹配一致的数据业务分类策略记录的数据业务类型作为统计的转发数据的业务类型;3) The data service type recorded in the matching and consistent data service classification policy is used as the service type of the statistically forwarded data;

S304根据所述数据业务计费策略确定与转发数据的业务类型对应的计费策略;S304 Determine a charging policy corresponding to the service type of the forwarded data according to the data service charging policy;

S305根据该计费策略计算统计的转发数据的流量费用。S305 calculates the statistics of traffic charges for the forwarded data according to the charging policy.

在计算统计的转发数据的流量费用后,可更新上述用户预付费余额;并判断用户预付费余额是否为零,当用户预付费余额为零时,根据上述免费业务转发控制规则转发上网设备与通信网络之间的数据。若步骤S301设置了预付费余额的告警门限,还可监控所述用户预付费余额,判断所述用户预付费余额是否达到预设的告警门限;在所述用户预付费余额达到所述告警门限时,改变所述显示屏的颜色;在所述用户预付费余额从其所处的一个告警门限降低至另一个告警门限时,发送告警提示音。After calculating the statistics of traffic charges for forwarding data, the user’s prepaid balance can be updated; and it can be judged whether the user’s prepaid balance is zero. data between networks. If the alarm threshold of the prepaid balance is set in step S301, the user’s prepaid balance can also be monitored to determine whether the user’s prepaid balance reaches the preset alarm threshold; when the user’s prepaid balance reaches the alarm threshold , changing the color of the display screen; when the user’s prepaid balance drops from one warning threshold to another warning threshold, sending a warning sound.

在本实施例中,也可将上述用户预付费余额及流量费用通过显示屏显示,方便用户实时了解上网流量情况;In this embodiment, the above-mentioned user prepaid balance and traffic fee can also be displayed on the display screen, so that the user can understand the Internet traffic situation in real time;

在本实施例中,也可定时向宽带接入服务器上报流量计费信息,包括上网流量、流量费用和用户预付费余额等,以使宽带接入服务器将接收的流量计费信息上报至网络计费服务器;In this embodiment, the traffic billing information may also be regularly reported to the broadband access server, including Internet traffic, traffic charges, and user prepaid balance, so that the broadband access server reports the received traffic billing information to the network computer. fee server;

为保证用户的利益,还在执行上述步骤S301之前,可先对用户认证信息进行认证操作,在认证通过后,再执行后续操作。In order to ensure the interests of the user, before performing the above step S301, the user authentication information may be authenticated first, and subsequent operations may be performed after the authentication is passed.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiments can be implemented in the form of hardware, or can be implemented in the form of software function modules. The form is realized. The present invention is not limited to any specific combination of hardware and software.

需要说明的是,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。It should be noted that the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these Corresponding changes and deformations should belong to the scope of protection of the appended claims of the present invention.

Claims (12)

1. an online charge on traffic device is characterized in that said device comprises authorization data administration module, flow information statistic of classification module and data exchange module, wherein,
Said authorization data administration module is used to store data service classification policy and data service billing strategy; The definition of said data service classification policy record data type of service; The corresponding relation of said data service billing strategy record data type of service and charging policy;
Said data exchange module is used to transmit the data between equipment for surfing the net and the communication network;
Said flow information statistic of classification module is used for confirming according to said data service classification policy the type of service of the data of transmitting through said data exchange module of statistics; Confirm the charging policy corresponding according to said data service billing strategy with this data service type; Traffic fee according to the forwarding data of this charging policy counting statistics is used.
2. device as claimed in claim 1 is characterized in that, said flow information statistic of classification module is used for confirming that according to said data service classification policy the type of service of the data of transmitting through said data exchange module of statistics further comprises:
Said flow information statistic of classification module is used to receive that said data exchange module sends that himself is transmitted the mirror image data of data; Mate through data recorded type of service definition in key message that said mirror image data is carried and the said data service classification policy, confirm the type of service of the data of transmitting through said data exchange module of statistics;
Said key message comprise following one or more:
Source address, destination address, source port number, destination slogan and protocol type.
3. according to claim 1 or claim 2 device is characterized in that,
Said authorization data administration module also is used to store the data forwarding control law;
Said data exchange module, the data that are used to transmit between equipment for surfing the net and the communication network further comprise:
Said data exchange module is used for transmitting the data between equipment for surfing the net and the communication network according to said data forwarding control law.
4. device as claimed in claim 3 is characterized in that,
The data forwarding control law of said authorization data administration module storage further comprises coin free service forwarding control law;
Said authorization data administration module also is used to store the user prepayment remaining sum;
Said flow information statistic of classification module; Also be used for behind the traffic fee of the forwarding data of counting statistics; Upgrade the user prepayment remaining sum of said authorization data administration module storage; And when said user prepayment remaining sum is zero, notifies said data exchange module to transmit control law and transmit the data between equipment for surfing the net and the communication network according to said coin free service.
5. device as claimed in claim 4 is characterized in that said device also comprises display module,
Said display module is used for showing charge on traffic information through display screen;
Said charge on traffic information comprises: user prepayment remaining sum and traffic fee are used.
6. device as claimed in claim 5 is characterized in that,
Said authorization data administration module also is used to store the alarming threshold of said balances of advance payments;
Said device also comprises the balances of advance payments alarm module;
Said pre-payment alarm module is used for monitoring the user prepayment remaining sum that said authorization data administration module is stored, and when the user prepayment remaining sum reaches its preset alarm thresholding, changes the color of display screen in the display module; And when there is a plurality of preset alarming threshold in the user prepayment remaining sum, when the user prepayment remaining sum of in said authorization data administration module, storing is reduced to another alarming threshold from its residing alarming threshold, send the alarm prompt sound.
7. online charge on traffic method is characterized in that said method comprises:
Receive data service classification policy and data service billing strategy; The definition of said data service classification policy record data type of service; The corresponding relation of said data service billing strategy record data type of service and charging policy;
Transmit the data between equipment for surfing the net and the communication network;
Confirm the type of service of the forwarding data of statistics according to said data service classification policy;
Confirm and the corresponding charging policy of type of service of transmitting data according to said data service billing strategy;
Traffic fee according to the forwarding data of this charging policy counting statistics is used.
8. method as claimed in claim 7 is characterized in that, said type of service according to the definite forwarding data of adding up of said data service classification policy further comprises:
The mirror image data of the forwarding data of receiving and counting;
Key message and the definition of said data service classification policy data recorded type of service that said mirror image data carries are mated;
The data service classification policy data recorded type of service that coupling is consistent is as the type of service of the forwarding data of statistics;
Said key message comprise following one or more:
Source address, destination address, source port number, destination slogan and protocol type.
9. like claim 7 or 8 described methods, it is characterized in that said method also comprises:
Receive the data forwarding control law;
Data between said forwarding equipment for surfing the net and the communication network further comprise:
Transmit the data between equipment for surfing the net and the communication network according to said data forwarding control law.
10. method as claimed in claim 9 is characterized in that,
Said data forwarding control law further comprises coin free service forwarding control law;
Said method also comprises:
Receive the user prepayment remaining sum;
Behind the traffic fee of the forwarding data of counting statistics, upgrade said user prepayment remaining sum;
Judge that whether said user prepayment remaining sum is zero, when said user prepayment remaining sum is zero, transmits control law according to said coin free service and transmits the data between equipment for surfing the net and the communication network.
11. method as claimed in claim 10 is characterized in that, said method also comprises:
Show said user prepayment remaining sum and traffic fee usefulness through display screen.
12. method as claimed in claim 11 is characterized in that, said method also comprises:
Receive the alarming threshold of balances of advance payments;
Monitor said user prepayment remaining sum, judge whether said user prepayment remaining sum reaches the preset alarm thresholding; When said user prepayment remaining sum reaches said alarming threshold, change the color of said display screen; When its residing alarming threshold is reduced to another alarming threshold, send the alarm prompt sound in said user prepayment remaining sum.
CN201210197756.0A 2012-06-15 2012-06-15 A kind of surfing flow message accounting and method Expired - Fee Related CN102739409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210197756.0A CN102739409B (en) 2012-06-15 2012-06-15 A kind of surfing flow message accounting and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210197756.0A CN102739409B (en) 2012-06-15 2012-06-15 A kind of surfing flow message accounting and method

Publications (2)

Publication Number Publication Date
CN102739409A true CN102739409A (en) 2012-10-17
CN102739409B CN102739409B (en) 2018-05-01

Family

ID=46994252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210197756.0A Expired - Fee Related CN102739409B (en) 2012-06-15 2012-06-15 A kind of surfing flow message accounting and method

Country Status (1)

Country Link
CN (1) CN102739409B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916838A (en) * 2013-01-04 2014-07-09 林顶众 Implementation method and system for enabling Internet surfing services to be convenient based on WIFI and WIFI charging terminal
CN104022889A (en) * 2014-06-23 2014-09-03 中国联合网络通信集团有限公司 Method and device for charging net flow
CN104168553A (en) * 2014-08-29 2014-11-26 大唐移动通信设备有限公司 Sending and charging method and device for service messages
CN104486091A (en) * 2014-12-05 2015-04-01 中国联合网络通信集团有限公司 Charging method and device
CN104540150A (en) * 2015-01-12 2015-04-22 深圳市中兴移动通信有限公司 Mobile data traffic regulation method, device and terminal
WO2017028191A1 (en) * 2015-08-18 2017-02-23 黄冠明 Traffic-based online electronic book charging method and charging system
WO2017028192A1 (en) * 2015-08-18 2017-02-23 黄冠明 Method for pushing information when online electronic book is charged based on traffic, and charging system
CN106789123A (en) * 2017-01-10 2017-05-31 李金方 Information flow-rate IP packet classification charge methods
WO2017193303A1 (en) * 2016-05-11 2017-11-16 华为技术有限公司 Communication billing method
CN108270940A (en) * 2016-12-31 2018-07-10 中国移动通信集团陕西有限公司 A kind of method and device for notifying remaining sum
CN108282343A (en) * 2017-12-29 2018-07-13 广州贝睿信息科技有限公司 A kind of transparent billing technology of multimedia file
CN108400931A (en) * 2018-02-26 2018-08-14 广东欧珀移动通信有限公司 Multimedia message sending method, electronic device and computer readable storage medium
CN109802840A (en) * 2019-01-07 2019-05-24 重庆克让通讯有限公司 Charging management-control method, system and mobile terminal based on air passenger communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725708A (en) * 2005-06-24 2006-01-25 杭州华为三康技术有限公司 Statistical method of data stream
CN1874239A (en) * 2005-05-30 2006-12-06 华为技术有限公司 Method and system for realization of content charging
CN101001158A (en) * 2006-06-29 2007-07-18 华为技术有限公司 System and method of implementing real-time contents and flow charging and control
CN101742459A (en) * 2008-11-05 2010-06-16 华为技术有限公司 Method for processing pre-paid service and signaling transfer point equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874239A (en) * 2005-05-30 2006-12-06 华为技术有限公司 Method and system for realization of content charging
CN1725708A (en) * 2005-06-24 2006-01-25 杭州华为三康技术有限公司 Statistical method of data stream
CN101001158A (en) * 2006-06-29 2007-07-18 华为技术有限公司 System and method of implementing real-time contents and flow charging and control
CN101742459A (en) * 2008-11-05 2010-06-16 华为技术有限公司 Method for processing pre-paid service and signaling transfer point equipment

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916838A (en) * 2013-01-04 2014-07-09 林顶众 Implementation method and system for enabling Internet surfing services to be convenient based on WIFI and WIFI charging terminal
CN104022889A (en) * 2014-06-23 2014-09-03 中国联合网络通信集团有限公司 Method and device for charging net flow
CN104168553B (en) * 2014-08-29 2017-11-03 大唐移动通信设备有限公司 A kind of service message is sent and charging method and device
CN104168553A (en) * 2014-08-29 2014-11-26 大唐移动通信设备有限公司 Sending and charging method and device for service messages
CN104486091A (en) * 2014-12-05 2015-04-01 中国联合网络通信集团有限公司 Charging method and device
CN104540150A (en) * 2015-01-12 2015-04-22 深圳市中兴移动通信有限公司 Mobile data traffic regulation method, device and terminal
CN104540150B (en) * 2015-01-12 2019-10-08 努比亚技术有限公司 A kind of mobile data flow control method, apparatus and terminal
WO2017028192A1 (en) * 2015-08-18 2017-02-23 黄冠明 Method for pushing information when online electronic book is charged based on traffic, and charging system
WO2017028191A1 (en) * 2015-08-18 2017-02-23 黄冠明 Traffic-based online electronic book charging method and charging system
WO2017193303A1 (en) * 2016-05-11 2017-11-16 华为技术有限公司 Communication billing method
CN108270940A (en) * 2016-12-31 2018-07-10 中国移动通信集团陕西有限公司 A kind of method and device for notifying remaining sum
CN108270940B (en) * 2016-12-31 2020-10-27 中国移动通信集团陕西有限公司 Method and device for informing balance
CN106789123A (en) * 2017-01-10 2017-05-31 李金方 Information flow-rate IP packet classification charge methods
CN108282343A (en) * 2017-12-29 2018-07-13 广州贝睿信息科技有限公司 A kind of transparent billing technology of multimedia file
CN108400931A (en) * 2018-02-26 2018-08-14 广东欧珀移动通信有限公司 Multimedia message sending method, electronic device and computer readable storage medium
CN109802840A (en) * 2019-01-07 2019-05-24 重庆克让通讯有限公司 Charging management-control method, system and mobile terminal based on air passenger communication
CN109802840B (en) * 2019-01-07 2022-03-29 重庆克让通讯有限公司 Charging management and control method and system based on aviation passenger communication and mobile terminal

Also Published As

Publication number Publication date
CN102739409B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN102739409B (en) A kind of surfing flow message accounting and method
KR101894919B1 (en) Methods and apparatuses for service layer charging correlation with underlying networks
CN101488864B (en) Fee charging system and method used for communication network
EP3087702B1 (en) Providing toll-free application data access
EP3014806B1 (en) Providing toll-free application data access
US11915330B2 (en) Secure tokens for controlling access to a resource in a resource distribution network
CN100561929C (en) Implementation Method of Broadband Postpaid Service
CN101479989B (en) Charging of GPRS traffic for roaming mobiles by performing traffic counting at the user terminal
EP3087724B1 (en) Server, electronic device, computer programs and methods to push toll-free applications to a user device
CA3157850C (en) Secure tokens for controlling access to a resource in a resource distribution network
KR20190092441A (en) Methods to enable flexible charging at the M2M IOT service layer
CN103780401A (en) Charging method and system
JP7607039B2 (en) Secure tokens for controlling access to resources in a resource distribution network - Patents.com
CN101272259A (en) Media stream information access billing method and system
HK40074723B (en) Secure tokens for controlling access to a resource in a resource distribution network
HK40074723A (en) Secure tokens for controlling access to a resource in a resource distribution network
OA18993A (en) Providing toll-free application data access.
OA18992A (en) Method to push toll-free applications to a user device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180501

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