Summary of the invention
According to the above-mentioned problems in the prior art, a kind of user login information jitter-prevention processing method is now provided and is
The technical solution of system, it is intended to solve because client frequently it is upper it is offline cause information to shake caused by asking of losing of the online information of user
Topic, avoids between wireless access end and server-side that offline information communicates in frequent progress;
Above-mentioned technical proposal specifically includes:
A kind of user login information jitter-prevention processing method is applied in wireless network;Wherein, including wireless access end,
The wireless access end is remotely connect with external service management end, and the wireless access end sends different wireless clients
The user login information come is forwarded to the service management end and is managed;
In the timer for being provided with time-count cycle including one in the wireless access end, further includes:
Step S1, the wireless access end receives the user login information, and judges whether the timer is opened
It opens:
If the timer has been turned on, step S3 is turned to;
Step S2, the wireless access end records the user login information, and opens the timer, is then returned to institute
State step S1;
Step S3, the wireless access end record the user login information, and judge the timing of the timer
Whether the period terminates:
If it is not, then returning to the step S1;
The timer, and all institutes that will be received in the time-count cycle are closed in step S4, the wireless access end
It states user login information and is uniformly sent to the service management end.
Preferably, user login information jitter-prevention processing method, wherein the user login information includes:
For indicating the online information of the online user of the wireless client, and
For indicating the offline user offline information of the wireless client.
Preferably, user login information jitter-prevention processing method, wherein the online information of user includes that connection is online
The wireless client Media Access Control address;
If the user login information is the online information of the user, the wireless access end records the user and logs in
Information specifically:
Record connects the Media Access Control address of the online wireless client, and online described of connection
The connection status of wireless client.
Preferably, user login information jitter-prevention processing method, wherein the user offline information includes offline institute
State the Media Access Control address of wireless client;
If the user login information is the user offline information, the wireless access end records the user and logs in
The step of information, specifically includes:
Whether the wireless access end judges the Media Access Control address for including in the user offline information
Through being recorded:
If it is not, then the wireless access end records the Media Access Control address of the offline wireless client,
And the connection status of the offline wireless client;
If so, the Media Access Control address being recorded is wiped at the wireless access end.
Preferably, the user login information jitter-prevention processing method, wherein in the step S1, the wireless access end
The step of receiving the user login information specifically includes:
Step S11 receives the user using the receiving unit for being set to application layer in the wireless access end and logs in
Information;
The user login information received is reported to the user's pipe being arranged in the wireless access end by step S12
It manages in unit;
In the step S2 and the step S3, the user login information is recorded using the service management unit.
Preferably, user login information jitter-prevention processing method, wherein the time-count cycle is 5 seconds.
Preferably, user login information jitter-prevention processing method, wherein close the timing at the wireless access end
After device, all user login informations recorded in the time-count cycle are wiped at the wireless access end.
A kind of user login information stabilization processing system is applied in wireless network;Wherein, including wireless access end,
The wireless access end is remotely connect with external service management end;
The wireless access end includes:
Receiving unit, for receiving the user login information for connecting the wireless client at the wireless access end;
Timing unit is preset with a time-count cycle;
Service management unit is separately connected the receiving unit and the timing unit, for connecing in the receiving unit
When receiving the user login information, the operating status of the timing unit is judged, and grasped accordingly according to judging result
Make:
If the timing unit is not yet turned on, the service management unit records the user login information, and opens
The timing unit;
If the timing unit has been switched on, the service management unit records the user login information;
The service management unit then closes the timing unit a time-count cycle, and the timing is all
All user login informations recorded in phase are uniformly forwarded to the service management end.
Preferably, user login information stabilization processing system, wherein the user login information includes:
For indicating the online information of the online user of the wireless client, and
For indicating the offline user offline information of the wireless client.
Preferably, user login information stabilization processing system, wherein the online information of user includes that connection is online
The wireless client Media Access Control address;
Include: in the service management unit
First logging modle, in user login information information online for the user, record connects online institute
The Media Access Control address of wireless client is stated, and connects the connection status of the online wireless client.
Preferably, user login information stabilization processing system, wherein the user offline information includes offline institute
State the Media Access Control address of wireless client;
Include: in the service management unit
Judgment module judges the user offline information when the user login information is the user offline information
In include the Media Access Control address whether be recorded, and export corresponding judging result;
Second logging modle connects the judgment module, is used for according to the judging result, in the medium access control
When address is not recorded, the Media Access Control address of the offline wireless client, and offline described are recorded
The connection status of wireless client;
Module is wiped, the judgment module is connected, is used for according to the judging result, in the Media Access Control address
When being recorded, the Media Access Control address being recorded is wiped.
Preferably, user login information stabilization processing system, wherein the receiving unit, which is set to, described wirelessly to be connect
Enter in the application layer at end.
Preferably, user login information stabilization processing system, wherein the time-count cycle is 5 seconds.
Preferably, user login information stabilization processing system, wherein in the service management unit further include:
Second erasing module, connects second logging modle, for described in the erasing when the timing unit is closed
All user login informations that record obtains in time-count cycle.
The beneficial effect of above-mentioned technical proposal is:
1) a kind of user login information jitter-prevention processing method is provided, be able to solve because client frequently it is upper it is offline caused by letter
The problem of online information of user caused by breath is shaken is lost avoids between wireless access end and server-side offline letter in frequent progress
Message communication;
2) a kind of user login information stabilization processing system is provided, can support to realize at above-mentioned user information stabilization
Reason method.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
In preferred embodiment of the invention, the above-mentioned technical problems in the prior art are based on, a kind of use is now provided
Family log-on message jitter-prevention processing method, in this method, including wireless access end (wireless aps), wireless access end and external clothes
Business management end remotely connects, and wherein the user login information that different wireless clients is sent is forwarded to it by wireless access end
Middle service management end is managed, and in the timer for being provided with time-count cycle including one in wherein wireless access end.
Then the above method is specifically as shown in Figure 1, comprising:
Step S1, wireless access end receives user login information, and judges whether timer has been turned on:
If timer has been turned on, step S3 is turned to;
Step S2, wireless access end record user login information, and opening timing device, are then returned to step S1;
Step S3, wireless access end records user login information, and judges whether the time-count cycle of timer terminates:
If it is not, then return step S1;
Step S4, wireless access end Off Timer, and all user login informations received in time-count cycle are united
One is sent to service management end.
In a specific embodiment, above-mentioned wireless access end connects multiple wireless clients, and each wireless client exists
When connecting online or offline all corresponding user login information can be sent to wireless access end.
Single treatment then online/offline for a wireless client and that user login information is sent to wireless access end
For process, above-mentioned wireless access end first determines whether timer has been turned on after receiving above-mentioned user login information:
If so, indicating that the user login information is first use that this batch (being associated with a time-count cycle) receives
Family log-on message, wireless access end records the user login information, and opening timing device at this time;
If not, then it represents that this batch record has begun when receiving the user login information, and only needing to record at this time should
User login information.
In this embodiment, if the user login information received is not first user login letter in this batch record
Breath, then after having recorded the user login information, wireless access end judges whether the time-count cycle of the timer expires:
If time-count cycle arrives, then it represents that the user login information of this batch is recorded and finished, this be incited somebody to action in wireless access end at this time
All user login informations being recorded in time-count cycle are uniformly forwarded to above-mentioned service management end, for the progress of service management end
Processing;
If time-count cycle does not arrive, then it represents that the user login information of this batch is not yet recorded and finished, at this time wireless access end
Continue the user login information received after record, until the time-count cycle of above-mentioned timer is until.
In conclusion, by the way that the timer of a fixed time-count cycle is arranged, script is needed in technical solution of the present invention
Upper offline information mutual communication between the wireless access end and service management end of frequent progress is changed into a batch of user of system and logs in
Information forwarding can cause information to avoid service management end from losing online information in the case where shake frequently above offline.
In preferred embodiment of the invention, above-mentioned user login information includes:
For indicating the online information of the online user of wireless client, and
For indicating the offline user offline information of wireless client.
Further, in preferred embodiment of the invention, the above-mentioned online information of user is for indicating that wireless client connects
Line is connected, i.e., establishes effective interface channel between expression wireless client and wireless access end, then the online information of above-mentioned user
In may include (Media Access Control, the medium access control) address MAC of the wireless client and this is wireless
The connection status of client (i.e. the wireless client, which is now in, connects online state).
Correspondingly, above-mentioned user offline information is for indicating that wireless client is offline, i.e. expression wireless client and wireless
The interface channel established between incoming end disconnects, then equally may include the wireless client in above-mentioned user offline information
MAC Address, and the connection status including the wireless client (i.e. the wireless client is now in offline state).
In preferred embodiment of the invention, it is based on the above, if user login information is that user is online
Information, then wireless access end records user login information specifically:
Record connects the Media Access Control address of online wireless client, and connects online wireless client
Connection status.
In preferred embodiment of the invention, it is equally based on the above, if user login information is user
The step of offline information, then above-mentioned wireless access end records user login information specifically:
Wireless access end judges whether the Media Access Control address for including in user offline information has been recorded:
If it is not, then wireless access end record offline wireless client Media Access Control address and offline nothing
The connection status of line client;
If so, the Media Access Control address being recorded is wiped at wireless access end.
Specifically, unlike the online information of above-mentioned user, for the recording process of user offline information, wireless access
The process of MAC Address comparison is had more in end, it may be assumed that
If being had been recorded in wireless access end before being associated with the MAC Address of the user offline information, then it represents that should
Offline wireless client once connected online mistake within this time-count cycle, and wireless access end only needs for this to be recorded at this time
MAC Address erasing;
If being not yet recorded in wireless access end before being associated with the MAC Address of the user offline information, then it represents that should
The online time is connected not within this time-count cycle before offline wireless client, and wireless access end needs to record at this time
The MAC Address of the wireless client, while recording the offline connection status of the wireless client.
In preferred embodiment of the invention, after the Off Timer of wireless access end, above-mentioned wireless access end is by timing
All user login informations erasing that record obtains in period.
Therefore, based on the above method, in technical solution of the present invention, can by the way of timer timing into
Row wireless access end receives and processes the process of user login information:
If wireless access termination receives user login information (the online information of user or use before timer starts timing
Family offline information), then due to previous time-count cycle in the user login information that receives be wiped free of, currently can not
There can be MAC Address identical with the user login information being currently received, wireless access end directly records the user and steps at this time
Record information and opening timing device.
If wireless access termination receives user login information after timer starts, needed at this time to different situation areas
It does not treat:
If what is received is the online information of user, wireless access end only needs to record the user login information at this time,
Record the corresponding MAC Address of the online wireless client of the connection;
If what is received is user offline information, wireless access end needs to judge whether its MAC Address is remembered at this time
Record, that is, judge whether the wireless client that this is offline within this time-count cycle once connected online mistake.If so, only needing to wipe
Except the MAC Address being recorded, if it is not, then needing to record the offline of the MAC Address and corresponding wireless client
Connection status.
Finally, all user login informations recorded in a time-count cycle are uniformly forwarded to above-mentioned clothes by wireless access end
Business management end.
In a preferred embodiment of the invention, by there are for wireless client A-D connection wireless access end.?
Timer open before, wireless client A attempt access wireless access end, therefore send the online information of user, at this time without
Line incoming end record wireless client A MAC Address and corresponding connection status, and opening timing device;
After opening timing device, wireless client B and C successively attempt access wireless access end, then wireless access end records
The MAC Address of wireless client B and C and corresponding connection status.It is had recorded in wireless access end at this time about wireless visitor
3 user login informations of family end A-C.
Within the time-count cycle of the timer, wireless client A and D attempt, i.e. trial entrance offline from wireless access end
Offline normality, wireless client A and D can send user offline information to wireless access end at this time, and wireless access termination receives
It, can be for the comparison that each MAC Address is recorded after stating two user offline information.It is associated with wireless client A's at this time
MAC Address has been recorded, therefore the user offline information for being associated with wireless client A, and wireless access end only needs to wipe
Except the MAC Address of corresponding wireless client A.And the MAC Address for being associated with wireless client D is not yet recorded, therefore
For being associated with the user offline information of wireless client D, wireless access end needs to record the MAC Address of wireless client D,
And corresponding connection status.
Finally, the time-count cycle of the timer then, what is recorded in wireless access end should are as follows: wireless client B
The MAC Address of online connection status and wireless client D and offline connection status with the MAC Address of C and connection.?
The time-count cycle of the timer then, wireless access end by above-mentioned user login information be uniformly forwarded to service management end carry out after
Continuous processing.
In preferred embodiment of the invention, above-mentioned time-count cycle can be 5 seconds, i.e., timer be turned on after by 5 seconds
It is closed again.In the other embodiment of the present invention, other suitable numerical value, such as 3 seconds can be set to above-mentioned time-count cycle
Or 7 seconds, time-count cycle is shorter, then the user login information between wireless access end and service management end interacts more frequent.
In preferred embodiment of the invention, in step S1, wireless access end receive user login information the step of it is specific
As shown in Figure 2, comprising:
Step S11 receives user login information using the receiving unit for being set to application layer in wireless access end;
Step S12 reports to the user login information received in the service management unit being arranged in wireless access end;
Then in above-mentioned steps S2 and step S3, user login information is recorded using service management unit.
Specifically, in preferred embodiment of the invention, above-mentioned receiving unit can be to be set to answering for wireless access end
With certain specific process for being controlled kernel state in layer.
It is existing based on the above user login information jitter-prevention processing method in preferred embodiment of the invention
A kind of user login information stabilization processing system is provided, the specific structure is shown in FIG. 3 for the system, including wireless access end 1,
The wireless access end 1 is remotely connect with external service management end 2;
Wireless access end 1 includes:
Receiving unit 11, the user login information of the wireless client (not shown) for receiving connection wireless access end 1;
Timing unit 12 is preset with a time-count cycle;
Service management unit 13 is separately connected receiving unit 11 and timing unit 12, for receiving in receiving unit 11
When user login information, the operating status of timing unit 12 is judged, and corresponding operation is carried out according to judging result:
If timing unit 12 is not yet turned on, service management unit 13 records user login information, and opening timing unit
12;
If timing unit 12 has been switched on, service management unit 13 records user login information;
Service management unit 13 is in a time-count cycle of then timeing closing unit 12, and the institute that will be recorded in time-count cycle
There is user login information to be uniformly forwarded to service management end 2.
In preferred embodiment of the invention, as mentioned above it is possible, user login information includes:
For indicating the online information of the online user of wireless client, and
For indicating the offline user offline information of wireless client.
In preferred embodiment of the invention, the online information of user includes the medium access of the online wireless client of connection
Control address;
Then as shown in figure 4, including: in above-mentioned service management unit 13
First logging modle 131, in user login information information online for user, record connects online wireless client
The Media Access Control address at end, and connect the connection status of online wireless client.
In preferred embodiment of the invention, user offline information includes the medium access control of offline wireless client
Address;
Then still as shown in figure 4, including: in above-mentioned service management unit 13
Judgment module 132 judges Jie for including in user offline information when user login information is user offline information
Whether matter accessing to control address has been recorded, and exports corresponding judging result;
Second logging modle 133, connection judgment module 132, for according to judging result, Media Access Control address not
When being recorded, the Media Access Control address of offline wireless client and the connection shape of offline wireless client are recorded
State;
First erasing module 134, connection judgment module 132, for according to judging result, Media Access Control address
When being recorded, the Media Access Control address being recorded is wiped.
In preferred embodiment of the invention, above-mentioned receiving unit 11 is arranged in the application layer at wireless access end, tool
It can be body certain specific process for being controlled kernel state in the application layer of wireless access end.
It in preferred embodiment of the invention, is preferably above-mentioned time-count cycle 5 seconds, or other suitable numbers
Value.
In preferred embodiment of the invention, still as shown in figure 4, in above-mentioned service management unit 13 further include:
Second erasing module 135, connects the second logging modle 133, for wiping timing when timing unit 12 is closed
All user login informations that record obtains in period.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.