A kind of method and apparatus for monitoring client signal featureTechnical field
The present invention relates to WLAN field, more particularly to a kind of method and apparatus for monitoring client signal feature.
Background technology
WLAN (Wireless Local Area Network, WLAN) will be calculated using wireless communication techniqueMachine equipment interconnects, and constitutes the local area network that can be communicated with resource-sharing.WLAN is flexible with structure, access is convenient, props upHold multiple terminal access, terminal moves the features such as flexible.In order to improve user experience, each businessman provides many increasings for WLANValue service, such as positioning, traffic statistics, short distance certification.
The deficiencies in the prior art are:The technology that these value-added services use all relies on the signal spy for monitoring clientSign, but the signal of client might not can listen to, and this also results in the failure of these value-added services.
Invention content
The present invention provides a kind of method and apparatus for monitoring client signal feature, existing in the prior art to solveThe problem of client signal feature cannot be monitored.
A kind of method for monitoring client signal feature is provided in the embodiment of the present invention, and message is sent monitoring clientWhen signal characteristic during, execute following steps:
Obtain the client address in database;
Probe messages are sent to client address, the probe messages are the messages that can be responded after client receives.
A kind of device for monitoring client signal feature is additionally provided in the embodiment of the present invention, including:
Acquisition module, for obtaining the client address in database;
Sending module, for sending probe messages to client address, the probe messages can be rung after client receivesThe message answered;
Module is monitored, for after sending probe messages to client address, monitoring signal when client end response messageFeature.
The present invention has the beneficial effect that:
In technical solution provided in an embodiment of the present invention, sends after client receives and can respond to client by activeProbe messages so that message is actively sent without waiting for client, substantially enables the client to send message as required, thisObviously it improves and captures the probability that client sends message, increase the reliability for monitoring client signal feature, ensure thatThe good use of value-added service.
Description of the drawings
Fig. 1 is the use flow diagram for the method that client signal feature is monitored in the embodiment of the present invention;
Fig. 2 is that database information handles schematic diagram in the embodiment of the present invention;
Fig. 3 is specific example workflow schematic diagram in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram for the device that client signal feature is monitored in the embodiment of the present invention.
Specific implementation mode
In order to make technical solution in the embodiment of the present invention and advantage be more clearly understood, below in conjunction with attached drawing to the present inventionExemplary embodiment be described in more detail, it is clear that described embodiment be only the present invention a part implementExample, rather than the exhaustion of all embodiments.
Inventor notices during invention:
In order to improve user experience, each businessman provides many value-added services for WLAN, such as positioning, traffic statistics, closelyApart from certification etc..The technology that these value-added services use all relies on the signal characteristic for monitoring client, when client is not sent outThe data packets such as message do not send out data packet in the channel of AP (WirelessAccessPoint, wireless access point) work at presentWhen, the signal of client cannot be monitored, this also results in the failure of these value-added services.
To solve the above-mentioned problems, some producers are used by increasing a wireless transmitter to be made exclusively for monitoring, noSwitch in each channel with stopping, it is intended to the message for receiving client transmitting as far as possible, to enable these value-added services justOften work.But on the one hand this way increases hardware cost, be on the other hand also palliative, because client sends out dataThe uncertainty of packet may not necessarily capture client AP actively switches channel and send out data packet or client in a certain channelNever send out data packet in end.
Based on this, the present invention proposes that a kind of method for monitoring client signal feature captures client hair data to increaseThe probability of packet enables the value-added service program that these send out data packet based on client accurately to run.Below in conjunction with the accompanying drawings to thisThe specific implementation mode of invention illustrates.
Fig. 1 is the use flow diagram for the method that client signal feature is monitored in the embodiment of the present invention, as shown,Monitor client send message when signal characteristic during, following steps can be executed:
Client address in step 101, acquisition database;
Step 102 sends probe messages to client address, and the probe messages are the reports that can be responded after client receivesText.
In implementation, which can be probe response (probe response) reports sent out by 802.11 agreementsText.
In specific implementation, 802.11 protocol groups are IEEE (Institute of Electrical and ElectronicsEngineers, International Power electronic engineering association) it is the standard that Wireless LAN is formulated.According to the regulation of 802.11 agreements,As long as client has received this detection response message will be automatically replied an ACK by hardware (Acknowledgement confirms)Message can have received a message sent out by client using the mechanism.That is, sending out data to client by activePacket, to lure that client sends out data packet to AP into, the message then sent out according to the client received can listen to clientThe signal characteristic at end ensures effective use of value-added service to achieve the purpose that collect client state.
Using probe response messages because of the message be in 802.11 agreements in implementation it is relatively common, also mostIt is easy to implement, so probe response messages are employed herein;But in theory, as long as client receivesThe probe messages that will be responded afterwards can all use, and probe response messages are only used for introduction those skilled in the artIt is specific how to implement the present invention, but it is not intended that be only capable of using probe response messages, it can be in conjunction with practice in implementation processNeed to come the probe messages or the detection report in selection proprietary protocol of other messages or even design specialized in selection standardText.
In implementation, when sending probe messages, it can be sent using basal rate with unicast.
Specifically, basal rate is generally exactly the minimum speed limit under the modulating mode, and if 11b is 1Mbps, 11a/g is6Mbps, 11n are 6.5Mbps etc..
It in implementation, when sending probe messages, can be switched in each channel, detection report is sent in each channelText.
For example, can be ask every 1~10 second wheel, working channel is switched to 50 milliseconds of other multi-channel operations, at this sectionBetween, send probe messages to client.
In implementation, database may include one of following data library:First database, the second database,Third database, the 4th database, wherein:
When receiving the message that client is sent out for the first time, first database is added in the client address of the client;
If receiving the message that client is sent out in multiple adjacent channels, and the client address of the client is in the first dataIn library, then the client address is moved into the second database, and record the corresponding channel of the client address;
After if the client address into the second database sends the probe messages of setting number, the client is not receivedThe client address is then moved into first database by the message that can be responded;
If in the data frame for receiving client and sending out, and the client address of the client then will in first databaseThe client address moves into third database, and records the corresponding channel of the client address;
After if the client address into third database sends the probe messages of setting number, the client is not receivedThe client address is then moved into first database by the message that can be responded;
If the client address into first database in the ergodic process of preset times, sends the detection of setting numberAfter message, the message that the client can respond is not received, then the client address is moved into the 4th database, and record the visitorThe corresponding channel in family end address;
Probe messages are sent to client address, are to the client address selected from database according to preset strategySend probe messages.
The transmission unit of packet, message involved in the embodiment of the present invention all referring to 802.11 agreements.All 802.11 reportsText/frame can be divided into 3 classes:Data frame (Data Frame) is responsible for carrying data between work station;Control frame (ControlFrame) it is responsible for the maintenance of the emptying of region, the acquirement of channel and carrier sense, and the confirmation that makes an affirmation when receiving data,Whereby improve work station between data transmission reliability;Management frame (Management Frame) is responsible for supervision, is mainly used toIt is added or exits associated transfer matters between wireless network and processing access point.
In specific implementation, Fig. 2 is that database information handles schematic diagram in the embodiment of the present invention, the client in embodimentLocation uses MAC (Media Access Control, media access control) address, as shown in the figure:
When receiving the message that a certain client is sent out for the first time, the client address of the client is recorded in for step 201First database;
Step 202, the message that a certain client is received in multiple continuous channels, by client address and multiple channel recordsIn the second database;
Step 203, the data frame for receiving a certain client, record client address and its working channel to third dataLibrary;
Specifically, the range that client is all related in step 203 in first database, the second database, the 4th databaseIt is interior, if receive the data frame of client in first database, the second database, the 4th database, by its client address andWorking channel is recorded in third database.
When step 204, the message for not receiving a certain client continuous 3 times, by the client address and work of the clientMake channel to remove from other databases, and moves into first database;
Specifically, client when not being received continuously three times in the second database and third database, by its clientAddress and working channel move to first database.
If step 205, continuous 3 wheel traverse the message that all channels all do not receive a certain client, the client is recordedHold address and lost contact round to the 4th database, wherein lost contact round is 1;
Step 206, when being received again by the non-data message of a certain client, by the client of the client in the 4th databaseEnd address and working channel move to first database;
Step 207 takes turns the message for confiscating a certain client per more one, and the lost contact round recorded in the 4th database adds 1.
In implementation, probe messages are sent to the client address selected from database according to preset strategy, including:
Successively first database, the second database, third database, the 4th database are traversed in each channel;
In each database, the client address of the corresponding channel is selected;
Probe messages are sent to the client address.
In implementation, after being all transmitted across probe messages to the client address selected on each channel, further comprise:
Update the data the client address and/or its corresponding channel information in library.
According to predetermined period, probe messages are sent to the client address selected from database according to preset strategy.
In implementation, in the client address and/or its corresponding channel in updating the data library, including:
If the client address into first database in the period of preset times undergone, sends probe messagesAfterwards, the message that the client can respond is not received, then the client address is moved into the 4th database, and record the clientThe corresponding channel in address;
After if the client address into the 4th database sends probe messages, the report that the client can respond is receivedThe client address is then moved into first database by text.
In implementation, it can further include:
It determines after sending probe messages in the 4th database, does not receive the client address of response message, and determineThe periodicity of transmission;
The interval that probe messages are sent to the client address is determined according to the periodicity sent;
By the interval probe messages are sent to the client address.
In above-mentioned implementation process, in order to reduce the holding time in inoperative channel, number of retransmissions can be set as 1;
In specific implementation, according to 802.11 agreements, because wireless transmission may packet loss, in order to ensure transmission quality, dataFrame has a hardware retransmission mechanism, and hardware sends ACK that opposite end can be waited for after a data frame to beam back, and (correspondingly, another party receivesOne ACK of sender can be replied after one data frame), it is sent again after overtime, in general number of retransmissions is 10, so ifIf can not receive ACK always, one packet of hair will occupy more time.
In addition to this, in wireless transmissions, two sides of transmitting-receiving need to communicate in same channel, and AP stablizes in serviceIt is operated in a certain designated channel, AP is needed to occasionally switch to other multi-channel operations in the embodiment of the present invention, so switching time is notCan be too long, the no client it will cause association in this AP goes offline.Therefore, in order to reduce the holding time in inoperative channel,Number of retransmissions can be set as 1.
In above-mentioned implementation process, for the information processing in database, if the client in first database is moreA adjacent channel receives, then this client is removed original database, be added to doubtful channel database (namely second database),MAC and channel set are recorded simultaneously, when being only switched to respective channels, is just given out a contract for a project to this client;If continuous 3 times do not receiveMessage then restores this client to first database;
If having received the data frame of a certain client, illustrate that this client associate has arrived a certain AP, then by this clientEnd removes original database, is added to known channel database (namely third database), while recording MAC and channel, only cutsWhen changing to respective channels, just give out a contract for a project to this client;If continuous 3 times do not receive message, restore this client to the first numberAccording to library;
When continuous 3 wheel traversal does not receive the message of a certain client, then this client is removed into first database, be addedTo lost contact database (namely the 4th database), MAC and channel and lost contact round are recorded, primary all channels is often traversed and does not receiveLost contact round is then added one by message, and the interval that will give out a contract for a project doubles, and remains unchanged after increasing to 64 times;Again this client is receivedAfter the message at end, then restore this client to first database.
It is functional based on list AP institutes when in deployed environment including multiple AP in implementation, it is also provided in the embodiment of the present inventionThe scheme that more AP cooperate, wherein:
1) it is that can hear the AP that this AP gives out a contract for a project to define adjacent AP;
2) periodic synchronous first database, the second database, third database, the 4th database;
3) when the third database of a certain AP has newly-increased, its adjacent AP of real-time informing;
4) when a certain AP receives new client, its adjacent AP of real-time informing;
Then in specific implementation, it can further include:
Client address information is sent to adjacent AP;
And/or
Client address information is received, and according to client address information update database.
In implementation, when sending probe messages to client address, one of as follows or a combination thereof sent:
If client address is the client address selected from first database, detection report is sent on all channelsText;
If client address is the client address selected from the second database, detection is sent on required channelMessage;
If client address is the client address selected from third database, detection report is sent on a designated channelText.
In specific implementation, each database will traverse, this is to improve efficiency.For example, first databaseIn data, all can detect (time spent is most) on all channels, the data in the second database can be believed in several suspectionIt is detected on road, and the meeting in third database detects (efficiency highest) in some designated channel.
It is illustrated with reference to a specific example.
Fig. 3 is specific example workflow schematic diagram in the embodiment of the present invention, as shown, may include step:
Step 301, since radio frequency support first channel, traverse first database in all clients address;
All client address for meeting channel in step 302, the second database of traversal;
All client address for meeting channel in step 303, traversal third database;
All client address for meeting hair packet interval in step 304, the 4th database of traversal;
Step 305, judge the channel whether be radio frequency support the last one channel;
If not the last one channel that radio frequency is supported, thens follow the steps 306, waits for next sweep spacing, be switched toNext channel, and then step 301 is re-executed to step 305;
If the channel is the last one channel that radio frequency is supported, 307 are thened follow the steps, library is updated the data;
And then step 308 is executed, next sweep spacing is waited for, first channel is switched to.And then re-execute step301 to step 305.
Specifically, when traversing first database, the second database, third database, four databases, first database,Second database, third database are in sequence requirement that is preceding, can not traversing, still, can be by the 4th number in specific implementationAccording to library last, if this is because the client address in the 4th database may be restored to the first number after receiving responseAccording to library, being placed on the last traversal that carries out can be to avoid the repeatedly detection in very short time again.
As it can be seen that the embodiment of the present invention is actively to send out data packet to client by active, to lure that client sends out number to AP intoAccording to packet, to achieve the purpose that collect client state.
Based on same inventive concept, a kind of device for monitoring client signal feature is additionally provided in the embodiment of the present invention,Since the principle that the device solves the problems, such as is similar to a kind of monitoring method of client signal feature, the implementation of the device canWith referring to the implementation of method, overlaps will not be repeated.
Fig. 4 is the structural schematic diagram for the device that client signal feature is monitored in the embodiment of the present invention, as shown, can be withIncluding:
Acquisition module 401, for obtaining the client address in database;
Sending module 402, for sending probe messages to client address, the probe messages are meetings after client receivesThe message of response;
Module 403 is monitored, for after sending probe messages to client address, monitoring letter when client end response messageNumber feature.
In implementation, monitors module 403 and can be also used for sending probe to client address by 802.11 agreementsResponse messages.
In implementation, monitors module 403 and can be also used for sending detection report to client address using basal rate with unicastText.
In implementation, monitor module 403 can be also used for client address send probe messages when, each channel intoRow switching, probe messages are sent in each channel.
In implementation, the database involved in the embodiment of the present invention includes one of following data library:First numberAccording to library, the second database, third database, the 4th database;
It can further include:
Database processing module 404, for handling the client address in database as follows and/or its is correspondingChannel information:
When receiving the message that client is sent out for the first time, first database is added in the client address of the client;
If receiving the message that client is sent out in multiple adjacent channels, and the client address of the client is in the first dataIn library, then the client address is moved into the second database, and record the corresponding channel of the client address;
After if the client address into the second database sends the probe messages of setting number, the client is not receivedThe client address is then moved into first database by the message that can be responded;
If in the data frame for receiving client and sending out, and the client address of the client then will in first databaseThe client address moves into third database, and records the corresponding channel of the client address;
After if the client address into third database sends the probe messages of setting number, the client is not receivedThe client address is then moved into first database by the message that can be responded;
If the client address into first database in the ergodic process of preset times, sends the detection of setting numberAfter message, the message that the client can respond is not received, then the client address is moved into the 4th database, and record the visitorThe corresponding channel in family end address;
Sending module 402 can be also used for sending to the client address selected from database according to preset strategy and visitObserve and predict text.
In implementation, acquisition module 401 can be also used for selecting from database according to preset strategy in the embodiment of the present inventionWhen the client address selected out, first database, the second database, third database, the 4th number are traversed in each channel successivelyAccording to library;In each database, the client address of the corresponding channel is selected;
Sending module 402 can be also used for sending probe messages to the client address.
In implementation, database processing module 404 can also be further used on each channel all to the client selectedAfter end address is transmitted across probe messages, the client address and/or its corresponding channel information in library are updated the data.
In implementation, sending module 402 can also be further used for according to predetermined period, to according to preset strategy from databaseIn the client address selected send probe messages.
In implementation, database processing module 404 can also be further used for client address in updating the data library and/Or when its corresponding channel, if the client address into first database in the period of preset times undergone, is sentAfter probe messages, the message that the client can respond is not received, then the client address is moved into the 4th database, and recordThe corresponding channel of the client address;After if the client address into the 4th database sends probe messages, the visitor is receivedThe client address is then moved into first database by the message that family end can respond.
In implementation, database processing module 404 can be also used for after sending probe messages in determining 4th database, not connectThe client address of response message is received, and determines the periodicity sent;It is determined to the client according to the periodicity sentAddress is held to send the interval of probe messages;
Sending module 402 can be also used for sending probe messages to the client address by the interval.
In implementation, it can further include:
Data update module 405, for sending client address information to adjacent AP;And/or receive what adjacent AP was sentClient address information;
Database processing module 404 can be also used for the client address information update database according to reception.
In implementation, sending module 402 can also be further used for when sending probe messages to client address, by as followsOne of mode or a combination thereof sent:
If client address is the client address selected from first database, detection report is sent on all channelsText;
If client address is the client address selected from the second database, detection is sent on required channelMessage;
If client address is the client address selected from third database, detection report is sent on a designated channelText.
Using the technical solution provided in the embodiment of the present invention, respectively to Android system mobile phone and apple IOS system handsMachine has carried out the test of mobile phone hair packet interval respectively, shields standby mode, not associated state of spreading its tail, Yi Jiguan mainly for closingConnection, which is spread its tail, has carried out the test of hair packet interval in inoperative channel status, and the mobile phone brand being directed to covers home-made cellphoneBrand, Japan and Korea S's brand and American-European brand.Test result is as follows, and table is shown:
Meizu MX2
iPhone 3G
Millet 3
Huawei
HTC
Cruel group
Samsung S8182
From the point of view of the result of test, in the case where closing screen standby mode, only Mobile phone frequently sends out data packet, other mobile phones are allIt is seldom to send out data packet, observation has no hair data packet in 5 minutes;Under not associated state of spreading its tail, all mobile phones can frequently send out numberAccording to packet, mobile phone hair data packet number and interval time do not stablize it is constant;It spreads its tail under inoperative channel status in association,It is different for the performance of each money mobile phone, mobile phone hair data packet can be received when individual, send out data packet situation on the wholeIt is unsatisfactory.The mode that can be seen that passive listening from above-mentioned test result is difficult the effective correct fortune for ensureing related softwareIt goes, the accurate use of value-added service.
And use the embodiment of the present invention in provide actively intercept mode can ensure no matter which kind of mobile phone, no matter spread its tail orPerson closes screen, regardless of whether association can receive the message of any client, and then effective signal characteristic for monitoring client.
Using the message (single AP) for receiving client in the embodiment of the present invention, its radio signal characteristics (intensity, phase is analyzedPosition, delay etc.) it is authenticated, it may be implemented short distance authentication function.It equally can not work normally if no message,So the optimization of short distance authentication function may be implemented using the active trigger mechanism of technical solution provided in an embodiment of the present invention.
It can be worked independently using list AP in the embodiment of the present invention and monitor client signal feature to realize, in addition to this, whenIt is functional based on list AP institutes when in deployed environment including multiple AP, more AP may be implemented and cooperate.When the third number of a certain APThere are newly-increased or when receiving new client, all its adjacent AP of real-time informing according to library.
The more AP collaborative works provided in the embodiment of the present invention can be applied in exhibition positioning system and market stand flowIn the scenes such as analysis.Specifically, exhibition positioning system is similar with the flow analysis of market stand, is all to arrange in one scenarioCoverage area has overlapping between multiple AP, some AP, and can cooperate, and is received together within the same time by multiple APOne client message makes operation, obtains client location according to a certain location algorithm, flow analysis can also be countedA certain position residence time have how long.
Both methods has been all based on multiple AP can listen to same client in similar time, could complete to itPositioning.
Pervious method is all passive listening, since various clients hair data machine contracting system is all different, especially handMachine is since economize on electricity considers, it is difficult to ensure that positioning system can receive enough data;And using actively in the embodiment of the present inventionTrigger mechanism, client have to respond because of the reason of agreement so that former positioning system can receive enough packetsOperation is completed, precision is improved.
For convenience of description, each section of apparatus described above is divided into various modules with function or unit describes respectively.Certainly, each module or the function of unit can be realized in same or multiple softwares or hardware in carrying out the present invention.
Using technical solution provided by the invention, sending probe messages to client by active makes client send responseMessage and the mode for effectively receiving the response message improve and capture the probability that client sends message, increase monitoring visitorThe reliability of family end signal feature ensure that the good use of value-added service.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer programProduct.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present inventionApply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computerThe computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagramThe combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be providedInstruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produceA raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for realThe device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring toEnable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram orThe function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that countSeries of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer orThe instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram oneThe step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basicProperty concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted asIt selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the artGod and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to include these modifications and variations.