The content of the invention
In view of the foregoing deficiencies of prior art, reported it is an object of the invention to provide a kind of access point to server
The method and system of terminal access state transmit the state occupancy of STA largely for solving AP in the prior art by message
The problem of network bandwidth resources.
In order to achieve the above objects and other related objects, the present invention provides a kind of access point and is accessed to server reporting terminal
The method of state, applied in the network system including server, access point, described access point is accessed to server reporting terminal
The method of state includes:According to the information management terminal information table of the terminal of access described access point, in the terminal information table
Each entry correspond to the information state of a terminal, the entry includes the essential information field and terminal of terminal
Turn-on time identification field;The access state of the terminal is obtained in the first time period of each setting, by current the
When the turn-on time stamp of one period is written to the access of the entry in the corresponding terminal information table of terminal in access state
Between in identification field;A state bitmap is generated in the second time period of setting, the second time period includes integral multiple
First time period, the state bitmap include the integral multiple state table, and a state table corresponds one the
The access state of all terminals in one period, a bit place value of the state table are corresponded in terminal information table
One with the access state of a terminal in the corresponding first time period of the state table;By the state bitmap and
The end message newly added in presently described second time period creates SOT state of termination message and is sent to server;The server root
The terminal information table corresponding with described access point in server is changed according to the SOT state of termination message, so that described access point
Terminal information table terminal information table corresponding with server synchronizing information.
Optionally, when described access point receives the Probe frames that the terminal is sent, the access shape of current first time period
State is access.
Optionally, when the access state in a first time period of a terminal in terminal information table is accesses,
1 is assigned a value of to the corresponding bit of the terminal in corresponding one group of state table.
Optionally, the method for described access point to server reporting terminal access state further includes:When server receives
The SOT state of termination message in comprising reset mark when, the server re-establishes the terminal information table in server.
Optionally, the method for described access point to server reporting terminal access state further includes:Described access point passes through
Server described in TCP chain road directions sends the SOT state of termination message, transmitted when TCP links disconnection re-establishes
First SOT state of termination message is included to reset and identified.
The present invention also provides a kind of access points to the system of server reporting terminal access state, and described access point is to service
The system of device reporting terminal access state includes server, access point, and described access point includes:Terminal information table management module,
For the information management terminal information table of the terminal according to access described access point, each entry in the terminal information table
The information state of a terminal is corresponded to, the entry includes the essential information field of terminal and the turn-on time mark of terminal
Character learning section;The access state of the terminal is obtained in the first time period of each setting, by connecing for current first time period
Angle of incidence stamp is written in the turn-on time identification field of the entry in the corresponding terminal information table of terminal in access state;
SOT state of termination message generation module, for generating a state bitmap, the second time period in the second time period of setting
First time period including integral multiple, the state bitmap include the integral multiple state table, and a state table is one by one
The access state of all terminals in a first time period is corresponded to, a bit place value of the state table corresponds
In terminal information table one with the access state of a terminal in the corresponding first time period of the state table;By the shape
State bitmap and the end message newly added in presently described second time period create SOT state of termination message;SOT state of termination message
Sending module, for the SOT state of termination message to be sent to server.
Optionally, when described access point receives the Probe frames that the terminal is sent, the access shape of current first time period
State is access.
Optionally, when the access state in a first time period of a terminal in terminal information table is accesses,
1 is assigned a value of to the corresponding bit of the terminal in corresponding one group of state table.
Optionally, the SOT state of termination generation module is additionally operable to:Described access point is sent out by server described in TCP chain road directions
The SOT state of termination message is sent, when TCP links disconnection re-establishes, transmitted first SOT state of termination message
It is identified comprising resetting.
The present invention also provides a kind of access points to the system of server reporting terminal access state, and described access point is to service
The system of device reporting terminal access state includes server, access point, and the server includes:SOT state of termination Message processing mould
Block, for receive access point transmission SOT state of termination message, and according to the SOT state of termination message change server in institute
The corresponding terminal information table of access point is stated, so that the terminal information table of described access point end message corresponding with server
The synchronizing information of table.
Optionally, the SOT state of termination message processing module (MPM) is additionally operable to:When the SOT state of termination report that server receives
When in text comprising mark is reset, the server re-establishes the terminal information table in server.
The present invention also provides a kind of access points to the system of server reporting terminal access state, and described access point is to service
The system of device reporting terminal access state includes server as described above, access point as described above.
As described above, a kind of access point of the present invention has to the method and system of server reporting terminal access state
Following advantageous effect:While STA (terminal) access state is periodically reported to server by AP (access point) guarantees, significantly
Reduce the occupancy to network bandwidth resources.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way,
Then in schema only display with it is of the invention in related component rather than component count, shape and size during according to actual implementation paint
System, kenel, quantity and the ratio of each component can be a kind of random change during actual implementation, and its assembly layout kenel also may be used
It can be increasingly complex.
The present invention provides a kind of method of access point to server reporting terminal access state, applied to including server,
In the network system of access point.The server is connected with multiple access points, and multiple access points are managed, each access point
(AP) multiple terminals (STA) can be accessed.The timing of each access point 11 (AP) reports the access point 11 to server 12
(AP) terminal access state.In one embodiment, as shown in Figure 1, described access point accesses shape to server reporting terminal
The method of state includes:
Step S1, according to the information management terminal information table of the terminal of access described access point, in the terminal information table
Each entry correspond to the information state of a terminal, the entry includes the essential information field and terminal of terminal
Turn-on time identification field.In one embodiment, when described access point receives the Probe frames that the terminal is sent, table
The bright terminal is to be linked into the terminal of described access point, will be established in terminal information table with the corresponding entry of the terminal,
The essential information field of wherein described terminal can include the MAC Address of the terminal.When the terminal is looked into terminal information table
When finding corresponding entry (i.e. the identical entry of essential information field contents), illustrate the end message in terminal information table
Middle presence, the terminal are added terminal.When the terminal does not find corresponding entry (i.e. substantially in terminal information table
The identical entry of information field content) when, illustrate that the end message is not present in terminal information table, which newly adds in
Terminal.Access point will be that the terminal newly added in establishes corresponding entry in terminal information table.
Step S2 obtains the access state of the terminal in the first time period of each setting, during by current first
Between the turn-on time stamp of section be written to the turn-on time mark of entry in the corresponding terminal information table of terminal in access state
In section of becoming literate.In one embodiment, when described access point receives the Probe frames that the terminal is sent, current first is shown
The access state of period is access, and the turn-on time stamp of current first time period is written to the terminal-pair in access state
In the turn-on time identification field of entry in the terminal information table answered.The turn-on time stamp of current first time period can be one
The temporal information of the current first time period of a mark, the temporal information be alternatively referred to as the first time period that specification is crossed time stamp or
The time stamp that specification is crossed.
Step S3, generates a state bitmap in the second time period of setting, and the second time period includes integral multiple
First time period, the state bitmap includes the integral multiple state table, and a state table corresponds one
The access state of all terminals in first time period, a bit place value of the state table correspond terminal information table
In one with the access state of a terminal in the corresponding first time period of the state table.Specifically, end message is worked as
When the access state in a first time period of a terminal is accesses in table, described in corresponding one group of state table
The corresponding bit of terminal is assigned a value of 1, this shows in the region that the terminal is covered in access point (AP).Work as end message
When the access state in a first time period of a terminal is not to access in table, to the institute in corresponding one group of state table
It states the corresponding bit of terminal and is assigned a value of 0, this shows that the terminal has left the region that access point (AP) is covered.At one
In embodiment, the first time period is 30 seconds, and second time period is 10 minutes, and the integral multiple is 20, second time period bag
Include 20 first time period.
Step S4 creates the state bitmap and the end message newly added in presently described second time period eventually
End state message is sent to server.The terminal for detecting access in current second time section is not found in terminal information table
During corresponding entry (i.e. the identical entry of essential information field contents), illustrate that the end message is not deposited in terminal information table
In the terminal that the terminal newly adds in for current second time section.In one embodiment, the SOT state of termination message further includes weight
Mark is put, when the SOT state of termination message includes resetting mark, all terminal entries in the terminal information table of access point are all
It is added to as the end message newly added in SOT state of termination message.In one embodiment, described access point passes through TCP chains
Server described in road direction sends the SOT state of termination message, when the TCP links, which disconnect, to be rebuild, described in transmitted first
SOT state of termination message is included to reset and identified.First SOT state of termination message that described access point is sent is included to reset and identified.It is described
The end message newly added in includes the partial content or full content of the essential information field of the terminal newly added in.
Step S5, the server are changed corresponding with described access point in server according to the SOT state of termination message
Terminal information table, so that the synchronizing information of the terminal information table of described access point terminal information table corresponding with server.
In one embodiment, the method for described access point to server reporting terminal access state further includes:When server receives
The SOT state of termination message in comprising reset mark when, the server re-establishes the terminal information table in server.Institute
State server for its each access point (AP) managed establish one with described access point for terminal information table.
In one embodiment, second time period includes 20 first time period, the maximum length of the terminal information table
For 1024.AP (access point) is stored in the end message of STA (access terminal) in terminal information table.When AP receives certain STA
PROBE frames after, should be inquired about according to MAC Address in array and whether have this, if it is not, finding the idle item in table
Mesh or the terminal type that the oldest program recording STA of time stamp is deleted in the case where table has been expired, the information such as brand, SSID, and
These information are recorded on the timing node of 30 seconds integral multiples in upload information message.It is sent out when timing in next 10 minutes reaches
Send that (terminal type of STA, the information such as brand, SSID can be stored in Dram, after information is dealt into server, i.e.,
It can be deleted in table, memory headroom can be saved).If finding MAC Address in array, time stamp is updated to being most recently received
PROBE time stamps.SOT state of termination table is as shown in the table:
MAC0 |
The end message of MAC0 |
The time stamp that the specification being most recently received is crossed |
MAC1 |
The end message of MAC1 |
The time stamp that the specification being most recently received is crossed |
MAC2 |
The end message of MAC2 |
The time stamp that the specification being most recently received is crossed |
... |
... |
... |
... |
... |
... |
MAC1023 |
The end message of MAC1023 |
The time stamp that the specification being most recently received is crossed |
Wherein, the position that MAC0, MAC1...MAC1023 representative store in SOT state of termination table is not to represent reality
MAC Address.The terminating packet terminal essential information, the time stamp that the specification being most recently received is crossed, index know some first when
Between section temporal information.
The state bitmap is as shown in the table:
The SOT state of termination message generated is as shown in the table:
Wherein, message version number is currently 1, accounts for 1byte.It is previous whether RESET mark representative server sections need to empty
Record that is, with the presence or absence of mark is reset, when RESET is identified as 1, shows that server-side needs to rebuild terminal in the presence of mark is reset
Information table;When RESET is identified as 0, show that server-side need not rebuild terminal information table there is no mark is reset;RESET is marked
1byte can be accounted for by knowing position.BIT state tables are exactly above-mentioned state bitmap.Newly-increased entry N shows in this SOT state of termination message
In the end message number that increases newly, newly-increased terminal is generates end for newly increasing in the second time period of the SOT state of termination message
End.The newly-increased end message has N items, represents the information for including newly-increased N number of terminal, the content of the newly-increased end message is such as
Shown in following table:
ID1 (is represented in the position of terminal information table) |
End message |
The time stamp that specification is crossed |
ID2 (is represented in the position of terminal information table) |
End message |
The time stamp that specification is crossed |
ID3 (is represented in the position of terminal information table) |
End message |
The time stamp that specification is crossed |
... |
... |
... |
IDN (is represented in the position of terminal information table) |
End message |
The time stamp that specification is crossed |
Wherein, end message can be for the content of the essential information field of terminal, the MAC Address including terminal.In this way, eventually
Only comprising STA (terminal) state newly accessed in the state message of end, shape was indicated in upper once state message for those
The STA (terminal) of state, it is only necessary to be identified in BIT state tables with 1 BIT.When periodic 10 minutes (the second time
Section) timing reach when, the end message being stored in terminal information table is passed through the message tissue shape mentioned by the present invention by we
Formula creates message, and passes through the TCP long linkup transmits established in advance to server.Due to the memory resource limitation of AP, if
The STA numbers obtained in 10 minutes (second time period) are more than the maximum number that AP may store, then AP, which should be deleted, receives PROBE frames
The oldest STA of time stamp.When network failure causes TCP to re-establish connection, we establish first report after connection in TCP
The RESET positions of text are 1, and empty current STA information tables.Server should be clear at the first time after this message is received
The STA information tables at Server ends so that Server (server) is synchronous with AP (access point) client information.
The present invention also provides a kind of access points to the system of server reporting terminal access state, and described access point is to service
The system of device reporting terminal access state includes server, access point.The server is connected with multiple access points, is connect to multiple
Access point is managed, and each access point (AP) can access multiple terminals (STA).A kind of access point is reported eventually to server
The system of end access state may be employed method from a kind of access point as described above to server reporting terminal access state into
Row terminal's status information is reported.
In one embodiment, as shown in Fig. 2, the system 1 of described access point to server reporting terminal access state is wrapped
Include server 12, access point 11.Described access point 11 includes terminal information table management module 111, SOT state of termination message generation mould
Block 112 and SOT state of termination message sending module 113.Wherein:
Terminal information table management module 111 is used for the information management terminal information of the terminal according to access described access point
Table, each entry in the terminal information table correspond to the information state of a terminal, and the entry includes the base of terminal
The turn-on time identification field of this information field and terminal;The terminal is obtained in the first time period of each setting
Access state, turn-on time of current first time period stamp is written to the corresponding end message of terminal in access state
In the turn-on time identification field of entry in table.In one embodiment, when described access point receives what the terminal was sent
During Probe frames, it is to be linked into the terminal of described access point to show the terminal, will be established in terminal information table and the terminal phase
Corresponding entry, wherein the essential information field of the terminal can include the MAC Address of the terminal.When the terminal is in terminal
When corresponding entry (i.e. the identical entry of essential information field contents) is found in information table, illustrate that the end message exists
Exist in terminal information table, which is added terminal.When the terminal do not found in terminal information table it is corresponding
During entry (i.e. the identical entry of essential information field contents), illustrate that the end message is not present in terminal information table, the end
Hold the terminal newly added in.Access point will be that the terminal newly added in establishes corresponding entry in terminal information table.In a reality
It applies in example, when described access point receives the Probe frames that the terminal is sent, the access state for showing current first time period is
The turn-on time stamp of current first time period is written in the corresponding terminal information table of terminal in access state by access
In the turn-on time identification field of entry.The turn-on time stamp of current first time period can be that a mark is current at the first time
The temporal information of section, the time stamp which is alternatively referred to as the time stamp for the first time period that specification is crossed or specification is crossed.
SOT state of termination message generation module 112 is connected with terminal information table management module 111, in the second of setting
Between in section one state bitmap of generation, the second time period include the first time period of integral multiple, the state bitmap includes
The integral multiple state table, a state table correspond the access shape of all terminals in a first time period
State, a bit place value of the state table correspond one and the state table corresponding first in terminal information table
The access state of a terminal in period;It adds in the state bitmap and newly in presently described second time period
End message creates SOT state of termination message.In one embodiment, when in terminal information table terminal at one first when
Between access state in section for access when, be assigned a value of to the corresponding bit of the terminal in corresponding one group of state table
1, this shows in the region that the terminal is covered in access point (AP).When in terminal information table terminal at one first when
Between access state in section for access when, to the corresponding bit assignment of the terminal in corresponding one group of state table
For 0, this shows that the terminal has left the region that access point (AP) is covered.In one embodiment, the first time period is
30 seconds, second time period was 10 minutes, and the integral multiple is 20, and second time period includes 20 first time period.Current
Two periods detected that the terminal of access did not found corresponding entry (i.e. essential information field contents phase in terminal information table
Same entry) when, illustrate that the end message is not present in terminal information table, what which newly added in for current second time section
Terminal.In one embodiment, the SOT state of termination message further includes replacement mark, when the SOT state of termination message includes resetting
During mark, all terminal entries in the terminal information table of access point are all added to terminal shape using as the end message newly added in
In state message.In one embodiment, described access point sends the SOT state of termination report by server described in TCP chain road directions
Text, when the TCP links, which disconnect, to be rebuild, transmitted first SOT state of termination message is included to reset and identified.It is described to connect
First SOT state of termination message that access point is sent is included to reset and identified.The end message of the new addition includes the terminal newly added in
Essential information field partial content or full content.The SOT state of termination message generation module 112 each second when
Between in section timing generate a SOT state of termination message.
SOT state of termination message sending module 113 is connected with SOT state of termination message generation module 112, for by the terminal shape
State message is sent to server.
In one embodiment, as shown in Fig. 2, the system 1 of described access point to server reporting terminal access state is wrapped
Server 12, access point 11 are included, the server 12 includes SOT state of termination message processing module (MPM) 121.The SOT state of termination message
Processing module 121 is used to receive the SOT state of termination message of access point transmission, and changes server according to the SOT state of termination message
In terminal information table corresponding with described access point so that the terminal information table of described access point is corresponding with server
The synchronizing information of terminal information table.The server 12 establishes one and the access for its each access point (AP) managed
Point for terminal information table.In one embodiment, the SOT state of termination message processing module (MPM) 121 is additionally operable to:Work as server
When in the SOT state of termination message received comprising mark is reset, the server re-establishes the end message in server
Table.
The present invention also provides a kind of access points to the system of server reporting terminal access state.As shown in Fig. 2, described connect
Access point includes server 12 as described above, access point as described above 11 to the system 1 of server reporting terminal access state.
The server 12 is connected with multiple access points 11, and multiple access points 11 are managed, and each access point 11 (AP) can connect
Enter multiple terminals (STA).The timing of each access point 11 (AP) reports that the terminal of the access point 11 (AP) connects to server 12
Enter state.
In conclusion a kind of access point of the present invention has to the method and system of server reporting terminal access state
Following advantageous effect:While STA (terminal) access state is periodically reported to server by AP (access point) guarantees, significantly
Reduce the occupancy to network bandwidth resources.So the present invention effectively overcomes various shortcoming of the prior art and has height and produce
Industry utility value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.