CN101442418B - Charging method for second layer tunnel protocol user based on point-to-point protocol mode - Google Patents

Charging method for second layer tunnel protocol user based on point-to-point protocol mode Download PDF

Info

Publication number
CN101442418B
CN101442418B CN2008102412509A CN200810241250A CN101442418B CN 101442418 B CN101442418 B CN 101442418B CN 2008102412509 A CN2008102412509 A CN 2008102412509A CN 200810241250 A CN200810241250 A CN 200810241250A CN 101442418 B CN101442418 B CN 101442418B
Authority
CN
China
Prior art keywords
tunnel
user
point
server
message
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.)
Active
Application number
CN2008102412509A
Other languages
Chinese (zh)
Other versions
CN101442418A (en
Inventor
刘小威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2008102412509A priority Critical patent/CN101442418B/en
Publication of CN101442418A publication Critical patent/CN101442418A/en
Application granted granted Critical
Publication of CN101442418B publication Critical patent/CN101442418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for charging an L2TP user in a PPP mode. The method comprises the following steps: A, before a user is on-line, if a charging server used by an access server supports charge in a L2TP mode, the user is configured to charge in the L2TP mode on the access server; and if the charging server used by the access server does not support the user to charge in the L2TP mode, the user is configured to charge in the PPP mode and enter step B; B, when the user is online, a tunnel is established, after conversation establishment is completed, the access server changes a tunnel-link-start message into a start message, and transmits to the charging server; and C, when the user is off line, the access server changes the tunnel-link-stop message into a stop message and transmits the stop message to the charging server. The method ensures that the access server can selectively transmits a charging message supported by the charging server according to the functional completeness supported by equipment of the charging server, thereby improving the compatibility of various charging servers.

Description

The method that Level 2 Tunnel Protocol user charges by the point-to-point protocol mode
Technical field
The invention belongs to network service charging field, be specifically related to a kind of unification and realize L2TP (Layer 2Tunneling Protocol by charging message, Level 2 Tunnel Protocol) user presses the method that PPP (Point to Point Protocol, point-to-point protocol) mode is chargeed.
Background technology
Along with the high speed development of network technology, the type that inserts the user becomes and becomes increasingly complex.When Radius under the normal condition (remote authentication dial-in user service) server charges to dissimilar users and the charging message of receiving and dispatching between access device be inconsistent.In order to realize normal billing, the charging message kind that the accounting server of access devices such as BAS Broadband Access Server and Radius and so on can be supported must be consistent, otherwise, will influence user's normal billing, can not be discerned by counting equipment such as the charging message that access device sends.
During but existing network is used, the inconsistent situation of the charging message that often exists access device and accounting server to support.The user type of supporting such as newer BAS Broadband Access Server is a lot, and correspondingly the charging message type that can receive and dispatch is also a lot, and the Radius server is often only supported a kind of charging message of or a few type owing to use older equipment.
With consumer wideband access server (hereinafter to be referred as BAS) and with the charging of Radius server is example, after the user connects access BAS by PPP, can divide into PPP user or L2TP user according to the information that local policy or Radius server return, if PPP user, then the Acct-Status-Type of user's charging beginning and the AVP in the end message (Attribute Value Pair, property value to) is:
1:start
2:stop
The Acct-Status-Type value is 1 or 2 to represent that respectively this message is charge beginning and accounting completion packet.And if L2TP user, user's charging beginning and the Acct-Status-Type of the AVP in the end message are:
The tunnel charges:
9:acct-tunnel-start,
10:acct-tunnel-stop,
Session charging:
12:acct-tunnel-link-start,
13:acct-tunnel-link-stop,
The Acct-Status-Type value is 9,10,12 or 13 to represent that respectively this message is the beginning of charge chargeing of the tunnel of L2TP, the tunnel accounting completion packet, and session charging begins message, the session charging end message.
Charging message by above-mentioned visible PPP user and L2TP user is different, if this moment, the Radius server was only supported the charging message of PPP type will influence L2TP user's charging so.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, the method that provides a kind of L2TP user to charge by the PPP mode.When this method is not supported the charging of L2TP mode at the Radius server, be the PPP charging message, realize multiple user type being chargeed with single message by the general charging message of Radius server identification.
For solving the problems of the technologies described above, the present invention is achieved by the following technical solutions:
The method that a kind of L2TP user charges by the PPP mode comprises the steps:
Before A, user reached the standard grade, if the employed accounting server of access server supports that the user charges by the L2TP mode, then configure user was chargeed by the L2TP mode on access server; If the employed accounting server of access server does not support the user to charge by the L2TP mode, then configure user is chargeed by the PPP mode, enters step B;
B, user reach the standard grade, and set up the tunnel, and after session foundation was finished, access server changed the tunnel-link-start message start message into and sends to accounting server;
When C, user offline, access server changes the tunnel-link-stop message stop message into and sends to accounting server.
Among the described step B, before session was set up and finished after tunnel foundation is finished, access server sent tunnel charging message tunnel-start to accounting server.
Among the described step B, before session was set up and finished after tunnel foundation is finished, access server did not send tunnel charging message tunnel-start to accounting server.
Among the described step C, behind the user offline, when removing, the tunnel sends the tunnel-stop message to accounting server.
Among the described step C, behind the user offline, the tunnel does not send the tunnel-stop message to accounting server when removing.
Among the described step C, user offline is by user or accounting server or access server triggering.
Use the inventive method to have following beneficial effect:
The perfect in shape and function that access server is supported according to the equipment of accounting server sends the charging message that this accounting server can be supported selectively, thereby has improved the compatibility of various accounting servers.
Description of drawings
Fig. 1 is the beginning flow process that L2TP user charges by the PPP mode;
Fig. 2 is the process ends that L2TP user charges by the PPP mode;
Fig. 3 is L2TP user's charging flow figure.
Embodiment
In order to understand the present invention better, the present invention is done to describe further below in conjunction with the drawings and specific embodiments.
See also Fig. 1, the realization flow that charges by the PPP mode when L2TP user reaches the standard grade is as follows:
Step 101, L2TP user normally inserts LAC (L2TP Access Concentrator, L2TP Access Concentrator);
Step 102, LAC and LNS (L2TP Network Server, L2TP Network Server) set up the tunnel, and wherein LAC and LNS form access server;
Step 103, LAC and LNS set up session;
Step 104, LAC sends the beginning message that charges to the Radius server: can realize by the Acct-Status-Type attribute in the Accounting-Request message is revised as start (value is 1) message from tunnel-link-start (value is 12);
Step 105, LNS is to the Radius server beginning message that send to charge: realizes the samely, the Acct-Status-Type attribute in the Accounting-Request message is revised as the realization of start (value is 1) message from tunnel-link-start (value is 12).The branch of step 104 and 105 no sequencings wherein.
See also Fig. 2, the realization flow that charges by the PPP mode during L2TP user offline is as follows:
Step 201, L2TP user sends the request of rolling off the production line to LAC (request of rolling off the production line also can be triggered by LAC or LNS, perhaps sends to LAC or LNS end by the Radius server);
Step 202, LAC sends accounting completion packet to the Radius server: can realize by the Acct-Status-Type attribute in the Accounting-Request message is revised as Stop (value is 2) message from tunnel-link-stop (value is 13);
Step 203, LNS sends accounting completion packet to the Radius server: realizes the samely, the Acct-Status-Type attribute in the Accounting-Request message is revised as the realization of Stop (value is 2) message from tunnel-link-stop (value is 13);
Step 204, session deletion between LAC and LNS;
Step 205, tunnel deletion between LNS and LNS.The branch of step 202 and 203 no sequencings wherein.
See also Fig. 3, L2TP user's charging flow is as follows:
Step 301, L2TP user begins to reach the standard grade;
Step 302 has been set up the tunnel for L2TP user between LAC and LNS;
Step 303 judges according to local policy whether the Radius server supports the L2TP charging message, does not support, then changes step 304 (flow process of the present invention) over to; Support, then change step 306 (normal L2TP user's charging flow) over to;
Step 304 is for L2TP user sets up session;
Step 305, the charging message for L2TP user sends the PPP type reaches billing purpose, flow process end of the present invention;
Step 306 sends the L2TP Tunnel charging message;
Step 307 is for L2TP user sets up session;
Step 308 sends the session charging message, and former normal L2TP user's charging flow finishes.
The present invention is to being linked into the user (as PPP and L2TP user etc.) of access server by the PPP technology, when the Radius server is not supported the charging of L2TP mode, it is that the PPP charging message is realized chargeing that general charging message is provided, and has realized with single message multiple user type being chargeed.
The above only is preferred embodiment of the present invention;, not should be pointed out that for the person of ordinary skill of the art in order to restriction the present invention; any modification of being done within every the spirit and principles in the present invention, be equal to and replace or improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the method that the Level 2 Tunnel Protocol user charges by the point-to-point protocol mode is characterized in that, comprises the steps:
Before A, user reached the standard grade, if the employed accounting server of access server supports that the user charges by the Level 2 Tunnel Protocol mode, then configure user was chargeed by the Level 2 Tunnel Protocol mode; If the employed accounting server of access server does not support the user to charge by the Level 2 Tunnel Protocol mode, then configure user is chargeed by the point-to-point protocol mode, enters step B;
B, user reach the standard grade, and set up the tunnel, and after session foundation was finished, access server was revised as the Acct-Status-Type attribute among the charging protocol message Accounting-Request start message and sends to accounting server from tunnel-link-start;
When C, user offline, access server is revised as the Acct-Status-Type attribute among the charging protocol message Accounting-Request stop message and sends to accounting server from tunnel-link-stop.
2. the method that Level 2 Tunnel Protocol user according to claim 1 charges by the point-to-point protocol mode, it is characterized in that, among the described step B, before session was set up and finished after tunnel foundation is finished, access server sent tunnel charging message tunnel-start to accounting server.
3. the method that Level 2 Tunnel Protocol user according to claim 1 charges by the point-to-point protocol mode, it is characterized in that, among the described step B, before session was set up and finished after tunnel foundation is finished, access server did not send tunnel charging message tunnel-start to accounting server.
4. the method that Level 2 Tunnel Protocol user according to claim 2 charges by the point-to-point protocol mode is characterized in that, among the described step C, behind the user offline, sends the tunnel-stop message when tunnel is removed to accounting server.
5. the method that Level 2 Tunnel Protocol user according to claim 3 charges by the point-to-point protocol mode is characterized in that, among the described step C, behind the user offline, the tunnel does not send the tunnel-stop message to accounting server when removing.
6. the method that Level 2 Tunnel Protocol user according to claim 1 charges by the point-to-point protocol mode is characterized in that, among the described step C, user offline is by user or accounting server or access server triggering.
CN2008102412509A 2008-12-16 2008-12-16 Charging method for second layer tunnel protocol user based on point-to-point protocol mode Active CN101442418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102412509A CN101442418B (en) 2008-12-16 2008-12-16 Charging method for second layer tunnel protocol user based on point-to-point protocol mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102412509A CN101442418B (en) 2008-12-16 2008-12-16 Charging method for second layer tunnel protocol user based on point-to-point protocol mode

Publications (2)

Publication Number Publication Date
CN101442418A CN101442418A (en) 2009-05-27
CN101442418B true CN101442418B (en) 2011-04-20

Family

ID=40726679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102412509A Active CN101442418B (en) 2008-12-16 2008-12-16 Charging method for second layer tunnel protocol user based on point-to-point protocol mode

Country Status (1)

Country Link
CN (1) CN101442418B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231669A (en) * 2011-06-27 2011-11-02 中兴通讯股份有限公司 Service billing method and device
CN107566476B (en) * 2017-08-25 2020-03-03 中国联合网络通信集团有限公司 Access method, SDN controller, forwarding equipment and user access system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617541A (en) * 2004-09-30 2005-05-18 上海金诺网络安全技术发展股份有限公司 Realizing method for virtual special dial network
CN101184336A (en) * 2007-12-05 2008-05-21 中兴通讯股份有限公司 Method of implementing content charging user roaming

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617541A (en) * 2004-09-30 2005-05-18 上海金诺网络安全技术发展股份有限公司 Realizing method for virtual special dial network
CN101184336A (en) * 2007-12-05 2008-05-21 中兴通讯股份有限公司 Method of implementing content charging user roaming

Also Published As

Publication number Publication date
CN101442418A (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN100531089C (en) Method and system for settling anonymous access to WAP gateway
CN102244866A (en) Portal verifying method and access controller
CN101257394A (en) Method of on-line real time content charging
CN109600726B (en) Flow classification control method, device, system, equipment and storage medium
CN102217227A (en) Methods, apparatuses, system and related computer program product for charging of always-on connections
WO2008135844A3 (en) Method for charging for services, such as push mail
CN107786645A (en) A kind of noninductive yardwork method based on NB iot communications
WO2018000992A1 (en) Traffic monitoring processing method, and related apparatus and system
CN101183953A (en) Added charging method for online charging system
CN101442418B (en) Charging method for second layer tunnel protocol user based on point-to-point protocol mode
CN102546533B (en) Method and system through unregistered residence gateway accessing internet of things service server
CN106485835A (en) A kind of intelligent charging method based on Third-party payment
CN103581458A (en) Automatic updating method and device for service package
CN101026664B (en) Prepaid business charging method and system
CN101262647A (en) Processing method, system and device for billing service
DE102016111420A1 (en) Method of operating charging stations and charging system
CN104144083A (en) Flow statistic method based on application, BRAS and network
CN103903126B (en) Fund quickly arrives method, system and telecommunication system, the third-party payment system of account
CN109286506B (en) Method, system and device for charging flow
CN102694660B (en) A kind of method and apparatus for carrying out restatement expense to prepaid user
CN107872491A (en) A kind of data processing method and device
CN102137369A (en) Method, device, relevant system and equipment for processing charging ticket
CN104104662B (en) Method and device for processing session service connection
CN105634752A (en) Charging method, telecom network element (TNE), offline charging server (FCS), billing domain (BD) and system
CN105323232B (en) account binding method and 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
C14 Grant of patent or utility model
GR01 Patent grant