CN107529191A - A kind of method based on RADIUS and PORTAL agreements record user terminal downtime - Google Patents
A kind of method based on RADIUS and PORTAL agreements record user terminal downtime Download PDFInfo
- Publication number
- CN107529191A CN107529191A CN201710639596.3A CN201710639596A CN107529191A CN 107529191 A CN107529191 A CN 107529191A CN 201710639596 A CN201710639596 A CN 201710639596A CN 107529191 A CN107529191 A CN 107529191A
- Authority
- CN
- China
- Prior art keywords
- user terminal
- portal
- user
- downtime
- offline
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to wireless communication technology field, in particular relates to a kind of method based on RADIUS and PORTAL agreements record user terminal downtime, comprises the following steps:When user terminal is linked under the focus that first AP is covered, and it is authenticated by certificate server, by rear, the on-line time of user terminal is written to database server by PORTAL servers for certification;When the presence of user terminal changes, certificate server records the downtime of user terminal to database server, while PORTAL servers read and update REDIS online user's cache lists.The method of the record user terminal downtime of the present invention is able to record the downtime of user terminal, is easy to obtain completely upper offline daily record, is advantageous to the operation and management of wireless city.
Description
Technical field
The present invention relates to wireless communication technology field, is specifically related to a kind of based on RADIUS and PORTAL agreements record use
The method of family terminal downtime.
Background technology
Wireless city is to be based on cloud computing technology, fusion mobile Internet, Internet of Things, the screen of three nets/tri-, mobile e-business
Integrated application.As " the 5th public basic installations " in city, wireless city has become the whole of one city of measurement now
The key criteria of running body efficiency, it is considered as the important directions of future city Informatization Development, is to improve urban informationization level
Important means.
In wireless city, by recording the upper offline daily record of user, it can learn that wireless utilization rate and user's is negative
Load situation;In non-fully free wireless city management, by recording the upper offline daily record of user, it can be also used for supervision and use
Management of the family terminal in terms of free online time.Therefore, it is necessary to a kind of upper offline daily record for being capable of complete documentation user terminal
Method.
The content of the invention
According to problems of the prior art, used the invention provides one kind based on RADIUS and PORTAL agreements record
The method of family terminal downtime, the downtime of user terminal is able to record, is easy to obtain completely upper offline daily record, favorably
Operation and management in wireless city.
The present invention uses following technical scheme:
A kind of method based on RADIUS and PORTAL agreements record user terminal downtime, comprises the following steps:
S1, user terminal are linked into what first AP (Wireless Access Point, wireless access points) was covered
When under focus, user terminal is initiated network access authentication to PORTAL servers and is authenticated by certificate server, and certification passes through
Afterwards, the on-line time of user terminal is written to database server by PORTAL servers, while database server is returned
The daily record ID that reaches the standard grade as KEY, the mac address information of user terminal information, the first AP to reach the standard grade is saved in as content
In REDIS online user's cache lists of PORTAL servers;
S2, when the presence of user terminal changes, certificate server records the downtime of user terminal
To database server, while PORTAL servers read and update REDIS online user's cache lists.
Preferably, step S1 specific work process is as follows:
S11, when user terminal is linked under the focus that first AP is covered, user terminal is initiated to PORTAL servers
Net certification;
Certification page is pushed to user terminal by S12, PORTAL server;
S13, after user name and identifying code are inputted in the certification page of user terminal, submit to PORTAL servers;
Whether S14, PORTAL server notice certificate server certification user terminal are validated user;
S15, certificate server return authentication result to PORTAL servers;
S16, after certification success, the on-line time of user terminal is written to database server by PORTAL servers, together
When the daily record ID that reaches the standard grade that returns to database server as KEY, using user terminal information and the first AP information reached the standard grade as
Content is saved in REDIS online user's cache lists of PORTAL servers;If certification is unsuccessful, certification is re-started,
Untill certification success.
It is further preferred that in step S16, the user terminal information include user end certification user name,
User terminal brand and model, user terminal operations system and user terminal mac address information.
Still more preferably, in step S13, the user name refers to the cell-phone number that user terminal is used for receiving identifying code
Code, first the input handset number in the certification page of user terminal, PORTAL servers notice certificate server send identifying code
To user terminal, then in the certification page of user terminal after input validation code, PORTAL servers notice certificate server is recognized
Demonstrate,prove whether user terminal is validated user, i.e., then the user terminal is validated user when identifying code is correct, during identifying code mistake then
The user terminal is illegal user.
Still more preferably, in step S2, the presence of the user terminal changes to be overflow including user terminal
Swim under the focus that new AP is covered, user terminal actively clicks on offline, user terminal in certification page and exceeded setting
Free duration, user terminal leave the focus that first AP is covered and four kinds of offline situations.
Still more preferably, when user terminal is roamed under the focus that new AP covered, AC corresponding to new AP
(Access Controller, wireless controller) sends certificate server to by radius protocol and carries out certification of reaching the standard grade, simultaneously
Certificate server recorded the mac address information of the downtime of user terminal and new AP in database server,
PORTAL servers read and update REDIS online user's cache lists;
When user terminal actively clicks on offline in certification page, PORTAL servers receive offline request, and transmit
To certificate server, certificate server make it that user terminal is offline, while certificate server remembers the downtime of user terminal
Record in database server, PORTAL servers read and update REDIS online user's cache lists;
When PORTAL servers monitor that user terminal has exceeded the free duration of setting by certificate server, certification
Server make it that user terminal is offline, while the downtime of user terminal recorded database server by certificate server
In, PORTAL servers read and update REDIS online user's cache lists;
When user terminal leave the focus that first AP covered and it is offline when, if AC corresponding to first AP assists in PORTAL
Carry the mac address information of user terminal in the offline message of view, AC detect user terminal leave and it is offline when, it is straight by AC
Connect and kick the user terminal offline, while certificate server recorded the downtime of user terminal in database server,
PORTAL servers read and update REDIS online user's cache lists;If AC is in PORTAL agreements corresponding to first AP
Do not have in offline message carry user terminal mac address information, AC detect user terminal leave and it is offline when, pass through
PORTAL agreements inform PORTAL servers, PORTAL servers notice certificate server, and certificate server causes user terminal
Offline and the downtime of user terminal is recorded in database server, PORTAL servers, which read and update REDIS, to exist
Line user cache list.
The advantages of the present invention are:
1) method of record user terminal downtime of the invention is mainly used in when the presence of user terminal occurs
During change, the process that is recorded to the downtime of user terminal.And the presence of user terminal change including with
Under the focus that family terminal roaming is covered to new AP, user terminal actively clicks on offline, user terminal in certification page and exceedes
Free duration, the user terminal of setting leave the focus that first AP is covered and offline four kinds of situations, respectively for this four
Kind situation takes different processing modes to record downtime, is not constrained by AC and agreement.So, the note is passed through
The method of record user terminal downtime records to the downtime of user terminal, is easy to obtain complete upper offline day
Will.
2) for network access authentication by rear, the on-line time of user terminal is written to data to the present invention by PORTAL servers first
Storehouse server, while the daily record ID that reaches the standard grade that database server is returned is as KEY, by user terminal information, reach the standard grade it is first
AP mac address information is saved in REDIS online user's cache lists of PORTAL servers as content.Certificate server
When reading data, first read from REDIS online user's cache lists, if reading hit, information is directly read, if not
Hit is read, then data are read into database server.Certificate server is preferentially read from REDIS online user's cache lists
Access evidence, improves reading speed.
Brief description of the drawings
Fig. 1 is the workflow diagram of the method for the record user terminal downtime of the present invention.
Fig. 2 is the interaction diagrams of the method for the record user terminal downtime of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
As shown in Figure 1 and Figure 2, a kind of method based on RADIUS and PORTAL agreements record user terminal downtime, bag
Include following steps:
S1, when user terminal is linked under the focus that first AP is covered, user terminal is initiated to PORTAL servers
Net certification is simultaneously authenticated by certificate server, and by rear, PORTAL servers write the on-line time of user terminal for certification
Enter to database server, while the daily record ID that reaches the standard grade that database server is returned is as KEY, by user terminal information, on
The first AP of line mac address information is saved in REDIS online user's cache lists of PORTAL servers as content;
Specifically, process when user terminal is linked into first AP first is as follows:
S11, when user terminal is linked under the focus that first AP is covered, user terminal is initiated to PORTAL servers
Net certification;
Certification page is pushed to user terminal by S12, PORTAL server;
S13, after user name and identifying code are inputted in the certification page of user terminal, submit to PORTAL servers;
The user name refers to the phone number that user terminal is used for receiving identifying code, first in the certification page of user terminal
Input handset number, PORTAL servers notice certificate server sends identifying code to user terminal, then recognizing in user terminal
Demonstrate,prove in the page after input validation code, whether PORTAL servers notice certificate server certification user terminal is validated user, i.e.,
Then the user terminal is validated user when identifying code is correct, and then the user terminal is illegal user during identifying code mistake.
Whether S14, PORTAL server notice certificate server certification user terminal are validated user;
S15, certificate server return authentication result to PORTAL servers;
S16, after certification success, the on-line time of user terminal is written to database server by PORTAL servers, together
When the daily record ID that reaches the standard grade that returns to database server as KEY, using user terminal information and the first AP information reached the standard grade as
Content is saved in REDIS online user's cache lists of PORTAL servers;If certification is unsuccessful, certification is re-started,
Untill certification success.
Specifically, user name of the user terminal information including user end certification, user terminal brand and model, user
Terminal operating system and user terminal mac address information.
S2, when the presence of user terminal changes, certificate server records the downtime of user terminal
To database server, while PORTAL servers read and update REDIS online user's cache lists.
The presence of the user terminal change roamed into including user terminal under the focus that new AP covered,
User terminal actively certification page click on offline, user terminal exceeded the free duration of setting, user terminal leave it is first
Focus that AP is covered and four kinds of offline situations.
Specifically, when user terminal is roamed under the focus that new AP covered, following interactive step is carried out:
Step A1:AC corresponding to new AP sends certificate server to by radius protocol and carries out certification of reaching the standard grade;
Step A2:Certificate server recorded the mac address information of the downtime of user terminal and new AP simultaneously
In database server, PORTAL servers read and update REDIS online user's cache lists;
When user terminal actively clicks on offline in certification page, following interactive step is carried out:
Step B1:PORTAL servers receive offline request, and are sent to certificate server;
Step B2:Certificate server make it that user terminal is offline, while certificate server is by the downtime of user terminal
It recorded in database server, PORTAL servers read and update REDIS online user's cache lists;
When PORTAL servers monitor that user terminal has exceeded the free duration of setting by certificate server, carry out
Following interactive step:
Step C1:Certificate server make it that user terminal is offline, while certificate server is by the downtime of user terminal
It recorded in database server, PORTAL servers read and update REDIS online user's cache lists;
When user terminal leave the focus that first AP covered and it is offline when, carry out following interactive step:
Step D1:If AC corresponding to first AP carries the MAC of user terminal in the offline message of PORTAL agreements
Address information, AC detect user terminal leave and it is offline when, directly the user terminal is kicked by AC offline;
Step D2:Certificate server recorded the downtime of user terminal in database server simultaneously, PORTAL
Server reads and updates REDIS online user's cache lists;
Step D3:If AC corresponding to first AP does not have to carry user terminal in the offline message of PORTAL agreements
Mac address information, AC detect user terminal leave and it is offline when, PORTAL servers are informed by PORTAL agreements,
PORTAL servers notify certificate server;
Step D4:Certificate server causes user terminal offline and the downtime of user terminal is recorded in into database clothes
It is engaged in device, PORTAL servers read and update REDIS online user's cache lists.
In summary, user terminal is after the focus that first AP is covered is linked into, when the presence of user terminal is sent out
It is raw when changing, i.e., user terminal roam under the focus that new AP is covered, user terminal actively certification page click on it is offline,
User terminal has exceeded the free duration of setting, user terminal leaves the focus that first AP is covered and four kinds of offline situations,
Take different processing modes to record downtime for these four situations respectively, do not constrained by AC and agreement.This
Sample, the downtime of user terminal is recorded by the method for the record user terminal downtime, is easy to obtain
Whole upper offline daily record.
Claims (6)
- A kind of 1. method based on RADIUS and PORTAL agreements record user terminal downtime, it is characterised in that including such as Lower step:S1, when user terminal is linked under the focus that first AP is covered, user terminal is initiated online to PORTAL servers and recognized Demonstrate,prove and be authenticated by certificate server, by rear, the on-line time of user terminal is written to by PORTAL servers for certification Database server, while the daily record ID that reaches the standard grade that database server is returned is as KEY, by user terminal information, reach the standard grade First AP mac address information is saved in REDIS online user's cache lists of PORTAL servers as content;S2, when the presence of user terminal changes, certificate server records the downtime of user terminal to number According to storehouse server, while PORTAL servers read and update REDIS online user's cache lists.
- A kind of 2. side based on RADIUS and PORTAL agreements record user terminal downtime according to claim 1 Method, it is characterised in that step S1 specific work process is as follows:S11, when user terminal is linked under the focus that first AP is covered, user terminal is initiated online to PORTAL servers and recognized Card;Certification page is pushed to user terminal by S12, PORTAL server;S13, after user name and identifying code are inputted in the certification page of user terminal, submit to PORTAL servers;Whether S14, PORTAL server notice certificate server certification user terminal are validated user;S15, certificate server return authentication result to PORTAL servers;S16, after certification success, the on-line time of user terminal is written to database server by PORTAL servers, simultaneously will The daily record ID that reaches the standard grade that database server returns is as KEY, using user terminal information and the first AP information reached the standard grade as content It is saved in REDIS online user's cache lists of PORTAL servers;If certification is unsuccessful, certification is re-started, until Untill certification success.
- A kind of 3. side based on RADIUS and PORTAL agreements record user terminal downtime according to claim 2 Method, it is characterised in that:In step S16, the user terminal information includes user name, the user terminal brand of user end certification Model, user terminal operations system and user terminal mac address information.
- A kind of 4. side based on RADIUS and PORTAL agreements record user terminal downtime according to claim 3 Method, it is characterised in that:In step S13, the user name refers to the phone number that user terminal is used for receiving identifying code, first in user Input handset number in the certification page of terminal, PORTAL servers notice certificate server transmission identifying code to user terminal, Again in the certification page of user terminal after input validation code, PORTAL servers notice certificate server certification user terminal is No is validated user, i.e., then the user terminal is validated user when identifying code is correct, and then the user terminal is during identifying code mistake Illegal user.
- A kind of 5. side based on RADIUS and PORTAL agreements record user terminal downtime according to claim 4 Method, it is characterised in that:In step S2, the presence of the user terminal, which changes, roams into new AP including user terminal Under the focus covered, user terminal actively clicks on offline, user terminal in certification page and exceeded the free duration of setting, use Family terminal leaves the focus that first AP is covered and four kinds of offline situations.
- A kind of 6. side based on RADIUS and PORTAL agreements record user terminal downtime according to claim 5 Method, it is characterised in that:When user terminal is roamed under the focus that new AP covered, AC corresponding to new AP is sent to by radius protocol Certificate server carries out certification of reaching the standard grade, while certificate server believes the downtime of user terminal and new AP MAC Address Breath recorded in database server, and PORTAL servers read and update REDIS online user's cache lists;When user terminal actively clicks on offline in certification page, PORTAL servers receive offline request, and are sent to and recognize Server is demonstrate,proved, certificate server make it that user terminal is offline, while certificate server recorded the downtime of user terminal In database server, PORTAL servers read and update REDIS online user's cache lists;When PORTAL servers monitor that user terminal has exceeded the free duration of setting by certificate server, authentication service Device make it that user terminal is offline, while certificate server recorded the downtime of user terminal in database server, PORTAL servers read and update REDIS online user's cache lists;When user terminal leave the focus that first AP covered and it is offline when, if AC is in PORTAL agreements corresponding to first AP Carry the mac address information of user terminal in offline message, AC detect user terminal leave and it is offline when, directly will by AC The user terminal is kicked offline, while certificate server recorded the downtime of user terminal in database server, PORTAL servers read and update REDIS online user's cache lists;If AC is in PORTAL agreements corresponding to first AP Do not have in offline message carry user terminal mac address information, AC detect user terminal leave and it is offline when, pass through PORTAL agreements inform PORTAL servers, PORTAL servers notice certificate server, and certificate server causes user terminal Offline and the downtime of user terminal is recorded in database server, PORTAL servers, which read and update REDIS, to exist Line user cache list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710639596.3A CN107529191B (en) | 2017-07-31 | 2017-07-31 | Method for recording user terminal offline time based on RADIUS and PORTAL protocols |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710639596.3A CN107529191B (en) | 2017-07-31 | 2017-07-31 | Method for recording user terminal offline time based on RADIUS and PORTAL protocols |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107529191A true CN107529191A (en) | 2017-12-29 |
CN107529191B CN107529191B (en) | 2020-09-25 |
Family
ID=60680252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710639596.3A Active CN107529191B (en) | 2017-07-31 | 2017-07-31 | Method for recording user terminal offline time based on RADIUS and PORTAL protocols |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107529191B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327468A (en) * | 2018-11-22 | 2019-02-12 | 杭州迪普科技股份有限公司 | A kind of offline reminding method, device, equipment and storage medium |
CN110958275A (en) * | 2019-12-30 | 2020-04-03 | 杭州迪普科技股份有限公司 | Portal authentication roaming method and device and computer equipment |
CN111031053A (en) * | 2019-12-17 | 2020-04-17 | 迈普通信技术股份有限公司 | Identity authentication method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103476143A (en) * | 2012-06-07 | 2013-12-25 | 中国移动通信集团公司 | Method, device and system for IP resource releasing of WLAN |
US20140067980A1 (en) * | 2004-01-29 | 2014-03-06 | Yahoo! Inc. | Control for inviting an unaythenticated user to gain access to display of content that is otherwise accessible with an authentication mechanism |
CN104080085A (en) * | 2014-07-15 | 2014-10-01 | 中国电建集团华东勘测设计研究院有限公司 | Double authentication method, device and system for wireless network access |
CN106031827A (en) * | 2015-03-18 | 2016-10-19 | 广州四三九九信息科技有限公司 | Game server data storage, read method and system based on redis |
CN106603495A (en) * | 2016-11-15 | 2017-04-26 | 北京锐安科技有限公司 | radius signaling association method and system |
-
2017
- 2017-07-31 CN CN201710639596.3A patent/CN107529191B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140067980A1 (en) * | 2004-01-29 | 2014-03-06 | Yahoo! Inc. | Control for inviting an unaythenticated user to gain access to display of content that is otherwise accessible with an authentication mechanism |
CN103476143A (en) * | 2012-06-07 | 2013-12-25 | 中国移动通信集团公司 | Method, device and system for IP resource releasing of WLAN |
CN104080085A (en) * | 2014-07-15 | 2014-10-01 | 中国电建集团华东勘测设计研究院有限公司 | Double authentication method, device and system for wireless network access |
CN106031827A (en) * | 2015-03-18 | 2016-10-19 | 广州四三九九信息科技有限公司 | Game server data storage, read method and system based on redis |
CN106603495A (en) * | 2016-11-15 | 2017-04-26 | 北京锐安科技有限公司 | radius signaling association method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327468A (en) * | 2018-11-22 | 2019-02-12 | 杭州迪普科技股份有限公司 | A kind of offline reminding method, device, equipment and storage medium |
CN111031053A (en) * | 2019-12-17 | 2020-04-17 | 迈普通信技术股份有限公司 | Identity authentication method and device, electronic equipment and readable storage medium |
CN110958275A (en) * | 2019-12-30 | 2020-04-03 | 杭州迪普科技股份有限公司 | Portal authentication roaming method and device and computer equipment |
CN110958275B (en) * | 2019-12-30 | 2021-11-23 | 杭州迪普科技股份有限公司 | Portal authentication roaming method and device and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107529191B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9537961B2 (en) | Open type POI service system using SNS method and method thereof | |
US20150312296A1 (en) | Method and device for pushing multimedia resource and display terminal | |
CN106254560A (en) | Information transferring method and device | |
CN107529191A (en) | A kind of method based on RADIUS and PORTAL agreements record user terminal downtime | |
CN103618792B (en) | Data stream identification method and device | |
CN106874266A (en) | User's portrait method and the device for user's portrait | |
CN101552804A (en) | Network video distribution system and network video access method thereof | |
CN102054010B (en) | Interest point information processing method | |
CN107888942A (en) | A kind of video data shared system and method | |
CN105847359B (en) | A kind of method that intelligent dustbin is registered by smart mobile phone | |
CN102932775A (en) | Method and device for carrying out terminal identification by combining IMEI and UA | |
CN102325185A (en) | Android system mobile phone software-downloading method based on two-dimensional code recognition | |
CN104125206A (en) | Client-side hardware environment adaption method, device, server and system | |
CN107636722A (en) | For the management method and management server using multiple SIM card | |
CN106169995B (en) | A kind of anti-brush method and system of webcast website's handset binding short-message verification | |
CN104394475A (en) | Streaming media file playing method and media player | |
CN103368977A (en) | Network connection method and terminal equipment | |
CN102298617A (en) | Method for obtaining target page and equipment | |
KR20090001477A (en) | Method and system for real-time sharing of situational information | |
CN101958912A (en) | Classification level query method, system and uniform resource locator server | |
CN107610452A (en) | The closely quick about car method and system of bluetooth hot spot positioning | |
CN102907062A (en) | Service acquirement method and terminal, input method and device, cloud service card and system | |
CN104954398A (en) | Method and device for acquiring content | |
CN102802145A (en) | Network service billing method, device and system | |
CN103609193B (en) | The method and wireless access network equipment of identification terminal type |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |