A kind of method and system of the anti-loiter network of router
Technical field
The present invention relates to router technology fields, particularly relate to a kind of method and system of anti-loiter network of router.
Background technique
Wireless network is indispensable a part in people's life, with the development of wireless technology, network it is unobstructed
It is more and more important in practical application.However, loiter network phenomenon is increasingly common, many smart phone users use WIFI password cracking
Tool occupies the WiFi network not being allowed to, and causes the networking speed of proper network user to substantially reduce, has seriously affected use
The online experience effect at family.
The anti-loiter network scheme of router substantially has following several at present: one is reinforce router itself security performance,
Routing SSID is hidden, but can not prevent from having rubbed the user of net, user accesses nothing with the strange user to surf the Internet is allowed every time
Gauze network will input SSID, make troubles to user;One is the users to loiter network draw black, setting blacklist, terminal
Its network connection also guarantees that its next time can not connect wireless network to be protected, the disadvantage is that can by modification equipment MAC
Location and device id decryption, only when user goes to check or citrus network speed slowly only goes to handle again, real-time is poor;
There are also a kind of setting white lists, and the user to surf the Internet will be allowed to add, and the user not in white list can not access network, should
When scheme needs user and the user access network for allowing to surf the Internet every time, white list is added it to, flexibility is poor.
A kind of anti-loiter network method of network access authentication is disclosed application No. is 201510660868.9 Chinese invention patent and is recognized
Card, technical solution are the equipment confidence that router obtains the second mobile terminal, and facility information is sent to first movement end
End is judged whether to authorize the second mobile terminal Internet access by first movement terminal, but the program can not timely feed back authorization
Information causes the user of network to be accessed waiting always, easily brings unnecessary trouble to user.
In actual application, the loiter network equipment of loiter network user is often distant apart from router, and it is known that away from
Its signal strength remoter from router is lower, and then can identify that loiter network equipment limits bandwidth in turn and prevents to realize according to distance
The purpose of its loiter network.Therefore, how from the distance between the network equipment and router to carry out design technology project to reach anti-loiter network
Purpose become urgent problem to be solved to avoid the defect in the presence of the above-mentioned prior art.
Summary of the invention
In view of the above-mentioned problems, this method comprises the following steps the invention discloses a kind of method of the anti-loiter network of router:
S1: the signal strength indication for the mobile terminal connecting with router is obtained;
S2: judge whether above-mentioned signal strength indication is lower than signal strength threshold;
S3: if so, obtaining the of signal strength indication lower than signal strength threshold of above-mentioned mobile terminal in predetermined period
One duration;
S4: judge whether above-mentioned first duration is higher than critical duration;
S5: if so, limiting the network bandwidth of above-mentioned mobile terminal.
Further, the setting steps of above-mentioned signal strength threshold include:
The network coverage of router is set;
Obtain the signal strength indication in above-mentioned network coverage at each position;
The signal strength indication at above-mentioned each position is compared to obtain minimum signal strength value;
Signal strength threshold is set by above-mentioned minimum signal strength value.
Further, between above-mentioned steps S1 and step S2 further include:
Construct device signal statistical form.
Further, the construction method of above equipment signal statistics table includes:
Formulate device statistics table structure;
It obtains in predetermined period in real time, the signal strength indication for each mobile terminal being connect with router;
Count duration of the signal strength indication of each mobile terminal in each signal strength section respectively to construct to obtain
Device signal statistical form.
Further, after above-mentioned steps S5 further include:
S6: send containing determine above-mentioned mobile terminal for loiter network equipment prompt information to administrator terminal so that administrator sentences
Whether the judgement result that above-mentioned mobile terminal is loiter network equipment of breaking is erroneous judgement;
S7: the network bandwidth of the mobile terminal is limited if so, releasing.
Based on a kind of method of the anti-loiter network of router provided by the present invention, corresponding, the present invention also provides one kind
The system of the anti-loiter network of router, the system include:
First obtains module, for obtaining the signal strength indication for the mobile terminal connecting with router;
First judgment module, for judging whether above-mentioned signal strength indication is lower than signal strength threshold;
Second obtains module, for obtaining the signal strength indication of above-mentioned mobile terminal in predetermined period lower than signal strength threshold
First duration of value;
Second judgment module, for judging whether above-mentioned first duration is higher than critical duration;
Module is limited, for limiting the network bandwidth of above-mentioned mobile terminal.
Further, above system further include:
Range setup module, for the network coverage of router to be arranged;
Third obtains module, for obtaining the signal strength indication in network coverage at each position;
4th obtains module, for comparing the signal strength indication at each position to obtain minimum signal strength value;
Threshold setting module, for setting signal strength threshold for the minimum signal strength value.
Further, above system includes:
Module is constructed, for constructing device signal statistical form.
Further, above-mentioned building module includes
Structure formulates module, for formulating the structure of device signal statistical form;
5th obtains module, for obtaining in predetermined period in real time, the signal for each mobile terminal being connect with router
Intensity value;
Statistical module, for count respectively the signal strength indication of each mobile terminal in each signal strength section when
Length is to construct to obtain device signal statistical form.
Further, above system further include:
Information sending module, for sending containing the prompt information for determining the mobile terminal for loiter network equipment to administrator terminal
So that administrator judges whether the judgement result that the mobile terminal is loiter network equipment is erroneous judgement;
Restriction cancellation module, for releasing the network bandwidth limitation to the mobile terminal.
The method and terminal of the anti-loiter network of a kind of router provided by the present invention, can be strong based on signal strength indication and signal
Angle value identifies which is loiter network equipment in the mobile terminal connecting with router lower than the first duration of signal strength threshold,
And network bandwidth limitation is carried out to the loiter network equipment identified.In addition it is possible to by sending prompt information to administrator's end
It holds so that administrator judges the loiter network equipment determined again, to avoid judging by accident, and then improves its accuracy rate, tool
There is preferable experience effect.
Detailed description of the invention
Fig. 1 is the method flow diagram of one of the embodiment one anti-loiter network of router;
Fig. 2 is the setting method flow chart of the signal strength threshold in embodiment one;
Fig. 3 is that the system of one of the embodiment one anti-loiter network of router forms figure;
Fig. 4 is that the module for setting signal intensity threshold in embodiment one forms figure;
Fig. 5 is the method flow diagram of one of the embodiment two anti-loiter network of router;
Fig. 6 is the construction method flow chart of the device signal statistical form in embodiment two;
Fig. 7 is that the system of one of the embodiment two anti-loiter network of router forms figure;
Fig. 8 is in embodiment two for constructing the module composition figure of device signal statistical form.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, the technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel every other embodiment obtained without making creative work, belongs to protection model of the invention
It encloses.
Embodiment one
Referring to Fig.1, a kind of method for present embodiments providing anti-loiter network of router, this method comprises the following steps:
S1: the signal strength indication for the mobile terminal connecting with router is obtained;
S2: judge whether the signal strength indication is lower than signal strength threshold;
S3: if so, when the signal strength indication for obtaining mobile terminal in predetermined period is lower than the first of signal strength threshold
It is long;If it is not, then the mobile terminal is not loiter network equipment, without executing any operation.
S4: judge whether first duration is higher than critical duration;
S5: if so, limiting the network bandwidth of the mobile terminal;If it is not, then the mobile terminal is not loiter network equipment, it is not necessarily to
Limit the network bandwidth of the mobile terminal.
Wherein, referring to Fig. 2, the setting method of signal strength threshold involved in step S2 is specifically included:
The network coverage of router is set;
Obtain the signal strength indication in the network coverage at each position;
The signal strength indication at each position is compared to obtain minimum signal strength value;
Signal strength threshold is set by the minimum signal strength value.
That is: the covered range of router user's manual setting router network institute, such as: user is by the network of router
Coverage area is set as the house in three Room, two Room of 120 square meters;In turn, under the premise of router Wi-Fi hotspot is opened,
The signal strength indication at each position in entire coverage area is measured using signal strength survey meter and by its detection result
Feed back to router;Further, the smallest signal strength indication in the signal strength indication obtained at each position is compared, and should
The smallest signal strength indication is set as signal strength threshold.It therefore, can be strong by the signal strength indication of mobile terminal and the signal
Whether angle value is compared judges the mobile terminal in set coverage area.
Wherein, since mobile terminal can also be needed with walking about for people and in continuous moving process for this
The duration that mobile terminal is in coverage area is judged, can be lower than signal by judging the signal strength indication of mobile terminal
First duration of intensity threshold come judge the mobile terminal whether for a long time in router coverage area except.Based on this,
The process of step S3 to step S5 can be described as:
When the signal strength indication of the mobile terminal is lower than signal strength threshold, the signal strength indication of the mobile terminal is obtained
The first duration lower than signal strength threshold (is kept at network connection and the mobile terminal in the mobile terminal and router
Time duration when except network coverage);In turn, it is critical set by administrator to judge whether first duration is higher than
Duration;If so, show the mobile terminal for a long time be in except coverage area, then determine the mobile terminal for loiter network equipment,
To limit the network bandwidth of the mobile terminal;If it is not, then showing the mobile terminal not is loiter network equipment, without to movement end
End carries out the limitation of network bandwidth.
Based on a kind of method of the anti-loiter network of router provided by the present embodiment, corresponding, the present embodiment is additionally provided
A kind of system of the anti-loiter network of router, referring to Fig. 3, which includes:
First obtains module 100, for obtaining the signal strength indication for the mobile terminal connecting with router;
First judgment module 200, for judging whether above-mentioned signal strength indication is lower than signal strength threshold;
Second obtains module 300, and the signal strength indication for obtaining above-mentioned mobile terminal in predetermined period is strong lower than signal
Spend the first duration of threshold value;
Second judgment module 400, for judging whether above-mentioned first duration is higher than critical duration;
Module 500 is limited, for limiting the network bandwidth of above-mentioned mobile terminal.
Wherein, also there is the comprising modules for the signal strength threshold of router to be arranged, tool referring to Fig. 4, in the system
Body includes:
Range setup module 600, for the network coverage of router to be arranged;
Third obtains module 700, for obtaining the signal strength indication in network coverage at each position;
4th obtains module 800, for comparing the signal strength indication at each position to obtain minimum signal strength value;
Threshold setting module 900, for setting signal strength threshold for the minimum signal strength value.
Distance of mobile terminal routing is utilized in a kind of method and system of the anti-loiter network of router provided in the present embodiment
The lower feature of its remoter signal strength indication of device, and then pass through setting network coverage, signal strength threshold and critical duration
Specified conditions are waited to judge whether the mobile terminal connecting with router is continued in except the coverage area of router, thus real
Now the mobile terminal that is connect with router of identification whether be loiter network equipment purpose, with preferable practicability.
Embodiment two
Referring to Fig. 5, a kind of method for present embodiments providing anti-loiter network of router, this method specifically comprises the following steps:
S1: the signal strength indication for the mobile terminal connecting with router is obtained;
S2: judge whether the signal strength indication is lower than signal strength threshold;
S3: if so, the signal strength indication for obtaining the mobile terminal in predetermined period is lower than the first of signal strength threshold
Duration;If it is not, then determining the mobile terminal not is loiter network equipment, without taking any operation to the mobile terminal.
S4: judge whether first duration is higher than critical duration;
S5: if so, limiting the network bandwidth of the mobile terminal;If it is not, then the mobile terminal is not loiter network equipment, it is not necessarily to
Limit the network bandwidth of the mobile terminal.
Wherein, between step S1 and step S2 further include:
Construct device signal statistical form.
Specifically, including the following steps: referring to Fig. 6 for the building process of device signal statistical form
It formulates device signal and counts table structure;
It obtains in predetermined period in real time, the signal strength indication for each mobile terminal being connect with router;
Count duration of the signal strength indication of each mobile terminal in each signal strength section respectively to construct to obtain
Device signal statistical form.
Wherein, the strong section of each signal in the device signal statistical form is based on signal strength threshold set by user
For separation, i.e., it is higher than the duration and signal of signal strength threshold in the device signal statistical form including signal strength indication
Intensity value is lower than the duration of signal strength threshold, so that router can get this by constructed device signal statistical form
The signal strength indication of mobile terminal is lower than the first duration of signal strength threshold.
Wherein, it is included at least in prepared device signal statistics table structure: each mobile terminal being connect with router
Duration in each signal strength section of MAC Address, signal strength section and each mobile terminal.Predetermined period, can
It is independently set according to the actual demand of user.
Wherein, for the setting method of signal strength threshold involved in step S2, it is similar to Fig. 2 institute in embodiment one
Show content, specifically include:
The network coverage of router is set;
Obtain the signal strength indication in above-mentioned network coverage at each position;
The signal strength indication at above-mentioned each position is compared to obtain minimum signal strength value;
Signal strength threshold is set by above-mentioned minimum signal strength value.
That is: the covered range of router user's manual setting router network institute, such as: user is by the network of router
Coverage area is set as the house in three Room, two Room of 120 square meters;In turn, under the premise of router Wi-Fi hotspot is opened,
Using signal strength survey meter measure the signal strength indication at each position of entire coverage area and by its detection result it is anti-
It is fed to router;Further, the smallest signal strength indication in the signal strength indication got at each position is compared, and should
The smallest signal strength indication is set as signal strength threshold.It therefore, can be strong by the signal strength indication of mobile terminal and the signal
Whether angle value is compared judges the mobile terminal in set coverage area.
Wherein, since mobile terminal can also be needed with walking about for people and in continuous moving process for this
The duration that mobile terminal is in coverage area is judged, can be lower than signal by judging the signal strength indication of mobile terminal
The total duration of intensity threshold come judge the mobile terminal whether for a long time in router coverage area except.Based on this, walk
The process of rapid S3 to step S5 can be described as:
When the signal strength indication of the mobile terminal is lower than signal strength threshold, the signal strength indication of the mobile terminal is obtained
Lower than the first duration of signal strength threshold, (i.e. the mobile terminal is in except network coverage and keeps between router
Network connection when duration);In turn, judge whether first duration is higher than critical duration set by administrator;If so,
Show that the mobile terminal is in except coverage area for a long time, determines the mobile terminal for loiter network equipment, to limit the movement
The network bandwidth of terminal;If it is not, then showing the mobile terminal not is loiter network equipment, without carrying out network bandwidth to the mobile terminal
Limitation.
Wherein, it is further comprised the steps of: later referring to Fig. 5, step S5
S6: sending the mobile terminal containing judgement is the prompt information of loiter network equipment to administrator terminal so that administrator judges
The mobile terminal is whether the judgement result of loiter network equipment is erroneous judgement;
S7: the network bandwidth of the mobile terminal is limited if so, releasing.
That is: router sends the management connecting with router for determined mobile terminal for the judgement result of loiter network equipment
In member's terminal, administrator terminal further judges the judgement result, if administrator judges to have erroneous judgement, will release
Network bandwidth limitation to the mobile terminal;It judges by accident if it does not exist, then continues the network bandwidth for limiting the mobile terminal.
Based on a kind of method of the anti-loiter network of router provided by the present embodiment, correspondingly, the present embodiment additionally provides one
The system of the kind anti-loiter network of router, referring to Fig. 7, which includes:
Range setup module 600, for the network coverage of router to be arranged;
Third obtains module 700, for obtaining the signal strength indication in network coverage at each position;
4th obtains module 800, for comparing the signal strength indication at each position to obtain minimum signal strength value;
Threshold setting module 900, for setting signal strength threshold for the minimum signal strength value;
First obtains module 100, for obtaining the signal strength indication for the mobile terminal connecting with router;
First judgment module 200, for judging whether above-mentioned signal strength indication is lower than signal strength threshold;
Second obtains module 300, and the signal strength indication for obtaining above-mentioned mobile terminal in predetermined period is strong lower than signal
Spend the first duration of threshold value;
Second judgment module 400, for judging whether above-mentioned first duration is higher than critical duration;Module 500 is limited, is used for
Limit the network bandwidth of above-mentioned mobile terminal.
Wherein, referring to Fig. 8, the system further include: building module 1000, for constructing device signal statistical form, the building
Module is connected with the first acquisition module, first judgment module respectively.The building module 1000 includes:
Structure formulates module 1010, for formulating the structure of device signal statistical form;
5th obtains module 1020, for obtaining in predetermined period in real time, each mobile terminal being connect with router
Signal strength indication;
Second statistical module 1030, for counting the signal strength indication of each mobile terminal respectively in each signal strength area
Interior duration is to construct to obtain device signal statistical form.
Wherein, referring to Fig. 7, the system further include:
Information sending module 1100, for sending containing the judgement information for determining the mobile terminal for loiter network equipment to administrator
Terminal is so that administrator judges whether the judgement result that the mobile terminal is loiter network equipment is erroneous judgement;
Restriction cancellation module 1200, for releasing the network bandwidth limitation to the mobile terminal.
A kind of method and system of the anti-loiter network of router, can be identified based on signal strength indication provided by the present embodiment
Which is loiter network equipment in the mobile terminal connecting with router, and carries out the Netowrk tape tolerance to the loiter network equipment identified
System.In addition it is possible to by sending prompt information to administrator terminal so that administrator carries out again the loiter network equipment determined
Secondary judgement to avoid judging by accident, and then improves its accuracy rate, has preferable experience effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.