CN104378215A - Network billing control method and network billing control device - Google Patents

Network billing control method and network billing control device Download PDF

Info

Publication number
CN104378215A
CN104378215A CN201410714411.7A CN201410714411A CN104378215A CN 104378215 A CN104378215 A CN 104378215A CN 201410714411 A CN201410714411 A CN 201410714411A CN 104378215 A CN104378215 A CN 104378215A
Authority
CN
China
Prior art keywords
user
access device
charging
network access
billing
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
Application number
CN201410714411.7A
Other languages
Chinese (zh)
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410714411.7A priority Critical patent/CN104378215A/en
Publication of CN104378215A publication Critical patent/CN104378215A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a network billing control method and a network billing control device. The network billing control method includes: receiving a billing start message aiming at a client-side user and sent by network connection equipment; returning a billing response message to the network connection equipment; invoking an independent thread to process a billing process. The network billing control method and the network billing control device have the advantages that a billing server returns the billing response message to the network connection equipment immediately after receiving the billing start message sent by network connection equipment, so that real-time response capability of the billing server can be enhanced; the billing server adopts different threads for sending the billing response message and achieving billing processing, and the condition that the billing server cannot return the billing response message to the network connection equipment timely when the online user quantity is large can be avoided, so that the real-time response capability of the billing server can be further enhanced.

Description

Network billing control method and device
Technical field
The present invention relates to network communication technology field, particularly a kind of network billing control method and device.
Background technology
Along with the development of the Internet, provide that a kind of real-time response ability is higher, the good network charge system of interactive performance becomes the urgent hope of the network user.In prior art, because network billing is an extremely complicated process, time of its cost is longer, and therefore the real-time response ability of accounting server is lower.
Summary of the invention
In view of this, the invention provides a kind of network billing control method and device, to solve the problem of the real-time response ability of accounting server.
According to the first aspect of the embodiment of the present invention, provide a kind of network billing control method, described method is applied in the accounting server for realizing network billing, and described method comprises:
The charging for client user receiving network access device transmission starts message;
Charging response message is returned to described network access device;
Call separate threads to process charging process.
According to the second aspect of the embodiment of the present invention, provide a kind of network billing control device, described application of installation is at the accounting server for realizing network billing, and described device comprises:
Receiving element, the charging for client user sent for receiving network access device starts message;
Transmitting element, for returning charging response message to described network access device;
Processing unit, processes charging process for calling separate threads.
In sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
In the embodiment of the present invention, accounting server passes through, after the charging receiving network access device transmission starts message, to return charging response message immediately, can improve the real-time response ability of accounting server to network access device; Accounting server is by adopting different threads when sending charging response message and realizing charging process, can avoid occurring that when customer volume of reaching the standard grade is larger accounting server cannot return the situation of charging response message in time to network access device, thus the real-time response ability of accounting server can be improved further.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram that the application embodiment of the present invention realizes network billing control;
Fig. 2 is an embodiment flow chart of network billing control method of the present invention;
Fig. 3 is another embodiment flow chart of network billing control method of the present invention;
Fig. 4 is another embodiment flow chart of network billing control method of the present invention;
Fig. 5 is a kind of hardware structure diagram of network billing control device place of the present invention equipment;
Fig. 6 is an embodiment block diagram of network billing control device of the present invention.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 1, for the application embodiment of the present invention realizes the application scenarios schematic diagram of network billing control.In Fig. 1, this client can be mobile phone, iPad, notebook computer etc., and this network access device can comprise router, switch etc.After the user in client realizes online by network access device, accounting server starts charging, and usually adopts the network billing control device of its storage inside to control the transmitting-receiving process of charging message and the processing procedure of charging.
Particularly, in embodiments of the present invention, accounting server, after the charging receiving network access device transmission starts message, returns charging response message to network access device immediately, can improve the real-time response ability of accounting server thus; Accounting server processes this charging process by calling separate threads, different threads is adopted when sending charging response message and realizing charging process to make accounting server, can avoid thus occurring that when customer volume of reaching the standard grade is larger accounting server cannot return the situation of charging response message in time to network access device, thus the real-time response ability of accounting server can be improved further.
Further, accounting server is by judging when realizing charging process whether the remaining cost of user is enough to maintain user and continues online, and be not enough to force client user to be rolled off the production line when maintenance user continues online at the remaining cost of user, can avoid occurring that the remaining cost of user is not enough to maintain the situation that when it continues to surf the Net, user is still online, thus the real-time response ability of accounting server can be improved further.
See Fig. 2, be the flow chart of an embodiment of network billing control method of the present invention, this embodiment is described from accounting server side, comprises the following steps:
The charging for client user that step 201, reception network access device send starts message.
In the preferred embodiment of the invention, network access device starts message by the charging sent for client user to accounting server, notifies that accounting server starts charging to client user.Wherein, this charging starts IP (the Internet Protocol that message can comprise user name, network access device and subscriber terminal equipment, Internet protocol) address and MAC (Media Access Control, medium access control) address, the client user type of service etc. of accessing.Wherein, the type of service that client user is accessing can be webpage, Audio and Video etc.
Step 202, return charging response message to network access device, received charging with informing network connection device accounting server and started message and start charging.
Step 203, call separate threads charging process is processed.
Compared with prior art, accounting server of the present invention is by adopting different threads when sending charging response message and realizing charging process, can avoid occurring that when customer volume of reaching the standard grade is larger accounting server cannot return the situation of charging response message in time to network access device, thus the real-time response ability of accounting server can be improved.
Particularly, calling separate threads to the process that charging processes is: judge whether the remaining cost of user is enough to maintain user and continues online: if the remaining cost of user is not enough to maintain user continue online, user offline message is sent to network access device, to make network access device according to user offline message, send the accounting completion packet for making user offline to client; If the remaining cost of user is enough to maintain user continue online, accounting server then periodically judges whether the remaining cost of user is enough to maintain user and continues online.
In the preferred embodiment of the invention, accounting server according to the charging policy of user, can arrange billing threshold to each user, and then judges whether the remaining cost of user is enough to maintain user and continues online.Wherein, this charging policy can comprise according to online duration charging with according to surfing flow charging.Such as the charging policy according to online duration charging, accounting server can be provided with online duration threshold value to each user, and for the charging policy according to surfing flow charging, accounting server can be provided with surfing flow threshold value to each user.
When the charging policy of client user is according to online duration charging, first accounting server client user can start timer by during network access device realization online, then the current online total duration of user is counted according to timer, finally the current online total duration of user and its online duration threshold value are compared, if the current online of user amounts to duration be less than its online duration threshold value, then determine that the remaining cost of user is enough to maintain described user and continues online; Otherwise, determine that the remaining cost of user is not enough to maintain described user and continues online.
When the charging policy of client user is according to surfing flow charging, first accounting server can receive the billing update packet comprising the surfing flow information of described user that described network access device sends, then the current online aggregate flow of user is counted according to billing update packet, finally the current online aggregate flow of user and its surfing flow threshold value are compared, if the current online aggregate flow of user is less than its surfing flow threshold value, then determine that the remaining cost of user is enough to maintain user and continues online; Otherwise, determine that the remaining cost of user is not enough to maintain described user and continues online.
When the remaining cost of user be not enough to maintain user continue online time, accounting server sends user offline message to network access device, and network access device, after receiving user offline message, sends accounting completion packet to client; Client forces the user offline in client after receiving accounting completion packet.The online that can comprise user in this accounting completion packet amounts to the information such as duration, online aggregate flow.
Continue online when the remaining cost of user is enough to maintain user, then the billing update packet that sends by receiving network access device of accounting server, only upgrades customer charge information.Meanwhile, by the mode of periodic polling, judge whether to arrive the time cycle of presetting, if the cycle time of advent, then continue to judge that the remaining cost of user is enough to maintain user and continues online.
In the present invention, accounting server is by periodically judging whether the remaining cost of user is enough to maintain user and continues online, can prevent to a greater degree and be not enough to maintain the situation that when it continues to surf the Net, user is still online at the remaining cost of user, thus improve the real-time response ability of accounting server further.
Further, see Fig. 3, before the charging for client user receiving network access device transmission starts message, the method can also comprise:
Step 301, accounting server receive the authentication request packet that network access device sends.
In the preferred embodiment of the invention, client sends authentication request packet by network access device to accounting server, can comprise user name in this authentication request packet.
Step 302, calculation server, according to authentication request packet, determine the charging policy of client user.
In the preferred embodiment of the invention, the charging policy of each user can adopt the form of list to be stored in accounting server, accounting server is after receiving authentication request packet, by finding out the charging policy corresponding with user name in authentication request packet from charging policy list, the charging policy of this user can be determined.Accounting server, after receiving authentication request packet, can also carry out certification to client user, after certification completes by network access device to client return authentication response message.
See Fig. 4, be the flow chart of another embodiment of network billing control method of the present invention, this embodiment, by client, mutual between network access device and remote server, describes network billing control procedure in detail.The method comprises the following steps:
Step 401, client send authentication request packet by network access device to accounting server.
Step 402, accounting server, according to authentication request packet, carry out certification to user, and determine the charging policy of user according to authentication request packet.
Step 403, accounting server are after certification completes, and accounting server sends authentication response message by network access device to client.
Step 404, network access device send charging when user surfs the Net to accounting server and start message.
Step 405, accounting server return charging response message to network access device.
Step 406, judge whether the remaining cost of user is enough to maintain this user and continues online, if the remaining cost of user is not enough to maintain this user continue online, then perform step 407; Otherwise, perform step 410.
Step 407, accounting server send user offline message to network access device.
Step 408, network access device send accounting completion packet to client.
Step 409, client force users after receiving accounting completion packet rolls off the production line.
Step 410, accounting server receive the billing update packet of network access device, upgrade the cost information of user, and check whether the time cycle arriving and preset, if arrive the judgement cycle of presetting, then perform step 406; Otherwise, perform step 410.
Corresponding with the embodiment of aforementioned network billing control method, present invention also offers the embodiment of network billing control device.
Network billing control device embodiment of the present invention can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, be by the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.Say from hardware view, as shown in Figure 5, for a kind of hardware structure diagram of network billing control device place of the present invention equipment, except the processor shown in Fig. 5, network interface, memory, in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message; May be also distributed equipment from this equipment of hardware configuration, multiple interface card may be comprised, to carry out the expansion of Message processing at hardware view.
See Fig. 6, be an embodiment block diagram of network billing control device of the present invention, described device can comprise:
Receiving element 610, the charging for client user sent for receiving network access device starts message;
Transmitting element 620, for returning charging success message to described network access device;
Processing unit 630, processes charging process for calling separate threads.
Wherein, described processing unit 630 calls separate threads and processes charging process, is specially:
Call described separate threads, judge whether the remaining cost of described user is enough to maintain described user and continues online;
The remaining cost of described user be not enough to maintain described user continue online time, user offline message is sent to described network access device, to make described network access device according to described user offline message, send the accounting completion packet for making described user offline to described client.
The remaining cost of described user be enough to maintain described user continue online time, judge whether to reach the default time cycle; When arriving the described time cycle, returning to perform and describedly judge whether the remaining cost of described user is enough to maintain described user and continues online.
Further, described receiving element 610, also for receiving the authentication request packet that described network access device sends;
Described processing unit 630, also for according to described authentication request packet, determines the charging policy of user in described client.
When described charging policy is according to surfing flow charging, described processing unit 630 starts timer, the current online counting described user according to described timer amounts to duration, and the current online total duration of described user and its online duration threshold value are compared, if the current online of described user amounts to duration be less than its online duration threshold value, then determine that the remaining cost of described user is enough to maintain described user and continues online; Otherwise, determine that the remaining cost of described user is not enough to maintain described user and continues online.
When in described client, the charging policy of user is according to surfing flow charging, described processing unit 630 receives the billing update packet comprising the surfing flow information of described user that described network access device sends, the current online aggregate flow of described user is counted according to described billing update packet, and the current online aggregate flow of described user and its surfing flow threshold value are compared, if the current online aggregate flow of described user is less than its surfing flow threshold value, then determine that the remaining cost of described user is enough to maintain described user and continues online; Otherwise, determine that the remaining cost of described user is not enough to maintain described user and continues online.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present invention program.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
As seen from the above-described embodiment, accounting server passes through, after the charging receiving network access device transmission starts message, to return charging response message immediately, can improve the real-time response ability of accounting server to network access device; Accounting server is by adopting different threads when sending charging response message and realizing charging process, can avoid occurring that when customer volume of reaching the standard grade is larger accounting server cannot return the situation of charging response message in time to network access device, thus the real-time response ability of accounting server can be improved further.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (8)

1. a network billing control method, described method is applied in the accounting server for realizing network billing, it is characterized in that, described method comprises:
The charging for client user receiving network access device transmission starts message;
Charging response message is returned to described network access device;
Call separate threads to process charging process.
2. method according to claim 1, is characterized in that, described in call separate threads charging process processed, be specially:
Call described separate threads, judge whether the remaining cost of described user is enough to maintain described user and continues online;
If the remaining cost of described user is not enough to maintain described user continue online, then send user offline message to described network access device, to make described network access device according to described user offline message, send the accounting completion packet for making described user offline to described client.
3. method according to claim 2, is characterized in that, described in call separate threads charging process processed, also comprise:
If the remaining cost of described user is enough to maintain described user continue online, then judge whether to reach the default time cycle;
When reaching the described time cycle, returning to perform and describedly judge whether the remaining cost of described user is enough to maintain described user and continues online.
4. method according to claim 2, is characterized in that, before the charging for client user that described reception network access device sends starts message, described method also comprises:
Receive the authentication request packet that described network access device sends;
According to described authentication request packet, determine the charging policy of user in described client.
5. a network billing control device, described application of installation, at the accounting server for realizing network billing, is characterized in that, described device comprises:
Receiving element, the charging for client user sent for receiving network access device starts message;
Transmitting element, for returning charging response message to described network access device;
Processing unit, processes charging process for calling separate threads.
6. device according to claim 5, is characterized in that,
Described processing unit calls separate threads and processes charging process, is specially:
Call separate threads, judge whether the remaining cost of described user is enough to maintain described user and continues online;
The remaining cost of described user be not enough to maintain described user continue online time, user offline message is sent to described network access device, to make described network access device according to described user offline message, send the accounting completion packet for making described user offline to described client.
7. device according to claim 5, is characterized in that, described processing unit calls separate threads and processes charging process, also comprises:
The remaining cost of described user be enough to maintain described user continue online time, judge whether to reach the default time cycle; When arriving the described time cycle, returning to perform and describedly judge whether the remaining cost of described user is enough to maintain described user and continues online.
8. device according to claim 5, is characterized in that,
Described receiving element is also for receiving the authentication request packet that described network access device sends;
Described processing unit also for according to described authentication request packet, determines the charging policy of user in described client.
CN201410714411.7A 2014-11-28 2014-11-28 Network billing control method and network billing control device Pending CN104378215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410714411.7A CN104378215A (en) 2014-11-28 2014-11-28 Network billing control method and network billing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410714411.7A CN104378215A (en) 2014-11-28 2014-11-28 Network billing control method and network billing control device

Publications (1)

Publication Number Publication Date
CN104378215A true CN104378215A (en) 2015-02-25

Family

ID=52556896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410714411.7A Pending CN104378215A (en) 2014-11-28 2014-11-28 Network billing control method and network billing control device

Country Status (1)

Country Link
CN (1) CN104378215A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429866A (en) * 2018-01-31 2018-08-21 新华三技术有限公司 Charging message processing method, device and the network equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1458770A (en) * 2002-05-16 2003-11-26 华为技术有限公司 Method for AAA server control access device on Internet protocol network
CN1464682A (en) * 2002-06-24 2003-12-31 华为技术有限公司 Method for implementing broad band pre-payment based on authentication, authorization and charging protocol
CN1549516A (en) * 2003-05-12 2004-11-24 华为技术有限公司 Method for testing AAA server characteristics and apparatus thereof
CN101409877A (en) * 2008-11-28 2009-04-15 中兴通讯股份有限公司 Method for generating call ticket
US20130290941A1 (en) * 2012-04-25 2013-10-31 Empire Technology Development, Llc Certification for flexible resource demand applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1458770A (en) * 2002-05-16 2003-11-26 华为技术有限公司 Method for AAA server control access device on Internet protocol network
CN1464682A (en) * 2002-06-24 2003-12-31 华为技术有限公司 Method for implementing broad band pre-payment based on authentication, authorization and charging protocol
CN1549516A (en) * 2003-05-12 2004-11-24 华为技术有限公司 Method for testing AAA server characteristics and apparatus thereof
CN101409877A (en) * 2008-11-28 2009-04-15 中兴通讯股份有限公司 Method for generating call ticket
US20130290941A1 (en) * 2012-04-25 2013-10-31 Empire Technology Development, Llc Certification for flexible resource demand applications

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
詹思瑜等: "Java技术用于RADIUS服务器的设计研究", 《计算机应用》 *
高岭等: "网络机房管理系统的应用研究", 《计算机应用与软件》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108429866A (en) * 2018-01-31 2018-08-21 新华三技术有限公司 Charging message processing method, device and the network equipment
CN108429866B (en) * 2018-01-31 2020-08-14 新华三技术有限公司 Charging message processing method, device and network equipment

Similar Documents

Publication Publication Date Title
CN108712485B (en) Resource subscription method and device for Internet of things equipment
WO2015154350A1 (en) Internet access traffic sharing method, device and terminal
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN110266810B (en) Message receiving method, device and storage medium based on MQTT protocol
CN111147493B (en) Registration method, device, storage medium and terminal equipment of IMS network
RU2008119811A (en) SYSTEM AND METHOD FOR ADAPTIVE COMBINATION OF MULTIMEDIA INFORMATION FOR APPLICATIONS IN INTERNET NETWORK SPEECH PROTOCOLS
CN108847976B (en) Distribution network control method, mobile terminal, device and computer readable storage medium
CN104469970B (en) A kind of method and apparatus reconnecting data network
CN101860716A (en) Wireless video conference terminal reaccess system and method
CN103312593B (en) A kind of message distributing system and method
CN104038845A (en) Method and device for transmitting message
CN103338144A (en) Session data synchronization method and session data synchronization device
CN109788301A (en) A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium
CN105978606B (en) Bluetooth equipment remote communication method, bluetooth equipment and client
EP3264851B1 (en) Data transmission method and device for data service
CN102025730B (en) Data transmission device based on HTTP protocol and implementation method thereof
CN104378215A (en) Network billing control method and network billing control device
WO2017185632A1 (en) Data transmission method and electronic device
US20190036793A1 (en) Network service implementation method, service controller, and communications system
EP3223493A1 (en) Point-to-point protocol (ppp)-based dial-on-demand method and device, and computer storage medium
CN103138961A (en) Server control method, controlled server and central control server
US20220141153A1 (en) Server communication method, broadband access server, and system
WO2022100523A1 (en) Communication configuration method and apparatus
CN104796564A (en) Method and device for processing message business based on IP telephone
CN103841085A (en) Method and device for implementation of web real-time communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150225