CN104125599B - Access point is obtained with user terminal information, associated and statistical analysis technique in WLAN - Google Patents
Access point is obtained with user terminal information, associated and statistical analysis technique in WLAN Download PDFInfo
- Publication number
- CN104125599B CN104125599B CN201410397008.6A CN201410397008A CN104125599B CN 104125599 B CN104125599 B CN 104125599B CN 201410397008 A CN201410397008 A CN 201410397008A CN 104125599 B CN104125599 B CN 104125599B
- Authority
- CN
- China
- Prior art keywords
- frame
- user terminal
- access
- terminal
- authentication
- 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.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
Obtained with user terminal information the present invention relates to access point in a kind of WLAN, associated and statistical analysis technique, belong to wireless communication technology field.Cancel authentication frame, remove disassociation frame, association and re-association response frame by being collected at AP ends, transmitting/receiving the MAC Address combination frame of terminal in frame and AP time, frame types value and conditional code composition message packet and being encapsulated into 802.3 frame CEInet networks and be sent to server end.By using AP send association and re-association response frame moment as terminal the access moment, AP is sent and is cancelled authentication frame, AP receiving terminals cancellation authentication frame and is gone the moment of disassociation frame to exit the moment as terminal, obtained description different terminals and do not accessing/exiting the relation list of AP in the same time.According to list statistical analysis AP in the terminal access amount of different periods and the access duration of each terminal.The method is simple and easy to apply compared to prior art, and low with processing delay, without extra means, low cost and other advantages.
Description
Technical field
The invention belongs to wireless communication technology field, it is related to access point and user terminal information in a kind of WLAN to obtain
Take, associate and statistical analysis technique.
Background technology
Developing rapidly and popularizing with network technology, the WLAN of the standards of IEEE 802.11 has become network extension
A kind of important way, people are to the degree of dependence of WLAN also more and more higher.In a wlan, user terminal is built by with access point AP
Subnet of the vertical association to add belonging to selected AP, i.e. user terminal send association request frame or reassociation requests frame to AP, and AP is returned
Multiple association response frame or re-association response give the user terminal, if responded successfully, user terminal is successfully established with AP and associates.
Additionally, AP or user terminal can send cancellation authentication frame or go association request frame to other side terminates association, so as to terminate both sides
Between data communication.
Traditional wlan network is set up for the access of a small amount of mobile subscriber in enterprise or family, due to existing
Limitation, can not meet those network sizes than larger, and highly dependent upon the high-level enterprise user of wireless traffic, they
Wish that wlan network there can be overall solution, so as to realize unified management.In this case, wireless controller AC
Networking mode application that (Wireless Access Point Controller) is combined with access point AP and give birth to.Fig. 1 is the group
The data for needing to send are packaged into 802.11 protocol datas and are sent to AP by the Organization Chart of net, user terminal by wireless network card,
AP can be directed to specific CAPWAP (Control And Provisioning of Wireless Access Points
Protocol Specification) pattern processed 802.11 protocol datas for receiving accordingly.AP+AC networking sides
CAPWAP patterns under formula generally have two kinds:Local MAC and Split MAC, structure difference is as shown in Figure 2 and Figure 3.Local
802.11 management frames under MAC patterns can be in AP processing localities, and data frame is then converted into 802.3 frames, but 802.11 frames
Header information can be lost, and be then packaged as CAPWAP data, and be sent to AC, AC solutions by the CAPWAP tunnel between AP and AC
Analysis CAPWAP protocol datas obtain 802.3 frames, are forwarded in wide area network finally by BAS Broadband Access Server.And in Split
Under MAC patterns, 802.11 data frames and management frame that AP will can be received directly are packaged into CAPWAP protocol datas and are sent to AC,
AC is converted into 802.3 frames after parsing 802.11 frames, and is sent in wide area network.
Include the SSID (Service Set Identifier) of AP in CAPWAP protocol datas, due to the AP of AC connections
SSID it is identical so that the statistical server being connected with wide area network be difficult to count each AP on connect user terminal quantity and
The connection duration of each user terminal, and then it is difficult to the resource in reasonable distribution network.In order to solve the above problems, it is thus proposed that
A kind of acquisition methods and device of wireless access point AP information.The method includes that terminal obtains the packet of transmission and/or connects
The packet of receipts, carries source MAC (Media Access Control) addresses and target MAC (Media Access Control) address in packet, terminal is led to
Cross acquisition source MAC and/or the corresponding data packet number of target MAC (Media Access Control) address, by the maximum source MAC of data packet number or
Target MAC (Media Access Control) address is defined as the MAC Address of the AP of terminal access, and terminal is by the MAC of user terminal link information and corresponding AP ground
Location is sent to statistical server.The above method obtains the information of AP using the terminal for accessing AP, when AP quantity is more, can increase
Cost.And need terminal to access AP always, implement inconvenient.When terminal and AP disconnect, the letter of AP cannot be just obtained
Breath.
The above method needs in the wireless data packet that terminal obtains all transmissions/or reception when the MAC Address of AP is obtained
Source MAC and target MAC (Media Access Control) address, and the corresponding data packet number of different MAC Address is counted, data packet number is maximum
MAC Address is defined as the MAC Address of the AP of terminal access.The method is taken, and complexity is high, and other are used not to refer to acquisition
The method of the log-on message of family terminal.
Therefore, above-mentioned existing scheme existing defects and deficiency, need further improvement.
The content of the invention
In view of this, obtained it is an object of the invention to provide access point in a kind of WLAN and user terminal information
Take, associate and statistical analysis technique, the method obtains wireless access point AP (Access Point) and access in WLAN
The information of the user terminal of AP, and by two kinds of information be associated and statistical analysis method, specifically include obtain AP MAC ground
The MAC Address of the user terminal of location and access AP and access/post-set time, the information of user terminal is accessed with the terminal
AP information be associated so that accessed in statistical analysis different periods different AP user terminal quantity and user's end
The access duration at end.
To reach above-mentioned purpose, the present invention provides following technical scheme:
Access point and user terminal information acquisition, correlating method in a kind of WLAN, in the method, obtain wireless
In LAN the MAC Address of wireless access point AP (Access Point) and access AP user terminal MAC Address and connect
Enter/post-set time, the information of the AP that the information of user terminal is accessed with the terminal is associated;In the present invention, AP is received
To the cancellation authentication frame that sends of user terminal referred to as " terminal cancel authentication frame ", the cancellation authentication frame referred to as " AP that AP is sent
Cancel authentication frame ".
Methods described has different implementations under different CAPWAP patterns, specifically includes:
When using Local MAC patterns, step is implemented as follows:
A1) terminal that reception surrounding user terminal in AP ends is sent cancels authentication frame and goes association request frame, and obtains by originally
Association response frame, re-association response frame and the AP that AP sends cancel authentication frame;
A2) AP cancels authentication frame and goes to extract source MAC in association request frame from terminal, from association response frame, weight
Association response frame and AP extract target MAC (Media Access Control) address in cancelling authentication frame, as the MAC Address of user terminal, are incorporated into frame
Reception/transmission time, the MAC Address of AP itself, the self defined class offset of frame and conditional code (just for association response frame and
Re-association response frame) message packet is constituted with set form, and be encapsulated into the frame main body of 802.3 frames;
A3) type field value that AP sets 802.3 frame is any retention more than 0x0600, is different from other normal
See 802.3 frames of type, and 802.3 frame is packaged into CAPWAP protocol datas, AC ends are sent to through CAPWAP tunnel;
A4) AC parses 802.3 frame from the CAPWAP protocol datas for receiving, and 802.3 frame is sent into system
Meter server carries out Treatment Analysis, draws user terminal access amounts of each AP in different time sections, and different user terminals
Access duration;
When using Split MAC patterns, concrete implementation step is as follows:
B1) terminal that reception surrounding user terminal in AP ends is sent cancels authentication frame and goes association request frame, and obtains by originally
Association response frame, re-association response frame and the AP that AP sends cancel authentication frame;
B2) above-mentioned each 802.11 frame is packaged into CAPWAP protocol datas by AP, and the reception of each frame/transmission time is encapsulated
To the Optional Field of CAPWAP message head, AC ends are sent to through CAPWAP tunnel;
B3) AC parses each 802.11 frame and corresponding reception/transmission time, cancels authentication frame and go to associate terminal
Source MAC in claim frame, association response frame, re-association response frame and AP cancel the target MAC (Media Access Control) address conduct in authentication frame
The MAC Address of user terminal, and the AP that the BSSID in frame is accessed as terminal MAC Address;With reference to the customization type of frame
Value and conditional code (just for association response frame and re-association response frame) constitute message packet with set form, and are encapsulated into
In the frame main body of 802.3 frames, the type field value for setting 802.3 frame is any retention more than 0x0600, to distinguish
In 802.3 frames of other common types;
B4) 802.3 frame is sent to statistical server and carries out Treatment Analysis by AC by network, draws each AP not
With the user terminal access amount of time period, and different user terminals access duration.
Further, the step A2, in B3, the reception/transmission time is specially AP and sends association response frame, re-association response
Frame and AP cancel the moment of authentication frame, and AP receiving terminals are cancelled authentication frame and gone the moment of association request frame;AP is sent
The moment of association response frame and re-association response frame as user terminal access AP time, by AP send AP cancel authentication frame,
AP receiving terminals cancel authentication frame and go the association request frame moment to be exited as user terminal the time of AP, the temporal information bag
Include year, month, day, hour, min and second.
Further, the step A2, in B3, the self defined class offset of each frame is user-defined types value, for area
Divide AP to cancel authentication frame, terminal to cancel authentication frame, remove association request frame, association response frame and re-association response frame.
Further, the step A2, in B3, conditional code corresponds to the " state in association response frame and re-association response frame
Code " field, the field can be used for the result of the association request for judging certain AP response user terminals, and different conditions code has different
Implication, specially agrees to access or access failure and failure cause.
Further, the step A2, in B3, the set form of described information package includes the byte of every kind of information field
Number, and each field order.
Further, in step A3, in B3, this is represented when being more than 0x0600 due to " length/type " field value of 802.3 frames
Field is " type " field, in order to be different from 802.3 data frames of other common protocol types, sets the class of 802.3 frame
Type-word segment value is any retention more than 0x0600.
Further, in the step B2, the Optional Field of CAPWAP message head includes " the radio frequency MAC ground of 4 byte longs
" special wireless messages " field of location " field and 4 byte longs.
Present invention also offers the side that a kind of AP got to the above method and user terminal information carry out statistical analysis
Method, comprises the following steps:
C1) statistical server receives 802.3 frames that AC ends are sent, according to the spy through being set in aforementioned method steps A3, B3
Different type field value filters out 802.3 frames for carrying message packet, extracts the message packet of the 802.3 frame main body part, presses
Each field information is extracted according to the set form set in aforementioned method steps A2, B3, and according to customization type field value
Message packet is classified;
C2 the conditional code in associated response, re-association response message packet) is extracted, and is sentenced according to the corresponding implication of conditional code
The result of the association request of disconnected AP responses user terminal, if agreeing to access, using the time in message packet as user's end
Terminate the moment into AP;If access failure, reason is determined according to conditional code, and AP is cancelled into authentication information package, end
End cancellation authentication information package and the time gone in association request message packet exit the moment of AP as user terminal;
C3) for each AP, according to the sequencing of time, obtain describing the user terminal of different MAC Address not
The relation list of the AP is accessed/exited in the same time, when also the MAC Address of the user terminal including access failure is with accessing in list
Carve, and status of fail code, finally by list storage to database;
C4) using user terminal access AP moment with list after the adjacent moment for exiting the AP difference as
Certain accesses the duration of the AP to user terminal, according to relation list, counts user terminals of any AP in different time sections and connects
Enter amount, and different user terminals access duration.
The beneficial effects of the present invention are:The present invention provides a kind of user terminal letter of AP and access AP in acquisition WLAN
Breath, and the AP that the information of user terminal and the terminal are accessed information be associated and statistical analysis method, the method
Simply, processing delay is low, without extra means, low cost.By collecting cancellation authentication frame, removing association request frame, associated response
Frame and re-association response frame, obtain the MAC Address of user terminal from each frame, the MAC Address, frame with reference to the AP of terminal access
Receive/send time, self defined class offset and conditional code constitutes message packet with set form, with this by end message and end
The information of the accessed AP in end is associated.Then message packet is encapsulated into the frame main body of 802.3 frames of specific type, is passed through
Network is sent to statistical server end.The present invention also provides a kind of method that information to getting carries out statistical analysis, by AP
Send association response frame and re-association response frame to user terminal moment as the user terminal the access moment, the association
Response frame and the corresponding conditional code implication of re-association response frame are to be successfully accessed.AP is sent and cancels authentication frame, AP receiving terminals
Cancel authentication frame and go the moment of association request frame to exit the moment as the user terminal, obtain describing different MAC Address
User terminal is not accessing/is exiting the relation list of different AP in the same time.During user terminal accessed into moment of certain AP and list
As user terminal, certain accesses the duration of the AP to the difference at the adjacent moment for exiting the AP afterwards.According to relation list,
User terminal access amounts of any AP in different time sections can be gone out with statistical analysis, and different user terminals access when
It is long.Additionally, when AP refuses certain user terminal and accesses, the reason for can also draw refusal according to conditional code, administrative staff can be with
According to the behavior of analysis of causes AP or user terminal, so as to carry out deeper decision-making.
Brief description of the drawings
In order that the purpose of the present invention, technical scheme and beneficial effect are clearer, the present invention provides drawings described below and carries out
Explanation:
Fig. 1 is wlan network Organization Chart under AC+AP networking modes;
Fig. 2 is Local MAC pattern diagrams;
Fig. 3 is Split MAC pattern diagrams;
Fig. 4 is the flow chart of acquisition and associated AP and user terminal information in preferred embodiment of the present invention;
Fig. 5 is the management frame structural representations of IEEE 802.11;
Fig. 6 is the implication schematic diagram of each conditional code in preferred embodiment of the present invention;
Fig. 7 is 802.3 frame structure schematic diagrames;
Fig. 8 is message packet form schematic diagram in preferred embodiment of the present invention;
Fig. 9 is CAPWAP message stem form schematic diagram;
Figure 10 is the flow chart that AP and user terminal information in preferred embodiment of the present invention to getting carries out statistical analysis;
Figure 11 is relation list structure chart in preferred embodiment of the present invention.
Specific embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described in detail.
First, the present invention provides the user terminal information of AP and access AP in a kind of acquisitions WLAN, and by user terminal
The method that the information of the AP that information is accessed with the terminal is associated, the method has difference under different CAPWAP patterns
Realization.Referring to Fig. 4, under Local MAC patterns, implementation steps are as follows:
The terminal that S1, AP end reception surrounding user terminal are sent cancels authentication frame and goes association request frame, and obtains by this
The AP that AP sends cancels authentication frame, association response frame and re-association response frame.
S2, AP cancel authentication and frame and go to extract source MAC in association request frame from terminal, from AP cancel authentication frame,
Target MAC (Media Access Control) address is extracted in association response frame and re-association response frame, as the MAC Address of user terminal.
Fig. 5 is to cancel authentication frame, remove the Generic Frame Format of association request frame, association response frame and re-association response frame, frame
Middle SA (Source Address) field references source MAC, DA (Destination Address) field references purposes MAC
Address.
S3, AP make the transmit/receive time, the MAC Address of itself, frame of the MAC Address of user terminal and its affiliated frame by oneself
Adopted types value and conditional code (for association response frame and re-association response frame) constitute message packet with set form, and encapsulate
To in the frame main body of 802.3 frames.
The time specially AP receiving terminals that transmit/receive of frame are cancelled authentication frame and are gone the moment of association request frame, and AP hairs
AP is sent to cancel the moment of authentication frame, association response frame and re-association response frame, including year, month, day, hour, min and second, such as
“20140716213230”.The self defined class offset of frame is used for distinguishing terminal, AP and cancels authentication frame, goes association request frame, association
Response frame and re-association response frame, in the present embodiment, " 0 " GC group connector cancels authentication frame, and " 1 " represents and goes association request frame,
" 2 " represent AP and cancel authentication frame, and " 3 " represent association response frame, and " 4 " represent re-association response frame.Conditional code corresponds to association and rings
" conditional code " field in frame or re-association response frame is answered, referring to Fig. 5, the field can be used to judge that certain AP responds user terminal
Association request result.Different conditions code corresponds to different implications, specially agrees to access or access failure and failure
Reason, Fig. 6 is the conditional code and corresponding implication in the present embodiment, it can be seen that when conditional code is " 0 ", generation
Table A P agrees to that the user terminal of request association is accessed.Finally, above- mentioned information is constituted into message packet with certain format, will eventually with this
The information of the AP that client information is accessed with terminal is associated.Then message packet is encapsulated into the frame main body of 802.3 frames, referring to
Fig. 7.In the present embodiment, the form of message packet is as shown in figure 8, be most short the having of Ethernet regulation the reason for using byte of padding
Effect frame length is 64 bytes.For cancelling authentication frame and going association request frame, status code fields are set to retention 0xFFFF.
The type field value that S4, AP set 802.3 frame is any retention more than 0x0600, and will be described
802.3 frames are packaged into CAPWAP protocol datas, and AC ends are sent to through CAPWAP tunnel, and AC parses 802.3 frame.
Referring to Fig. 7, when " length/type " field value of 802.3 frames is less than 0x0600, the field references " length ", only
Have and just represent " type " when field value is more than 0x0600.So the type field value for needing to set 802.3 frame be more than
Any retention of 0x0600, to be different from 802.3 frames of other common types, the present embodiment is set to 0xFFFF.
802.3 frame is sent to statistical server and carries out Treatment Analysis by S8, AC, draws each AP in different time sections
User terminal access amount, and different user terminals access duration.
Under Split MAC patterns, implementation steps are as follows:
The terminal that S1, AP end reception surrounding user terminal are sent cancels authentication frame and goes association request frame, and obtains by this
The AP that AP sends cancels authentication frame, association response frame and re-association response frame.
Above-mentioned each frame is packaged into CAPWAP protocol datas by S5, AP, and the time that transmits/receives of each frame is encapsulated into CAPWAP reports
The Optional Field of literary head, AC is sent to through CAPWAP tunnel.
AP gets the terminal that terminal around sends to be cancelled authentication frame and goes association request frame, and the AP sent from AP takes
After the authentication that disappears frame, association response frame and re-association response frame, five kinds of frames are left intact to more than, are potted directly into CAPWAP
In protocol data, and each frame is transmitted/received the Optional Field that the time is encapsulated into CAPWAP message head by AP, transmits/receives the time
It is specifically defined and above has been explained, repeats no more here.Referring to Fig. 9, Optional Field includes " the radio frequency MAC Address " of 4 bytes
With " the special wireless messages " of 4 bytes, and complete temporal information is represented, such as " 20140716213230 ", each character needs 4
Bit, so needing 7 bytes altogether.In the present embodiment, year, month, day is stored in " radio frequency MAC Address " field, by when,
Minute, second is stored in " special wireless messages " field, a remaining byte, with 1 filling.
S6, AC parse each 802.11 frame and it is corresponding transmit/receive the time, terminal is cancelled into authentication and frame and goes association request
Source MAC in frame, AP cancels the target MAC (Media Access Control) address authenticated in frame, association response frame and re-association response frame as user
The MAC Address of terminal, and the AP that the BSSID in frame is accessed as terminal MAC Address.
S7, AC by the MAC Address of user terminal and its affiliated frame transmit/receive the time, the MAC Address of AP, frame it is self-defined
Types value and conditional code (for association response frame and re-association response frame) constitute message packet with set form, and are encapsulated into
In the frame main body of 802.3 frames, the type field value for setting 802.3 frame is any retention more than 0x0600.
802.3 frame is sent to statistical server and carries out Treatment Analysis by S8, AC, draws each AP in different time sections
User terminal access amount, and different user terminals access duration.
Secondly, the present invention provides a kind of method that AP and user terminal information to getting carries out statistical analysis, referring to
Figure 10, specific implementation step is as follows:
S9, statistical server receive 802.3 frames that AC sends, according to the specific type field value set in step S4, S7
Filter out 802.3 frames for carrying message packet.The message packet of the 802.3 frame main body part is extracted, according in step S3, S7
The set form of setting extracts each field information, and message packet is classified according to customization type field value.
In the present embodiment, after statistical server termination receives 802.3 frames that AC sends, first determine whether its " length/type "
Whether field value is 0xFFFF, if so, then extracting the message packet of the frame main body part of 802.3 frame, package form is referring to figure
8.And the type of message packet is judged according to customization type field value, " 0 " GC group connector cancels authentication information package, " 1 "
Association request message packet is gone in representative, and " 2 " represent AP and cancel authentication information package, and " 3 " represent associated response message packet, " 4 "
Represent re-association response message packet.
S10, associated response, the conditional code in re-association response message packet are extracted, and contained according to each conditional code is corresponding
Justice judge AP response user terminal association request result, if agree to access, using the time in message packet as with
Family terminal accesses the moment of AP.If access failure, reason is determined according to conditional code.And terminal is cancelled into authentication information envelope
Bag, AP cancellation authentication information packages and the time gone in association request message packet exit the moment of AP as user terminal.
As shown in figure 8, for associated response message packet and re-association response message packet, according to the conditional code of 2 bytes
Judge whether user terminal is successfully accessed AP, referring to Fig. 6, if conditional code is " 0 ", illustrate that user terminal is successfully accessed AP,
Now accessed the moment of AP as user terminal user, if conditional code is other values, basis the time in message packet
Fig. 6 determines reason.And terminal is cancelled into authentication information package, AP cancellation authentication information packages and association request message packet is gone
In time moment of AP is exited as user terminal.
S11, for each AP, according to the sequencing of time, obtain describing the user terminal of different MAC Address not
The relation list of the AP is accessed/exited in the same time, when also the MAC Address of the user terminal including access failure is with accessing in list
Carve, and status of fail code, finally by list storage to database.
Referring to Figure 11, each field and content format of relation list are as illustrated, the MAC ground of the user terminal in figure
The information such as location and time is merely to illustrate that situation and sets, and does not represent true content.By taking row 100 as an example, the row is characterized
MAC Address is " 08:00:00:00:00:01 " user terminal accesses AP1, state 30 seconds in July, 2014 No. 16 23 point 7 minute
Code is successfully accessed for " 0 " represents.And it is " 08 that row 101 characterizes MAC Address:00:00:00:00:02 " user terminal was in 2014
35 seconds July No. 16 23 point 7 minute accessed AP1, but because conditional code is " 17 ", it is possible to judge access failure, and according in Fig. 6
Corresponding relation, is that AP1 can not process extra association website and cause association to be denied the reason for draw unsuccessfully, is drawn with this
Moment AP1 such as may increase AP, to meet user's request for saturation state, so as to make a policy in AP1 regions.
It is " 08 that row 102 characterizes MAC Address:00:00:00:00:01 " user terminal is moved back 40 seconds in July, 2014 No. 16 23 point 10 minute
Go out AP1.The content that other rows are characterized is similar with above-mentioned row, repeats no more here.Finally the relation list under each AP is stored
To in database, it is easy to post analysis.
S12, by user terminal access AP moment with list after the adjacent moment for exiting the AP difference work
For user terminal, certain accesses the duration of the AP.According to relation list, user terminals of any AP in different time sections is counted
Access amount, and different user terminals access duration.
Referring to Figure 11, by taking row 100 as an example, it is " 08 that the row characterizes MAC Address:00:00:00:00:01 " user terminal exists
30 seconds in July, 2014 No. 16 23 point 7 minute is successfully accessed AP1, according to the method that the present invention is provided, in list after adjacent move back
The moment for going out AP1 should be 23 points 40 seconds 10 minutes, therefore, the user terminal this access AP1 when a length of 23 points arrive within 30 seconds 7 minutes
23 points of 10 minutes 40 second this periods, as 3 points 10 seconds.After exiting, the user terminal is successfully accessed for 10 seconds 13 minutes at 23 points again
AP1, and at 23 points AP1 is exited again within 50 seconds 16 minutes, a length of 3 points 40 seconds when this time accessing.It is easy to can be seen that from list
Within 30 seconds in July, 2014 No. 16 23 point 7 minute to 23 points of 20 minutes 10 second this periods, the user terminal quantity of AP1 is successfully accessed
It is 7, and can show that MAC Address is " 08:00:00:00:00:01 " total duration that user terminal accesses AP1 is 6 points
50 seconds.
Finally illustrate, preferred embodiment above is merely illustrative of the technical solution of the present invention and unrestricted, although logical
Cross above preferred embodiment to be described in detail the present invention, it is to be understood by those skilled in the art that can be
Various changes are made to it in form and in details, without departing from claims of the present invention limited range.
Claims (8)
1. in a kind of WLAN access point and user terminal information obtain, correlating method, it is characterised in that:In the method
In, obtain wireless access point AP in WLAN(Access Point)MAC Address and access the user terminal of AP
MAC Address and access/post-set time, the information of the AP that the information of user terminal is accessed with the terminal is associated;It is described
Method has different implementations under different CAPWAP patterns, specifically includes:
When using Local MAC patterns, step is implemented as follows:
A1)The terminal that AP ends reception surrounding user terminal is sent cancels authentication frame and goes association request frame, and acquisition is sent out by this AP
Association response frame, re-association response frame and the AP for going out cancel authentication frame;
A2)AP cancels authentication frame and goes to extract source MAC in association request frame from terminal, from association response frame, re-association
Response frame and AP extract target MAC (Media Access Control) address in cancelling authentication frame, as the MAC Address of user terminal, are incorporated into connecing for frame
Transmit/receive and send time, the MAC Address of AP itself, the self defined class offset of frame and conditional code to constitute message packet with set form,
And be encapsulated into the frame main body of 802.3 frames;
A3)The type field value that AP sets 802.3 frame is any retention more than 0x0600, is different from other common classes
802.3 frames of type, and 802.3 frame is packaged into CAPWAP protocol datas, it is sent to wireless controller through CAPWAP tunnel
AC(Wireless Access Point Controller)End;
A4)AC parses 802.3 frame from the CAPWAP protocol datas for receiving, and 802.3 frame is sent into statistics clothes
Business device carries out Treatment Analysis, draw user terminal access amounts of each AP in different time sections, and different user terminals connect
Enter duration;
When using Split MAC patterns, concrete implementation step is as follows:
B1)The terminal that AP ends reception surrounding user terminal is sent cancels authentication frame and goes association request frame, and acquisition is sent out by this AP
Association response frame, re-association response frame and the AP for going out cancel authentication frame;
B2)Above-mentioned each 802.11 frame is packaged into CAPWAP protocol datas by AP, and the reception of each frame/transmission time is encapsulated into
The Optional Field of CAPWAP message head, AC ends are sent to through CAPWAP tunnels;
B3)AC parses each 802.11 frame and corresponding reception/transmission time, and terminal is cancelled into authentication frame and association request is gone
Source MAC in frame, association response frame, re-association response frame and AP cancel the target MAC (Media Access Control) address authenticated in frame as user
The MAC Address of terminal, and the AP that the BSSID BSSID in frame is accessed as terminal MAC Address;With reference to frame
Self defined class offset and conditional code message packet is constituted with set form, and be encapsulated into the frame main body of 802.3 frames, set
The type field value of 802.3 frame is any retention more than 0x0600, to be different from the 802.3 of other common types
Frame;
B4)802.3 frame is sent to statistical server and carries out Treatment Analysis by AC by network, draws each AP when different
Between section user terminal access amount, and different user terminals access duration.
2. in a kind of WLAN according to claim 1 access point and user terminal information obtain, correlating method, its
It is characterised by:The step A2, in B3, the reception/transmission time is specially AP and sends association response frame, re-association response frame and AP
Cancel the moment of authentication frame, and AP receiving terminals are cancelled authentication frame and are gone the moment of association request frame;AP is sent into association to ring
The moment of frame and re-association response frame is answered as the time of user terminal access AP, AP is sent into AP cancels authentication frame, AP receptions
Terminal cancels authentication and frame and goes the association request frame moment to be exited as user terminal the time of AP, the temporal information include year,
The moon, day, when, point and the second.
3. in a kind of WLAN according to claim 1 access point and user terminal information obtain, correlating method, its
It is characterised by:The step A2, in B3, the self defined class offset of each frame is user-defined types value, is taken for distinguishing AP
The authentication that disappears frame, terminal are cancelled authentication frame, remove association request frame, association response frame and re-association response frame.
4. in a kind of WLAN according to claim 1 access point and user terminal information obtain, correlating method, its
It is characterised by:The step A2, in B3, conditional code corresponds to " conditional code " word in association response frame and re-association response frame
Section, the field can be used for the result of the association request for judging certain AP response user terminals, and different conditions code has different implications,
Specially agree to access or access failure and failure cause.
5. in a kind of WLAN according to claim 1 access point and user terminal information obtain, correlating method, its
It is characterised by:The step A2, in B3, the set form of described information package includes the byte number of every kind of information field, and
The order of each field.
6. in a kind of WLAN according to claim 1 access point and user terminal information obtain, correlating method, its
It is characterised by:In step A3, in B3, the type field value for setting 802.3 frame is any retention more than 0x0600.
7. in a kind of WLAN according to claim 1 access point and user terminal information obtain, correlating method, its
It is characterised by:In the step B2, the Optional Field of CAPWAP message head includes " radio frequency MAC Address " field of 4 byte longs
And 4 byte long " special wireless messages " field.
8. a kind of method that AP got to method described in claim 1 to 7 and user terminal information carry out statistical analysis,
It is characterized in that:Comprise the following steps:
C1)Statistical server receives 802.3 frames that AC ends are sent, according to the special defects through being set in aforementioned method steps A3, B3
Type-word segment value filters out 802.3 frames for carrying message packet, the message packet of the 802.3 frame main body part is extracted, according to preceding
State the set form set in method and step A2, B3 and extract each field information, and according to customization type field value to letter
Breath package is classified;
C2)The conditional code in associated response, re-association response message packet is extracted, and AP is judged according to the corresponding implication of conditional code
The result of the association request of user terminal is responded, if agreeing to access, the time in message packet is connect as user terminal
Enter the moment of AP;If access failure, reason is determined according to conditional code, and AP cancellation authentication informations package, terminal are taken
The authentication information package that disappears exits the moment of AP with the time gone in association request message packet as user terminal;
C3)For each AP, according to the sequencing of time, obtain describing the user terminal of different MAC Address when different
The relation list of the AP is accessed/exited to quarter, and the MAC Address of the user terminal of access failure is also included in list and the moment is accessed,
And status of fail code, finally by list storage to database;
C4)Using user terminal access moment of AP with list after the adjacent moment for exiting the AP difference as user
Certain accesses the duration of the AP to terminal, according to relation list, counts user terminal access amounts of any AP in different time sections,
And the access duration of different user terminals.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410397008.6A CN104125599B (en) | 2014-08-13 | 2014-08-13 | Access point is obtained with user terminal information, associated and statistical analysis technique in WLAN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410397008.6A CN104125599B (en) | 2014-08-13 | 2014-08-13 | Access point is obtained with user terminal information, associated and statistical analysis technique in WLAN |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104125599A CN104125599A (en) | 2014-10-29 |
CN104125599B true CN104125599B (en) | 2017-07-07 |
Family
ID=51770831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410397008.6A Active CN104125599B (en) | 2014-08-13 | 2014-08-13 | Access point is obtained with user terminal information, associated and statistical analysis technique in WLAN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104125599B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104507078A (en) * | 2014-12-15 | 2015-04-08 | 乐视致新电子科技(天津)有限公司 | Method and device for managing wireless hotspot information |
CN104579753B (en) * | 2014-12-15 | 2018-03-23 | 腾讯科技(深圳)有限公司 | User data statistical method, access stratum server and statistical server |
CN109429296B (en) * | 2017-08-31 | 2021-04-30 | 中国电信股份有限公司 | Method, device and storage medium for associating terminal with internet surfing information |
CN110943875A (en) * | 2018-09-21 | 2020-03-31 | 武汉安天信息技术有限责任公司 | User network relation determining method, network-based user mutual relation determining method and related device |
CN110248326B (en) * | 2019-04-30 | 2022-02-25 | 中国联合网络通信集团有限公司 | Data processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118837A (en) * | 2009-12-30 | 2011-07-06 | 杭州华三通信技术有限公司 | Configuration acquiring method, zero configuration access point and neighbor access point |
CN102215515A (en) * | 2010-04-07 | 2011-10-12 | 华为技术有限公司 | Data processing method, communication system and related equipment |
CN102469470A (en) * | 2010-11-04 | 2012-05-23 | 中兴通讯股份有限公司 | Transmission method and device in wireless local area network |
WO2013039277A1 (en) * | 2011-09-16 | 2013-03-21 | 주식회사 케이티 | Method and device for accounting in wifi roaming based on ac and ap interworking |
WO2013039278A1 (en) * | 2011-09-16 | 2013-03-21 | 주식회사 케이티 | Method and device for web redirect authentication in wifi roaming based on ac and ap interworking |
-
2014
- 2014-08-13 CN CN201410397008.6A patent/CN104125599B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118837A (en) * | 2009-12-30 | 2011-07-06 | 杭州华三通信技术有限公司 | Configuration acquiring method, zero configuration access point and neighbor access point |
CN102215515A (en) * | 2010-04-07 | 2011-10-12 | 华为技术有限公司 | Data processing method, communication system and related equipment |
CN102469470A (en) * | 2010-11-04 | 2012-05-23 | 中兴通讯股份有限公司 | Transmission method and device in wireless local area network |
WO2013039277A1 (en) * | 2011-09-16 | 2013-03-21 | 주식회사 케이티 | Method and device for accounting in wifi roaming based on ac and ap interworking |
WO2013039278A1 (en) * | 2011-09-16 | 2013-03-21 | 주식회사 케이티 | Method and device for web redirect authentication in wifi roaming based on ac and ap interworking |
Also Published As
Publication number | Publication date |
---|---|
CN104125599A (en) | 2014-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3783987B1 (en) | Information transmission method and device | |
CN106233696B (en) | Send the method and its equipment of the explicit signal of -2 state variable of layer for D2D communication system | |
CN104125599B (en) | Access point is obtained with user terminal information, associated and statistical analysis technique in WLAN | |
DE60206246T2 (en) | DISTRIBUTED NETWORK COMMUNICATION SYSTEM ALLOWING A NUMBER OF PROVIDERS OF CORDLESS COMMUNICATION SERVICES TO SHARE A COMMON NETWORK INFRASTRUCTURE | |
WO2019153428A1 (en) | Wireless communication method, network device and terminal device | |
CN1981485B (en) | Communication system, radio lan base station control device, and radio lan base station device | |
CN101690004B (en) | Method and device for event report service in wireless local area network system | |
CN110035564A (en) | Communication means and device | |
CN106717053A (en) | Integrated circuit for wireless communication, wireless communication terminal, and wireless communication method | |
CN106465090A (en) | An extensible solution for device to device discovery message size | |
CN103095654B (en) | Virtual local area network (VLAN) configuration method, wireless access point and network control point | |
US20140105098A1 (en) | Frame specification for a wireless network communication | |
CN106488447A (en) | A kind of method and system of smart machine access network | |
CN104378730B (en) | A kind of access system of M2M business in cellular radio Communication system | |
CN103379546B (en) | The method and apparatus of data distribution | |
CN107483279A (en) | A kind of method for the local batch operation network equipment detectd based on Ethernet | |
CN103384365B (en) | A kind of method for network access, method for processing business, system and equipment | |
CN101867515B (en) | Data packet transmission method and terminal equipment | |
CN110337103A (en) | A kind of connectionless data hided transmission method based on 802.11 agreements | |
CN101965064B (en) | Method and device for transmitting packet data convergence protocol data | |
CN100411335C (en) | Method for obtaiing user identification by packet data gate for wireless LAN | |
CN105681267B (en) | Data transferring method and device | |
CN106341812A (en) | Data transmission method, base station, mobile management entity, terminal and system | |
CN110601893B (en) | Data transmission system, method and device | |
CN103973570A (en) | Message transmission method, AP (access point) and message transmission system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |