CN1277370C - A charging method of switch-in network - Google Patents

A charging method of switch-in network Download PDF

Info

Publication number
CN1277370C
CN1277370C CN 03145172 CN03145172A CN1277370C CN 1277370 C CN1277370 C CN 1277370C CN 03145172 CN03145172 CN 03145172 CN 03145172 A CN03145172 A CN 03145172A CN 1277370 C CN1277370 C CN 1277370C
Authority
CN
China
Prior art keywords
charging
network
user
access
different
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.)
Expired - Lifetime
Application number
CN 03145172
Other languages
Chinese (zh)
Other versions
CN1567820A (en
Inventor
周轩伟
管红光
王奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 03145172 priority Critical patent/CN1277370C/en
Publication of CN1567820A publication Critical patent/CN1567820A/en
Application granted granted Critical
Publication of CN1277370C publication Critical patent/CN1277370C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a charging method of network access. At least one access equipment is arranged in the network, and a user accesses the network by the access equipment. The charging method of network access comprises the steps: network resources that the user maybe access are divided into different charging categories according to addresses on the access equipment; rates of the different charging categories are configured; the user is respectively charged according to the configured rates when the user accesses the network. The network resources can be effectively divided, and charging resources and non-charging resources are separated by using the present invention. Different rates are adopted by the different network resources, and charging is carried out according to the user's accessing time length or flow capacity sum. Charging modes are flexible and various, and different content providers' charging requirements are better satisfied.

Description

Charging method for network access
Technical Field
The invention relates to a network access technology, in particular to a charging method for network access.
Background
At present, the broadband network technology develops rapidly, but the charging mode is not before, the traditional charging mode is as shown in fig. 1, the charging information of different network services is not distinguished, fairness is lacked, the popularization and application of the broadband are greatly limited, and meanwhile, the output return input by an operator is also limited; the rigid charging strategy also influences the implementation of flexible market expansion behavior of operators. With the diversity of network services, operators want to provide powerful, flexible and complex business charging methods, for example, different rates are applied for different services, and the rate refers to the corresponding relationship between specific charges and usage, such as 1.00 yuan/hour on monday to friday.
In addition, with the rapid development of the internet, domestic internet users are more and more, and various schools become an indispensable infrastructure for accessing the internet, so that the requirements on the form and the mode of charging are more and more, and the campus network usually stipulates that the access to the resources of the education network is free and the non-education network charges the resources. The basis for distinguishing educational and non-educational networks is the destination IP address that the user visits, and therefore, it is most realistic to charge according to the destination address.
At present, a charging mode for a user mainly uses an accessed user as a charging object, and the charging is performed by counting the duration of the online period of the user or the sum of all flows of accessed resources, and the charging mode is simpler and is not divided more finely. As shown in fig. 1, that is, no matter which kind of website the user visits, their billing information is uniform, different billing information cannot be formed according to different kinds of visits, it is not possible to distinguish which kind of website the user visits for free, and it is not possible to access different kinds of websites for different fees. In a word, whether charging according to flow or charging according to time, because it is to count the online time or the flow of the message for the user, there are obvious disadvantages, which are mainly expressed as: the resources accessed by the user cannot be classified and counted, the charged and non-charged resources cannot be distinguished, different rates cannot be used for different resources, and further, the method cannot be suitable for different content providers to carry out a unified charging strategy for all the traffic passing through the equipment.
Disclosure of Invention
The present invention is directed to overcome the above disadvantages of the prior art, and provides a charging method for network access, in which at least one access device is provided in the network, and a user accesses the network through the access device, and the method includes the steps of:
dividing network resources possibly accessed by a user into different charging categories according to addresses on the access equipment;
configuring rates for the different billing categories;
and when the user accesses the network, charging the user according to the configured charge rate.
In particular, the step of dividing the network resources that the user may access into different charging categories by address on the access device further comprises: and dividing the network resources which are possibly accessed by the user into different charging categories according to the addresses on all the access equipment of the network according to the same dividing method so as to ensure that all the access equipment in the network divide the charging categories consistently.
Preferably, the step of charging the users respectively according to the configured charging rates when the users access the network further comprises: and configuring the rates of the different charging categories on the charging equipment.
In particular, the step of charging the users respectively according to the configured charging rates when the users access the network further comprises:
after the user accesses the network, the charging equipment respectively accumulates the charging information of the network resources of different charging types accessed by the user;
and according to the accumulated charging information, the charging equipment charges the user respectively according to the configured rate.
Optionally, the charging information includes a flow and/or a duration of the user accessing the network resource of the different charging categories.
Optionally, the step of respectively accumulating, by the charging device after the user accesses the network, the charging information of the network resources of different charging categories that the user accesses includes:
after charging is started, the access equipment sends a charging updating request message to the charging equipment at regular time;
the access equipment accumulates the charging information of the network resources of different charging types currently accessed by the user;
and after the user is offline, the access equipment sends a charging ending request message to the charging equipment.
Preferably, the charging update request message includes charging information of the currently accumulated network resources accessed by the user in different charging categories.
Preferably, the charging end request message includes charging information of network resources of different charging types accessed by the user, which is accumulated after the access is ended.
Specifically, the step of charging the user according to the configured rate by the charging device according to the accumulated charging information includes: and the charging equipment charges the current accumulated charging information according to the configured rate for the user according to the charging information in the charging updating request message sent by the access equipment.
Specifically, the step of charging the user according to the configured rate according to the accumulated charging information includes: and the charging equipment charges the accumulated charging information after the access is ended according to the configured rate for the user according to the charging information in the charging ending request message sent by the access equipment.
Optionally, the charging device includes a charging module disposed in the access device or a charging server in the network.
The invention can effectively divide network resources, distinguish charged and uncharged resources, and charge different network resources with different rates according to the duration or flow sum of user access, so that the charging mode is flexible and various, and the charging requirements of different content providers can be better satisfied.
Drawings
FIG. 1 is a diagram illustrating a prior art billing mode for a subscriber;
FIG. 2 is a flowchart of the steps of a charging method for network access according to an embodiment of the present invention, where the charging is performed by a charging server;
fig. 3 is a flowchart of the charging step performed by the charging module of the access device in the embodiment of the charging method for network access in the present invention;
fig. 4 is an interactive process of messages between the network access device and the charging server in the embodiment shown in fig. 2;
fig. 5 is a schematic diagram of a charging mode of the charging method for network access according to the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, the following detailed description of the present invention is provided in conjunction with the accompanying drawings and embodiments.
In charging for network users, some network providers may set a dedicated charging server (Radius) through which to charge for network users, and also charge for local network access devices in order to prevent charging information loss due to the failure of the charging server. However, for economic reasons, it is also possible to charge only the local network access device without setting a dedicated charging server, integrate the charging module on the network access device, and use the charging module to charge the network user. The working flow of the method of the present invention is described in detail below by way of example of charging via a dedicated charging server, in which case no mention is made of charging of network users on a local access device.
Referring to fig. 2, fig. 2 is a flowchart illustrating the steps of charging through a charging server in the embodiment of the charging method for network access of the present invention:
firstly, network resources which a user may access are divided into different charging categories by address on a local network access device (NAS) in step 20;
then, go to step 21, configure the rate of different charging categories on the charging server; into
In step 22, the user accesses the network through the local NAS, and starts to request charging at this time;
in step 23, the local NAS sends a charging start request message to the charging server, where the message is the same as the charging start request message in the prior art;
proceeding to step 24, the local NAS receives a charging start request response message sent by the charging server after receiving the charging start request message;
then, in step 25, the local NAS sends a charging update request packet to the charging server, and starts timing, where the charging update request packet not only includes traditional charging information, such as the total accumulated traffic or the total accumulated duration of the user accessing the internet, but also includes charging information counted according to different charging categories of destination addresses, such as the total accumulated traffic or the duration of the user accessing a certain category of network resources, and then charging starts;
proceeding to step 26, the NAS respectively accumulates the traffic or the duration of the user accessing the network resources of different charging categories according to the divided different charging categories, which includes: accessing charging information (flow or time length) of free network resources and charging information (flow or time length) of non-free network resources, obtaining non-free total charging flow or total time length according to the charging information, and adding the accumulated flow or time length of the network resources accessed by the user in different charging categories and the obtained non-free total charging flow or total time length into corresponding fields of the charging updating request message;
in order to prevent the influence of the interruption of the user connection on the charging caused by abnormal conditions, a proper time interval is usually set according to the actual needs of the system, after the user starts charging, a charging updating message is retransmitted every other time interval, the charging updating message contains the accumulated charging information of the user accessing network resources of different charging categories, and then the flow or the time length of the user accessing the network resources of different charging categories is continuously accumulated according to the divided different charging categories;
therefore, go to step 27 to determine if the user has been offline and disconnected;
if the user is not offline within the preset time interval, returning to the step 25 after the timing reaches the set time interval, and the local NAS sending a charging updating request message to the charging server and restarting timing;
otherwise, step 28 is executed to send a charging end request message to the charging server by the NAS, and similarly, the charging end request message not only includes traditional charging information, such as the total accumulated traffic or the total accumulated duration of the user accessing the internet, but also includes charging information counted according to charging categories with different destination addresses, such as the total accumulated traffic or the duration of the user accessing a network resource of a certain category.
Then, proceeding to step 29, the user is charged separately at the charging server according to the configured rates of the different charging categories.
In practical applications, it is also generally required to charge the network access user on the NAS at the same time, or to charge the network access user only on the local NAS without providing a dedicated charging server. The implementation procedure is similar to the above example, and is described in detail below with reference to fig. 3:
firstly, network resources which a user may access are divided into different charging categories according to addresses on a local network access device (NAS) in step 30;
then, proceeding to step 31, configuring different charging rates of different charging categories on the charging module of the NAS;
proceeding to step 32, the user accesses the network through the local NAS, and at this time, starts to request charging;
in step 33, the local NAS sends a charging start request message to the charging module;
proceeding to step 34, the local NAS receives a charging start request response message sent by the charging module after receiving the charging start request message;
then, in step 35, the local NAS sends a charging update request message to the charging module, and starts timing, where the charging update request message not only contains traditional charging information, such as the total accumulated traffic or the total accumulated duration of the user accessing the internet, but also includes charging information counted according to different charging categories of destination addresses, such as the total accumulated traffic or the duration of the user accessing a certain category of network resources, and then charging starts;
proceeding to step 36, the NAS respectively accumulates the traffic or the duration of the user accessing the network resources of different charging categories according to the divided different charging categories, which includes: accessing charging information (flow or time length) of free network resources and charging information (flow or time length) of non-free network resources, obtaining non-free total charging flow or total time length according to the charging information, and adding the accumulated flow or time length of the network resources accessed by the user in different charging categories and the obtained non-free total charging flow or total time length into corresponding fields of the charging updating request message;
in order to prevent the influence of the interruption of the user connection on the charging caused by abnormal conditions, a proper time interval is usually set according to the actual needs of the system, after the user starts charging, a charging updating message is retransmitted every other time interval, the charging updating message contains the accumulated charging information of the user accessing network resources of different charging categories, and then the flow or the time length of the user accessing the network resources of different charging categories is continuously accumulated according to the divided different charging categories;
therefore, go to step 37 to determine whether the user has disconnected due to offline;
if the user is not offline within the preset time interval, returning to the step 35 after the timing reaches the set time interval, and the local NAS sends a charging update request message to the charging module and restarts timing;
otherwise, step 38 is proceeded, the NAS sends a charging end request message to the charging module, and similarly, the charging end request message not only contains the traditional charging information, for example, the total accumulated traffic or the total accumulated duration of the user accessing the internet, but also contains the charging information counted according to the charging categories with different destination addresses, for example, the total accumulated traffic or the duration of the user accessing the network resource of a certain category.
Then, proceeding to step 39, the user is charged separately on the charging module according to the configured rates of different charging categories.
To further illustrate the statistics and transmission process of the charging information in the charging method for network access of the present invention, fig. 4 describes the message interaction process between the NAS and the charging server:
1. after the user is online, the NAS sends a charging start request message to a charging server to request for charging the user, and the charging start request message is the same as the charging start request message in the prior art;
2. after receiving the charging start request message sent by the NAS, the charging server responds to a charging start request response message to prepare for starting charging;
3, after receiving the response message of the charging start request, the NAS sends a charging update request message to the charging server, where the charging update request message not only contains traditional charging information, such as the total accumulated traffic or the total accumulated duration of the user accessing the internet, but also includes charging information counted according to different charging categories of destination addresses, such as the total accumulated traffic or the duration of the user accessing a certain category of network resources, and at this time, the charging server can charge the user according to the charging information in the message and according to configured rates of different charging categories;
meanwhile, the NAS starts to respectively accumulate the flow or the duration of the network resources of the user accessing different charging types according to the divided different charging types, and adds the charging information into the next charging updating request message;
the NAS sends a new charging updating request message, and the interval for sending the charging updating request message can be set according to the actual charging requirement;
5. the user is off line and disconnected, at this time, the charging is finished, the NAS sends a charging finishing request message, which, like the charging updating request message, not only contains the traditional charging information, such as the total accumulated flow or the total accumulated duration of the user accessing the internet, but also includes the charging information counted according to different charging types of destination addresses, such as the total accumulated flow or the duration of the user accessing a certain type of network resources, and the charging server can respectively charge the user according to the configured rates of different charging types according to the charging information in the message.
In the above embodiment, the accumulated charging information of different charging categories is placed in the same message by extending a Radius (charging server) protocol and is transmitted to the charging server for charging, and the original attributes such as the total accumulated flow and the total accumulated duration of the internet are still transmitted, so that the method is compatible with the traditional charging mode.
The extension of the attributes in the accounting (update/end) request message is described in detail below.
In the charging (update/end) request message, a VSA attribute is added, the attribute type is 40, and the length of the character string is 253 at most, and each character string represents charging information of a charging category. In the charging (update/end) request message, there may be a plurality of such character strings, each corresponding to a different charging category.
The structure of the character string is as follows:
n ═ class number >;
IP ═ number of incoming messages >;
OP ═ number of output messages >;
IF ═ input flow >;
OF ═ output flow >;
u ═ input/output flow rate unit >
"N", "IP", "OP", "IF", "OF", "U", or "═ belong to special characters for distinguishing between domains; "separate, no order requirement, string end none"; ".
Wherein,
<category numbering>The class number of the destination IP address is expressed, and the value range is [0, 2 ]8-1],
<Number of input messages>、<Number of outgoing messages>、<Input flow rate>、<Output flow>The accumulated message quantity and flow of the category since the Internet is accessed are represented, and the value range is [0, 2 ]32-1]。
The < input and output flow unit > is composed of two letters, the former letter represents the input flow unit, and the latter letter represents the output flow unit, so as to prevent the situation that the input and output flows are greatly different.
"B" indicates the unit of traffic as bytes, "K" indicates the unit of traffic as 1024 bytes, and "M" indicates the unit of traffic as 1048576 bytes. If "U ═ KB" indicates that the input traffic unit is 1024 bytes, the output traffic unit is bytes.
In order to ensure the accuracy of the traffic information, the traffic unit takes bytes (B).
For example:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type=40 | Length=50 | String=″N=2;IP=12345678;OP=
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
123456;IF=123456;OF=1234;U=BB″|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
the attribute 40 can only appear in the charging update/end request message, and can appear for many times to correspond to the situation of multiple non-free IP address categories.
Referring again to fig. 5, fig. 5 is a schematic diagram of a charging mode of the charging method for network access of the present invention:
the method comprises the steps of dividing the network resources accessed by users into four different charging categories according to the addresses of the network resources accessed by the users, enabling the domestic education network to be free resources, enabling the foreign education network, the science and technology network and the telecommunication network to respectively adopt different charging rates, enabling the flow or the duration accessed by the users to be respectively counted in the four categories when the users access the network resources, generating charging information of the different categories and total accumulated flow and/or total accumulated duration information, transmitting the charging information to a charging server, enabling the charging server to respectively charge according to the charging rate corresponding to each category, meanwhile enabling the charging to be carried out according to the total accumulated flow and/or total accumulated duration information of the internet, and being compatible with the existing charging mode.
Although the present invention has been described by way of example, those skilled in the art will appreciate that there are numerous variations and permutations of the present invention without departing from the spirit of the invention, e.g., billing by classifying billing categories according to different ISPs (Internet service providers) or billing by classifying billing categories according to different domain names, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the invention.

Claims (9)

1. A charging method for network access, wherein the network has at least one access device, and a user accesses the network through the access device, the method comprising the steps of:
a. dividing network resources possibly accessed by a user into different charging categories according to addresses on the access equipment;
b. configuring rates for the different billing categories;
c. and when the user accesses the network, charging the user according to the configured charge rate.
2. The method for charging for network access according to claim 1, wherein said step a further comprises: and dividing the network resources which are possibly accessed by the user into different charging categories according to the addresses on all the access equipment of the network according to the same dividing method so as to ensure that all the access equipment in the network divide the charging categories consistently.
3. The method for charging for network access according to claim 1, wherein said step b further comprises: and configuring the rates of the different charging categories on the charging equipment.
4. The method for charging for network access of claim 3, wherein said step c further comprises:
after the user accesses the network, the charging equipment respectively accumulates the charging information of the network resources of different charging types accessed by the user;
and according to the accumulated charging information, the charging equipment charges the user respectively according to the configured rate.
5. The charging method for network access according to claim 4, wherein the charging information includes the flow and/or duration of the user's access to the network resource of different charging categories.
6. The network access charging method of claim 4, wherein the step of accumulating, by the charging device after the user accesses the network, the charging information of the network resources of different charging categories to which the user accesses respectively comprises:
after charging is started, the access device sends a charging updating request message to the charging device at regular time, wherein the charging updating request message comprises charging information of network resources of different charging types accessed by the user which are accumulated currently;
the access equipment accumulates the charging information of the network resources of different charging types currently accessed by the user;
and after the user is offline, the access device sends a charging ending request message to the charging device, wherein the charging ending request message comprises the charging information of the network resources with different charging types accessed by the user and accumulated after the access is ended.
7. The charging method for network access according to claim 6, wherein the step of charging the user according to the configured rate by the charging device according to the accumulated charging information comprises: and the charging equipment charges the current accumulated charging information according to the configured rate for the user according to the charging information in the charging updating request message sent by the access equipment.
8. The charging method for network access according to claim 6, wherein the step of charging the user according to the configured charging rate respectively according to the accumulated charging information comprises: and the charging equipment charges the accumulated charging information after the access is ended according to the configured rate for the user according to the charging information in the charging ending request message sent by the access equipment.
9. The charging method for network access according to any of claims 3 to 8, wherein the charging device comprises a charging module provided in an access device or a charging server in the network.
CN 03145172 2003-07-01 2003-07-01 A charging method of switch-in network Expired - Lifetime CN1277370C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03145172 CN1277370C (en) 2003-07-01 2003-07-01 A charging method of switch-in network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03145172 CN1277370C (en) 2003-07-01 2003-07-01 A charging method of switch-in network

Publications (2)

Publication Number Publication Date
CN1567820A CN1567820A (en) 2005-01-19
CN1277370C true CN1277370C (en) 2006-09-27

Family

ID=34471366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03145172 Expired - Lifetime CN1277370C (en) 2003-07-01 2003-07-01 A charging method of switch-in network

Country Status (1)

Country Link
CN (1) CN1277370C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005150984A (en) * 2003-11-12 2005-06-09 Ntt Docomo Inc Charging processing method and communication apparatus
CN100369418C (en) * 2005-06-24 2008-02-13 杭州华三通信技术有限公司 Statistical method of data stream
CN101227300B (en) * 2007-12-19 2010-05-19 华为技术有限公司 Post-paying charge rate switch method and access service network gateway
CN106412868A (en) * 2016-06-16 2017-02-15 北京小米移动软件有限公司 Mobile client data business management method and device
CN106937268B (en) * 2017-05-16 2020-05-22 青岛宇硕云联信息科技有限公司 Flow control system and method
CN112491563B (en) * 2020-11-09 2022-07-01 华中师范大学 Campus network free flow calculation method, system, server and storage medium

Also Published As

Publication number Publication date
CN1567820A (en) 2005-01-19

Similar Documents

Publication Publication Date Title
CN1213567C (en) Concentrated network equipment managing method
CN1243451C (en) Hot standby protocol for wireless devices
CN1324490C (en) Automatic connection system and method for application
CN100337229C (en) Network verifying, authorizing and accounting system and method
CN1725708A (en) Statistical method of data stream
CN101034989A (en) Method, system and router for originating the authentication request via the user terminal
CN1957566A (en) Server for routing connection to client device
CN101039309A (en) Link sharing service apparatus and communication method thereof
CN101039206A (en) Method for realizing separation of communication network and terminal service with network
CN1929482A (en) Network business identification method and device
CN101656615A (en) Method, devices and system for managing multicast broadcasting service
CN1501659A (en) Communication device, edge router device, server device, communication system and communication method
CN1578487A (en) Method for mobile terminal switching in packet network
CN1277370C (en) A charging method of switch-in network
CN101075884A (en) Method for charging service content
CN1845602A (en) Mobile remote video monitoring bidirectional audio system and method
WO2012155702A1 (en) Method, system, service processing server for updating service key
WO2012119428A1 (en) Method, system and device for implementing multicast in shared network
CN1881915A (en) Connection method between devices in peer-to-peer network
CN101043344A (en) Fee counting method of WIMAX network
CN1777132A (en) Method for setting up connections for access of roaming user terminals to data networks
CN101873263A (en) Cluster multicast method and system based on local network downloading
CN102395117B (en) Method and device for identifying content type
CN1317858C (en) Method for managing objects in a communication network and implementing device
CN1960264A (en) Charging method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20060927