CN107395785B - Method and device for acquiring real address of network equipment - Google Patents
Method and device for acquiring real address of network equipment Download PDFInfo
- Publication number
- CN107395785B CN107395785B CN201710666899.4A CN201710666899A CN107395785B CN 107395785 B CN107395785 B CN 107395785B CN 201710666899 A CN201710666899 A CN 201710666899A CN 107395785 B CN107395785 B CN 107395785B
- Authority
- CN
- China
- Prior art keywords
- equipment
- information
- network
- network equipment
- real address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5053—Lease time; Renewal aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/26—Network addressing or numbering for mobility support
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for acquiring a real address of network equipment, which relate to the technical field of network communication and comprise the following steps: connecting a network device to an AP device; the AP equipment acquires the equipment basic information of the network equipment; calling an equipment information table stored in a memory for comparison; judging a comparison result, and if no similar result exists, storing the equipment information; if the network equipment has the similar result, the equipment accurate information of the network equipment is read to obtain the real address of the network equipment. By adopting the technical scheme, the equipment basic information of the network equipment is acquired at one time, the stored basic information is compared, the equipment accurate information of the network equipment is acquired through secondary connection, and the accurate information is corrected, so that the real address of the network equipment is obtained, and the AP equipment can be enabled.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for obtaining a real address of a network device.
Background
In the connection process of the IOS device, a false network address of the IOS device is usually obtained, which is due to the protection mechanism in the IOS system, which protects the privacy of the user. However, in the actual use process, the false network address causes setting in the AP device to be ineffective, which is not beneficial for management, and further causes network fraud and the like.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for acquiring a real address of a network device, so as to solve the technical problem that in the prior art, an AP device cannot be controlled because a real network address cannot be acquired.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a method for acquiring a real address of a network device comprises the following steps: connecting a network device to an AP device; the AP equipment acquires the equipment basic information of the network equipment; calling an equipment information table stored in a memory for comparison; judging a comparison result, and if no similar result exists, storing the equipment information; if the network equipment has the similar result, the equipment accurate information of the network equipment is read to obtain the real address of the network equipment.
Wherein the device infrastructure information includes basic information, a MAC address, and an IP address.
Wherein the AP device further verifies the security of the network device when the network device is connected to the AP device; the method for verifying the security of the network equipment comprises the following steps:
the network equipment sends a connection request to the AP equipment, the connection request contains an identity verification request, the AP equipment end replies verification information meeting the safety requirement to the network equipment, the network equipment verifies the safety requirement according to a preset protocol, and after the verification is passed, the network equipment sends self basic information to the AP equipment end for registration.
The method specifically comprises the following steps of calling an equipment information table stored in a memory for comparison:
and respectively comparing the basic information, the MAC address and the IP address of the network equipment in a one-to-one comparison mode, and judging that the current network equipment is similar to the network equipment stored in the memory when more than 50% of the information is matched.
When the device information is stored, a connection counter of the current device information is set to perform an adding operation, and the result of the adding operation is recorded in the memory.
An apparatus for acquiring real address of network device, comprising: a network device connection module: for connecting a network device to the AP device; basic information acquisition module: the device basic information is used for acquiring the device basic information of the network device; an information comparison module: the device information table is used for calling the device information table stored in the memory to compare; an information storage module: the device information storage module is used for storing the device information when judging that the comparison result has no similar result; a real address information reading module: and the network equipment real address judging module is used for reading the equipment accurate information of the network equipment to obtain the real address of the network equipment when judging that the comparison result has a similar result.
Wherein the device infrastructure information includes basic information, a MAC address, and an IP address.
The system comprises a security verification module, a network device and an AP device, wherein the security verification module is used for verifying the security of the network device when the network device is connected to the AP device; the method for verifying the security of the network equipment comprises the following steps:
the network equipment sends a connection request to the AP equipment, the connection request contains an identity verification request, the AP equipment end replies verification information meeting the safety requirement to the network equipment, the network equipment verifies the safety requirement according to a preset protocol, and after the verification is passed, the network equipment sends self basic information to the AP equipment end for registration.
The information comparison module calls an equipment information table stored in a memory to compare the equipment information table specifically comprises the following steps:
and respectively comparing the basic information, the MAC address and the IP address of the network equipment in a one-to-one comparison mode, and judging that the current network equipment is similar to the network equipment stored in the memory when more than 50% of the information is matched.
Wherein, still include and add up the module: and when the equipment information is stored, setting a connection counter of the current equipment information to perform an adding operation, and recording the result of the adding operation in the memory.
By adopting the technical scheme, the equipment basic information of the network equipment is acquired at one time, the stored basic information is compared, the equipment accurate information of the network equipment is acquired through secondary connection, and the accurate information is corrected, so that the real address of the network equipment is obtained, and the AP equipment can be enabled.
Drawings
FIG. 1 is a flow chart of a method for obtaining a real address of a network device according to the present invention;
FIG. 2 is a flow chart of a method of verifying security of a network device in accordance with the present invention;
fig. 3 is a schematic structural diagram of an apparatus for acquiring a real address of a network device according to the present invention.
In the figure, 101-network equipment connection module, 101 '-security verification module, 102-basic information acquisition module, 103-information comparison module, 103' -accumulation module, 104-information storage module and 105-real address information reading module.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As a first embodiment of the present invention, a method for acquiring a real address of a network device is provided, as shown in fig. 1, including: step S1: connecting a network device to an AP device; wherein the AP device further verifies the security of the network device when the network device is connected to the AP device; specifically, as shown in fig. 2, the method for verifying the security of the network device includes: step S101: the network equipment sends a connection request to the AP equipment; wherein, the connection request includes an authentication request. Step S102: the AP equipment end replies the verification information meeting the safety requirement to the network equipment; step S103: the network device verifies the security requirement according to a preset protocol, and after the verification is passed, the step S104: and the network equipment sends the basic information of the network equipment to the AP equipment end for registration. When the device information is stored, a connection counter of the current device information is set to perform an adding operation, and the result of the adding operation is recorded in the memory. Step S2: the AP equipment acquires the equipment basic information of the network equipment; wherein the device infrastructure information includes basic information, a MAC address, and an IP address. Step S3: calling an equipment information table stored in a memory for comparison; the method specifically comprises the following steps of calling an equipment information table stored in a memory for comparison: and respectively comparing the basic information, the MAC address and the IP address of the network equipment in a one-to-one comparison mode, and judging that the current network equipment is similar to the network equipment stored in the memory when more than 50% of the information is matched. Step S4: judging a comparison result, and if no similar result exists, storing the equipment information; step S5: if the network equipment has the similar result, the equipment accurate information of the network equipment is read to obtain the real address of the network equipment.
As a second embodiment of the present invention, based on the method for acquiring a real address of a network device in the first embodiment, an apparatus for acquiring a real address of a network device is provided, as shown in fig. 3, including:
network device connection module 101: for connecting a network device to the AP device; the system further comprises a security verification module 101' for verifying the security of the network device when the network device is connected to the AP device; the method for verifying the security of the network equipment comprises the following steps: the network equipment sends a connection request to the AP equipment, the connection request contains an identity verification request, the AP equipment end replies verification information meeting the safety requirement to the network equipment, the network equipment verifies the safety requirement according to a preset protocol, and after the verification is passed, the network equipment sends self basic information to the AP equipment end for registration.
The basic information acquisition module 102: the device basic information is used for acquiring the device basic information of the network device; the device infrastructure information includes basic information, a MAC address, and an IP address.
The information comparison module 103: the device information table is used for calling the device information table stored in the memory to compare; the information comparison module 103 calls an equipment information table stored in a memory to compare the equipment information table specifically: and respectively comparing the basic information, the MAC address and the IP address of the network equipment in a one-to-one comparison mode, and judging that the current network equipment is similar to the network equipment stored in the memory when more than 50% of the information is matched.
Wherein, the device also comprises an accumulation module 103': and when the equipment information is stored, setting a connection counter of the current equipment information to perform an adding operation, and recording the result of the adding operation in the memory.
The information storage module 104: the device information storage module is used for storing the device information when judging that the comparison result has no similar result;
the real address information reading module 105: and the network equipment real address judging module is used for reading the equipment accurate information of the network equipment to obtain the real address of the network equipment when judging that the comparison result has a similar result.
By adopting the technical scheme, the equipment basic information of the network equipment is acquired at one time, the stored basic information is compared, the equipment accurate information of the network equipment is acquired through secondary connection, and the accurate information is corrected, so that the real address of the network equipment is obtained, and the AP equipment can be enabled.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of protection is still within the scope of the invention.
Claims (8)
1. A method for acquiring a real address of a network device is characterized by comprising the following steps: connecting a network device to an AP device; the AP equipment acquires the equipment basic information of the network equipment; calling an equipment information table stored in a memory for comparison, comparing basic information, an MAC address and an IP address of the network equipment in a one-to-one comparison mode, and judging that the current network equipment is similar to the network equipment stored in the memory when more than 50% of information is matched; judging a comparison result, if no similar result exists, storing basic equipment information, setting a connection counter of the current equipment information to perform an operation of adding one, and recording the result of the operation of adding one in a memory; if the network equipment has the similar result, the equipment accurate information of the network equipment is read to obtain the real address of the network equipment.
2. The method for acquiring the real address of the network device according to claim 1, wherein: the device infrastructure information includes basic information, a MAC address, and an IP address.
3. The method for acquiring the real address of the network device according to claim 1, wherein: when the network device is connected to the AP device, the AP device also verifies the security of the network device; the method for verifying the security of the network equipment comprises the following steps: the network equipment sends a connection request to the AP equipment, the connection request contains an identity verification request, the AP equipment end replies verification information meeting the safety requirement to the network equipment, the network equipment verifies the verification information meeting the safety requirement according to a preset protocol, and after the verification is passed, the network equipment sends self basic information to the AP equipment end for registration.
4. An apparatus for acquiring a real address of a network device, comprising: a network device connection module: for connecting a network device to the AP device; basic information acquisition module: the device basic information is used for acquiring the device basic information of the network device; an information comparison module: the device information table is used for calling the device information table stored in the memory to compare; an information storage module: the device is used for storing the basic information of the equipment when judging that the comparison result has no similar result; a real address information reading module: and the network equipment real address judging module is used for reading the equipment accurate information of the network equipment to obtain the real address of the network equipment when judging that the comparison result has a similar result.
5. The apparatus for acquiring real address of network device according to claim 4, wherein: the device infrastructure information includes basic information, a MAC address, and an IP address.
6. The apparatus for acquiring real address of network device according to claim 4, wherein: the AP equipment is used for receiving the network equipment and sending a request to the network equipment; the method for verifying the security of the network equipment comprises the following steps: the network equipment sends a connection request to the AP equipment, the connection request contains an identity verification request, the AP equipment end replies verification information meeting the safety requirement to the network equipment, the network equipment verifies the verification information meeting the safety requirement according to a preset protocol, and after the verification is passed, the network equipment sends self basic information to the AP equipment end for registration.
7. The apparatus for acquiring real address of network device according to claim 4, wherein: the information comparison module calls an equipment information table stored in the memory to compare the equipment information table specifically comprises the following steps: and respectively comparing the basic information, the MAC address and the IP address of the network equipment in a one-to-one comparison mode, and judging that the current network equipment is similar to the network equipment stored in the memory when more than 50% of the information is matched.
8. The apparatus for acquiring real address of network device according to claim 4, wherein: the device also comprises an accumulation module: and when the basic information of the equipment is stored, setting a connection counter of the current equipment information to perform an adding operation, and recording the result of the adding operation in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710666899.4A CN107395785B (en) | 2017-08-07 | 2017-08-07 | Method and device for acquiring real address of network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710666899.4A CN107395785B (en) | 2017-08-07 | 2017-08-07 | Method and device for acquiring real address of network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107395785A CN107395785A (en) | 2017-11-24 |
CN107395785B true CN107395785B (en) | 2020-09-18 |
Family
ID=60344086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710666899.4A Active CN107395785B (en) | 2017-08-07 | 2017-08-07 | Method and device for acquiring real address of network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107395785B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110726819A (en) * | 2019-10-15 | 2020-01-24 | 福州市协成智慧科技有限公司 | Soil pH value monitoring system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103166917B (en) * | 2011-12-12 | 2016-02-10 | 阿里巴巴集团控股有限公司 | Network equipment personal identification method and system |
CN103428189B (en) * | 2012-05-25 | 2016-06-29 | 阿里巴巴集团控股有限公司 | A kind of methods, devices and systems identifying malicious network device |
CN103731425B (en) * | 2013-12-31 | 2016-08-24 | 迈普通信技术股份有限公司 | Network wireless terminal connection control method and system |
CN105357204B (en) * | 2015-11-17 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Method and device for generating terminal identification information |
CN106850865A (en) * | 2015-12-03 | 2017-06-13 | 阿里巴巴集团控股有限公司 | The distribution method of MAC Address, apparatus and system |
CN105939521B (en) * | 2016-07-14 | 2020-02-07 | 北京元心科技有限公司 | Detection alarm method and device for pseudo access point |
-
2017
- 2017-08-07 CN CN201710666899.4A patent/CN107395785B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107395785A (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105472737B (en) | A kind of method of locating terminal and server | |
KR101898934B1 (en) | Apparatus and method for authentication in wireless communication system | |
US9459604B2 (en) | Methods and system for joining a smart energy device to a zigbee network | |
US8891502B2 (en) | Apparatus and method for providing security of a network connection | |
CN107529160B (en) | VoWiFi network access method and system, terminal and wireless access point equipment | |
US20130044733A1 (en) | Authentication system and authentication method in wireless lan environment | |
US20150382397A1 (en) | 802.1x access session keepalive method, device, and system | |
US20200228981A1 (en) | Authentication method and device | |
US20130109351A1 (en) | Authentication system, authentication method and authentication server | |
US20110321142A1 (en) | Authentication method, authentication gateway, and data gateway | |
CN104008158A (en) | Data verification method, verification device and mobile terminal | |
KR20160131572A (en) | Method and apparatus for certificating information related payment in a mobile communication system | |
CN104125567A (en) | Femto and authentication method and authentication device for access of femto to network side | |
US20140181902A1 (en) | Authentication in a wireless access network | |
CN107395785B (en) | Method and device for acquiring real address of network equipment | |
CN104486362A (en) | Obtaining method and system for WiFi access point description information | |
US20120149329A1 (en) | Method and apparatus for providing a subsidy-lock unlock procedure | |
US10299121B2 (en) | System and method for providing differential service scheme | |
CN103974416A (en) | Method, device and system for acquiring position information of mobile terminal | |
KR101678472B1 (en) | Method and apparatus for managing access to private network, mobile terminal and method for accessing private network thereby | |
KR101484639B1 (en) | Method and system for registering device to home network | |
CN101163326A (en) | Method, system and mobile terminal of preventing playback attack | |
CN103607709A (en) | Method and device for managing user data | |
WO2016188022A1 (en) | Roaming method, roaming server, mobile terminal and system | |
US11381562B2 (en) | Detection of a user equipment type related to access, services authorization and/or authentication |
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 |