CN1315285C - Method for Authentication Server to Detect Abnormal Restart of Access Device - Google Patents
Method for Authentication Server to Detect Abnormal Restart of Access Device Download PDFInfo
- Publication number
- CN1315285C CN1315285C CNB2003101005004A CN200310100500A CN1315285C CN 1315285 C CN1315285 C CN 1315285C CN B2003101005004 A CNB2003101005004 A CN B2003101005004A CN 200310100500 A CN200310100500 A CN 200310100500A CN 1315285 C CN1315285 C CN 1315285C
- Authority
- CN
- China
- Prior art keywords
- access device
- authentication
- authentication server
- access
- aaa server
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信网络中的接入设备,特别涉及检测接入设备启动的方法。The invention relates to an access device in a communication network, in particular to a method for detecting the activation of the access device.
背景技术Background technique
随着网络技术的发展,Internet网络越来越大,用户越来越多。大多数的用户都是通过各种接入方式连接到接入设备上,经过认证、鉴权、计费服务器(AAA服务器)的认证和授权后,用户才能真正的接入到Internet中。接入设备和AAA服务器同时保留了用户在线的状态信息,用于对用户进行计费。当设备发生异常重新启动时,用户在接入设备上的状态信息全部丢失,而AAA服务器却不知道设备的状态,依然保存这这些用户的在线信息,导致了AAA服务器和接入设备上的用户状态不一致。设备启动后,当用户重新使用网络时,由于接入设备没有该用户的信息,因此需要到AAA服务器对该用户的身份进行验证。而AAA服务器却认为该用户依然在线,一般情况下(一卡多用的情况除外)将会拒绝用户的登录。由此可见,如果设备发生异常而重启后,因AAA服务器不知道情况将导致大量的用户身份合法但不能上网,从而引起用户投诉。With the development of network technology, the Internet network is getting bigger and bigger, and there are more and more users. Most of the users connect to the access device through various access methods, and the users can really access the Internet only after being authenticated and authorized by the authentication, authentication, and accounting server (AAA server). The access device and the AAA server also retain the online status information of the user, which is used for billing the user. When the device restarts abnormally, all the status information of the user on the access device is lost, but the AAA server does not know the status of the device, and still saves the online information of these users, resulting in the AAA server and the user on the access device Inconsistent state. After the device is started, when the user uses the network again, since the access device does not have the user's information, the user's identity needs to be verified by the AAA server. However, the AAA server thinks that the user is still online, and generally (except in the case of multiple uses of one card) will refuse the user's login. It can be seen that if the device is abnormal and restarts, because the AAA server does not know the situation, a large number of users with legal identities will not be able to access the Internet, which will cause user complaints.
现有技术中对上述问题的处理主要有以下两种方案:The processing to the above-mentioned problem in the prior art mainly contains the following two schemes:
技术方案一:AAA服务器不对接入设备的异常情况作任何的检测,当设备发生异常重新启动时,通过网管检测到后通知网络管理员,网络管理员再通知AAA服务器的管理员,AAA服务器管理员再根据发生异常的设备对从该设备接入的用户进行处理。这种处理方式存在以下缺点:Technical solution 1: The AAA server does not perform any detection of abnormal conditions of the access device. When the device restarts abnormally, it will notify the network administrator after detection by the network management, and the network administrator will notify the administrator of the AAA server. The AAA server management The administrator then handles the users accessing from the device according to the abnormal device. This approach has the following disadvantages:
1、处理环节繁多,反应很慢。很可能网络管理员还没有来得及通知AAA服务器的管理员,就已经收到大量的投诉了。1. There are many processing links and the response is very slow. It is likely that the network administrator has received a large number of complaints before notifying the administrator of the AAA server.
2、操作麻烦,容易出错。网络管理员需要仔细查询发生异常的接入设备和该设备对应的AAA服务器,然后通知相应的AAA服务器管理员;AAA服务器管理员需要根据接入设备对相应的用户进行复位操作。一旦某个环节出现问题而错误地将某些正常用户复位,将会给运营商造成损失。2. The operation is troublesome and error-prone. The network administrator needs to carefully check the abnormal access device and the AAA server corresponding to the device, and then notify the corresponding AAA server administrator; the AAA server administrator needs to reset the corresponding user according to the access device. Once a problem occurs in a certain link and some normal users are reset by mistake, it will cause losses to the operator.
3、维护工作量大,成本高。这种方案额外增加了系统管理员的工作量,特别是处理大量的投诉会大大增加运营商的成本。3. The maintenance workload is heavy and the cost is high. This solution additionally increases the workload of the system administrator, especially handling a large number of complaints will greatly increase the cost of the operator.
技术方案二:接入设备发生异常重新启动时,向AAA服务器发送一个启动报文,通知AAA服务器设备发生了异常。AAA服务器收到该报文后将给接入设备发送一个响应报文,同时认为该设备发生了异常,将与该用户相关的用户进行复位处理。接入设备如果收到了启动响应报文则进入了正常状态,否则一段时间没有收到响应报文将重发启动报文,如果重发几次后还没有收到将不再发送。该方案虽然能在接入设备发生异常重新启动时主动向AAA服务器报告,但是存在以下缺点:Technical solution 2: When the access device restarts abnormally, it sends a start message to the AAA server to notify the AAA server that the device has an abnormality. After receiving the message, the AAA server will send a response message to the access device, and at the same time consider that the device is abnormal, and reset the user related to the user. If the access device receives the start response message, it enters the normal state. Otherwise, it will resend the start message if it does not receive the response message for a period of time. If it has not received it after resending several times, it will not send it again. Although this solution can actively report to the AAA server when the access device restarts abnormally, it has the following disadvantages:
1、实现配置复杂,成本高。因为需要发送报文,而且需要实现重传机制,因此设备需要维护会话状态,还有需要等待响应超时时间、重发次数等配置,增加了开发测试维护成本。在某些三层交换机中,受处理芯片的性能限制,该功能几乎无法实现。1. The implementation configuration is complicated and the cost is high. Because packets need to be sent and a retransmission mechanism needs to be implemented, the device needs to maintain the session state, and also needs to wait for response timeout, retransmission times and other configurations, which increases the cost of development, testing and maintenance. In some Layer 3 switches, this function is almost impossible to realize due to the performance limitation of the processing chip.
2、可靠性不高。因为当启动报文丢失时,AAA服务器将不能获得设备发生异常的信息。虽然该报文有重传机制,但还是不能保证AAA服务器一定能收到。同时在设备收到启动响应报文前,如果有用户登录,则该用户可能被拒绝接入或者接入后被AAA服务器错误复位。2. The reliability is not high. Because when the startup message is lost, the AAA server will not be able to obtain the abnormality information of the device. Although the message has a retransmission mechanism, it is not guaranteed that the AAA server will receive it. At the same time, before the device receives the startup response message, if a user logs in, the user may be denied access or reset by the AAA server after access.
发明内容Contents of the invention
本发明的目的在于提供一种认证服务器检测接入设备异常重启的方法,以解决现有技术中对接入设备异常重启的检测复杂和不可靠的问题。The purpose of the present invention is to provide a method for an authentication server to detect an abnormal restart of an access device, so as to solve the problem of complex and unreliable detection of an abnormal restart of the access device in the prior art.
实现本发明的技术方案:Realize the technical scheme of the present invention:
一种认证服务器检测接入设备异常重启的方法,通过所述接入设备将用户终端接入网络,由所述认证服务器对用户终端进行接入认证;所述方法包括步骤:A method for an authentication server to detect an abnormal restart of an access device, wherein a user terminal is connected to a network through the access device, and the authentication server performs access authentication for the user terminal; the method includes the steps of:
A、在向认证服务器发送的认证请求报文中加入接入设备的启动标识;A. Add the activation identifier of the access device in the authentication request message sent to the authentication server;
B、将所述接入设备在认证服务器上保存的启动标识与认证请求报文中的启动标识进行比较,如果相同,则确认接入设备正常,并进行步骤D;否则确认接入设备为发生异常后重启动,进行步骤C;B. Compare the startup identifier saved by the access device on the authentication server with the startup identifier in the authentication request message, if they are the same, confirm that the access device is normal, and proceed to step D; otherwise, confirm that the access device is an occurrence Restart after exception, go to step C;
C、至少对所述接入设备的相关用户进行复位处理,并用认证请求报文中的启动标识更新认证服务器上保存的启动标识;C. At least perform reset processing on the relevant users of the access device, and update the activation identifier stored on the authentication server with the activation identifier in the authentication request message;
D、对请求用户进行认证处理。D. Perform authentication processing on the requesting user.
其中:in:
所述启动标识为接入设备的启动时间;所述接入设备在启动时获取本设备当前的系统时间作为启动标识并保存。The startup identifier is the startup time of the access device; when the access device is started, the current system time of the device is obtained as the startup identifier and saved.
所述的启动标识为接入设备启动时产生的一个随机数。The activation identifier is a random number generated when the access device is activated.
本发明具有以下有益效果:The present invention has the following beneficial effects:
1、具有可靠性高。因为每个认证请求报文中都包含接入设备的启动时间,所以只要AAA服务器收到一个报文就能获得接入设备重新启动的信息。1. High reliability. Since each authentication request packet includes the start time of the access device, the AAA server can obtain the restart information of the access device as long as it receives a packet.
2、响应及时。AAA服务器收到重新启动后的第一个认证报文即可获得设备重新启动的信息,即最先需要服务的最先得到响应。2. Timely response. The AAA server can obtain the restart information of the device after receiving the first authentication packet after restart, that is, the one that needs the service first will get the response first.
3、实现简单。接入设备只需要记录启动时间,不需要考虑报文的重发机制;AAA服务器也不需要处理额外的报文。3. Simple implementation. The access device only needs to record the startup time, and does not need to consider the packet retransmission mechanism; the AAA server does not need to process additional packets.
附图说明Description of drawings
图1为逻辑组网示意图;Figure 1 is a schematic diagram of logical networking;
图2为现有技术中计费流程图;Fig. 2 is a billing flowchart in the prior art;
图3为本发明流程图。Fig. 3 is a flowchart of the present invention.
具体实施方式Detailed ways
参阅图1所示,用户终端通过接入设备接入网络,接入设备、AAA服务器、网管通过IP骨干网相连。接入设备和AAA服务器之间通过Radius协议进行通信,实现对用户的认证和计费。Referring to Figure 1, the user terminal accesses the network through an access device, and the access device, AAA server, and network management are connected through an IP backbone network. The access device communicates with the AAA server through the Radius protocol to implement user authentication and accounting.
参阅图2所示,Radius协议的一般消息流程如下(以窄带拨号上网用户为例):Referring to shown in Figure 2, the general message flow of the Radius protocol is as follows (taking the narrowband dial-up user as an example):
1、用户在拨号软件上输入用户名和密码,然后进行拨号;1. The user enters the user name and password on the dial-up software, and then dials;
2、用户终端通过PPP协议与接入设备建立连接;2. The user terminal establishes a connection with the access device through the PPP protocol;
3、接入设备向AAA服务器发送认证请求(Access-Request);3. The access device sends an authentication request (Access-Request) to the AAA server;
4、AAA服务器对用户进行认证;4. The AAA server authenticates the user;
4.1、如果认证不通过,AAA服务器向接入设备发送认证拒绝响应(Access-Reject);4.1. If the authentication fails, the AAA server sends an authentication rejection response (Access-Reject) to the access device;
4.2、如果认证通过,AAA服务器向接入设备发送认证接受响应(Access-Accept);4.2. If the authentication is passed, the AAA server sends an authentication acceptance response (Access-Accept) to the access device;
5、认证通过后,接入设备向AAA服务器发送计费开始报文(Acct-Start-Request);5. After passing the authentication, the access device sends an accounting start message (Acct-Start-Request) to the AAA server;
6、AAA服务器进行计费处理后向接入设备发送计费响应(Acct-Update-Response);6. After the AAA server performs accounting processing, it sends an accounting response (Acct-Update-Response) to the access device;
7、在用户上网过程中,接入设备定时向AAA服务器发送计费更新报文(Acct-Update-Request);7. During the process of the user surfing the Internet, the access device regularly sends an accounting update message (Acct-Update-Request) to the AAA server;
8、AAA服务器进行计费处理后向接入设备发送计费响应(Acct-Update-Response);8. The AAA server sends an accounting response (Acct-Update-Response) to the access device after accounting processing;
9、用户在拨号软件上点击断开连接时,拨号软件向接入设备发送PPPDisconnect;9. When the user clicks to disconnect on the dial-up software, the dial-up software sends PPPDisconnect to the access device;
10、接入设备向AAA服务器发送计费停止报文(Acct-Stop-Request);10. The access device sends an accounting stop message (Acct-Stop-Request) to the AAA server;
11、AAA服务器进行计费处理后向接入设备发送计费响应(Acct-Stop-Response);11. The AAA server sends an accounting response (Acct-Stop-Response) to the access device after accounting processing;
Radius协议是一种可扩展的协议,可以任意添加属性和报文,但不影响原有的功能。The Radius protocol is an extensible protocol, which can add attributes and packets arbitrarily without affecting the original functions.
本发明通过扩展Radius协议,在认证请求报文增加一个接入设备启动时间戳属性,在该时间戳属性中填入接入设备启动标识。By extending the Radius protocol, the present invention adds an access device startup timestamp attribute to the authentication request message, and fills in the access device startup identifier in the timestamp attribute.
接入设备在启动时取得当时设备的系统时间并保存在内存中作为设备的启动标识,在随后的每个认证请求报文中都将该时间填写在设备启动时间戳属性中。When the access device is started, it obtains the system time of the device at that time and saves it in the memory as the device's startup identifier, and fills the time in the device startup timestamp attribute in each subsequent authentication request message.
也可在接入设备启动时产生一个随机数保存在内存中作为设备的启动标识,在随后的每个认证请求报文中都将该随机数填写在设备启动时间戳属性中。It is also possible to generate a random number when the access device is started and store it in the memory as the device's startup identifier, and fill in the random number in the device startup time stamp attribute in each subsequent authentication request message.
AAA服务器最初接收到接入设备的认证请求报文时记录该时间戳,随后从该设备收到的每一个认证请求报文都与保存的时间戳进行比较来判断接入设备是否为发生异常后的重新启动。AAA服务器根据IP地址来区分不同的接入设备,设备的启动时间也跟相应的设备IP相对应。The AAA server first records the timestamp when it receives the authentication request message from the access device, and then compares each authentication request message received from the device with the saved timestamp to determine whether the access device is abnormal. restart. The AAA server distinguishes different access devices according to the IP address, and the startup time of the device corresponds to the corresponding device IP.
参阅图3所示,以接入设备启动时间作为启动标识为例,对本发明的具体处理过程说明如下:Referring to Fig. 3, taking the start-up time of the access device as the start-up mark as an example, the specific processing procedure of the present invention is described as follows:
步骤10:用户通过输入用户名和密码发起接入请求;Step 10: The user initiates an access request by entering a username and password;
步骤20:接入设备在认证请求报文的时间戳属性中填入自己的启动时间,并发送给AAA服务器;Step 20: The access device fills in its startup time in the timestamp attribute of the authentication request message, and sends it to the AAA server;
步骤30:AAA服务接收到认证请求报文后,根据接入设备的IP地址得到保存的接入设备的启动时间,将该启动时间与接入设备填写在时间戳属性中的启动时间进行比较,如果两个启动时间相同,则确认接入设备正常,并进行步骤D;否则确认接入设备为发生异常后重启动,并进行步骤40;Step 30: After receiving the authentication request message, the AAA service obtains the saved startup time of the access device according to the IP address of the access device, and compares the startup time with the startup time filled in the timestamp attribute of the access device, If the two startup times are the same, confirm that the access device is normal, and proceed to step D; otherwise, confirm that the access device restarts after an exception occurs, and proceed to step 40;
步骤40:对该接入设备的相关用户进行操作,如复位处理,并用认证请求报文时间戳属性中的启动时间更新认证服务器上保存的启动时间;Step 40: Perform operations on the relevant user of the access device, such as reset processing, and update the startup time saved on the authentication server with the startup time in the timestamp attribute of the authentication request message;
步骤50:按照正常流程对认证请求进行处理。Step 50: Process the authentication request according to the normal flow.
由于接入设备在异常重启后,用户需要上网则首先是发起接入请求,因此能保证AAA服务器能及时发现接入设备的情况并做出相应处理,从而避免出现用户身份合法但却无法接入网络的情况出现。当然,如果一个认证请求都收不到,则AAA服务器也不需要得到设备的重启的信息,因为没有用户可以上网。After the access device is abnormally restarted, the user needs to access the Internet by first initiating an access request, so it can ensure that the AAA server can detect the situation of the access device in time and deal with it accordingly, so as to avoid the situation that the user is legal but cannot access Network situation arises. Of course, if no authentication request is received, the AAA server does not need to obtain the information of restarting the device, because no user can access the Internet.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2003101005004A CN1315285C (en) | 2003-10-10 | 2003-10-10 | Method for Authentication Server to Detect Abnormal Restart of Access Device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2003101005004A CN1315285C (en) | 2003-10-10 | 2003-10-10 | Method for Authentication Server to Detect Abnormal Restart of Access Device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1606276A CN1606276A (en) | 2005-04-13 |
| CN1315285C true CN1315285C (en) | 2007-05-09 |
Family
ID=34755988
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2003101005004A Expired - Fee Related CN1315285C (en) | 2003-10-10 | 2003-10-10 | Method for Authentication Server to Detect Abnormal Restart of Access Device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1315285C (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100433645C (en) * | 2005-07-29 | 2008-11-12 | 杭州华三通信技术有限公司 | Network device management method and network management system |
| CN104808553B (en) * | 2009-03-20 | 2018-10-30 | 华为技术有限公司 | Control method, apparatus and system that automatic running process executes |
| CN101971562B (en) * | 2009-03-20 | 2015-03-25 | 华为技术有限公司 | Method, device and system for controlling execution of automatic operation process |
| CN106301887B (en) * | 2016-07-26 | 2019-08-23 | 东软集团股份有限公司 | Vertex ticks method and device, node start method and device |
| CN108829533B (en) * | 2018-05-22 | 2022-03-29 | 中国科学技术大学苏州研究院 | Fault tolerance detection method for intelligent computer system |
| CN108768673B (en) * | 2018-08-14 | 2021-01-26 | 新华三技术有限公司 | Method and device for ending charging |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0824841A1 (en) * | 1995-05-12 | 1998-02-25 | Nokia Telecommunications Oy | Checking the access right of a subscriber equipment |
| WO1999017502A1 (en) * | 1997-09-30 | 1999-04-08 | Alcatel | An identification method, a terminal realizing such a method and an access communication network including such a terminal |
| CN1297659A (en) * | 1998-04-14 | 2001-05-30 | 艾利森电话股份有限公司 | Mobile switching center restart recovery procedure |
-
2003
- 2003-10-10 CN CNB2003101005004A patent/CN1315285C/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0824841A1 (en) * | 1995-05-12 | 1998-02-25 | Nokia Telecommunications Oy | Checking the access right of a subscriber equipment |
| WO1999017502A1 (en) * | 1997-09-30 | 1999-04-08 | Alcatel | An identification method, a terminal realizing such a method and an access communication network including such a terminal |
| CN1297659A (en) * | 1998-04-14 | 2001-05-30 | 艾利森电话股份有限公司 | Mobile switching center restart recovery procedure |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1606276A (en) | 2005-04-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1314277C (en) | Method and device for testing first communication side truth and reliability in communication network | |
| US7451209B1 (en) | Improving reliability and availability of a load balanced server | |
| US8645503B1 (en) | Accelerated data uploading | |
| CN1487696A (en) | Intelligent terminal management method | |
| CN111866124B (en) | Method, device, server and machine-readable storage medium for accessing webpage | |
| WO2014000303A1 (en) | Method for receiving message, and deep packet inspection device and system | |
| RU2740027C1 (en) | Method and system for preventing malicious automated attacks | |
| CN104883282A (en) | Method and system for monitoring DNS server of terminal | |
| CN100346601C (en) | Access server with function of collecting communication statistics information | |
| CN1647451A (en) | Monitoring of information in a network environment | |
| WO2025162388A1 (en) | Continuous authentication method and apparatus based on hierarchical fingerprints | |
| CN1692610A (en) | Communication device and method, storage medium, and program | |
| CN1315285C (en) | Method for Authentication Server to Detect Abnormal Restart of Access Device | |
| CN1758596A (en) | Relay device, authentication server, and authentication method | |
| CN1149787C (en) | Method of Adding User Security Authentication to Simple Network Management Protocol | |
| CN1309213C (en) | Network access anthentication method for improving network management performance | |
| US7634655B2 (en) | Efficient hash table protection for data transport protocols | |
| CN1581795A (en) | Network management safety authentication method | |
| CN111147625A (en) | Method, device and storage medium for acquiring local external network IP address | |
| CN1697410A (en) | Quick redialing method for user to log on broadband network | |
| CN1303790C (en) | Method for retransmiting and discarding data packet of authentication service protocol for dialed from remote user | |
| CN102480472A (en) | Application integrated login method and verification server of enterprise intranet | |
| CN101112046A (en) | IP sharer detection and interception system and method | |
| CN1213565C (en) | Method of real time modifying business during realizing identifying authorized charge procedure | |
| CN1917427A (en) | Method and equipment for quick recovering environment of portal authentication |
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: 20070509 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |