CN109982413B - Mobile hotspot identification method and device, electronic equipment and storage medium - Google Patents

Mobile hotspot identification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109982413B
CN109982413B CN201910122526.XA CN201910122526A CN109982413B CN 109982413 B CN109982413 B CN 109982413B CN 201910122526 A CN201910122526 A CN 201910122526A CN 109982413 B CN109982413 B CN 109982413B
Authority
CN
China
Prior art keywords
mobile hotspot
mobile
address
target network
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910122526.XA
Other languages
Chinese (zh)
Other versions
CN109982413A (en
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201910122526.XA priority Critical patent/CN109982413B/en
Publication of CN109982413A publication Critical patent/CN109982413A/en
Application granted granted Critical
Publication of CN109982413B publication Critical patent/CN109982413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/668Internet protocol [IP] address subnets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a method and a device for identifying a mobile hotspot, wherein the method comprises the following steps: acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address; determining that the target network is not a mobile hotspot in response to the situation that the encryption mode is not a single encryption mode; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address. The mobile hotspot can be determined through the encryption mode and the outlet IP address, and the encryption mode and the outlet IP address are accurately obtained, so that the identification accuracy is improved.

Description

Mobile hotspot identification method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a method and a device for identifying a mobile hotspot, electronic equipment and a storage medium.
Background
As the demand of users for networks increases, mobile terminals (e.g., handsets) may also share their wireless networks as hotspots to other mobile terminals. When searching for a wireless network, the mobile terminal needs to identify whether the mobile communication network is a mobile hotspot.
In the prior art, the main steps of the identification method of the mobile hotspot include, for example: scanning hotspots in the current environment, and selecting hotspots to be identified from the hotspots; then, connecting the hot spots to be identified, and acquiring an IP address; and finally, searching the range of the IP address of the mobile hotspot, determining whether the obtained IP address is in the range, and if so, judging that the hotspot to be identified is the mobile hotspot.
However, for a mobile hotspot, the system automatically allocates an IP address according to a certain rule, and for a router, a user may configure the IP address, and when the IP address allocated by the user is exactly the same as that allocated by the system, the IP address of the router is identified as the mobile hotspot, and the identification accuracy of the mobile hotspot is low.
Disclosure of Invention
The invention provides a method and a device for identifying a mobile hotspot, which aim to solve the problems in the prior art.
According to a first aspect of the present invention, there is provided a method for identifying a mobile hotspot, the method comprising:
acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address;
determining that the target network is not a mobile hotspot in response to the situation that the encryption mode is not a single encryption mode; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address.
Optionally, the step of determining whether the target network is a mobile hotspot according to the egress IP address includes:
and under the condition that the exit IP address is a mobile exit IP address, determining that the target network is a mobile hotspot.
Optionally, the configuration information further includes: the step of determining whether the target network is a mobile hotspot according to the exit IP address comprises the following steps:
and under the condition that the exit IP address is not a mobile exit IP address, determining whether the target network is a mobile hotspot according to the service set identifier.
Optionally, the step of determining whether the target network is a mobile hotspot according to the service set identifier includes:
and under the condition that the service set identification is an android service set identification or an apple service set identification, determining that the target network is a mobile hotspot.
Optionally, the configuration information further includes: the step of determining whether the target network is a mobile hotspot according to the service set identifier comprises the following steps:
and under the condition that the service set identification is not an android service set identification or an apple service set identification, determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information.
Optionally, the step of determining whether the target network is a mobile hotspot according to the gateway information, subnet mask information, and domain name system information includes:
determining that the target network is a mobile hotspot under the condition that the gateway information is mobile gateway information, the subnet mask information is mobile subnet mask information, and the domain name system information is mobile domain name system information;
and determining that the target network is a non-mobile hotspot under the condition that the gateway information is not mobile gateway information, or the subnet mask information is not mobile subnet mask information, or the domain name system information is not mobile domain name system information.
According to a second aspect of the present invention, there is provided an apparatus for identifying a mobile hotspot, the apparatus comprising:
the device comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information processing module, wherein the configuration information acquisition module is used for acquiring configuration information corresponding to a target network, and the configuration information comprises an encryption mode and an outlet IP address;
the mobile hotspot determining module is used for responding to the condition that the encryption mode is not a single encryption mode and determining that the target network is not a mobile hotspot; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address.
Optionally, the mobile hotspot determining module includes:
and the first mobile hotspot determining submodule is used for determining that the target network is a mobile hotspot under the condition that the exit IP address is a mobile exit IP address.
Optionally, the configuration information further includes: a service set identifier, the mobile hotspot determination module comprising:
and the second mobile hotspot determining submodule is used for determining whether the target network is a mobile hotspot according to the service set identifier under the condition that the exit IP address is not a mobile exit IP address.
Optionally, the second mobile hotspot determination sub-module includes:
and the first mobile hotspot determining unit is used for determining that the target network is a mobile hotspot under the condition that the service set identifier is an android service set identifier or an apple service set identifier.
Optionally, the configuration information further includes: the second mobile hotspot determining submodule comprises gateway information, subnet mask information and domain name system information, and comprises:
and the second mobile hotspot determining unit is used for determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information under the condition that the service set identifier is not an android service set identifier or an apple service set identifier.
Optionally, the second mobile hotspot determining unit includes:
a first mobile hotspot determining subunit, configured to determine that the target network is a mobile hotspot when the gateway information is mobile gateway information, the subnet mask information is mobile subnet mask information, and the domain name system information is mobile domain name system information;
and the second mobile hotspot determining subunit is configured to determine that the target network is a non-mobile hotspot under the condition that the gateway information is not mobile gateway information, or the subnet mask information is not mobile subnet mask information, or the domain name system information is not mobile domain name system information.
According to a third aspect of the present invention, there is provided an electronic apparatus comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the aforementioned method when executing the program.
According to a fourth aspect of the invention, there is provided a readable storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the aforementioned method.
The embodiment of the invention provides a method and a device for identifying a mobile hotspot, wherein the method comprises the following steps: acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address; determining that the target network is not a mobile hotspot in response to the situation that the encryption mode is not a single encryption mode; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address. The mobile hotspot can be determined through the encryption mode and the outlet IP address, and the encryption mode and the outlet IP address are accurately obtained, so that the identification accuracy is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating specific steps of a method for identifying a mobile hotspot according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating specific steps of a method for identifying a mobile hotspot according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating specific steps of a method for identifying a mobile hotspot according to a third embodiment of the present invention;
fig. 4 is a structural diagram of an identification apparatus for a mobile hotspot according to a fourth embodiment of the present invention;
fig. 5 is a structural diagram of an identification apparatus for a mobile hotspot according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating specific steps of a method for identifying a mobile hotspot according to an embodiment of the present invention is shown.
Step 101, obtaining configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address.
The encryption mode comprises a single encryption mode and a multi-encryption mode.
The exit IP address is a public network IP address of the target network, and is independent of the exit IP addresses of other network types and has small long-term stable change relative to other physical resources.
Specifically, an interface of a mobile terminal system (e.g., an android or apple system) may be invoked to obtain the configuration information.
In practical applications, the configuration information includes, but is not limited to: a local area network IP address, a gateway IP address, a subnet mask, a DNS (Domain Name System), an SSID (Service Set Identifier), a MAC (Media Access Control) address, an encryption method, an egress IP address, and a location record.
Step 102, responding to the situation that the encryption mode is not a single encryption mode, and determining that the target network is not a mobile hotspot; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address.
The embodiment of the invention can be carried out on a remote server, and the server can be communicated with the mobile terminal, so that the configuration information of the target network shared by the mobile terminal can be acquired.
It can be understood that, because the mobile terminal system usually adopts a fixed encryption mode, the target network in a non-single encryption mode can determine that the target network is not a mobile hotspot; when the encryption scheme is a single encryption scheme, the encryption scheme may be a mobile hotspot or may not be a mobile hotspot. Further decisions need to be made based on the egress IP address.
Specifically, whether an exit IP address is a mobile exit IP address is judged, and when the exit IP address is the mobile exit IP address, a target network is determined to be a mobile hotspot; when the egress IP address is not a mobile egress IP address, further judgment is needed.
The embodiment of the invention can identify the mobile hotspot by combining an encryption mode and an outlet IP address, and can effectively improve the identification accuracy.
In summary, an embodiment of the present invention provides a method for identifying a mobile hotspot, where the method includes: acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address; determining that the target network is not a mobile hotspot in response to the situation that the encryption mode is not a single encryption mode; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address. The mobile hotspot can be determined through the encryption mode and the outlet IP address, and the encryption mode and the outlet IP address are accurately acquired, so that the identification accuracy is improved.
Example two
Referring to fig. 2, a flowchart illustrating specific steps of a method for identifying a mobile hotspot according to a second embodiment of the present invention is shown.
Step 201, obtaining configuration information corresponding to a target network, where the configuration information includes an encryption mode, an outlet IP address, and a service set identifier.
The service set identifier is an equipment identifier of the sharing target network. For example, when the user defines the name of a cell phone as "iPhone of ABC", the service set of the cell phone as a hotspot is identified as "iPhone of ABC".
Step 202, in response to the situation that the encryption mode is not a single encryption mode, determining that the target network is not a mobile hotspot.
This step can refer to the detailed description of step 102, and is not described herein again.
Step 203, determining that the target network is a mobile hotspot under the condition that the encryption mode is a single encryption mode and the outlet IP address is a mobile outlet IP address.
The mobile outlet IP address can be collected in advance, and address segmentation is carried out to obtain a mobile IP address segmentation set. Thus, when the egress IP address is in the mobile egress IP address segment set, the target network is a mobile hotspot; when the egress IP address is not in the mobile egress IP address fragment set, further determination is needed.
And 204, determining whether the target network is a mobile hotspot according to the service set identifier under the condition that the encryption mode is a single encryption mode and the outlet IP address is not a mobile outlet IP address.
In practical application, when the apple and the android system leave the factory, the service set identifier has a default value, for example, the service set identifier of the apple system includes "iPhone", and the service set identifier of the android system is related to a manufacturer and a model. Mobile hotspots can thus be further identified from the service set identification.
In summary, an embodiment of the present invention provides a method for identifying a mobile hotspot, where the method includes: acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address; determining that the target network is not a mobile hotspot under the condition that the encryption mode is not a single encryption mode; determining that the target network is a mobile hotspot under the condition that the encryption mode is a single encryption mode and the outlet IP address is a mobile outlet IP address; and under the condition that the encryption mode is a single encryption mode and the outlet IP address is not a mobile outlet IP address, determining whether the target network is a mobile hotspot according to the service set identifier. The mobile hotspot can be determined by combining an encryption mode, an outlet IP and a service set identifier, and the identification accuracy can be further improved.
EXAMPLE III
Referring to fig. 3, a flowchart illustrating specific steps of a method for identifying a mobile hotspot provided by a third embodiment of the present invention is shown.
Step 301, obtaining configuration information corresponding to a target network, where the configuration information includes an encryption mode, an outlet IP address, and a service set identifier.
For this step, reference may be made to the detailed description of step 201, which is not described herein again.
Step 302, in response to the situation that the encryption mode is not a single encryption mode, determining that the target network is not a mobile hotspot.
This step can refer to the detailed description of step 102, and is not described herein again.
Step 303, determining that the target network is a mobile hotspot under the condition that the encryption mode is a single encryption mode and the outlet IP address is a mobile outlet IP address.
This step can refer to the detailed description of sub-step 203, which is not described herein.
And 304, determining that the target network is a mobile hotspot under the condition that the encryption mode is a single encryption mode, the outlet IP address is not a mobile outlet IP address, and the service set identifier is an android service set identifier or an apple service set identifier.
In the embodiment of the invention, the mobile hotspot can be identified by combining an encryption mode, an outlet IP address and a service set identifier, which is beneficial to further improving the identification accuracy of the mobile hotspot.
And 305, determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information under the condition that the encryption mode is a single encryption mode, the outlet IP address is not a mobile outlet IP address, and the service set identifier is not an android service set identifier or an apple service set identifier.
In practical application, the gateway, subnet mask and domain name system of the mobile hotspot have default values, and a user cannot directly modify the default values. Therefore, the mobile hotspot can be identified according to the gateway, the subnet mask and the domain name system.
The gateways of the mobile hotspots can be identified by IP addresses, for example, the default values of the gateway IP addresses of the apple system or the android system are usually in certain gateway segments, and the gateway segments can respectively form an apple gateway set and an android gateway set.
The subnet mask of the mobile hotspot also has certain default values. For example, the default values of the subnet masks corresponding to the apple system or the android system respectively form an apple subnet mask set or an android subnet mask set.
The domain name system for the mobile hotspot also has a default domain name system. For example, the default values of the domain name systems corresponding to the apple system or the android system respectively form an apple domain name system set or an android domain name system set.
Optionally, in another embodiment of the present invention, the step 305 includes sub-steps 3051 to 3052:
and a substep 3051, determining that the target network is a mobile hotspot under the condition that the gateway information is mobile gateway information, the subnet mask information is mobile subnet mask information, and the domain name system information is mobile domain name system information.
It can be understood that, in order to improve the accuracy, the target network is determined to be a mobile hotspot only when the gateway, the subnet mask and the domain name system are all the gateway, the subnet mask and the domain name system corresponding to the apple or android system; otherwise, the target network is not a mobile hotspot.
And a substep 3052, determining that the target network is a non-mobile hotspot under the condition that the gateway information is not mobile gateway information, or the subnet mask information is not mobile subnet mask information, or the domain name system information is not mobile domain name system information.
In the embodiment of the invention, the mobile hotspot can be comprehensively identified by combining an encryption mode, an outlet IP address, a service set identifier, subnet mask information, a subnet name mask and a domain name system, and the identification accuracy of the mobile hotspot can be further improved.
In summary, an embodiment of the present invention provides a method for identifying a mobile hotspot, where the method includes: acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode, an outlet IP address and a service set identifier; determining that the target network is not a mobile hotspot under the condition that the encryption mode is not a single encryption mode; determining that the target network is a mobile hotspot under the condition that the encryption mode is a single encryption mode and the outlet IP address is a mobile outlet IP address; determining that the target network is a mobile hotspot under the condition that the encryption mode is a single encryption mode, the outlet IP address is not a mobile outlet IP address, and the service set identifier is an android service set identifier or an apple service set identifier; and under the condition that the encryption mode is a single encryption mode, the outlet IP address is not a mobile outlet IP address, and the service set identifier is not an android service set identifier or an apple service set identifier, determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information. The mobile hotspot can be comprehensively identified by combining an encryption mode, an outlet IP address, a service set identifier, subnet information, a subnet mask and a domain name system, and the identification accuracy of the mobile hotspot is further improved.
Example four
Referring to fig. 4, a structural diagram of an identification apparatus for a mobile hotspot according to a fourth embodiment of the present invention is shown, which is specifically as follows.
The configuration information obtaining module 401 is configured to obtain configuration information corresponding to a target network, where the configuration information includes an encryption mode and an exit IP address.
A mobile hotspot determining module 402, configured to determine that the target network is not a mobile hotspot in response to a situation that the encryption manner is not a single encryption manner; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address.
To sum up, an embodiment of the present invention provides an apparatus for identifying a mobile hotspot, where the apparatus includes: the device comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information processing module, wherein the configuration information acquisition module is used for acquiring configuration information corresponding to a target network, and the configuration information comprises an encryption mode and an outlet IP address; the mobile hotspot determining module is used for responding to the condition that the encryption mode is not a single encryption mode and determining that the target network is not a mobile hotspot; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address. The mobile hotspot can be determined through the encryption mode and the outlet IP address, and the encryption mode and the outlet IP address are accurately acquired, so that the identification accuracy is improved.
The fourth embodiment is a corresponding apparatus embodiment to the first embodiment, and the detailed information can refer to the detailed description of the first embodiment, which is not described herein again.
EXAMPLE five
Referring to fig. 5, a structural diagram of an identification apparatus for a mobile hotspot according to a fifth embodiment of the present invention is shown, which is specifically as follows.
A configuration information obtaining module 501, configured to obtain configuration information corresponding to a target network, where the configuration information includes an encryption mode and an exit IP address.
A mobile hotspot determining module 502, configured to determine that the target network is not a mobile hotspot in response to a situation that the encryption manner is not a single encryption manner; and responding to the condition that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the exit IP address;
optionally, in an embodiment of the present invention, the mobile hotspot determining module 502 includes:
the first mobile hotspot determining sub-module 5021 is configured to determine that the target network is a mobile hotspot when the egress IP address is a mobile egress IP address.
Optionally, in an embodiment of the present invention, the configuration information further includes: service set identification, the mobile hotspot determination module 502, comprising:
the second mobile hotspot determining sub-module 5022 is configured to determine whether the target network is a mobile hotspot according to the service set identifier when the exit IP address is not a mobile exit IP address.
Optionally, in an embodiment of the present invention, the second mobile hotspot determining sub-module 5022 includes:
a first mobile hotspot determining unit 50221, configured to determine that the target network is a mobile hotspot when the service set identifier is an android service set identifier or an apple service set identifier.
Optionally, in an embodiment of the present invention, the configuration information further includes: the second mobile hotspot determining sub-module 5022 includes gateway information, subnet mask information, and domain name system information:
a second mobile hotspot determining unit 50222, configured to determine whether the target network is a mobile hotspot according to the gateway information, subnet mask information, and domain name system information, if the service set identifier is not an android service set identifier or an apple service set identifier.
Optionally, in another embodiment of the present invention, the second mobile hotspot determining unit 50222 includes:
and the first mobile hotspot determining subunit is configured to determine that the target network is a mobile hotspot under the condition that the gateway information is mobile gateway information, the subnet mask information is mobile subnet mask information, and the domain name system information is mobile domain name system information.
And the second mobile hotspot determining subunit is configured to determine that the target network is a non-mobile hotspot under the condition that the gateway information is not mobile gateway information, or the subnet mask information is not mobile subnet mask information, or the domain name system information is not mobile domain name system information.
To sum up, an embodiment of the present invention provides an apparatus for identifying a mobile hotspot, where the apparatus includes: the device comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information processing module, wherein the configuration information acquisition module is used for acquiring configuration information corresponding to a target network, and the configuration information comprises an encryption mode and an outlet IP address; the mobile hotspot determining module is used for responding to the condition that the encryption mode is not a single encryption mode and determining that the target network is not a mobile hotspot; and responding to the situation that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address; the mobile hotspot determination module comprises: a first mobile hotspot determining submodule, configured to determine that the target network is a mobile hotspot when the exit IP address is a mobile exit IP address; a second mobile hotspot determining submodule, configured to determine whether the target network is a mobile hotspot according to the service set identifier when the exit IP address is not a mobile exit IP address; the second mobile hotspot determination submodel comprises: the first mobile hotspot determining unit is used for determining that the target network is a mobile hotspot under the condition that the service set identifier is an android service set identifier or an apple service set identifier; and the second mobile hotspot determining unit is used for determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information under the condition that the service set identifier is not an android service set identifier or an apple service set identifier. The mobile hotspot can be comprehensively identified by combining an encryption mode, an outlet IP address, a service set identifier, subnet information, subnet mask and a domain name system, and the identification accuracy of the mobile hotspot can be further improved.
The fifth embodiment is an embodiment of the apparatus corresponding to the second and third embodiments, and the detailed information may refer to the detailed description of the second and third embodiments, which is not repeated herein.
An embodiment of the present invention further provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the aforementioned method when executing the program.
Embodiments of the present invention also provide a readable storage medium, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the foregoing method.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in an identification device for mobile hotspots according to embodiments of the present invention. The present invention may also be embodied as an apparatus or device program for carrying out a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is intended to be illustrative of the preferred embodiment of the present invention and should not be taken as limiting the invention, but rather, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. A method for identifying a mobile hotspot, the method comprising:
acquiring configuration information corresponding to a target network, wherein the configuration information comprises an encryption mode and an outlet IP address;
the obtaining of the configuration information corresponding to the target network includes: calling an interface of a mobile terminal system to acquire the configuration information;
determining that the target network is not a mobile hotspot in response to the situation that the encryption mode is not a single encryption mode; and responding to the situation that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address;
wherein, the step of determining whether the target network is a mobile hotspot according to the exit IP address comprises the following steps: determining that the target network is a mobile hotspot under the condition that the exit IP address is a mobile exit IP address;
the configuration information further includes: a service set identifier; the step of determining whether the target network is a mobile hotspot according to the exit IP address further includes:
determining that the target network is a mobile hotspot under the condition that the exit IP address does not belong to a mobile exit IP address segmentation set and the service set identifier is an android service set identifier or an apple service set identifier;
the configuration information further includes: gateway information, subnet mask information, domain name system information, the method further comprising:
and under the condition that the service set identification is not an android service set identification or an apple service set identification, determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information.
2. The method of claim 1, wherein the step of determining whether the target network is a mobile hotspot according to the gateway information, subnet mask information, and domain name system information comprises:
determining that the target network is a mobile hotspot under the condition that the gateway information is mobile gateway information, the subnet mask information is mobile subnet mask information, and the domain name system information is mobile domain name system information;
and determining that the target network is a non-mobile hotspot under the condition that the gateway information is not mobile gateway information, or the subnet mask information is not mobile subnet mask information, or the domain name system information is not mobile domain name system information.
3. An apparatus for identifying a mobile hotspot, the apparatus comprising:
the system comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information acquisition module, wherein the configuration information acquisition module is used for calling an interface of a mobile terminal system to acquire configuration information corresponding to a target network, and the configuration information comprises an encryption mode and an outlet IP address;
the mobile hotspot determining module is used for responding to the condition that the encryption mode is not a single encryption mode and determining that the target network is not a mobile hotspot; and responding to the situation that the encryption mode is a single encryption mode, and determining whether the target network is a mobile hotspot according to the outlet IP address;
the mobile hotspot determination module comprises: a first mobile hotspot determining submodule, configured to determine that the target network is a mobile hotspot under the condition that the egress IP address is a mobile egress IP address;
the configuration information further includes: a service set identifier; the mobile hotspot determining module further comprises: a second mobile hotspot determination submodule;
the second mobile hotspot determination submodule comprises: a first mobile hotspot determining unit, configured to determine that the target network is a mobile hotspot if the exit IP address does not belong to a mobile exit IP address segment set and the service set identifier is an android service set identifier or an apple service set identifier;
the configuration information further includes: gateway information, subnet mask information, domain name system information, and the second mobile hotspot determining submodule further includes: and the second mobile hotspot determining unit is used for determining whether the target network is a mobile hotspot according to the gateway information, the subnet mask information and the domain name system information under the condition that the service set identifier is not an android service set identifier or an apple service set identifier.
4. An electronic device, comprising:
processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 2 when executing the program.
5. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-2.
CN201910122526.XA 2019-02-19 2019-02-19 Mobile hotspot identification method and device, electronic equipment and storage medium Active CN109982413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122526.XA CN109982413B (en) 2019-02-19 2019-02-19 Mobile hotspot identification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122526.XA CN109982413B (en) 2019-02-19 2019-02-19 Mobile hotspot identification method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109982413A CN109982413A (en) 2019-07-05
CN109982413B true CN109982413B (en) 2023-04-07

Family

ID=67077087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122526.XA Active CN109982413B (en) 2019-02-19 2019-02-19 Mobile hotspot identification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109982413B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634270A (en) * 2012-08-21 2014-03-12 中国电信股份有限公司 A method for identifying validity of an access point, a system thereof and an access point discriminating server
CN104185294A (en) * 2014-08-04 2014-12-03 广东欧珀移动通信有限公司 Identification method and identification apparatus of mobile phone hot spots
CN105188056A (en) * 2015-08-17 2015-12-23 深圳市江波龙科技有限公司 Method and device for connecting WiFi (Wireless Fidelity) equipment with access point
CN106921632A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Hotspot connection control method and device
CN107493243A (en) * 2017-08-25 2017-12-19 海南智媒云图科技股份有限公司 The method and device that a kind of fixed network and focus WIFI is distinguished

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857904A (en) * 2012-06-21 2013-01-02 中兴通讯股份有限公司 Hot spot opening method and device
US9078137B1 (en) * 2014-09-26 2015-07-07 Fortinet, Inc. Mobile hotspot managed by access controller
CN106162649A (en) * 2015-04-20 2016-11-23 中兴通讯股份有限公司 A kind of identify the method for WAP legitimacy, terminal and system
CN106559856B (en) * 2015-09-28 2020-12-22 宇龙计算机通信科技(深圳)有限公司 WIFI hotspot identification method and device
CN107426746A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 The method and apparatus for identifying WIFI types
CN106658756B (en) * 2016-12-13 2020-05-26 浙江大华技术股份有限公司 Method and device for identifying connection between terminal equipment and hotspot
CN107733852B (en) * 2017-08-24 2019-06-21 北京三快在线科技有限公司 A kind of auth method and device, electronic equipment
CN107734471A (en) * 2017-09-30 2018-02-23 上海爱优威软件开发有限公司 Flow uses based reminding method and network mode querying method
CN108011987B (en) * 2017-10-11 2020-09-04 北京三快在线科技有限公司 IP address positioning method and device, electronic equipment and storage medium
CN109152093A (en) * 2018-10-26 2019-01-04 歌尔科技有限公司 Wireless network connecting method, mobile terminal, smart machine and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634270A (en) * 2012-08-21 2014-03-12 中国电信股份有限公司 A method for identifying validity of an access point, a system thereof and an access point discriminating server
CN104185294A (en) * 2014-08-04 2014-12-03 广东欧珀移动通信有限公司 Identification method and identification apparatus of mobile phone hot spots
CN105188056A (en) * 2015-08-17 2015-12-23 深圳市江波龙科技有限公司 Method and device for connecting WiFi (Wireless Fidelity) equipment with access point
CN106921632A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Hotspot connection control method and device
CN107493243A (en) * 2017-08-25 2017-12-19 海南智媒云图科技股份有限公司 The method and device that a kind of fixed network and focus WIFI is distinguished

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Wi-Fi的应用与安全;周鑫;《网络安全技术与应用》;20140215;全文 *

Also Published As

Publication number Publication date
CN109982413A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109561141B (en) CDN node selection method and equipment
US11019512B2 (en) Providing easy access to radio networks
EP3664372B1 (en) Network management method and related device
US9749324B2 (en) System, device and method for network authorization based on no password or random password
EP3197213B1 (en) Network access method and mobile communication terminal
EP3588919A1 (en) Routing issuing method and device
CN107197462B (en) Wireless network type detection method and device and electronic equipment
CN111262865B (en) Method, device and system for making access control strategy
CN107094305A (en) A kind of cut-in method of wireless network, device and user terminal
WO2009029157A1 (en) System and method for mapping wireless access points
CN109451518B (en) Method and equipment for distinguishing WLAN access mode of terminal
CN113727399B (en) Target cell determining method and device
CN112543212A (en) System for providing request response exact communication delay guarantee for distributed service
CN109982413B (en) Mobile hotspot identification method and device, electronic equipment and storage medium
US20160277917A1 (en) Method and apparatus for automatic detection and selection of an alternative roaming provider
US20140136597A1 (en) Relay enabled dynamic virtual private network
CN114928849B (en) Base station deployment method and device, electronic equipment and storage medium
CN109495978B (en) Data transmission method and device
JP7100725B1 (en) Location estimation server, location estimation method, program, and communication terminal
CN112153679B (en) Network switching method and device
CN110708665B (en) Method and device for determining home area of access network equipment
CN109327517B (en) Method and equipment for acquiring network state of wireless access point
CN109862131B (en) Server access address allocation method and device and computer readable storage medium
CN107211479B (en) Method and device for selecting access network
US11212308B1 (en) Methods and systems for identifying and classifying locations of networked devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant