CN100391162C - Control method for switching server - Google Patents

Control method for switching server Download PDF

Info

Publication number
CN100391162C
CN100391162C CNB2005100645318A CN200510064531A CN100391162C CN 100391162 C CN100391162 C CN 100391162C CN B2005100645318 A CNB2005100645318 A CN B2005100645318A CN 200510064531 A CN200510064531 A CN 200510064531A CN 100391162 C CN100391162 C CN 100391162C
Authority
CN
China
Prior art keywords
aaa
aaa server
server
client
response
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 - Fee Related
Application number
CNB2005100645318A
Other languages
Chinese (zh)
Other versions
CN1848754A (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 CNB2005100645318A priority Critical patent/CN100391162C/en
Publication of CN1848754A publication Critical patent/CN1848754A/en
Application granted granted Critical
Publication of CN100391162C publication Critical patent/CN100391162C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention discloses a control method for a switching server, which aims to solve the problems that extra data out of a system service needs to be utilized to carry out switching control to AAA servers in the prior art, and the system load is additionally added. The present invention uses two AAA servers which are mutually spare; after AAA client ends send request information which is based on dialing customer service protocols accessed by the distal end, and if corresponding response information is received within the threshold of response time, a response timeout frequency counter resets. Or else, the response timeout frequency counter accumulates the timeout frequency. When the count value exceeds the set value, the AAA client ends are switched to the other AAA server from the AAA server which is currently used. The present invention can not additionally add the load of the system, and the robustness of the network is increased.

Description

A kind of control method of switching server
Technical field
The present invention relates to server, relate in particular to a kind of control method of switching aaa server.
Background technology
Global Internet user is more and more, and how the user being carried out access control is vital problem, and allowing legal users to use the internet and it is carried out correct charging is the most basic requirement of the user being carried out network insertion control.RADIUS (Remote Access Dial-In user Service, far-end access dial user service) agreement is the international agreement that the control Internet user inserts, based on C/S (Client/Server, client/server) pattern.
Figure 1 shows that the user passes through the schematic diagram that AAA (Authentication, Authorization, Accounting, authentication, mandate, charging) client enters the Internet.The user must be earlier through the authentication of identity before using the internet, and the AAA client is being controlled the path of user to the internet, and assurance has only could access the Internet by the validated user of authentication.The user opens an account information stores in aaa server, the AAA client is transmitted to aaa server to user's access request by radius protocol, on aaa server, finish user's verification process, notify AAA client by aaa server with authentication result, the AAA client controls whether allow subscriber to access Internet according to authentication result.In the network process, the AAA client also can be collected user's charge information on the user, and these charge informations are sent to aaa server, and aaa server generates ticket according to this, and the user is chargeed.
Aaa server is in very important position in network, if it breaks down, will have a strong impact on user's service.Therefore in actual networking, aaa server generally all adopts one to lead with a standby backup mode, the AAA client is connected respectively with standby aaa server with aaa server with main, when an aaa server breaks down, the AAA client switches on another aaa server, continue to provide service by another aaa server, thereby improve the robustness of network.
For guaranteeing that the user can enter the Internet at any time, the AAA client need judge whether the aaa server of current use normal, in the radius protocol not regulation AAA client how to remove to detect aaa server whether fault taken place.In prior art one, no matter whether there is the user to need to enter the Internet, whether the AAA client all can send one group of ping bag at set intervals to the aaa server of current use normal with the aaa server that detects current use, if the AAA client detects the aaa server of current use and breaks down, then switch on another aaa server, the user who is entered the Internet to needs by another aaa server provides authentication, mandate, the service of chargeing.
Figure 2 shows that the AAA client utilizes ping bag to carry out the flow chart of aaa server switching controls.Detailed process is as follows: set in advance response time thresholding, response timeout time counter and expired times thresholding on the AAA client, the aaa server of the current use of AAA client is the main aaa server of using.The AAA client sends the ping request to main with aaa server, and is then main normal with aaa server if the AAA client is received main response with aaa server in the response time thresholding, continues to use the main aaa server of using; If the AAA client is not received main response with aaa server in the response time thresholding, then response timeout time counter begins counting, the response timeout time every counting of counter once, the AAA client sends a ping request to main with aaa server, if the AAA client is received main response with aaa server in the expired times thresholding, then the AAA client continues to use the main aaa server of using with response timeout number of times counter reset; If the AAA client is not received main response with aaa server in the expired times thresholding, then representative is main breaks down with aaa server, the AAA client switches to standby aaa server after reaching the expired times thresholding, provide service by standby aaa server to the user that needs enter the Internet.After switching to standby aaa server, whether the AAA client makes to use the same method and detects standby aaa server and break down, if fault has taken place standby aaa server, just switches back to lead and uses aaa server.
Carrying out data based on radius protocol between AAA client and the aaa server transmits; because the ping bag is the excessive data outside the system business; the detection that aaa server has passed through the ping bag can only illustrate that the physical connection between AAA client and the aaa server is normal; can not illustrate that authentication based on radius protocol, mandate, charging service one normally carry out surely, utilize ping to wrap in addition to detect aaa server whether positive regular meeting additionally increase the load of system.At present some aaa server is not supported the ping bag, and the AAA client just can not receive the response of ping bag like this, thus mistake cause active and standbyly carry out repeatedly with the switching between the aaa server.
Summary of the invention
The invention provides a kind of control method of switching server, utilize the excessive data outside the system business that aaa server is carried out switching controls to solve the needs that exist in the prior art, thereby additionally increase the problem of system load.
For achieving the above object, the present invention is by the following technical solutions:
A kind of control method of switching server, this method is used two standby each other aaa servers, response timeout time counter is set on the AAA client, when the count value of this response timeout time counter surpassed set point, the AAA client switched to another aaa server from the aaa server of current use; Described AAA client is behind the request message of aaa server transmission based on far-end access dial user service agreement of current use, if in the response time thresholding, receive corresponding response message, response timeout number of times counter reset then, otherwise response timeout time counter accumulative total expired times.
The count value of described response timeout time counter is during less than set point, and described AAA client continues to use the aaa server of current use.
In described two standby each other aaa servers, one is the main aaa server of using, another standby aaa server for using when the master breaks down with aaa server.
If what switch that the back uses is standby aaa server, the service time of then using time of standby aaa server to reach to be provided with on the AAA client, the AAA client automatically switched to the main aaa server of using behind the thresholding.Thresholding carried out the required time of fault restoration with aaa server and was provided with according to main service time.
The charging request that access request that described request message is sent for the user or AAA client are sent.
The present invention adopts described technical scheme, has following beneficial effect:
The present invention utilizes the request message in the radius protocol to carry out the switching controls of aaa server, ask to enter the Internet and use in the process of internet the user, by request message aaa server is carried out fault detect based on radius protocol, whether decision carries out the switching of aaa server according to testing result, because the present invention has utilized request message based on radius protocol as detection means, therefore can additionally not increase the load of system, thereby improve the robustness of network.
Description of drawings
The schematic diagram that Fig. 1 enters the Internet by the AAA client for the user;
Fig. 2 utilizes the ping bag for the AAA client and carries out the flow chart of aaa server switching controls;
Fig. 3 utilizes the request message of radius protocol to carry out the flow chart of aaa server switching controls.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
AAA client among the present invention utilizes the request message in the radius protocol to carry out the switching controls of aaa server, ask to enter the Internet and use in the overall process of internet the user, the user can be by the AAA client to the access request of aaa server transmission based on radius protocol, the AAA client is used in the process of internet and can be sent the request of charging to aaa server the user, the AAA client utilizes above-mentioned access request and the request of chargeing that aaa server is carried out fault detect, if detecting the aaa server of current use breaks down, then the AAA client switches on another aaa server, provides authentication by another aaa server to the user that needs enter the Internet, authorize, charge and serve.
The present invention need be provided with the response time thresholding on the AAA client, response timeout time counter and expired times thresholding, and wherein response timeout time counter can also can be down counter for count-up counter.Owing to there is the possibility of packet loss on the network, therefore dispose the expired times thresholding on the AAA client, have only the count value of response timeout time counter to reach the expired times thresholding, can think that just fault has taken place the aaa server of current use, avoid like this because the accidental packet loss of network, and think it is that fault has taken place for the aaa server of current use by mistake.
As shown in Figure 3, the aaa server of the current use of AAA client is the main aaa server of using, when the user enters the Internet by the AAA client-requested, the AAA client is transmitted to the main aaa server of using to user's access request by radius protocol, by aaa server the user is authenticated, if the user receives main response message with aaa server in the response time thresholding, then the AAA client continues to use the master to use aaa server, and judges whether allow subscriber to access Internet according to the authentication result in the response message; If the user does not receive main response with aaa server in the response time thresholding, then time counter of the response timeout on the AAA client begins counting, the response timeout time every counting of counter once, the user sends a request message to main with aaa server, if the user receives main response with aaa server in the expired times thresholding, then the AAA client is with response timeout number of times counter reset, continue to use the master to use aaa server, and judge whether allow subscriber to access Internet according to the authentication result in the response message; If the user does not receive main response with aaa server in the expired times thresholding, then the AAA client switches on the standby aaa server, provides service by standby aaa server to the user that needs enter the Internet.After switching on the standby aaa server, whether use and same method detect standby aaa server and break down, if fault has taken place standby aaa server, main with on the aaa server with regard to switchback.
After the user was by authentication, in the process of using the internet, the AAA client can be sent the request of charging to aaa server at set intervals, and aaa server generates ticket according to this request of chargeing, and the user is chargeed.The charging request that utilizes the AAA client to send can realize carrying out switching controls to main with aaa server equally, its detailed process and above-mentioned basic identical with the process that aaa server carries out switching controls to the master by inserting request.
Main break down with aaa server after, standby aaa server is taken over and is mainly continued as the user with aaa server service is provided, general require main fix a breakdown with aaa server after, take over standby aaa server and continue to provide service.But do not stipulate that in radius protocol the AAA client detects aaa server and whether recovers normal method, in the present invention, the time that the AAA client switches to standby aaa server reaches service time of being provided with on the AAA client behind the thresholding, can switch back the main aaa server of using automatically, the master can recover normal in the thresholding in above-mentioned service time with aaa server, and service time, the length of thresholding can dispose according to the required time of fault restoration on the AAA client flexibly.
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 (6)

1. the control method of a switching server, this method is used two standby each other aaa servers, response timeout time counter is set on the AAA client, when the count value of this response timeout time counter surpassed set point, the AAA client switched to another aaa server from the aaa server of current use; It is characterized in that, described AAA client is behind the request message of aaa server transmission based on far-end access dial user service agreement of current use, if in the response time thresholding, receive corresponding response message, response timeout number of times counter reset then, otherwise response timeout time counter accumulative total expired times.
2. the control method of switching server according to claim 1 is characterized in that, the count value of described response timeout time counter is during less than set point, and described AAA client continues to use the aaa server of current use.
3. the control method of switching server according to claim 1 is characterized in that, in described two standby each other aaa servers, one is the main aaa server of using, another standby aaa server for using when the master breaks down with aaa server.
4. the control method of switching server according to claim 3, it is characterized in that, if what switch that the back uses is standby aaa server, the service time of then using time of standby aaa server to reach to be provided with on the AAA client, the AAA client automatically switched to the main aaa server of using behind the thresholding.
5. the control method of switching server according to claim 4 is characterized in that, thresholding carried out the required time of fault restoration with aaa server and was provided with according to main described service time.
6. the control method of switching server according to claim 1 is characterized in that, the charging request that access request that described request message is sent for the user or AAA client are sent.
CNB2005100645318A 2005-04-13 2005-04-13 Control method for switching server Expired - Fee Related CN100391162C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100645318A CN100391162C (en) 2005-04-13 2005-04-13 Control method for switching server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100645318A CN100391162C (en) 2005-04-13 2005-04-13 Control method for switching server

Publications (2)

Publication Number Publication Date
CN1848754A CN1848754A (en) 2006-10-18
CN100391162C true CN100391162C (en) 2008-05-28

Family

ID=37078133

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100645318A Expired - Fee Related CN100391162C (en) 2005-04-13 2005-04-13 Control method for switching server

Country Status (1)

Country Link
CN (1) CN100391162C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968147B (en) * 2006-11-27 2010-04-14 华为技术有限公司 Service processing method, network device, and service processing system
CN102055605B (en) * 2009-11-11 2015-03-04 中兴通讯股份有限公司 Disaster tolerance system and method applied to AAA (authentication, authorization and accounting) server
CN102111302B (en) * 2009-12-28 2013-10-02 北京安码科技有限公司 Worm detection method
CN101980482B (en) * 2010-11-17 2012-10-31 广东威创视讯科技股份有限公司 Method for monitoring network connection and system thereof
CN102075380B (en) * 2010-12-16 2014-12-10 中兴通讯股份有限公司 Method and device for detecting server state
CN106856489B (en) * 2015-12-08 2020-09-08 阿里巴巴集团控股有限公司 Service node switching method and device of distributed storage system
CN105430016A (en) * 2015-12-30 2016-03-23 迈普通信技术股份有限公司 Network access authentication method and system
CN110445834A (en) * 2019-07-03 2019-11-12 福建天泉教育科技有限公司 A kind of method and system for solving propelling data and losing
KR102696539B1 (en) * 2019-08-21 2024-08-21 현대자동차주식회사 Client electronic device, vehicle and controlling method for the same
CN111474885A (en) * 2020-04-29 2020-07-31 江苏建筑职业技术学院 Solar wireless intelligent networking control platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1340928A (en) * 2000-09-02 2002-03-20 深圳市中兴通讯股份有限公司 Stand-by method and device of communication system
CN1464396A (en) * 2002-06-27 2003-12-31 深圳市中兴通讯股份有限公司 Method for realizing backup between servers
CN1549978A (en) * 2001-07-16 2004-11-24 BEAϵͳ��˾ Method and apparatus for session replication and failover

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1340928A (en) * 2000-09-02 2002-03-20 深圳市中兴通讯股份有限公司 Stand-by method and device of communication system
CN1549978A (en) * 2001-07-16 2004-11-24 BEAϵͳ��˾ Method and apparatus for session replication and failover
CN1464396A (en) * 2002-06-27 2003-12-31 深圳市中兴通讯股份有限公司 Method for realizing backup between servers

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Diameter的AAA服务器的设计与实现. 陈能干,裘妹平.计算机工程与设计,第25卷第12期. 2004
基于Diameter的AAA服务器的设计与实现. 陈能干,裘妹平.计算机工程与设计,第25卷第12期. 2004 *

Also Published As

Publication number Publication date
CN1848754A (en) 2006-10-18

Similar Documents

Publication Publication Date Title
CN100391162C (en) Control method for switching server
CN101631360B (en) Method, device and system for realizing load balancing
TWI278187B (en) Apparatus for suppressing burst noise
US8117337B2 (en) Method and device for implementing link pass through in point-to-multipoint network
CN101022348B (en) Method, system and equipment for realizing on-line billing
CN108206765B (en) PPPoE online recovery method, BRAS equipment and AAA server
WO2009009994A1 (en) A method, device and system for locating the fault of passive optical network
CN103036696A (en) Achievement method and system and corresponding device of online business
JPH10500832A (en) Communication system for detecting unauthorized entry of terminal units
CN108134713A (en) A kind of communication means and device
CN111263385B (en) Charging and battery replacing cabinet and communication method thereof
CN111404918A (en) Cloud mobile phone distributed service emergency authentication method, device and system
CN105578449A (en) Method and device for changing virtual SIM card
CN101778354B (en) Short message defaulting protection system aiming at prepaid customers and realization method
CN101841445A (en) User identifying method and device for internet connection sharing
CN106452803B (en) Method, system and device for realizing online charging
CN108259196B (en) Quota management method and quota management device
CN100397829C (en) Warning method for frequent discrete event fault
CN101478409A (en) Fee charging control method and wideband access server
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN106067857B (en) Method and device for preventing user from being forced off-line
CN107277043A (en) Network admittance control system based on cluster service
WO2016180177A1 (en) Method, system and device for realizing online charging
CN101741513A (en) Method and system for detecting connectivity
CN104394128A (en) A control method for a terminal to access a server

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080528

Termination date: 20190413

CF01 Termination of patent right due to non-payment of annual fee