CN105933185A - Method and device for determining connection abnormity type of router - Google Patents

Method and device for determining connection abnormity type of router Download PDF

Info

Publication number
CN105933185A
CN105933185A CN201610465736.5A CN201610465736A CN105933185A CN 105933185 A CN105933185 A CN 105933185A CN 201610465736 A CN201610465736 A CN 201610465736A CN 105933185 A CN105933185 A CN 105933185A
Authority
CN
China
Prior art keywords
connection
state information
connection request
status information
exception type
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.)
Pending
Application number
CN201610465736.5A
Other languages
Chinese (zh)
Inventor
苏勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201610465736.5A priority Critical patent/CN105933185A/en
Publication of CN105933185A publication Critical patent/CN105933185A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention aims at providing a method and device for determining the connection abnormity type of a router. The method comprises following steps of sending a connection request to a target router; receiving one or more pieces of connection state information returned by the target router based on the connection request; and determining the abnormity type corresponding to the connection request based on the one or more pieces of connection state information. Compared with the prior art, the method and the device have the advantage that the abnormity type corresponding to the connection request is determined through reception of one or more pieces of connection state information returned by the target router based on the connection request. The incapable networking influence due to the connection abnormity of the target router can be effectively reduced based on the abnormity state. The waiting and processing time brought to a user due to the connection abnormity of the target router can be reduced. Further, the effective solution scheme can be provided for the device rapidly. The probability that the networking of a user is failed and timely remedy cannot be carried out can be reduced. The networking experience of the user can be maintained and improved.

Description

A kind of method and apparatus determining that router connects Exception Type
Technical field
The application relates to computer realm, particularly relates to a kind of skill determining that router connects Exception Type Art.
Background technology
In prior art, subscriber equipment is when corresponding objective network initiates connection request, due to cannot be with Router corresponding to described objective network connects, it may appear that the result of connection failure, but now due to Described subscriber equipment cannot know that router connects abnormal reason, thus cannot be for connecting exception Reason is effectively got rid of connection interference and provides solution effectively rapidly, and subscriber equipment connects The probability of network failure cannot effectively reduce, and is unfavorable for the optimization of Consumer's Experience.
Summary of the invention
The purpose of the application is to provide a kind of method and apparatus determining that router connects Exception Type.
An aspect according to the application, it is provided that a kind of method determining that router connects Exception Type, Including:
Connection request is sent to destination router;
Receive one or more connection status letter that described destination router returns based on described connection request Breath;
Based on the one or more connection state information, determine the Exception Type that described connection request is corresponding.
According to the another aspect of the application, additionally provide a kind of equipment determining that router connects Exception Type, Including:
First device, for sending connection request to destination router;
Second device, is used for receiving or many that described destination router returns based on described connection request Individual connection state information;
3rd device, for based on the one or more connection state information, determines described connection request Corresponding Exception Type.
Compared with prior art, the application is by receiving destination router connection request based on described equipment The one or more connection state informations returned, determine the abnormality that described connection request is corresponding.Here, Can effectively reduce owing to destination router connects the abnormal networking brought to user based on described abnormality Can not impact, shorten owing to destination router connects the abnormal wait brought to user and process time, And then, it is possible to achieve provide effective solution for described equipment rapidly, reduce user and network failure And the probability that cannot remedy in time, safeguard and improve user networking experience.
Further, by Exception Type corresponding for described connection request is sent to map network equipment, example As, it is recorded and stored in described corresponding net with the mapping relations of described destination router by described Exception Type In network equipment, then will be able to be stored when other demand equipment follow-up connect this same target router History Exception Type record be supplied to other demand equipment as reference information, from source reduce connect The possibility of unusual condition, such that it is able to reduce other demand equipment on the whole to connect upper anomalous routes device Probability;Or when occurring connecting abnormal during other demand device request connect described destination router, Quickly and Exception Type can be accurately determined with reference to described history Exception Type record, shorten due to mesh Mark router connects the abnormal wait brought to user and process time, and the networking optimizing user is experienced. Based on this, the application can also adjust on the whole and optimize network connection resource each demand equipment it Between distribution.
Accompanying drawing explanation
The detailed description that non-limiting example is made made with reference to the following drawings by reading, this Shen Other features, objects and advantages please will become more apparent upon:
Fig. 1 illustrates a kind of equipment determining that router connects Exception Type according to one aspect of the application Equipment schematic diagram;
Fig. 2 illustrates according to the application a kind of side determining that router connects Exception Type in terms of another Method flow chart.
In accompanying drawing, same or analogous reference represents same or analogous parts.
Detailed description of the invention
Below in conjunction with the accompanying drawings the application is described in further detail.
In one typical configuration of the application, terminal, the equipment of service network and trusted party all include One or more processors (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-is permissible Information storage is realized by any method or technology.Information can be computer-readable instruction, data knot Structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase Become internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), electricity Erasable Programmable Read Only Memory EPROM (EEPROM), fast flash memory bank or other memory techniques, read-only Compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or any other non-transmission medium, Can be used for the information that storage can be accessed by a computing device.According to defining herein, computer-readable Medium does not include non-temporary computer readable media (transitory media), as modulation data signal and Carrier wave.
Fig. 1 illustrates a kind of equipment determining that router connects Exception Type according to one aspect of the application The equipment schematic diagram of 1.Wherein, described equipment 1 includes first device the 11, second device 12 and Three devices 13.Wherein, first device 11 sends connection request to destination router;Second device 12 Receive one or more connection state informations that described destination router returns based on described connection request; 3rd device 13, based on the one or more connection state information, determines that described connection request is corresponding Exception Type.
Specifically, described first device 11 sends connection request to destination router.Here, it is described Equipment 1 includes the various intelligent terminal comprising network connecting function, such as intelligent movable equipment, various People's computer etc..When described equipment 1 has the demand connecting network, can be to mesh corresponding to objective network Mark router sends connection request.Here, described objective network includes but not limited to the Internet, wide area Net, Metropolitan Area Network (MAN), LAN, VPN etc..Here, preferably, at described equipment 1 it is In system, it is loaded with corresponding network management module, such as, open source software wpa_supplicant, institute State equipment 1 based on described network management module, it is achieved network connects, such as, realize accessing described target The wireless network that router is corresponding.
Then, described second device 12 receive described destination router to return based on described connection request The one or more connection state informations returned.Here, described connection state information include but not limited to The next item down or multinomial: disconnecting status information;Interface disabled state information;Without profile state Information;Scanning mode information;Just in association status information;It is successfully associated status information;Initiate certification Status information;4-Way Handshake authentication state information;Overall situation encryption authentication state information;Certification becomes an account of somebody's meritorious service State information etc..Wherein, when equipment 1 and destination router disconnecting, correspond in described connection Disconnected status information;When the wireless network card of equipment 1 is disabled, correspond to interface disabled state information; When equipment 1 does not has any wireless networks profiles, correspond to without profile state information;When When equipment 1 attempts going scanning to specify WAP, correspond to scanning mode information;When equipment 1 is tasted When examination removes to associate certain WAP, such as, when connecting certain WAP, correspond to close Connection status information;When equipment 1 associates certain WAP success, correspond to be successfully associated state letter Breath;When equipment 1 attempts removing certification WAP, correspond to initiate authentication state information;When setting When carrying out 4-Way Handshake certification for 1 with described destination router, correspond to 4-Way Handshake authentication state letter Breath;After equipment 1 and described destination router complete 4-Way Handshake certification, can be based on described target road The overall encryption key handshake authentication again generated by device, verification process now corresponds to overall situation encryption Authentication state information;When after equipment 1 certification success, such as, after overall situation encryption certification success, corresponding to Certification success status information etc..Here, specifically, with described equipment 1 by corresponding open source software, If wpa_supplicant is as a example by destination router sends connection request, the institute that described equipment 1 receives State one or more connection state information to be probably: DISCONNECTED, correspond to disconnecting Status information;INTERFACE_DISABLED, corresponds to interface disabled state information; INACTIVE, corresponds to without profile state information;SCANNING, corresponds to scanning mode Information;ASSOCIATING, corresponds to just in association status information;ASSOCIATED, association Success status information;AUTHENTICATING, corresponds to initiate authentication state information; FOUR_WAY_HANDSHAKE 4-Way Handshake authentication state information; GROUP_HANDSHAKE, corresponds to overall situation encryption authentication state information;COMPLETED, Correspond to certification success status information.
These those skilled in the art it should be appreciated that each connection state information above-mentioned is only act Example, other other connection state informations that are existing or that be likely to occur from now on are such as applicable to the application, Also within should being included in the application protection domain, and it is incorporated herein with way of reference.
Then, described 3rd device 13, based on the one or more connection state information, determines institute State the Exception Type that connection request is corresponding.Here, based on described equipment 1 is received one or Multiple connection state information analyses, include the combinative analysis of multiple connection state information, determine described company Connect the Exception Type that request is corresponding.Here, described Exception Type includes that presently described equipment 1 is based on institute State connection request and cannot connect the reason of described destination router smoothly.Here, preferably, described Exception Type can include the access information mistake that described destination router is corresponding, such as, described equipment The 1 connection code error being committed to described destination router;Or, including sending described connection request Equipment limited, such as, (Media Access Control, media are visited for the MAC of described equipment 1 Ask control address) information is restricted, thus the destination router of correspondence cannot be connected;Or, bag Including and connect the number of devices of described destination router and reached the upper limit, the most described destination router can connect Connect number of devices or default connection amount threshold reaches maximum, the connection of the most described equipment 1 Request i.e. can be refused by described destination router;Or, including the signal that described destination router is corresponding Intensity is less than predetermined threshold value, and such as, the current signal intensity of described destination router is more weak, less than pre- If threshold value, then in order to ensure the connection effect of described equipment 1, or in order to avoid described target route Currently attached other routers of device receive impact, and the connection request of the most described equipment 1 also can be by Described destination router is refused;Or, connect abnormal corresponding other reasons including destination router, Here, these those skilled in the art it should be appreciated that each Exception Type above-mentioned is only for example, Other other Exception Types that are existing or that be likely to occur from now on are such as applicable to the application, also should comprise Within the application protection domain, and it is incorporated herein with way of reference.Here, based on to described exception The analysis of type, the one or more connection state informations returned in conjunction with described destination router, Think that each Exception Type determines the connection state information combination of its correspondence, i.e. at this preferably, institute State Exception Type the most really to establish rules then to having, such as, when described equipment 1 receives a series of During connection state information, now, if this series of connection state information and some Exception Type Determine that rule matches, i.e. can accurately estimate the possible Exception Type of current goal router.
Here, the application is by receiving the one of destination router connection request based on described equipment 1 return Individual or multiple connection state informations, determine the abnormality that described connection request is corresponding.Here, based on institute State abnormality can effectively reduce due to destination router connect the abnormal networking brought to user can not Impact, shortens owing to destination router connects the abnormal wait brought to user and process time, and then, Can realize providing effective solution for described equipment rapidly, reduce user and network failure and cannot The probability remedied in time, safeguards and improves user networking experience.
In a preferred embodiment, described 3rd device 13 connects shape based on the one or more The reception order of state information and each connection state information, determines the exception class that described connection request is corresponding Type.
Specifically, in the described equipment 1 connection procedure with described destination router, sometimes described certain The determination of individual Exception Type is not required to the one or more connection state information of its correspondence to be had really Fixed reception order;But setting described of the one or more sometimes, identical connection state information During standby 1 reception order difference, what it was corresponding causes described destination router to connect abnormal exception class Type can difference.Here, in order to improve the accuracy that Exception Type determines, consider described the most simultaneously One or more connection state informations, and the time order and function order each received by described equipment 1, To improve the accuracy determining described Exception Type.
Further, in a preferred embodiment, described 3rd device 13 is based on one or many The reception order of individual connection state information and each connection state information, and combine described connection request pair The connection duration answered, determines the Exception Type that described connection request is corresponding.
Specifically, in actual applications, for different Exception Types, institute is sent from described equipment 1 The duration stating one or more connection state informations that connection request receives correspondence to described equipment 1 is each Differing, the connection duration that the most described connection request is corresponding is different, based on this, it is assumed that described equipment 1 Front and back connect two destination routers, if front and back the one or more connection status of twice correspondence is believed The reception order of breath and each connection state information is all consistent, but the company that respective connection request is corresponding Connect duration and have difference, as there is significant difference, then for described equipment 1, above-mentioned two target The Exception Type that router is corresponding may be not consistent, and is probably corresponding two kinds of different exception class Type.Here, by combining the consideration to described connection duration, can be further to described Exception Type Accurately judge.Here, preferably, can be that described connection duration arranges one or more reference Standard, with described reference standard as boundary, to falling in different the one or more connection with reference to scope Status information, coupling determine correspondence Exception Type.Such as, described reference standard can be default Connection timeout threshold, e.g., be set to the N second, described connection timeout threshold can be based on to reality The reasonable value that in application, the analysis of experimental data determines, it is preferable that can be by for the application The experimental data connecting duration that the various described Exception Type that is likely to occur in scene is corresponding, total score Analysis determines.
Here, preferably, if meeting following condition, described 3rd device 13 determines that described connection please The Exception Type asking corresponding is the access information mistake that described destination router is corresponding: the plurality of connection The reception order of status information and each connection state information be corresponding in turn to into just association status information, It is successfully associated status information, initiates in authentication state information, 4-Way Handshake authentication state information, connection Disconnected status information;When receiving described disconnecting status information, the company that described connection request is corresponding Connect duration less than or equal to connecting timeout threshold.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, such as FOUR_WAY_HANDSHAKE, disconnecting status information, as DISCONNECTED (error=1);And when receiving described disconnecting status information During DISCONNECTED (error=1), the connection duration that described connection request is corresponding is not above Described connection timeout threshold, such as, described connection duration is not above the N second preset, the most true Fixed described Exception Type is the access information mistake that described destination router is corresponding.Here, preferably, Described equipment 1 receives described just before association status information ASSOCIATING, may also can Receive one or many disconnecting status information DISCONNECTED or believe for scanning mode Other described connection state informations such as breath SCANNING;Additionally, in actual application, there is also Machine reports by mistake or time delay reports described DISCONNECTED (error=1) this information.Cause This, as described disconnecting status information DISCONNECTED judging Exception Type (error=1) then need to combine each preposition connection state information, the most just association status information, It is successfully associated status information, initiates authentication state information, the judgement of 4-Way Handshake authentication state informix.
Preferably, described 3rd device 13 based on the one or more connection state information and each The reception order of connection state information, and combine connection duration corresponding to described connection request and described mesh The signal intensity that mark router is corresponding, determines the Exception Type that described connection request is corresponding.
Specifically, the described Exception Type that is likely to occur during reality is applied, the most not only will be in conjunction with The reception order of the one or more connection state information and each connection state information, above-mentioned enforcement The connection duration that connection request described in example is corresponding, in addition it is also necessary to corresponding with reference to described destination router Signal intensity, such as, described equipment 1 is currently able to the signal of the described destination router scanned Intensity, with this, carrys out accurate recognition and goes out the Exception Type of current goal router.
It is more preferred to, if meeting following condition, described 3rd device 13 determines described company Connect Exception Type corresponding to request be signal intensity that described destination router is corresponding less than predetermined threshold value: The reception order of the plurality of connection state information and each connection state information is corresponding in turn to as Association status information, be successfully associated status information, initiate authentication state information;When receiving described sending out When playing authentication state information, the connection duration that described connection request is corresponding is more than and connects timeout threshold;Institute State signal intensity corresponding to destination router less than predetermined threshold value.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, such as AUTHENTICATING;Further, connecing When receiving described initiation authentication state information, the connection duration that described connection request is corresponding is super more than connecting Time threshold value, such as, described connection duration has exceeded the default N second, and meanwhile, described equipment 1 obtains Signal intensity corresponding to the described destination router that arrives is less than predetermined threshold value, and such as, described equipment 1 is swept The signal intensity retouching current goal router is more weak, as less than 82db, or due to described equipment 1 Mobile in connection procedure cause scanning the wireless network that described destination router is corresponding, then this Time, it is not necessary to wait whether it follow-up has described connection state information again, can quickly determine current The Exception Type that described connection request is corresponding is that the signal intensity that described destination router is corresponding is less than in advance If threshold value.Moreover it is preferred that said equipment 1 receives described just in association status information Before ASSOCIATING, also may can receive one or many disconnecting status information DISCONNECTED or be other described connection status such as scanning mode information SCANNING letter Breath.
Here, preferably, if meeting following condition, described 3rd device 13 determines that described connection please The Exception Type asking corresponding is that to send the equipment of described connection request limited: the plurality of connection status letter Breath and the reception order of each connection state information be corresponding in turn to for just in association status information, be associated to Merit status information, initiation authentication state information, 4-Way Handshake authentication state information, disconnecting state Information;When receiving described disconnecting status information, the connection duration that described connection request is corresponding More than connecting timeout threshold.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, such as FOUR_WAY_HANDSHAKE, disconnecting status information, as DISCONNECTED (error=1);And when receiving described disconnecting status information During DISCONNECTED (error=1), the connection duration that described connection request is corresponding exceedes described Connect timeout threshold, such as, exceed the default N second, the most now determine that described destination router is corresponding For sending equipment this Exception Type limited of described connection request.Moreover it is preferred that it is said Equipment 1 receives described just before association status information ASSOCIATING, may also can receive To one or many disconnecting status information DISCONNECTED or be scanning mode information Other described connection state informations such as SCANNING.In the present embodiment, if only considering described many The reception order of individual connection state information and each connection state information, then candidate's Exception Type may be The equipment of the described connection request of described transmission is limited, or the access that aforementioned described destination router is corresponding Information errors one of both, now can increase the connection duration considering that described connection request is corresponding, example By as described in connection duration with as described in be connected the comparison of timeout threshold, determine described Exception Type; Or, it is preferable that can be combined with the historic state class record of described destination router, including institute State history Exception Type record and the normal linkage record of history of destination router, i.e. combine big data and divide Analysis result, estimates presently described Exception Type exactly.
If moreover it is preferred that meet following condition, described 3rd device 13 can also determine described The Exception Type of connection request is that to send the equipment of described connection request limited: the plurality of connection status The reception order of information and each connection state information is corresponding in turn to as just in association status information, association Success status information, initiation authentication state information, 4-Way Handshake authentication state information, overall situation encryption are recognized Card status information;When receiving described overall situation encryption authentication state information, described connection request is corresponding Connection duration more than connect timeout threshold.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, as FOUR_WAY_HANDSHAKE, the overall situation encrypt authentication state information, Such as GROUP_HANDSHAKE;And when receiving described overall situation encryption authentication state information During GROUP_HANDSHAKE, the connection duration that described connection request is corresponding exceedes described connection and surpasses Time threshold value, such as, exceed the default N second, the most now determine described destination router correspond to send Equipment this Exception Type limited of described connection request.Moreover it is preferred that said equipment 1 Receive described just before association status information ASSOCIATING, may also can receive once Or repeatedly disconnecting status information DISCONNECTED or be scanning mode information Other described connection state informations such as SCANNING.
Preferably, if meeting following condition, described 3rd device 13 determines the different of described connection request Often type is to connect the number of devices of described destination router to have reached the upper limit: the plurality of connection status The reception order of information and each connection state information is corresponding in turn to as just in association status information, association Success status information, initiation authentication state information, 4-Way Handshake authentication state information, overall situation encryption are recognized Card status information, certification success status information;When receiving described certification success status information, institute State connection duration corresponding to connection request more than connecting timeout threshold;Described equipment does not get correspondence IP information.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, as FOUR_WAY_HANDSHAKE, the overall situation encrypt authentication state information, Such as GROUP_HANDSHAKE;Certification success status information, such as COMPLETED;And work as When receiving described certification success status information COMPLETED, the company that described connection request is corresponding Connect duration and exceed described connection timeout threshold, such as, exceed the default N second;Meanwhile, described equipment The 1 IP information being not allocated to correspondence, the most now may determine that described destination router Exception Type The number of devices corresponding to connect described destination router has reached the upper limit.Here, preferably, also may be used To use or to combine the historic state class record of described destination router, including described target road By history Exception Type record and the normal linkage record of history of device, i.e. combine big data results, Estimating described Exception Type exactly, the most described destination router was previously connected into by other equipment Merit, and current device 1 cannot get IP information, then can estimate is to connect described target route The number of devices of device has reached this Exception Type of the upper limit.
In an embodiment preferably, described 3rd device 13 is based on the one or more even Connect status information, determine candidate's Exception Type that described connection request is corresponding;According to described connection request Corresponding candidate's Exception Type, and combine the historic state class record of described destination router, determine The Exception Type that described connection request is corresponding, wherein, described historic state class record includes that history is different Often class record and the normal linkage record of history.
Specifically, in actual applications, described equipment 1 is based on the one or more connection shapes received State information, or preferably, in conjunction with the one or more connection state information reception order, Or the connection duration etc. that described connection request is corresponding, it is possible to determine that described connection request is corresponding one Or multiple candidate's Exception Type, here, when described candidate's Exception Type is multiple, need from multiple Candidate's Exception Type accurately determines out the Exception Type that presently described destination router is corresponding;And work as When described candidate's Exception Type is one, it is also desirable to the standard of this candidate's Exception Type can be verified further Really property.At this point it is possible in each specific embodiment that the application is above-mentioned, determine rule existing Middle utilization or combine the historic state class record of described destination router, determines that described connection please Seek corresponding Exception Type.Wherein, described historic state class record corresponds to described destination router Set up, with each equipment, the historical record being connected, can include that each equipment 1 connects described target route The history Exception Type record of device and the normal linkage record of history.Described historic state class record is permissible It is stored in the cloud server corresponding with described equipment 1 or server cluster.Such as, when described mesh In the history Exception Type record that mark router is corresponding, the probability of a certain Exception Type of record is relatively big, Then this Exception Type i.e. can be preferably the reference of current goal router abnormal cause.
Preferably, described equipment 1 also includes the 4th device (not shown).Described 4th device is by institute Stating Exception Type corresponding to connection request to send to map network equipment, wherein, described Exception Type is made History Exception Type record for described destination router is stored in the described network equipment.
Specifically, described equipment 1, can be by during being attached with described destination router Described normal linkage record, or the exception determined connects corresponding Exception Type and sends to corresponding The network equipment, store in the cloud server of described equipment 1 correspondence or server cluster, Such that it is able to as the history Exception Type record of described destination router, the described network equipment provide It is connected to described destination router, simultaneously to other demand equipment that should have abnormal connection state to follow-up As the reference information judging the real-time Exception Type of described destination router.
In the present embodiment, by Exception Type transmission corresponding for described connection request is set to map network Standby, such as, it is recorded and stored in described by the mapping relations of described Exception Type Yu described destination router In map network equipment, then can be when other demand equipment follow-up connect this same target router, will The history Exception Type record stored is supplied to other demand equipment as reference information, drops from source The possibility of low connection unusual condition, such that it is able to reduce other demand equipment on the whole to connect upper abnormal road By the probability of device;Or occur connecting during other demand device request connect described destination router Time abnormal, it is possible to quickly and accurately determine Exception Type with reference to described history Exception Type record, contracting Short due to the abnormal wait brought to user of destination router connection and process time, optimize the company of user Dictyosome is tested.Based on this, the application can also adjust and optimize network connection resource on the whole and need at each Ask the distribution between equipment.
In a preferred embodiment, described equipment also includes the 5th device (not shown).Described 5th Device, based on Exception Type corresponding to described connection request, presents abnormal prompt information to corresponding user.
Specifically, described equipment 1 can include institute to the described abnormal prompt information that corresponding user presents State the concrete Exception Type that destination router is corresponding, such as, can be the access that described destination router is corresponding Information errors;Or the equipment sending described connection request is limited;Or connect described destination router Number of devices reached the upper limit;Or signal intensity corresponding to described destination router is less than presetting threshold Value;Or described destination router connects the most corresponding abnormal other reasons.It is further preferred that based on Different Exception Types, abnormal prompt information can also include corresponding concrete operations suggestion content.Example As, if the described Exception Type access information mistake that to be described destination router corresponding, then can point out Application is re-entered connection encrypted message.And for example, if described Exception Type is to send described connection The equipment of request is limited, then can point out whether described user initiates limited checking, to prevent by institute State destination router erroneous judgement to limit.And for example, if described Exception Type is to connect described destination router Number of devices has reached the upper limit, then can point out user be switched to current connection devices number less other Alternate routing device.And for example, if described Exception Type is that the signal intensity that described destination router is corresponding is little In predetermined threshold value, then described user can be pointed out to move current location, in order to strengthen presently described equipment 1 signal intensity connecting described destination router.
Here, the exception of described destination router that the described equipment 1 that the application can be determined by runs into Type, targetedly, quickly provides solution effectively, gets rid of and connects interference, effectively reduce by In destination router connect the abnormal networking brought to user can not impact, shorten due to destination router Connect the abnormal wait brought to user and process time.Meanwhile, it is capable to adjust on the whole and optimize net The distribution between each demand equipment of the network connection resource.
Fig. 2 illustrates according to the application a kind of side determining that router connects Exception Type in terms of another Method flow chart.Wherein, described method includes step S21, step S22 and step S23.Wherein, In the step s 21, described equipment 1 sends connection request to destination router;In step S22, Described equipment 1 receives one or more connections that described destination router returns based on described connection request Status information;In step S23, described equipment 1 based on the one or more connection state information, Determine the Exception Type that described connection request is corresponding.
Specifically, in the step s 21, described equipment 1 sends connection request to destination router.? This, described equipment 1 includes the various intelligent terminal comprising network connecting function, as intelligent movable equipment, Various personal computers etc..When described equipment 1 has the demand connecting network, can be to objective network pair The destination router answered sends connection request.Here, described objective network include but not limited to the Internet, Wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..Here, preferably, at described equipment 1 System in, be loaded with corresponding network management module, such as, open source software wpa_supplicant, Described equipment 1 is based on described network management module, it is achieved network connects, such as, realize accessing described mesh The wireless network that mark router is corresponding.
Then, in step S22, described equipment 1 described destination router is received based on described company Connect one or more connection state informations that request returns.Here, described connection state information include but It is not limited to following one or more: disconnecting status information;Interface disabled state information;Without configuration File status information;Scanning mode information;Just in association status information;It is successfully associated status information; Initiate authentication state information;4-Way Handshake authentication state information;Overall situation encryption authentication state information;Recognize Card success status information etc..Wherein, when equipment 1 and destination router disconnecting, institute is corresponded to State disconnecting status information;When the wireless network card of equipment 1 is disabled, correspond to interface disabling shape State information;When equipment 1 does not has any wireless networks profiles, correspond to without profile state Information;When equipment 1 attempts going scanning to specify WAP, correspond to scanning mode information;When When equipment 1 attempts removing to associate certain WAP, such as when connecting certain WAP, corresponding For just in association status information;When equipment 1 associates certain WAP success, correspond to be associated to Merit status information;When equipment 1 attempts removing certification WAP, correspond to initiate authentication state letter Breath;When equipment 1 carries out 4-Way Handshake certification with described destination router, correspond to 4-Way Handshake and recognize Card status information;After equipment 1 and described destination router complete 4-Way Handshake certification, can be based on institute Stating the overall encryption key handshake authentication again that destination router generates, verification process now corresponds to Overall situation encryption authentication state information;After equipment 1 certification is successful, such as after overall situation encryption certification success, Correspond to certification success status information etc..Here, specifically, with described equipment 1 by opening accordingly Source software, if wpa_supplicant is as a example by destination router sends connection request, described equipment 1 The one or more connection state information received is probably: DISCONNECTED, corresponds to Disconnecting status information;INTERFACE_DISABLED, corresponds to interface disabled state information; INACTIVE, corresponds to without profile state information;SCANNING, corresponds to scanning mode Information;ASSOCIATING, corresponds to just in association status information;ASSOCIATED, association Success status information;AUTHENTICATING, corresponds to initiate authentication state information; FOUR_WAY_HANDSHAKE 4-Way Handshake authentication state information; GROUP_HANDSHAKE, corresponds to overall situation encryption authentication state information;COMPLETED, Correspond to certification success status information.
These those skilled in the art it should be appreciated that each connection state information above-mentioned is only act Example, other other connection state informations that are existing or that be likely to occur from now on are such as applicable to the application, Also within should being included in the application protection domain, and it is incorporated herein with way of reference.
Then, in step S23, described equipment 1 based on the one or more connection state information, Determine the Exception Type that described connection request is corresponding.Here, it is described based on described equipment 1 is received One or more connection state information analyses, include the combinative analysis of multiple connection state information, determine The Exception Type that described connection request is corresponding.Here, described Exception Type includes presently described equipment 1 The reason of upper described destination router cannot be connected smoothly based on described connection request.Here, preferably, Described Exception Type can include the access information mistake that described destination router is corresponding, such as, described Equipment 1 is committed to the connection code error of described destination router;Or, including sending described connection The equipment of request is limited, such as, and MAC (Media Access Control, the matchmaker of described equipment 1 Body accessing to control address) information is restricted, thus the destination router of correspondence cannot be connected;Or, Having reached the upper limit including the number of devices connecting described destination router, the most described destination router can Connect number of devices or default connection amount threshold reaches maximum, the company of the most described equipment 1 The request of connecing i.e. can be refused by described destination router;Or, including the letter that described destination router is corresponding Number intensity is less than predetermined threshold value, and such as, the current signal intensity of described destination router is more weak, is less than Predetermined threshold value, then in order to ensure the connection effect of described equipment 1, or in order to avoid described target road Other routers currently attached by device receive impact, and the connection request of the most described equipment 1 also can Refused by described destination router;Or, connect abnormal corresponding other reasons including destination router, Here, these those skilled in the art it should be appreciated that each Exception Type above-mentioned is only for example, Other other Exception Types that are existing or that be likely to occur from now on are such as applicable to the application, also should comprise Within the application protection domain, and it is incorporated herein with way of reference.Here, based on to described exception The analysis of type, the one or more connection state informations returned in conjunction with described destination router, Think that each Exception Type determines the connection state information combination of its correspondence, i.e. at this preferably, institute State Exception Type the most really to establish rules then to having, such as, when described equipment 1 receives a series of During connection state information, now, if this series of connection state information and some Exception Type Determine that rule matches, i.e. can accurately estimate the possible Exception Type of current goal router.
Here, the application is by receiving the one of destination router connection request based on described equipment 1 return Individual or multiple connection state informations, determine the abnormality that described connection request is corresponding.Here, based on institute State abnormality can effectively reduce due to destination router connect the abnormal networking brought to user can not Impact, shortens owing to destination router connects the abnormal wait brought to user and process time, and then, Can realize providing effective solution for described equipment rapidly, reduce user and network failure and cannot The probability remedied in time, safeguards and improves user networking experience.
In a preferred embodiment, in step S23, described equipment 1 is based on one or many The reception order of individual connection state information and each connection state information, determines that described connection request is corresponding Exception Type.
Specifically, in the described equipment 1 connection procedure with described destination router, sometimes described certain The determination of individual Exception Type is not required to the one or more connection state information of its correspondence to be had really Fixed reception order;But setting described of the one or more sometimes, identical connection state information During standby 1 reception order difference, what it was corresponding causes described destination router to connect abnormal exception class Type can difference.Here, in order to improve the accuracy that Exception Type determines, consider described the most simultaneously One or more connection state informations, and the time order and function order each received by described equipment 1, To improve the accuracy determining described Exception Type.
Further, in a preferred embodiment, in step S23, described equipment 1 is based on described The reception order of one or more connection state informations and each connection state information, and combine described company Connect the connection duration that request is corresponding, determine the Exception Type that described connection request is corresponding.
Specifically, in actual applications, for different Exception Types, institute is sent from described equipment 1 The duration stating one or more connection state informations that connection request receives correspondence to described equipment 1 is each Differing, the connection duration that the most described connection request is corresponding is different, based on this, it is assumed that described equipment 1 Front and back connect two destination routers, if front and back the one or more connection status of twice correspondence is believed The reception order of breath and each connection state information is all consistent, but the company that respective connection request is corresponding Connect duration and have difference, as there is significant difference, then for described equipment 1, above-mentioned two target The Exception Type that router is corresponding may be not consistent, and is probably corresponding two kinds of different exception class Type.Here, by combining the consideration to described connection duration, can be further to described Exception Type Accurately judge.Here, preferably, can be that described connection duration arranges one or more reference Standard, with described reference standard as boundary, to falling in different the one or more connection with reference to scope Status information, coupling determine correspondence Exception Type.Such as, described reference standard can be default Connection timeout threshold, e.g., be set to the N second, described connection timeout threshold can be based on to reality The reasonable value that in application, the analysis of experimental data determines, it is preferable that can be by for the application The experimental data connecting duration that the various described Exception Type that is likely to occur in scene is corresponding, total score Analysis determines.
Here, preferably, in step S23, if meeting following condition, described equipment 1 determines institute State Exception Type corresponding to connection request and be the access information mistake that described destination router is corresponding: be described The reception order of multiple connection state informations and each connection state information is corresponding in turn to as associating Status information, be successfully associated status information, initiate authentication state information, 4-Way Handshake authentication state letter Breath, disconnecting status information;When receiving described disconnecting status information, described connection please The connection duration asking corresponding is less than or equal to connect timeout threshold.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, such as FOUR_WAY_HANDSHAKE, disconnecting status information, as DISCONNECTED (error=1);And when receiving described disconnecting status information During DISCONNECTED (error=1), the connection duration that described connection request is corresponding is not above Described connection timeout threshold, such as, described connection duration is not above the N second preset, the most true Fixed described Exception Type is the access information mistake that described destination router is corresponding.Here, preferably, Described equipment 1 receives described just before association status information ASSOCIATING, may also can Receive one or many disconnecting status information DISCONNECTED or believe for scanning mode Other described connection state informations such as breath SCANNING;Additionally, in actual application, there is also Machine reports by mistake or time delay reports described DISCONNECTED (error=1) this information.Cause This, as described disconnecting status information DISCONNECTED judging Exception Type (error=1) then need to combine each preposition connection state information, the most just association status information, It is successfully associated status information, initiates authentication state information, the judgement of 4-Way Handshake authentication state informix.
Preferably, in step S23, described equipment 1 is believed based on the one or more connection status Breath and the reception order of each connection state information, and combine the connection duration that described connection request is corresponding The signal intensity corresponding with described destination router, determines the Exception Type that described connection request is corresponding.
Specifically, the described Exception Type that is likely to occur during reality is applied, the most not only will be in conjunction with The reception order of the one or more connection state information and each connection state information, above-mentioned enforcement The connection duration that connection request described in example is corresponding, in addition it is also necessary to corresponding with reference to described destination router Signal intensity, such as, described equipment 1 is currently able to the signal of the described destination router scanned Intensity, with this, carrys out accurate recognition and goes out the Exception Type of current goal router.
It is more preferred to, in step S23, if meeting following condition, described equipment 1 is true The Exception Type that fixed described connection request is corresponding is that the signal intensity that described destination router is corresponding is less than Predetermined threshold value: the reception order of the plurality of connection state information and each connection state information is the most right Should be just association status information, be successfully associated status information, initiate authentication state information;Work as reception During to described initiation authentication state information, the connection duration that described connection request is corresponding is overtime more than connecting Threshold value;The signal intensity that described destination router is corresponding is less than predetermined threshold value.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, such as AUTHENTICATING;Further, connecing When receiving described initiation authentication state information, the connection duration that described connection request is corresponding is super more than connecting Time threshold value, such as, described connection duration has exceeded the default N second, and meanwhile, described equipment 1 obtains Signal intensity corresponding to the described destination router that arrives is less than predetermined threshold value, and such as, described equipment 1 is swept The signal intensity retouching current goal router is more weak, as less than 82db, or due to described equipment 1 Mobile in connection procedure cause scanning the wireless network that described destination router is corresponding, then this Time, it is not necessary to wait whether it follow-up has described connection state information again, can quickly determine current The Exception Type that described connection request is corresponding is that the signal intensity that described destination router is corresponding is less than in advance If threshold value.Moreover it is preferred that said equipment 1 receives described just in association status information Before ASSOCIATING, also may can receive one or many disconnecting status information DISCONNECTED or be other described connection status such as scanning mode information SCANNING letter Breath.
Here, preferably, in step S23, if meeting following condition, described equipment 1 determines institute Stating Exception Type corresponding to connection request is that to send the equipment of described connection request limited: the plurality of company The reception order connecing status information and each connection state information is corresponding in turn to as just believing at association status Cease, be successfully associated status information, initiate authentication state information, 4-Way Handshake authentication state information, company Connect interrupt status information;When receiving described disconnecting status information, described connection request is corresponding Connection duration more than connect timeout threshold.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, such as FOUR_WAY_HANDSHAKE, disconnecting status information, as DISCONNECTED (error=1);And when receiving described disconnecting status information During DISCONNECTED (error=1), the connection duration that described connection request is corresponding exceedes described Connect timeout threshold, such as, exceed the default N second, the most now determine that described destination router is corresponding For sending equipment this Exception Type limited of described connection request.Moreover it is preferred that it is said Equipment 1 receives described just before association status information ASSOCIATING, may also can receive To one or many disconnecting status information DISCONNECTED or be scanning mode information Other described connection state informations such as SCANNING.In the present embodiment, if only considering described many The reception order of individual connection state information and each connection state information, then candidate's Exception Type may be The equipment of the described connection request of described transmission is limited, or the access that aforementioned described destination router is corresponding Information errors one of both, now can increase the connection duration considering that described connection request is corresponding, example By as described in connection duration with as described in be connected the comparison of timeout threshold, determine described Exception Type; Or, it is preferable that can be combined with the historic state class record of described destination router, including institute State history Exception Type record and the normal linkage record of history of destination router, i.e. combine big data and divide Analysis result, estimates presently described Exception Type exactly.
Moreover it is preferred that in step S23, if meeting following condition, described equipment 1 can also Determine that the Exception Type of described connection request is that to send the equipment of described connection request limited: the plurality of The reception order of connection state information and each connection state information is corresponding in turn to as just at association status Information, be successfully associated status information, initiate authentication state information, 4-Way Handshake authentication state information, Overall situation encryption authentication state information;When receiving described overall situation encryption authentication state information, described company Connect connection duration corresponding to request more than connecting timeout threshold.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, as FOUR_WAY_HANDSHAKE, the overall situation encrypt authentication state information, Such as GROUP_HANDSHAKE;And when receiving described overall situation encryption authentication state information During GROUP_HANDSHAKE, the connection duration that described connection request is corresponding exceedes described connection and surpasses Time threshold value, such as, exceed the default N second, the most now determine described destination router correspond to send Equipment this Exception Type limited of described connection request.Moreover it is preferred that said equipment 1 Receive described just before association status information ASSOCIATING, may also can receive once Or repeatedly disconnecting status information DISCONNECTED or be scanning mode information Other described connection state informations such as SCANNING.
Preferably, in step S23, if meeting following condition, described equipment 1 determines described connection The Exception Type of request is that the number of devices connecting described destination router has reached the upper limit: the plurality of The reception order of connection state information and each connection state information is corresponding in turn to as just at association status Information, be successfully associated status information, initiate authentication state information, 4-Way Handshake authentication state information, The overall situation encryption authentication state information, certification success status information;When receiving described certification success status During information, the connection duration that described connection request is corresponding is more than and connects timeout threshold;Described equipment does not has Get corresponding IP information.
Specifically, in the present embodiment, with described equipment 1 by corresponding open source software, as As a example by wpa_supplicant sends connection request to destination router, when described equipment 1 receives successively To just in association status information, such as ASSOCIATING, it is successfully associated status information, as ASSOCIATED, initiation authentication state information, as AUTHENTICATING, 4-Way Handshake are recognized Card status information, as FOUR_WAY_HANDSHAKE, the overall situation encrypt authentication state information, Such as GROUP_HANDSHAKE;Certification success status information, such as COMPLETED;And work as When receiving described certification success status information COMPLETED, the company that described connection request is corresponding Connect duration and exceed described connection timeout threshold, such as, exceed the default N second;Meanwhile, described equipment The 1 IP information being not allocated to correspondence, the most now may determine that described destination router Exception Type The number of devices corresponding to connect described destination router has reached the upper limit.Here, preferably, also may be used To use or to combine the historic state class record of described destination router, including described target road By history Exception Type record and the normal linkage record of history of device, i.e. combine big data results, Estimating described Exception Type exactly, the most described destination router was previously connected into by other equipment Merit, and current device 1 cannot get IP information, then can estimate is to connect described target route The number of devices of device has reached this Exception Type of the upper limit.
In an embodiment preferably, in step S23, described equipment 1 is based on one Or multiple connection state information, determine candidate's Exception Type that described connection request is corresponding;According to described Candidate's Exception Type that connection request is corresponding, and combine the historic state type note of described destination router Record, determines the Exception Type that described connection request is corresponding, wherein, described historic state class record bag Include history Exception Type record and the normal linkage record of history.
Specifically, in actual applications, described equipment 1 is based on the one or more connection shapes received State information, or preferably, in conjunction with the one or more connection state information reception order, Or the connection duration etc. that described connection request is corresponding, it is possible to determine that described connection request is corresponding one Or multiple candidate's Exception Type, here, when described candidate's Exception Type is multiple, need from multiple Candidate's Exception Type accurately determines out the Exception Type that presently described destination router is corresponding;And work as When described candidate's Exception Type is one, it is also desirable to the standard of this candidate's Exception Type can be verified further Really property.At this point it is possible in each specific embodiment that the application is above-mentioned, determine rule existing Middle utilization or combine the historic state class record of described destination router, determines that described connection please Seek corresponding Exception Type.Wherein, described historic state class record corresponds to described destination router Set up, with each equipment, the historical record being connected, can include that each equipment 1 connects described target route The history Exception Type record of device and the normal linkage record of history.Described historic state class record is permissible It is stored in the cloud server corresponding with described equipment 1 or server cluster.Such as, when described mesh In the history Exception Type record that mark router is corresponding, the probability of a certain Exception Type of record is relatively big, Then this Exception Type i.e. can be preferably the reference of current goal router abnormal cause.
Preferably, described method also includes step S24 (not shown).In step s 24, described Exception Type corresponding for described connection request is sent to map network equipment by equipment 1, wherein, described Exception Type is stored in the described network equipment as the history Exception Type record of described destination router.
Specifically, described equipment 1, can be by during being attached with described destination router Described normal linkage record, or the exception determined connects corresponding Exception Type and sends to corresponding The network equipment, store in the cloud server of described equipment 1 correspondence or server cluster, Such that it is able to as the history Exception Type record of described destination router, the described network equipment provide It is connected to described destination router, simultaneously to other demand equipment that should have abnormal connection state to follow-up As the reference information judging the real-time Exception Type of described destination router.
In the present embodiment, by Exception Type transmission corresponding for described connection request is set to map network Standby, such as, it is recorded and stored in described by the mapping relations of described Exception Type Yu described destination router In map network equipment, then can be when other demand equipment follow-up connect this same target router, will The history Exception Type record stored is supplied to other demand equipment as reference information, drops from source The possibility of low connection unusual condition, such that it is able to reduce other demand equipment on the whole to connect upper abnormal road By the probability of device;Or occur connecting during other demand device request connect described destination router Time abnormal, it is possible to quickly and accurately determine Exception Type with reference to described history Exception Type record, contracting Short due to the abnormal wait brought to user of destination router connection and process time, optimize the company of user Dictyosome is tested.Based on this, the application can also adjust and optimize network connection resource on the whole and need at each Ask the distribution between equipment.
In a preferred embodiment, described method also includes step S25 (not shown).In step S25 In, described equipment 1, based on Exception Type corresponding to described connection request, presents abnormal carrying to corresponding user Show information.
Specifically, described equipment 1 can include institute to the described abnormal prompt information that corresponding user presents State the concrete Exception Type that destination router is corresponding, such as, can be the access that described destination router is corresponding Information errors;Or the equipment sending described connection request is limited;Or connect described destination router Number of devices reached the upper limit;Or signal intensity corresponding to described destination router is less than presetting threshold Value;Or described destination router connects the most corresponding abnormal other reasons.It is further preferred that based on Different Exception Types, abnormal prompt information can also include corresponding concrete operations suggestion content.Example As, if the described Exception Type access information mistake that to be described destination router corresponding, then can point out Application is re-entered connection encrypted message.And for example, if described Exception Type is to send described connection The equipment of request is limited, then can point out whether described user initiates limited checking, to prevent by institute State destination router erroneous judgement to limit.And for example, if described Exception Type is to connect described destination router Number of devices has reached the upper limit, then can point out user be switched to current connection devices number less other Alternate routing device.And for example, if described Exception Type is that the signal intensity that described destination router is corresponding is little In predetermined threshold value, then described user can be pointed out to move current location, in order to strengthen presently described equipment 1 signal intensity connecting described destination router.
Here, the exception of described destination router that the described equipment 1 that the application can be determined by runs into Type, targetedly, quickly provides solution effectively, gets rid of and connects interference, effectively reduce by In destination router connect the abnormal networking brought to user can not impact, shorten due to destination router Connect the abnormal wait brought to user and process time.Meanwhile, it is capable to adjust on the whole and optimize net The distribution between each demand equipment of the network connection resource.
It is obvious to a person skilled in the art that the application is not limited to the thin of above-mentioned one exemplary embodiment Joint, and in the case of without departing substantially from spirit herein or basic feature, it is possible to concrete with other Form realizes the application.Therefore, no matter from the point of view of which point, embodiment all should be regarded as exemplary , and be nonrestrictive, scope of the present application is limited by claims rather than described above It is fixed, it is intended that all changes fallen in the implication of equivalency and scope of claim are included In the application.Any reference in claim should not be considered as limit involved right want Ask.Furthermore, it is to be understood that " an including " word is not excluded for other unit or step, odd number is not excluded for plural number.Dress Multiple unit or the device of putting statement in claim can also be passed through software by a unit or device Or hardware realizes.The first, the second word such as grade is used for representing title, and is not offered as any specific Order.

Claims (26)

1. determining the method that router connects Exception Type, wherein, described method includes:
Connection request is sent to destination router;
Receive one or more connection status that described destination router returns based on described connection request Information;
Based on the one or more connection state information, determine the exception class that described connection request is corresponding Type.
Method the most according to claim 1, wherein, described Exception Type includes following any one:
The access information mistake that described destination router is corresponding;
The equipment sending described connection request is limited;
The number of devices connecting described destination router has reached the upper limit;
The signal intensity that described destination router is corresponding is less than predetermined threshold value;
Described destination router connects abnormal corresponding other reasons.
Method the most according to claim 1 and 2, wherein, described based on the one or more Connection state information, determines that the Exception Type that described connection request is corresponding includes:
Reception order based on the one or more connection state information and each connection state information, really The Exception Type that fixed described connection request is corresponding.
Method the most according to claim 3, wherein, described based on the one or more connection Status information, determines that the Exception Type that described connection request is corresponding includes:
Reception order based on the one or more connection state information and each connection state information, And combine the connection duration that described connection request is corresponding, determine the exception class that described connection request is corresponding Type.
Method the most according to claim 4, wherein, described based on the one or more connection Status information, determines that the Exception Type that described connection request is corresponding includes:
If meeting following condition, determine that the Exception Type that described connection request is corresponding is described target route The access information mistake that device is corresponding:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, disconnecting status information;
When receiving described disconnecting status information, the connection duration that described connection request is corresponding is little In or equal to connect timeout threshold.
Method the most according to claim 4, wherein, described based on the one or more connection Status information, determines that the Exception Type that described connection request is corresponding includes:
Reception order based on the one or more connection state information and each connection state information, And combine the signal intensity that connection duration corresponding to described connection request is corresponding with described destination router, Determine the Exception Type that described connection request is corresponding.
Method the most according to claim 6, wherein, described based on the one or more connection Status information, determines that the Exception Type that described connection request is corresponding includes:
If meeting following condition, determine that the Exception Type that described connection request is corresponding is described target route Signal intensity corresponding to device is less than predetermined threshold value:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiation authentication state information;
When receiving described initiation authentication state information, grow up during connection corresponding to described connection request In connecting timeout threshold;
The signal intensity that described destination router is corresponding is less than predetermined threshold value.
Method the most according to claim 4, wherein, described based on the one or more connection Status information, determines that the Exception Type that described connection request is corresponding includes:
If meeting following condition, determine that the Exception Type that described connection request is corresponding is the described connection of transmission The equipment of request is limited:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, disconnecting status information;
When receiving described disconnecting status information, grow up during connection corresponding to described connection request In connecting timeout threshold.
Method the most according to claim 4, wherein, described based on the one or more connection Status information, determines that the Exception Type that described connection request is corresponding includes:
If meeting following condition, determine that the Exception Type of described connection request is for sending described connection request Equipment limited:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, overall situation encryption authentication state information;
When receiving described overall situation encryption authentication state information, during connection corresponding to described connection request Long more than connecting timeout threshold.
Method the most according to claim 4, wherein, described based on the one or more company Connect status information, determine that the Exception Type that described connection request is corresponding includes:
If meeting following condition, determine that the Exception Type of described connection request is for connecting described target route The number of devices of device has reached the upper limit:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, the overall situation encryption authentication state information, certification success status information;
When receiving described certification success status information, grow up during connection corresponding to described connection request In connecting timeout threshold;
Described equipment does not get corresponding IP information.
11. method according to any one of claim 1 to 10, wherein, described based on described One or more connection state informations, determine that the Exception Type that described connection request is corresponding includes
Based on the one or more connection state information, determine that the candidate that described connection request is corresponding is different Often type;
According to candidate's Exception Type that described connection request is corresponding, and combine going through of described destination router History Status Type record, determines the Exception Type that described connection request is corresponding, wherein, described history shape State class record includes history Exception Type record and the normal linkage record of history.
12. according to the method according to any one of claim 1 to 11, and wherein, described method is also wrapped Include:
Exception Type corresponding for described connection request is sent to map network equipment, wherein, described different Often type is stored in the described network equipment as the history Exception Type record of described destination router.
13. according to the method according to any one of claim 1 to 12, and wherein, described method is also wrapped Include:
Based on the Exception Type that described connection request is corresponding, present abnormal prompt information to corresponding user.
14. 1 kinds determine that router connects the equipment of Exception Type, and wherein, described equipment includes:
First device, for sending connection request to destination router;
Second device, for receive that described destination router returns based on described connection request one or Multiple connection state informations;
3rd device, for based on the one or more connection state information, determines that described connection please Seek corresponding Exception Type.
15. equipment according to claim 14, wherein, described Exception Type includes following arbitrary :
The access information mistake that described destination router is corresponding;
The equipment sending described connection request is limited;
The number of devices connecting described destination router has reached the upper limit;
The signal intensity that described destination router is corresponding is less than predetermined threshold value;
Described destination router connects abnormal corresponding other reasons.
16. according to the equipment described in claims 14 or 15, and wherein, described 3rd device is used for:
Reception order based on the one or more connection state information and each connection state information, really The Exception Type that fixed described connection request is corresponding.
17. equipment according to claim 16, wherein, described 3rd device is used for:
Reception order based on the one or more connection state information and each connection state information, And combine the connection duration that described connection request is corresponding, determine the exception class that described connection request is corresponding Type.
18. equipment according to claim 17, wherein, described 3rd device is used for:
If meeting following condition, determine that the Exception Type that described connection request is corresponding is described target route The access information mistake that device is corresponding:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, disconnecting status information;
When receiving described disconnecting status information, the connection duration that described connection request is corresponding is little In or equal to connect timeout threshold.
19. equipment according to claim 17, wherein, described 3rd device is used for:
Reception order based on the one or more connection state information and each connection state information, And combine the signal intensity that connection duration corresponding to described connection request is corresponding with described destination router, Determine the Exception Type that described connection request is corresponding.
20. equipment according to claim 19, wherein, described 3rd device is used for:
If meeting following condition, determine that the Exception Type that described connection request is corresponding is described target route Signal intensity corresponding to device is less than predetermined threshold value:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiation authentication state information;
When receiving described initiation authentication state information, grow up during connection corresponding to described connection request In connecting timeout threshold;
The signal intensity that described destination router is corresponding is less than predetermined threshold value.
21. equipment according to claim 17, wherein, described 3rd device is used for:
If meeting following condition, determine that the Exception Type that described connection request is corresponding is the described connection of transmission The equipment of request is limited:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, disconnecting status information;
When receiving described disconnecting status information, grow up during connection corresponding to described connection request In connecting timeout threshold.
22. equipment according to claim 17, wherein, described 3rd device is used for:
If meeting following condition, determine that the Exception Type of described connection request is for sending described connection request Equipment limited:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, overall situation encryption authentication state information;
When receiving described overall situation encryption authentication state information, during connection corresponding to described connection request Long more than connecting timeout threshold.
23. equipment according to claim 17, wherein, described 3rd device is used for:
If meeting following condition, determine that the Exception Type of described connection request is for connecting described target route The number of devices of device has reached the upper limit:
The reception order of the plurality of connection state information and each connection state information be corresponding in turn to into Just in association status information, it is successfully associated status information, initiates authentication state information, 4-Way Handshake and recognize Card status information, the overall situation encryption authentication state information, certification success status information;
When receiving described certification success status information, grow up during connection corresponding to described connection request In connecting timeout threshold;
Described equipment does not get corresponding IP information.
24. according to the equipment according to any one of claim 14 to 23, wherein, and described 3rd dress Put for
Based on the one or more connection state information, determine that the candidate that described connection request is corresponding is different Often type;
According to candidate's Exception Type that described connection request is corresponding, and combine going through of described destination router History Status Type record, determines the Exception Type that described connection request is corresponding, wherein, described history shape State class record includes history Exception Type record and the normal linkage record of history.
25. according to the equipment according to any one of claim 14 to 24, and wherein, described equipment is also Including:
4th device, for setting Exception Type transmission corresponding for described connection request to map network Standby, wherein, described Exception Type is stored in as the history Exception Type record of described destination router The described network equipment.
26. according to the equipment according to any one of claim 14 to 25, and wherein, described equipment is also Including:
5th device, for the Exception Type corresponding based on described connection request, presents to corresponding user Abnormal prompt information.
CN201610465736.5A 2016-06-24 2016-06-24 Method and device for determining connection abnormity type of router Pending CN105933185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610465736.5A CN105933185A (en) 2016-06-24 2016-06-24 Method and device for determining connection abnormity type of router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610465736.5A CN105933185A (en) 2016-06-24 2016-06-24 Method and device for determining connection abnormity type of router

Publications (1)

Publication Number Publication Date
CN105933185A true CN105933185A (en) 2016-09-07

Family

ID=56831690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610465736.5A Pending CN105933185A (en) 2016-06-24 2016-06-24 Method and device for determining connection abnormity type of router

Country Status (1)

Country Link
CN (1) CN105933185A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018016A (en) * 2017-03-17 2017-08-04 蔚来汽车有限公司 A kind of method and apparatus for Monitor-Networking equipment
CN107294787A (en) * 2017-07-14 2017-10-24 上海斐讯数据通信技术有限公司 A kind of Analysis of Network Malfunction system and method
CN107770087A (en) * 2017-08-29 2018-03-06 深圳市盛路物联通讯技术有限公司 Router switching method and device of the Internet of Things based on connection quantity
CN109151872A (en) * 2018-10-25 2019-01-04 深圳壹账通智能科技有限公司 A kind of mobile terminal maintaining method and terminal device
WO2019041370A1 (en) * 2017-08-29 2019-03-07 深圳市盛路物联通讯技术有限公司 Forwarding device switching method and apparatus
CN114205838A (en) * 2020-09-02 2022-03-18 深圳绿米联创科技有限公司 Network access method, device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656718A (en) * 2002-04-08 2005-08-17 空气磁体公司 Monitoring a local area network
CN103401735A (en) * 2013-08-19 2013-11-20 上海斐讯数据通信技术有限公司 Method and system for indicating errors in routing device
CN104539441A (en) * 2014-11-21 2015-04-22 北京极科极客科技有限公司 Router fault handling method
CN105262622A (en) * 2015-10-27 2016-01-20 北京极科极客科技有限公司 Method and system for optimizing and diagnosing router
CN105703947A (en) * 2016-01-18 2016-06-22 深圳创维数字技术有限公司 Method for remotely debugging router, server, and router

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656718A (en) * 2002-04-08 2005-08-17 空气磁体公司 Monitoring a local area network
CN103401735A (en) * 2013-08-19 2013-11-20 上海斐讯数据通信技术有限公司 Method and system for indicating errors in routing device
CN104539441A (en) * 2014-11-21 2015-04-22 北京极科极客科技有限公司 Router fault handling method
CN105262622A (en) * 2015-10-27 2016-01-20 北京极科极客科技有限公司 Method and system for optimizing and diagnosing router
CN105703947A (en) * 2016-01-18 2016-06-22 深圳创维数字技术有限公司 Method for remotely debugging router, server, and router

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018016A (en) * 2017-03-17 2017-08-04 蔚来汽车有限公司 A kind of method and apparatus for Monitor-Networking equipment
WO2018166131A1 (en) * 2017-03-17 2018-09-20 蔚来汽车有限公司 Method and apparatus for monitoring networking device
CN107018016B (en) * 2017-03-17 2021-08-31 蔚来(安徽)控股有限公司 Method and device for monitoring networking equipment
CN107294787A (en) * 2017-07-14 2017-10-24 上海斐讯数据通信技术有限公司 A kind of Analysis of Network Malfunction system and method
CN107770087A (en) * 2017-08-29 2018-03-06 深圳市盛路物联通讯技术有限公司 Router switching method and device of the Internet of Things based on connection quantity
WO2019041370A1 (en) * 2017-08-29 2019-03-07 深圳市盛路物联通讯技术有限公司 Forwarding device switching method and apparatus
WO2019041371A1 (en) * 2017-08-29 2019-03-07 深圳市盛路物联通讯技术有限公司 Internet of things number-of-connections-based router switching method and device
CN109151872A (en) * 2018-10-25 2019-01-04 深圳壹账通智能科技有限公司 A kind of mobile terminal maintaining method and terminal device
CN114205838A (en) * 2020-09-02 2022-03-18 深圳绿米联创科技有限公司 Network access method, device, electronic equipment and computer readable storage medium
CN114205838B (en) * 2020-09-02 2024-09-13 深圳绿米联创科技有限公司 Network access method, network access device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105933185A (en) Method and device for determining connection abnormity type of router
KR102197371B1 (en) Identity verification method and device
US10460309B2 (en) Payment verification method, apparatus and system
CN104917749A (en) Account registration method and device
CN110046901B (en) Credibility verification method, system, device and equipment of alliance chain
CN110022345B (en) Method, system, device and equipment for processing request in alliance chain
CN105873049A (en) Method and equipment for obtaining shared wireless access point
EP3813001B1 (en) Data reading method based on a plurality of block chain networks and system
WO2018023936A1 (en) Method and device for implementing sharing of wireless access point
CN110445769A (en) The access method and device of operation system
CN105897663A (en) Method for determining access authority, device and equipment
CN106897586A (en) A kind of application programming interface API right management methods and device
CN106304264A (en) A kind of wireless network access method and device
CN111371817A (en) Equipment control system, method and device, electronic equipment and storage medium
US9742769B2 (en) Method and system for determining trusted wireless access points
CN114138590A (en) Operation and maintenance processing method and device for Kubernetes cluster and electronic equipment
KR101950856B1 (en) System and method for managementing information using blockchain
US11849028B2 (en) Method and system for secure IoT device onboarding using a blockchain network
CN106375259B (en) Same-user account identification method and device
CN110569987B (en) Automatic operation and maintenance method, operation and maintenance equipment, storage medium and device
CN106102059A (en) For determining the possessory method and apparatus of hotspot
US20180176781A1 (en) Method and device for managing wireless access point
CN109756469A (en) A kind of public account management method, device and computer readable storage medium
CN114697266A (en) Virtual machine access method, terminal and storage medium
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160907

RJ01 Rejection of invention patent application after publication