CN1225866C - A method for detecting whether or not WEB authentication user is on line - Google Patents
A method for detecting whether or not WEB authentication user is on line Download PDFInfo
- Publication number
- CN1225866C CN1225866C CN 02152566 CN02152566A CN1225866C CN 1225866 C CN1225866 C CN 1225866C CN 02152566 CN02152566 CN 02152566 CN 02152566 A CN02152566 A CN 02152566A CN 1225866 C CN1225866 C CN 1225866C
- Authority
- CN
- China
- Prior art keywords
- user
- heartbeat
- server
- user equipment
- portal 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
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000013475 authorization Methods 0.000 abstract description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及网络系统,尤其涉及检测上网用户是否在线的方法。The invention relates to a network system, in particular to a method for detecting whether an online user is online.
背景技术Background technique
在目前宽带网络的接入过程中,广泛采用基于WEB门户网页的认证技术对上网用户进行安全认证。在这种认证方式下,认证客户端无须用户特别安装,直接采用网页浏览器。在用户网络接入中,通常先通过动态主机配置协议(DHCP)先申请一个临时的IP地址(一般在开机时完成),通过该临时的IP地址利用网页浏览器用户可以访问规定的一些站点,如门户服务器(PORTAL SERVER),从而进入运营商的门户网站,在门户网页上,用户可以输入用户名和密码进行认证,以获得更大的操作权限,以访问其他一些站点和享受一些服务。用户通过认证后,PORTALSERVER会向用户下发一个界面,提示上线时长等信息,同时计费服务器开始对该用户进行计费;用户下线时,通过点击PORTAL SERVER浏览器页面上的下线按钮,发起下线请求,以通知计费服务器停止对用户的计费。In the current broadband network access process, the authentication technology based on WEB portal pages is widely used to perform security authentication on Internet users. In this authentication mode, the authentication client does not need to be specially installed by the user, and the web browser is directly used. In the user's network access, usually apply for a temporary IP address first through the Dynamic Host Configuration Protocol (DHCP) (usually completed when starting up), through the temporary IP address, the user can use the web browser to access some specified sites, Such as the portal server (PORTAL SERVER), thereby entering the portal website of the operator, on the portal page, the user can enter the user name and password for authentication, to obtain greater operating authority, to visit some other sites and enjoy some services. After the user passes the authentication, PORTALSERVER will send an interface to the user, prompting information such as the online duration, and the billing server will start billing the user at the same time; when the user goes offline, click the logout button on the PORTAL SERVER browser page, Initiate a logout request to notify the accounting server to stop accounting for the user.
由上述可知,目前普遍的WEB认证方式的主要缺点是无法对用户进行是否在线的检测。由于WEB认证是通过浏览器进行的,不需要额外的工具,因此PORTAL SERVER无法对用户操作的浏览器进行控制,根本无法知道用户的在线状态,例如用户没有通过点击下线按钮退出网络,而直接关闭浏览器,或者在用户侧由于意外导致关机等情况出现时,PORTALSERVER就无法知道用户已经下线,仍然对用户进行计费,这必将使用户经济蒙受损失。It can be known from the above that the main disadvantage of the current common WEB authentication method is that it cannot detect whether the user is online or not. Since WEB authentication is carried out through the browser and does not require additional tools, the PORTAL SERVER cannot control the browser operated by the user, and cannot know the online status of the user at all. When the browser is closed, or when the user side shuts down due to an accident, PORTALSERVER will not know that the user has gone offline, and still bills the user, which will definitely cause economic losses to the user.
发明内容Contents of the invention
本发明的目的在于提供一种检测WEB认证用户是否在线的方法,包括在用户设备与门户服务器之间建立下述心跳处理流程;The purpose of the present invention is to provide a method for detecting whether a WEB authentication user is online, including establishing the following heartbeat processing flow between the user equipment and the portal server;
步骤1:用户设备进行网络接入时,门户服务器将认证信息进行处理后传送到网络接入服务器;Step 1: When the user equipment accesses the network, the portal server processes the authentication information and transmits it to the network access server;
步骤2:网络接入服务器通知网络的计费认证服务器处理门户服务器传递来的认证信息,并将结果信息反馈给用户设备,当结果信息为认证成功信息时,启动用户设备的心跳处理功能;Step 2: The network access server notifies the accounting and authentication server of the network to process the authentication information delivered by the portal server, and feeds back the result information to the user equipment. When the result information is authentication success information, start the heartbeat processing function of the user equipment;
步骤3:门户服务器通过和用户设备之间相互发送的心跳报文和心跳响应报文检测WEB认证用户是否在线。Step 3: The portal server detects whether the WEB authentication user is online through the heartbeat message and the heartbeat response message sent to and from the user equipment.
所述步骤3进一步包括下述内容:Said step 3 further includes the following:
用户设备周期性或非周期性地向门户服务器发送心跳报文,门户服务器向用户设备反馈心跳响应报文,如果门户服务器在指定时间内没有收到用户设备发送的心跳报文,则向网络接入服务器发送用户设备下线请求,由网络接入服务器对用户进行用户设备下线处理。The user equipment periodically or non-periodically sends a heartbeat message to the portal server, and the portal server feeds back a heartbeat response message to the user equipment. If the portal server does not receive the heartbeat message sent by the user equipment within the specified time, it sends the The access server sends the user equipment offline request, and the network access server performs user equipment offline processing on the user.
所述步骤3也可以包括下述内容:Said step 3 may also include the following:
门户服务器周期性或非周期性地向用户设备发送心跳报文,用户设备向门户服务器反馈心跳响应报文,如果门户服务器在指定时间内没有收到用户设备发送的心跳响应报文,则向网络接入服务器发送用户设备下线请求,由网络接入服务器对用户进行用户设备下线处理。The portal server periodically or non-periodically sends a heartbeat message to the user equipment, and the user equipment feeds back a heartbeat response message to the portal server. If the portal server does not receive the heartbeat response message sent by the user equipment within a specified time, The access server sends the user equipment offline request, and the network access server performs user equipment offline processing on the user.
上述心跳报文包括:报文类型、报文标识、报文属性。The aforementioned heartbeat message includes: message type, message identifier, and message attribute.
由于本发明采用心跳机制的参与WEB的认证,能够对WEB认证用户是否在线进行动态检测,与没有心跳机制的WEB认证相比,能够更加精确的记录用户的上线时长,同时在用户异常下线时,及时将用户资源释放;这样不但使网络资源得到合理的利用,还可以增加网络的安全可靠性。Since the present invention adopts the heartbeat mechanism to participate in the WEB authentication, it can dynamically detect whether the WEB authentication user is online. Compared with the WEB authentication without the heartbeat mechanism, it can record the user's online time more accurately, and at the same time, when the user goes offline abnormally , to release user resources in time; this not only makes the network resources be used reasonably, but also increases the security and reliability of the network.
附图说明Description of drawings
图1是应用本发明的网络结构图;Fig. 1 is a network structure diagram applying the present invention;
图2是本发明所述方法的第一个实施例流程图;Fig. 2 is the flow chart of the first embodiment of the method of the present invention;
图3是本发明所述方法的第二个实施例流程图。Fig. 3 is a flow chart of the second embodiment of the method of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明作进一步详细的描述。The present invention will be described in further detail below in conjunction with the accompanying drawings.
图1是应用本发明的网络结构图。图1中,门户服务器通过网络接入层设备和边缘接入层设备对终端的WEB用户进行监测,计费认证服务器对在线的WEB用户进行认证和计费操作。Fig. 1 is a network structure diagram applying the present invention. In Figure 1, the portal server monitors terminal WEB users through network access layer devices and edge access layer devices, and the accounting and authentication server performs authentication and accounting operations on online WEB users.
图2是本发明所述方法的第一个实施例流程图。按照图2实施本发明,首先,在用户设备与门户服务器之间建立心跳处理流程;然后用户终端在步骤11向门户服务器请求用于认证的门户页面,门户服务器在步骤12回复认证页面后,WEB用户在步骤13通过该页面向门户服务器提交用于认证的用户名和密码等信息;门户服务器在步骤14将上述用户名和密码等信息进行处理后传送到网络接入设备,由网络接入设备再将上述信息处理后交由网络中的计费认证服务器按照一定的认证、授权和计费策略进行认证处理,如果认证处理成功,则网络接入层设备在步骤15将成功消息反馈给门户服务器,再由门户服务器在步骤16向用户终端反馈认证成功信息并开启心跳流程;在该步骤后,用户终端在步骤17向门户服务器发送心跳报文,门户服务器在步骤18回应心跳报文,这样用户终端与门户服务器在步骤17和步骤18通过周期性或非周期性地发送心跳报文和反馈心跳报文建立心跳联系,如果门户服务器在预先设定的时间内没有收到用户终端发出的心跳报文,则认为用户异常,因此在步骤19向网络接入层设备发送用户已经下线的请求,由网络接入层设备通知计费认证服务器按照其设定的策略停止对用户的计费操作。Fig. 2 is a flow chart of the first embodiment of the method of the present invention. Implement the present invention according to Fig. 2, at first, set up the heartbeat process flow between user equipment and portal server; In step 13, the user submits information such as user name and password for authentication to the portal server through this page; in step 14, the portal server processes the above information such as user name and password and transmits it to the network access device, and the network access device sends the information to the portal server. After the above information is processed, the accounting and authentication server in the network performs authentication processing according to a certain authentication, authorization and accounting strategy. If the authentication processing is successful, the network access layer device will feed back a success message to the portal server in step 15, and then The portal server feeds back authentication success information to the user terminal in step 16 and starts the heartbeat process; after this step, the user terminal sends a heartbeat message to the portal server in step 17, and the portal server responds to the heartbeat message in step 18, so that the user terminal and The portal server establishes a heartbeat connection by periodically or non-periodically sending heartbeat messages and feedback heartbeat messages in steps 17 and 18. If the portal server does not receive the heartbeat message sent by the user terminal within the preset time, Then it is considered that the user is abnormal, so in step 19, the network access layer device sends a request that the user has gone offline, and the network access layer device notifies the accounting and authentication server to stop the user's accounting operation according to the policy set by it.
图3是本发明所述方法的第二个实施例流程图。按照图2实施本发明,首先,在用户设备与门户服务器之间建立心跳处理流程;然后用户终端在步骤21向门户服务器请求用于认证的门户页面,门户服务器在步骤22回复认证页面后,WEB用户在步骤23通过该页面向门户服务器提交用于认证的用户名和密码等信息;门户服务器在步骤24将上述用户名和密码等信息进行处理后传送到网络接入设备,由网络接入设备再将上述信息处理后交由网络中的计费认证服务器按照一定的认证、授权和计费策略进行认证处理,如果认证处理成功,则网络接入层设备在步骤25将成功消息反馈给门户服务器,再由门户服务器在步骤26向用户终端反馈认证成功信息并开启心跳流程;在该步骤后,门户服务器在步骤27向用户终端发送心跳报文,用户终端在步骤28回应心跳报文,这样用户终端与门户服务器在步骤27和步骤28通过周期性或非周期性地发送心跳报文和反馈心跳报文建立心跳联系,如果门户服务器在预先设定的时间内没有收到用户终端发出的心跳报文,则认为用户异常,因此在步骤29向网络接入层设备发送用户已经下线的请求,由网络接入层设备通知计费认证服务器按照其设定的策略停止对用户的计费操作。Fig. 3 is a flow chart of the second embodiment of the method of the present invention. Implement the present invention according to Fig. 2, at first, set up the heartbeat process flow between user equipment and portal server; In step 23, the user submits information such as user name and password for authentication to the portal server through this page; in step 24, the portal server processes the above-mentioned user name and password and transmits the information to the network access device, and the network access device sends the information to the portal server. After the above-mentioned information is processed, the accounting authentication server in the network performs authentication processing according to certain authentication, authorization and accounting policies. If the authentication processing is successful, the network access layer device will feed back a success message to the portal server in step 25, and then The portal server feeds back authentication success information to the user terminal in step 26 and starts the heartbeat process; after this step, the portal server sends a heartbeat message to the user terminal in step 27, and the user terminal responds to the heartbeat message in step 28, so that the user terminal and The portal server establishes a heartbeat connection by periodically or non-periodically sending heartbeat messages and feedback heartbeat messages in steps 27 and 28. If the portal server does not receive the heartbeat message sent by the user terminal within the preset time, It is considered that the user is abnormal, so in step 29, the network access layer device sends a request that the user has gone offline, and the network access layer device notifies the accounting authentication server to stop the user's accounting operation according to its set policy.
上述图2、3所述的实施例中,所采用的心跳报文包括下述内容:报文类型、报文标识、报文长度和报文属性。其中报文类型用于标识报文是请求报文还是响应报文,报文标识用于匹配上述报文;报文属性可以根据需要设置,本例的报文属性有四个,一是用户终端的IP地址,二是用户终端的状态,三是心跳停止的原因,四是心跳时间间隔调整。In the embodiments described above in FIGS. 2 and 3 , the heartbeat message used includes the following contents: message type, message identifier, message length and message attributes. Among them, the message type is used to identify whether the message is a request message or a response message, and the message identifier is used to match the above messages; message attributes can be set according to needs, and there are four message attributes in this example, one is the user terminal The second is the status of the user terminal, the third is the reason for the heartbeat stop, and the fourth is the adjustment of the heartbeat interval.
上述图2、3所述的实施例中,计费认证服务器为RADIUS服务器。In the embodiments described above in FIGS. 2 and 3 , the accounting authentication server is a RADIUS server.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02152566 CN1225866C (en) | 2002-11-19 | 2002-11-19 | A method for detecting whether or not WEB authentication user is on line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02152566 CN1225866C (en) | 2002-11-19 | 2002-11-19 | A method for detecting whether or not WEB authentication user is on line |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1501636A CN1501636A (en) | 2004-06-02 |
CN1225866C true CN1225866C (en) | 2005-11-02 |
Family
ID=34234798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02152566 Expired - Fee Related CN1225866C (en) | 2002-11-19 | 2002-11-19 | A method for detecting whether or not WEB authentication user is on line |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1225866C (en) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1822599B (en) * | 2005-02-16 | 2010-06-23 | 中兴通讯股份有限公司 | Detecting method of terminal online state of meeting sponsered protocol server |
CN100438446C (en) * | 2006-07-25 | 2008-11-26 | 杭州华三通信技术有限公司 | Switch-in control equipment, Switch-in control system and switch-in control method |
CN1917427B (en) * | 2006-08-28 | 2010-08-11 | 杭州华三通信技术有限公司 | Method and equipment for quick recovering environment of portal authentication |
CN100539516C (en) * | 2006-12-31 | 2009-09-09 | 华为技术有限公司 | Network licence managing method, system and license server and client |
CN101237361B (en) * | 2007-01-31 | 2011-01-05 | 中兴通讯股份有限公司 | A suspending death method for wireless network controller and B node communication context |
CN101286860B (en) * | 2007-04-13 | 2010-12-22 | 联想(北京)有限公司 | Method, system for maintaining gateway terminal session and terminal service gateway |
CN101106535B (en) * | 2007-08-14 | 2011-04-13 | 华为技术有限公司 | A method, server and system for heartbeat mechanism |
CN101360021B (en) * | 2008-10-14 | 2011-12-21 | 中国电信股份有限公司 | Monitoring method and system for wireless wideband user status |
CN101741875B (en) * | 2008-11-18 | 2012-09-05 | 中华电信股份有限公司 | Active message notification system and method |
CN101645907A (en) * | 2009-09-04 | 2010-02-10 | 中兴通讯股份有限公司 | Method and system for processing abnormal off-line of Web authenticated user |
CN101778107B (en) * | 2010-01-15 | 2014-03-12 | 中兴通讯股份有限公司 | State synchronization processing method and device |
CN102196434A (en) * | 2010-03-10 | 2011-09-21 | 中国移动通信集团公司 | Authentication method and system for wireless local area network terminal |
CN101917437B (en) * | 2010-08-20 | 2013-03-20 | 迈普通信技术股份有限公司 | User off-line detection method based on SIP and SIP user state detection system |
CN102223257B (en) * | 2011-07-25 | 2014-02-19 | 莫雅静 | Heartbeat interval adjusting method, server, client terminal and communication system |
CN103166803B (en) * | 2011-12-13 | 2015-11-04 | 中国移动通信集团山东有限公司 | Method, device and system for offline processing of wireless local area network users |
CN102647314A (en) * | 2012-05-16 | 2012-08-22 | 深圳市乐唯科技开发有限公司 | Client side on-line state judgment method and system |
CN103516739B (en) * | 2012-06-21 | 2018-10-26 | 中兴通讯股份有限公司 | The elimination method and device of STA |
CN103095831B (en) * | 2013-01-15 | 2016-03-16 | 中国联合网络通信集团有限公司 | Maintain the method for heartbeat mechanism, wlan client and program servers |
CN103401729A (en) * | 2013-07-30 | 2013-11-20 | 上海斐讯数据通信技术有限公司 | Method for detecting abnormal offline of authenticate user |
CN103546348A (en) * | 2013-10-30 | 2014-01-29 | 上海斐讯数据通信技术有限公司 | Method for detecting abnormal offline of authenticated user |
CN104767718A (en) * | 2014-01-06 | 2015-07-08 | 中国移动通信集团北京有限公司 | A method and device for offline user terminal |
CN104410622A (en) * | 2014-11-25 | 2015-03-11 | 珠海格力电器股份有限公司 | Security Authentication Method, Client and System for Logging in Web System |
CN105611520B (en) * | 2015-12-25 | 2019-03-05 | 北京奇虎科技有限公司 | Realize the method and device of user's online control |
CN105722086A (en) * | 2016-03-29 | 2016-06-29 | 上海斐讯数据通信技术有限公司 | Access authentication page locking method, and user terminal |
CN107948989B (en) * | 2016-10-13 | 2021-02-12 | 北京国双科技有限公司 | Method and device for calculating networking time of mobile terminal |
CN110974204A (en) * | 2019-12-25 | 2020-04-10 | 杭州涂鸦信息技术有限公司 | Method, system and device for realizing bidirectional heartbeat mechanism |
CN111405227B (en) * | 2020-04-26 | 2021-09-14 | 云知声智能科技股份有限公司 | Building communication method and system |
-
2002
- 2002-11-19 CN CN 02152566 patent/CN1225866C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1501636A (en) | 2004-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1225866C (en) | A method for detecting whether or not WEB authentication user is on line | |
US8850017B2 (en) | Brokering state information and identity among user agents, origin servers, and proxies | |
US8319984B2 (en) | Image forming system, apparatus, and method executing a process designated by a service request after token validation | |
US6832256B1 (en) | Firewalls that filter based upon protocol commands | |
US9438639B2 (en) | Network system, access-support server, processing device, and communication agent device | |
US9052861B1 (en) | Secure connections between a proxy server and a base station device | |
US20080046973A1 (en) | Preventing Unauthorized Access of Computer Network Resources | |
CN1214597C (en) | Network access faciity based on protocol 802.1X and method for realizing handshake at client end | |
WO2011026358A1 (en) | Method and system for processing abnormal off-line for web authentication user | |
US6959392B1 (en) | Information providing system and method for providing information | |
US20080183880A1 (en) | Power control method and system | |
US7917941B2 (en) | System and method for providing physical web security using IP addresses | |
CN112929388B (en) | Network identity cross-device application fast authentication method and system, user agent device | |
CN107872445A (en) | Access authentication method, equipment and Verification System | |
CN114944927B (en) | Clientless Mutual Exclusive Access Platform Based on Portal Authentication | |
JP3863441B2 (en) | Authentication access control server device, authentication access control method, authentication access control program, and computer-readable recording medium recording the program | |
EP1830512A1 (en) | A method and system for realizing the domain authentication and network authority authentication | |
JP3766338B2 (en) | Authentication access control system, authentication access control server apparatus, authentication access control method, authentication access control program, and recording medium recording the program | |
JP2003303174A (en) | Terminal authentication method and device | |
JP4716767B2 (en) | Login control system and login control method | |
JPWO2009066596A1 (en) | Communication system, communication method, and authentication cooperation apparatus | |
CN110719255B (en) | Collaborative operation and maintenance method and system based on SSH protocol | |
JP2001067319A (en) | Retrieving system using www server | |
CN1801703B (en) | Method for broadband network access authentication | |
JP2005506814A5 (en) |
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: 20051102 Termination date: 20151119 |
|
EXPY | Termination of patent right or utility model |