CN101977116A - Flow charging method and client side - Google Patents
Flow charging method and client side Download PDFInfo
- Publication number
- CN101977116A CN101977116A CN 201010522528 CN201010522528A CN101977116A CN 101977116 A CN101977116 A CN 101977116A CN 201010522528 CN201010522528 CN 201010522528 CN 201010522528 A CN201010522528 A CN 201010522528A CN 101977116 A CN101977116 A CN 101977116A
- Authority
- CN
- China
- Prior art keywords
- message
- network segment
- flow
- accounting server
- client
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a flow charging method and a client side. The method comprises: a client side monitors a reception message and a sending message, determines network segments to which the messages belong according to a preset strategy, and adds the flow information of the reception message and the sending message to the flow of the network segments to which the messages belong; and according to the charging strategy information of a charging server, the client side sends the obtained flow which corresponds to the network segments to the charging server to charge according to the flow corresponding to the network segments. In the invention, the client side monitors the reception message and the sending message, collects self flow information and reports to the charging server so as to reduce the burden for a gateway to carry out flow statistics, bring convenience for improving the network access efficiency and avoid network bottleneck caused by flow statistics by the gateway.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and client of charge on traffic.
Background technology
Charge on traffic is a kind of mode of the network billing of generally using.The charge on traffic system of present stage cooperates by gateway and accounting server basically and realizes.The user is by authenticating online, and the visit outer net is added up this user's flow by gateway at this moment, regularly the data on flows of adding up is sent to accounting server then.Gateway normally writes down flow according to source IP address and purpose IP address, and these records temporarily leave in the internal memory of gateway, and the regular then online flow information with the user reports accounting server.By accounting server this user's expense is calculated.
As shown in Figure 1a, the networking structure for existing charge on traffic system comprises Authentication Client, gateway, Verification System and charge system (accounting server).Wherein, Verification System and charge system are normally synthesized on a station server.The realization of chargeing is mainly finished by two steps: gateway regularly sends billing update packet and accounting completion packet to accounting server, and accounting server charges according to billing update packet and the accounting completion packet that gateway sends.Concrete charging flow comprises: behind the Authentication Client authentication success, gateway is set up a session for each user, carries out communication with accounting server then.Gateway regularly sends billing update packet to accounting server according to metering period, wherein carries flow information.Flow information comprises inflow message byte number, flows out message byte number and source IP address and purpose IP address field.Accounting server charges to this user according to the flow information and the IP address that report.
Because all flow informations are unified on the gateway and add up, the gateway burden is very big, causes easily failing in time to handle flow information and forms network bottleneck.
Summary of the invention
The invention provides a kind of method and client of charge on traffic, carry out self traffic statistics, thereby alleviate the burden of gateway, be of value to and improve access to netwoks efficient by client.
The invention provides a kind of method of charge on traffic, comprising:
Client is intercepted and is received message and send message, determines the network segment under the message according to preset strategy, the flow that receives message and send message is joined the flow of the network segment under it;
Described client, is chargeed with network segment corresponding flow for described accounting server basis sending to described accounting server with network segment corresponding flow of obtaining according to the charging policy information of accounting server.
Described determine message according to preset strategy under the network segment comprise:
Source IP address and mask according to described reception message carry out XOR, obtain the residing network segment of described source IP address, determine the network segment that described reception message is affiliated;
Purpose IP address and mask according to described transmission message carry out XOR, obtain the residing network segment in described purpose IP address, determine the network segment that described transmission message is affiliated.
Described client is intercepted and is received before message and the transmission message, also comprises:
Described client receives charging policy information and the network segment information that accounting server issues.
Described client is according to the charging policy information of server, and sending to accounting server with network segment corresponding flow of obtaining comprised:
Described client will be packaged into billing update packet with network segment corresponding flow according to charging policy information, periodically send to described accounting server.
Also comprise:
When described client rolled off the production line, described client sent accounting completion packet to described accounting server;
Perhaps
When described accounting server is not received the billing update packet of described client continuously, determine that according to pre-conditioned described client rolls off the production line.
The invention provides a kind of client, comprising:
Message network segment determining unit is used to intercept receiving message and sending message, determines the network segment under the message according to preset strategy;
The traffic statistics unit is connected with described message network segment determining unit, and the flow that is used for will receiving message and send message joins the flow of the network segment under it;
The flow transmitting element, be connected with described traffic statistics unit, be used for charging policy information,, charge with network segment corresponding flow for described accounting server basis with sending to described accounting server of obtaining with network segment corresponding flow according to described accounting server.
Described message network segment determining unit also is used for:
Source IP address and mask according to described reception message carry out XOR, obtain the residing network segment of described source IP address, determine the network segment that described reception message is affiliated;
Purpose IP address and mask according to described transmission message carry out XOR, obtain the residing network segment in described purpose IP address, determine the network segment that described transmission message is affiliated.
Also comprise:
Receiving element is connected with described message network segment determining unit, is used to receive charging policy information and the network segment information that accounting server issues.
Described flow transmitting element also is used for:
To be packaged into billing update packet with network segment corresponding flow according to charging policy information, periodically send to described accounting server.
Also comprise:
Transmitting element is connected with described flow transmitting element, is used for when described equipment rolls off the production line, and sends accounting completion packet to described accounting server.
Compared with prior art, the present invention has the following advantages at least:
Client is intercepted and is received message and send message, adds up self flow information and reports accounting server, has therefore reduced the burden that gateway carries out traffic statistics, is of value to and improves access to netwoks efficient, avoids gateway to carry out the network bottleneck that traffic statistics cause.
Description of drawings
Fig. 1 a is the networking structure schematic diagram of charge on traffic system in the prior art;
Fig. 1 b is the schematic flow sheet of the method for charge on traffic provided by the invention;
Fig. 2 is another schematic flow sheet of the method for charge on traffic provided by the invention;
Fig. 3 is the structural representation of client provided by the invention.
Embodiment
Core concept of the present invention is: by client statistics self flow information and report accounting server, reduce the traffic statistics burden of gateway.
The invention provides a kind of method of charge on traffic, shown in Fig. 1 b, may further comprise the steps:
In this method, client is intercepted and is received message and send message, adds up self flow information and reports accounting server, has reduced the burden that gateway carries out traffic statistics, is of value to and improves access to netwoks efficient, avoids gateway to carry out the network bottleneck that traffic statistics cause.
The present invention also provides a kind of method of charge on traffic, as shown in Figure 2, may further comprise the steps:
Step 201, client initiates to reach the standard grade authentication to access device.
This authentication mode can be protocol authentication modes such as 802.1x, Portal or VPN1.
Step 202, behind the authentication success, client sends to charge to accounting server and begins request.
Concrete, client receives the IP address of the accounting server of certificate server transmission behind authentication success, send to charge to accounting server according to this IP address to begin request; Perhaps the IP address of pre-configured accounting server on the client sends charging according to this IP address to accounting server and begins request; The form of obtaining of this IP address is not limited to above two kinds, for example can also be after the client certificate success IP address of accounting server to be sent to client by gateway.
Step 203, accounting server send the request back message using that charges, and wherein carry charging policy information and network segment information.
Wherein, charging policy information comprises flow, the network segment and flow information report cycle, and accounting server can charge respectively at the different network segments.
Need to prove that the network segment among the present invention can segment according to actual needs, be not limited to two kinds of dividing mode of Intranet of the prior art and outer net.
Step 204, client are intercepted to receive message and send message and are carried out traffic statistics.
Concrete, client is intercepted network interface card transmitting-receiving message, and each is received message, carry out XOR according to its source IP address and mask, obtain the residing network segment of source IP address, determine to receive the affiliated network segment of message, the flow that receives message is joined in the inflow flow of this network segment.Each is sent message, carry out XOR, obtain the residing network segment in purpose IP address, determine to send the affiliated network segment of message, the flow that sends message is joined in the outflow flow of this network segment according to the purpose IP address and the mask that send message.
Step 205, client, are chargeed with network segment corresponding flow by the accounting server basis sending to accounting server with network segment corresponding flow of obtaining according to the charging policy information of accounting server.
Concrete, client will be packaged into billing update packet with network segment corresponding flow according to charging policy information, periodically send to accounting server.Comprise the byte number of the message of reception, the information such as byte number of transmission message in the billing update packet.
Step 206, accounting server returns the charging back message using according to the customer flow information calculations expense that client reports.
Step 207 when client rolls off the production line, sends accounting completion packet to accounting server.
Need to prove, consider that there is the situation of abnormal off-line (for example outage) in client, therefore, in the method provided by the invention, when accounting server is not received the billing update packet of client continuously, roll off the production line according to pre-conditioned definite client, this is pre-conditioned can be time of the billing update packet of not receiving continuously client or number of times etc.In addition, also can respond to determine connection status between client and the accounting server, when accounting server can't receive the heartbeat message of client, can judge that equally client rolls off the production line by heartbeat message and heartbeat.
In addition, among the present invention, after client certificate passed through, if the driving of client itself can not be carried out traffic statistics, client can also be used to carry out the driving of traffic statistics to the accounting server request, used the driving that obtains to carry out traffic statistics then.Certainly, this driving and being limited to from the accounting server request obtains.
By adopting method provided by the invention, client is intercepted and is received message and send message, adds up self flow information and reports accounting server, has therefore reduced the burden that gateway carries out traffic statistics, be of value to and improve access to netwoks efficient, avoid gateway to carry out the network bottleneck that traffic statistics cause.
Based on the technical conceive identical with method shown in Figure 2 with above-mentioned Fig. 1 b, the present invention also provides a kind of client, this client can carry out with Fig. 1 b and method shown in Figure 2 in the client identical functions, as shown in Figure 3, this client comprises:
Message network segment determining unit 11 is used to intercept receiving message and sending message, determines the network segment under the message according to preset strategy;
Flow transmitting element 13, be connected with described traffic statistics unit 12, be used for charging policy information,, charge with network segment corresponding flow for described accounting server basis with sending to described accounting server of obtaining with network segment corresponding flow according to described accounting server.
Described message network segment determining unit 11 also is used for:
Source IP address and mask according to described reception message carry out XOR, obtain the residing network segment of described source IP address, determine the network segment that described reception message is affiliated;
Purpose IP address and mask according to described transmission message carry out XOR, obtain the residing network segment in described purpose IP address, determine the network segment that described transmission message is affiliated.
Also comprise:
Receiving element 14 is connected with described message network segment determining unit 11, is used to receive charging policy information and the network segment information that accounting server issues.
Described flow transmitting element 13 also is used for:
To be packaged into billing update packet with network segment corresponding flow according to charging policy information, periodically send to described accounting server.
Also comprise:
Transmitting element 15 is connected with described flow transmitting element 13, is used for when described equipment rolls off the production line, and sends accounting completion packet to described accounting server.
Equipment provided by the invention is intercepted and is received message and send message, add up self flow information and report accounting server, therefore reduce the burden that gateway carries out traffic statistics, be of value to and improve access to netwoks efficient, avoided gateway to carry out the network bottleneck that traffic statistics cause.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (10)
1. the method for a charge on traffic is characterized in that, comprising:
Client is intercepted and is received message and send message, determines the network segment under the message according to preset strategy, the flow that receives message and send message is joined the flow of the network segment under it;
Described client, is chargeed with network segment corresponding flow for described accounting server basis sending to described accounting server with network segment corresponding flow of obtaining according to the charging policy information of accounting server.
2. the method for claim 1 is characterized in that, described determine message according to preset strategy under the network segment comprise:
Source IP address and mask according to described reception message carry out XOR, obtain the residing network segment of described source IP address, determine the network segment that described reception message is affiliated;
Purpose IP address and mask according to described transmission message carry out XOR, obtain the residing network segment in described purpose IP address, determine the network segment that described transmission message is affiliated.
3. method as claimed in claim 1 or 2 is characterized in that, described client is intercepted and received before message and the transmission message, also comprises:
Described client receives charging policy information and the network segment information that accounting server issues.
4. the method for claim 1 is characterized in that, described client is according to the charging policy information of server, and sending to accounting server with network segment corresponding flow of obtaining comprised:
Described client will be packaged into billing update packet with network segment corresponding flow according to charging policy information, periodically send to described accounting server.
5. as claim 1 or 2 or 4 described methods, it is characterized in that, also comprise:
When described client rolled off the production line, described client sent accounting completion packet to described accounting server;
Perhaps
When described accounting server is not received the billing update packet of described client continuously, determine that according to pre-conditioned described client rolls off the production line.
6. a client is characterized in that, comprising:
Message network segment determining unit is used to intercept receiving message and sending message, determines the network segment under the message according to preset strategy;
The traffic statistics unit is connected with described message network segment determining unit, and the flow that is used for will receiving message and send message joins the flow of the network segment under it;
The flow transmitting element, be connected with described traffic statistics unit, be used for charging policy information,, charge with network segment corresponding flow for described accounting server basis with sending to described accounting server of obtaining with network segment corresponding flow according to described accounting server.
7. client as claimed in claim 6 is characterized in that, described message network segment determining unit also is used for:
Source IP address and mask according to described reception message carry out XOR, obtain the residing network segment of described source IP address, determine the network segment that described reception message is affiliated;
Purpose IP address and mask according to described transmission message carry out XOR, obtain the residing network segment in described purpose IP address, determine the network segment that described transmission message is affiliated.
8. as claim 6 or 7 described clients, it is characterized in that, also comprise:
Receiving element is connected with described message network segment determining unit, is used to receive charging policy information and the network segment information that accounting server issues.
9. client as claimed in claim 6 is characterized in that, described flow transmitting element also is used for:
To be packaged into billing update packet with network segment corresponding flow according to charging policy information, periodically send to described accounting server.
10. as claim 6 or 7 or 9 described clients, it is characterized in that, also comprise:
Transmitting element is connected with described flow transmitting element, is used for when described equipment rolls off the production line, and sends accounting completion packet to described accounting server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010522528 CN101977116A (en) | 2010-10-28 | 2010-10-28 | Flow charging method and client side |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010522528 CN101977116A (en) | 2010-10-28 | 2010-10-28 | Flow charging method and client side |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101977116A true CN101977116A (en) | 2011-02-16 |
Family
ID=43576965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010522528 Pending CN101977116A (en) | 2010-10-28 | 2010-10-28 | Flow charging method and client side |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101977116A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103561354A (en) * | 2013-10-29 | 2014-02-05 | 北京国双科技有限公司 | Method and device for calculating and processing video smoothness |
CN104994230A (en) * | 2015-06-30 | 2015-10-21 | 北京奇虎科技有限公司 | Communication method for mobile terminal, mobile terminal and system |
CN105939284A (en) * | 2016-01-08 | 2016-09-14 | 杭州迪普科技有限公司 | Message control strategy matching method and device |
CN106878030A (en) * | 2016-12-07 | 2017-06-20 | 新华三技术有限公司 | A kind of charging method and device |
WO2017185741A1 (en) * | 2016-04-26 | 2017-11-02 | 上海斐讯数据通信技术有限公司 | Method and device for optimizing synchronisation of network tariff index on access authentication page |
CN107896154A (en) * | 2017-12-28 | 2018-04-10 | 新华三技术有限公司 | Reach the standard grade authentication and accounting method, apparatus and access server |
CN108366000A (en) * | 2018-02-28 | 2018-08-03 | 新华三技术有限公司 | Keep Alive Packet exchange method, device, communication equipment and communication system |
CN109547223A (en) * | 2018-11-15 | 2019-03-29 | 北京首信科技股份有限公司 | The method and apparatus of information processing in telecommunications IPTV network |
WO2022037049A1 (en) * | 2020-08-18 | 2022-02-24 | 华为技术有限公司 | Method and apparatus for keeping user terminal alive |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050276271A1 (en) * | 2002-12-07 | 2005-12-15 | Huawei Technologies Co., Ltd. | WLAN service system and method for charging based on user data flow |
CN1725708A (en) * | 2005-06-24 | 2006-01-25 | 杭州华为三康技术有限公司 | Statistical method of data stream |
CN101060414A (en) * | 2007-05-25 | 2007-10-24 | 中兴通讯股份有限公司 | MBMS charging method according to the traffic volume and system |
-
2010
- 2010-10-28 CN CN 201010522528 patent/CN101977116A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050276271A1 (en) * | 2002-12-07 | 2005-12-15 | Huawei Technologies Co., Ltd. | WLAN service system and method for charging based on user data flow |
CN1725708A (en) * | 2005-06-24 | 2006-01-25 | 杭州华为三康技术有限公司 | Statistical method of data stream |
CN101060414A (en) * | 2007-05-25 | 2007-10-24 | 中兴通讯股份有限公司 | MBMS charging method according to the traffic volume and system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103561354A (en) * | 2013-10-29 | 2014-02-05 | 北京国双科技有限公司 | Method and device for calculating and processing video smoothness |
CN103561354B (en) * | 2013-10-29 | 2017-02-08 | 北京国双科技有限公司 | Method and device for calculating and processing video smoothness |
CN104994230B (en) * | 2015-06-30 | 2018-09-04 | 北京奇虎科技有限公司 | A kind of communication means, mobile terminal and system for mobile terminal |
CN104994230A (en) * | 2015-06-30 | 2015-10-21 | 北京奇虎科技有限公司 | Communication method for mobile terminal, mobile terminal and system |
CN105939284B (en) * | 2016-01-08 | 2019-01-25 | 杭州迪普科技股份有限公司 | The matching process and device of message control strategy |
CN105939284A (en) * | 2016-01-08 | 2016-09-14 | 杭州迪普科技有限公司 | Message control strategy matching method and device |
WO2017185741A1 (en) * | 2016-04-26 | 2017-11-02 | 上海斐讯数据通信技术有限公司 | Method and device for optimizing synchronisation of network tariff index on access authentication page |
CN106878030A (en) * | 2016-12-07 | 2017-06-20 | 新华三技术有限公司 | A kind of charging method and device |
CN106878030B (en) * | 2016-12-07 | 2020-02-11 | 新华三技术有限公司 | Charging method and device |
CN107896154A (en) * | 2017-12-28 | 2018-04-10 | 新华三技术有限公司 | Reach the standard grade authentication and accounting method, apparatus and access server |
CN107896154B (en) * | 2017-12-28 | 2021-02-09 | 新华三技术有限公司 | Online authentication charging method and device and access server |
CN108366000A (en) * | 2018-02-28 | 2018-08-03 | 新华三技术有限公司 | Keep Alive Packet exchange method, device, communication equipment and communication system |
CN109547223A (en) * | 2018-11-15 | 2019-03-29 | 北京首信科技股份有限公司 | The method and apparatus of information processing in telecommunications IPTV network |
WO2022037049A1 (en) * | 2020-08-18 | 2022-02-24 | 华为技术有限公司 | Method and apparatus for keeping user terminal alive |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101977116A (en) | Flow charging method and client side | |
CN102572799B (en) | Method for acquiring network connection information of client terminal accessing Wi-Fi spot and terminal | |
CN109168139B (en) | WiFi sharing method based on block chain and server | |
CN101039310B (en) | Link sharing service apparatus and communication method thereof | |
CN101039309B (en) | Link sharing service apparatus and communication method thereof | |
US20040203581A1 (en) | Method system and device for monitoring data pushed to a wireless communication device | |
US7761084B2 (en) | Systems and methods for session records correlation | |
CN105191210B (en) | Method for policy control and charge for D2D service | |
WO2015154350A1 (en) | Internet access traffic sharing method, device and terminal | |
CN103188270A (en) | Method, device and system for accessing recommended server to IP address | |
CN101217482A (en) | A method traversing NAT sending down strategy and a communication device | |
CN102035660A (en) | Internet data center (IDC) network-based service processing method, equipment and system | |
CN109391498A (en) | The management method and the network equipment of networking component | |
CN101640638A (en) | User online bandwidth adjustment method and remote authentication dial-in user server | |
CN103929784B (en) | A kind of user bandwidth control method, apparatus and system | |
CN102281611A (en) | WLAN access control method and system thereof | |
CN113873455A (en) | Flow statistical method and system, computer readable storage medium | |
CN103780401B (en) | Charging method and system | |
CN109286506B (en) | Method, system and device for charging flow | |
CN103546528A (en) | Distributed message pushing method and system | |
WO2017101211A1 (en) | Method and apparatus for accessing wireless communication system, and terminal | |
CN104394151A (en) | Method, device and system for accessing campus network into operator network | |
WO2011150688A1 (en) | Charging method and system for prepaid service | |
CN103781065A (en) | Group temporal key updating method, related devices and system | |
CN101795302A (en) | Method and system for identifying group users |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110216 |