CN101707525A - Charging method and device - Google Patents
Charging method and device Download PDFInfo
- Publication number
- CN101707525A CN101707525A CN200910174626A CN200910174626A CN101707525A CN 101707525 A CN101707525 A CN 101707525A CN 200910174626 A CN200910174626 A CN 200910174626A CN 200910174626 A CN200910174626 A CN 200910174626A CN 101707525 A CN101707525 A CN 101707525A
- Authority
- CN
- China
- Prior art keywords
- accounting server
- client
- charge information
- user
- determines
- 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)
- Meter Arrangements (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a charging method and a charging device, relates to the field of data communication, and aims to solve the problem that a charging server in the prior art cannot acquire complete charging information. The method comprises that: the charging server receives the charging information sent by a client, wherein the charging information is recorded by the client for a subscriber when the communication between the client and the charging server is interrupted; the charging server stores the charging information in a charging record of the subscriber; and the charging server performs charging according to the stored charging information. The technical scheme provided by the invention can be applied to the data communication for charging management.
Description
Technical field
The present invention relates to data communication field, relate in particular to a kind of charging method and device.
Background technology
When user's access band, need carry out accounting management to described user.In the prior art, main remote customer dialing authentication (the Remote Authentication Dial In User Service of system that adopts, radius) charging way is chargeed, described mode needs the radius accounting server that the user is carried out long-range charging, its detailed process is as follows: client receives user's charging request message and described charging request message is sent to the radius accounting server, and described radius accounting server carries out accounting management according to described charging request message to described user.Adopt above-mentioned charging way: when described radius accounting server and client communication interruption, as described the radius server can't normally move, the link fails between described radius accounting server and the client etc., described radius accounting server can't get access to the charging request message, just can not obtain described user's charge information, thereby can't charge to the user, influence the integrality and the accuracy of charge information.
Summary of the invention
The embodiment of the invention provides a kind of charging method and device, the charge information in the time of can making accounting server get access to client and accounting server communication disruption.
For achieving the above object, the invention provides following technical scheme:
A kind of charging method comprises:
Accounting server receives the charge information that client sends, and described charge information is that described client is the charge information of user record when the communication disruption of described client and described accounting server;
Described accounting server is preserved described charge information in described user's station message recording;
Described accounting server charges according to the charge information of described preservation.
Described accounting server charges according to the charge information of described preservation.
A kind of accounting server comprises:
Receiver module is used to receive the charge information that client sends, and described charge information is to be the charge information of described user record when the communication disruption of described client and described accounting server;
Preserve module, be used for preserving the charge information that described receiver module receives in described user's station message recording;
Accounting module is used for chargeing according to the charge information that described preservation module is preserved.
A kind of client comprises:
Whether determination module is used for communicating by letter of client and described accounting server and interrupts;
Logging modle is used for when described determination module is determined the communication disruption of described client and described accounting server described client records user's charge information;
Sending module is used for after described determination module is determined the communication recovery of described client and described accounting server, sends the charge information of described logging modle record to described accounting server.
Charging method that the embodiment of the invention provides and device, accounting server obtains the charge information of user when client and accounting server communication disruption, according to client is that the charge information that user record also sends charges, guarantee the integrality and the accuracy of customer charging information, improved the service quality of network.
Description of drawings
The flow chart of a kind of charging method that Fig. 1 provides for the embodiment of the invention;
The flow chart of a kind of charging method that Fig. 2 provides for another embodiment of the present invention;
Fig. 3 is the flow chart of middle step 201 embodiment illustrated in fig. 2;
Fig. 4 is the flow chart of middle step 202 embodiment illustrated in fig. 2;
The structural representation of the accounting server that Fig. 5 provides for the embodiment of the invention;
The structural representation of the client that Fig. 6 provides for the embodiment of the invention;
Fig. 7 is the structural representation of middle determination module embodiment illustrated in fig. 6;
Fig. 8 be embodiment illustrated in fig. 7 described in first structural representation of determining submodule;
Fig. 9 be embodiment illustrated in fig. 8 described in the structural representation of logging modle;
Figure 10 be embodiment illustrated in fig. 9 described in the structural representation of record sub module.
Embodiment
Below in conjunction with accompanying drawing charging method and the device that the embodiment of the invention provides described in detail.
As shown in Figure 1, the embodiment of the invention provides a kind of charging method, comprising:
The charging method that the embodiment of the invention provides, accounting server obtains the charge information when client and accounting server communication disruption, according to client is that the charge information that user record also sends charges, guarantee the integrality and the accuracy of customer charging information, improved the service quality of network.
As shown in Figure 2, the charging method that another embodiment of the present invention provides comprises:
Wherein, described client determines whether this locality interrupts specifically comprising the steps with communicating by letter of radius accounting server, as shown in Figure 3:
Wherein said frequency threshold value can obtain according to statistic, also can be provided with according to technical staff's experience, certainly, also according to the practical operation situation of network, described frequency threshold value is adjusted.
If described transmission number of times is greater than frequency threshold value, execution in step 2014; Otherwise, execution in step 2012.
When does not interrupt with communicating by letter of described radius accounting server definite this locality, execution in step 203.
When determining the communication disruption of this locality and described radius accounting server, execution in step 202.
Wherein, the described user's of described client records charge information specifically comprises the steps, as shown in Figure 4:
Concrete, described client is set up a database that is used to manage charge information in advance in this locality, a plurality of users' of storage charge information in the described database.When need be when described database adds new charge information, for the ease of the maintenance and management of database, described client need determine whether to have existed in the current database described user's station message recording.
If there is execution in step 2023; Otherwise, execution in step 2022.
Concrete, resolve described user's charge information for the ease of the radius accounting server, described client can be obtained the file memory format of charge information in advance from described radius accounting server, according to the described file memory format that obtains, store described user's charge information.
Concrete, described client can transmit transmission protocol by file, and (File Transfer Protocol FTP) waits host-host protocol to send the charge information of record.
The present invention, but is not limited thereto for the radius accounting server is that example describes with the accounting server, adopts the accounting server of long-range charging suitable equally for other, and is similar with flow process because of implementation method, repeats no more herein.
The charging method that the embodiment of the invention provides, user's charge information when recording and sending this locality and accounting server communication disruption, make charge information when accounting server gets access to local and accounting server communication disruption, guarantee the integrality and the accuracy of customer charging information, improved the service quality of network; Transmission number of times by record charging request message, when the transmission number of times reaches frequency threshold value, whether respond described charging request message according to accounting server, determine the communications status of local and accounting server, implementation method is simple and accurate, overcome and whether respond a charging request message by accounting server in the prior art communications status is judged, the problem of error in judgement may occur; When the charge information of recording user, determine whether to exist described user's station message recording, be convenient to local maintenance and management to charge information; According to the file memory format of accounting server to charge information, be convenient to the charge information that accounting server is resolved local record, local operating efficiency is provided.
As shown in Figure 5, a kind of accounting server that the embodiment of the invention provides comprises:
The accounting server that the embodiment of the invention provides, obtain the charge information of user when client and accounting server communication disruption, according to client is that the charge information that user record also sends charges, and guarantees the integrality and the accuracy of customer charging information, has improved the service quality of network.
As shown in Figure 6, a kind of client that the embodiment of the invention provides comprises:
Whether determination module 601 is used for communicating by letter of client and described accounting server and interrupts;
Sending module 603 is used for sending the charge information of described logging modle 602 records to described accounting server after described determination module 601 is determined the communication recovery of described client and described accounting server.
Optionally, as shown in Figure 7, for obtaining the communications status of local and accounting server, described determination module 601 comprises:
Send submodule 701, be used for sending the charging request message to described accounting server;
First determines submodule 702, is used for according to the response message of described accounting server to the charging request message, determines whether communicating by letter of this locality and described accounting server interrupts.
Further, as shown in Figure 8, for accurately obtaining the communications status of local and accounting server, described first determines that submodule 702 comprises:
Acquiring unit 801 is used to obtain the transmission number of times of described charging request message;
First determining unit 802 is used for determining whether to receive the response message of described accounting server to described charging request message when the transmission number of times that described acquiring unit 801 obtains reaches frequency threshold value;
Second determining unit 803 is used for when described first determining unit 802 determines to receive accounting server to the response message of charging request message, determines that described client and communicating by letter of described accounting server do not interrupt; Otherwise, determine the communication disruption of described client and described accounting server.
Further, as shown in Figure 9, for ease of the maintenance and management of this locality to charge information, described logging modle 602 may further include:
Second determines submodule 901, is used for determining whether described client exists described user's station message recording;
Set up submodule 902, be used for when described second determines that submodule determines that there is not described user's station message recording in this locality, setting up described user's station message recording;
Further, as shown in figure 10, resolve charge information for ease of accounting server, described record sub module 903 may further include:
Acquiring unit 1001 is used for obtaining from accounting server the file memory format of charge information;
The client that the embodiment of the invention provides, user's charge information when recording and sending this locality and accounting server communication disruption, make charge information when accounting server gets access to local and accounting server communication disruption, guarantee the integrality and the accuracy of customer charging information, improved the service quality of network; Transmission number of times by record charging request message, when the transmission number of times reaches frequency threshold value, whether respond described charging request message according to accounting server, determine the communications status of local and accounting server, implementation method is simple and accurate, overcome and whether respond a charging request message by accounting server in the prior art communications status is judged, the problem of error in judgement may occur; When the charge information of recording user, determine whether to exist described user's station message recording, be convenient to local maintenance and management to charge information; According to the file memory format of accounting server to charge information, be convenient to the charge information that accounting server is resolved local record, local operating efficiency is provided.
Technical solutions according to the invention are not limited to embodiment described in the embodiment, and other execution mode that those skilled in the art's technical scheme according to the present invention draws belongs to technological innovation scope of the present invention equally.Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (12)
1. a charging method is characterized in that, comprising:
Accounting server receives the charge information that client sends, and described charge information is that described client is the charge information of user record when the communication disruption of described client and described accounting server;
Described accounting server is preserved described charge information in described user's station message recording;
Described accounting server charges according to the charge information of described preservation.
2. method according to claim 1 is characterized in that, described accounting server receives the charge information that client sends, and comprising:
Described client determines whether communicating by letter of described client and described accounting server interrupts;
When the communication disruption of described client and described accounting server, described client records user's charge information;
Behind the communication recovery of described client and described accounting server, described client sends the charge information of described record to described accounting server.
3. method according to claim 2 is characterized in that, described client determines that whether communicating by letter of described client and described accounting server interrupts, and comprising:
Described client sends the charging request message to described accounting server;
Described client determines according to the response message of described accounting server to the charging request message whether communicating by letter of described client and described accounting server interrupts.
4. method according to claim 3 is characterized in that, and is described according to the response message of described accounting server to the charging request message, determines that whether communicating by letter of this locality and described accounting server interrupts, and comprising:
Described client is obtained the transmission number of times of described charging request message;
When described client reaches frequency threshold value at described transmission number of times, determine whether to receive the response message of described accounting server to described charging request message;
If described client receives the response message of accounting server to the charging request message, determine that described client and communicating by letter of described accounting server do not interrupt; Otherwise, determine the communication disruption of described client and described accounting server.
5. method according to claim 2 is characterized in that, described client records user's charge information comprises:
Described client is determined the local station message recording that whether has described user;
If exist, described client writes down described user's charge information in the described already present station message recording; Otherwise described client is set up described user's station message recording, the described user's of record charge information in the station message recording of described foundation.
6. method according to claim 5 is characterized in that, described client writes down described user's charge information in the described station message recording that has existed or set up, comprising:
Described client is obtained the file memory format of charge information from accounting server;
Described client is stored described user's charge information according to the described file memory format that obtains.
7. an accounting server is characterized in that, comprising:
Receiver module is used to receive the charge information that client sends, and described charge information is to be the charge information of described user record when the communication disruption of described client and described accounting server;
Preserve module, be used for preserving the charge information that described receiver module receives in described user's station message recording;
Accounting module is used for chargeing according to the charge information that described preservation module is preserved.
8. a client is characterized in that, comprising:
Whether determination module is used for communicating by letter of client and described accounting server and interrupts;
Logging modle is used for when described determination module is determined the communication disruption of described client and described accounting server described client records user's charge information;
Sending module is used for after described determination module is determined the communication recovery of described client and described accounting server, sends the charge information of described logging modle record to described accounting server.
9. client according to claim 8 is characterized in that, described determination module comprises:
Send submodule, be used for sending the charging request message to described accounting server;
First determines submodule, is used for according to the response message of described accounting server to the charging request message, determines whether communicating by letter of this locality and described accounting server interrupts.
10. client according to claim 9 is characterized in that, described first determines that submodule comprises:
Acquiring unit is used to obtain the transmission number of times of described charging request message;
First determining unit when transmission number of times that is used for obtaining at described acquiring unit reaches frequency threshold value, determines whether to receive the response message of described accounting server to described charging request message;
Second determining unit is used for when described first determining unit determines to receive accounting server to the response message of charging request message, determines that described client and communicating by letter of described accounting server do not interrupt; Otherwise, determine the communication disruption of described client and described accounting server.
11. client according to claim 8 is characterized in that, described logging modle comprises:
Second determines submodule, is used for determining whether described client exists described user's station message recording;
Set up submodule, be used for when described second determines that submodule determines that there is not described user's station message recording in this locality, setting up described user's station message recording;
Record sub module is used for the charge information the described user of described already present station message recording record, perhaps at the described charge information of setting up the described user of record in the station message recording that submodule sets up.
12. client according to claim 11 is characterized in that, described record sub module comprises:
Acquiring unit is used for obtaining from accounting server the file memory format of charge information;
Memory cell is used for the file memory format that obtains according to described acquiring unit, stores described user's charge information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910174626A CN101707525A (en) | 2009-09-18 | 2009-09-18 | Charging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910174626A CN101707525A (en) | 2009-09-18 | 2009-09-18 | Charging method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101707525A true CN101707525A (en) | 2010-05-12 |
Family
ID=42377721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910174626A Pending CN101707525A (en) | 2009-09-18 | 2009-09-18 | Charging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101707525A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011150688A1 (en) * | 2010-06-02 | 2011-12-08 | 中兴通讯股份有限公司 | Charging method and system for prepaid service |
CN102685116A (en) * | 2012-04-25 | 2012-09-19 | 中兴通讯股份有限公司 | Processing method and processing device for counting middle message |
CN109479007A (en) * | 2016-07-29 | 2019-03-15 | 华为技术有限公司 | A kind of data service control method, relevant device and system |
-
2009
- 2009-09-18 CN CN200910174626A patent/CN101707525A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011150688A1 (en) * | 2010-06-02 | 2011-12-08 | 中兴通讯股份有限公司 | Charging method and system for prepaid service |
CN102685116A (en) * | 2012-04-25 | 2012-09-19 | 中兴通讯股份有限公司 | Processing method and processing device for counting middle message |
CN109479007A (en) * | 2016-07-29 | 2019-03-15 | 华为技术有限公司 | A kind of data service control method, relevant device and system |
CN109479007B (en) * | 2016-07-29 | 2021-05-11 | 华为技术有限公司 | Data service control method, related equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102572799B (en) | Method for acquiring network connection information of client terminal accessing Wi-Fi spot and terminal | |
CN111064634B (en) | Method and device for monitoring mass Internet of things terminal online state | |
WO2005122601B1 (en) | Multimode roaming mobile devices | |
CN102892089B (en) | Message pushing method, device and system | |
CN101754296B (en) | Method, system and network equipment for realizing the management of wireless access network information | |
CN109118360B (en) | Block chain account checking method, device, equipment and storage medium | |
CN111224846B (en) | Flow monitoring method and device applied to power acquisition system | |
RU2005125201A (en) | ACCESS POINT SELECTION IN A WIRELESS COMMUNICATION SYSTEM | |
CN103828441A (en) | Identification-assisted wireless network connections | |
CN106171019B (en) | Determine the method, apparatus, terminal and server of terminal roaming status | |
CN1943265B (en) | User guiding system, mobile communication terminal, and user guiding method | |
CN101695024A (en) | Method, system, and device for information push | |
CN103546960A (en) | Positioning method and system | |
CN103491522A (en) | Terminal adaption method and device | |
TW201233211A (en) | Caching at the wireless tower with remote charging services | |
CN104167216A (en) | Audio frequency file sharing method, device and sound box | |
CN101707525A (en) | Charging method and device | |
CN1499855B (en) | Access point and method for connecting client-side and wide area network by the access point | |
CN107580365B (en) | Region management method and system for satellite communication | |
CN103581846A (en) | User business card updating method and system | |
CN100499637C (en) | Method for obtaining information in communication system | |
US8396469B2 (en) | Association of a mobile user identifier and a radio identifier of a mobile phone | |
CN103581953A (en) | Association method for wireless drive test data and signaling monitoring data | |
CN103155486A (en) | Robot log saving method, device and system | |
CN101883356A (en) | Traffic prompt method and traffic prompt 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 | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20100512 |