Method and device for automatic IP address detection
An IP address and automatic detection technology, applied in the field of communication, can solve problems such as poor flexibility, complicated processing methods, and no clear address hierarchy, so as to avoid IP address conflicts and save maintenance costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Embodiment 1, referring to Fig. 1, concrete steps are:
[0035] Step 101: When the system is running normally, set the IP address of the first terminal as the IP network address;
[0036] It was explained before that the network part of the IP address is located in the consecutive binary "1" bits in front of the IP address mask, and the host part is the consecutive binary "0" bits in the back. When the host part is all zero, the address is regarded as an IP network address, and the IP network address will not be used in the actual network, it represents the entire network specified by the network part; it is also because the IP network address is in It will not be used in the actual network, so it will not conflict with the network addresses of other terminals, and will not affect the normal operation of the network.
[0037] Step 102: the first terminal broadcasts an ARP message to other terminals in the network through a preset IP network address; the ARP message car...
Embodiment 2
[0059] Embodiment 2, the embodiment of the present invention also provides a device for automatically detecting IP address conflicts, see Figure 2, the device includes:
[0060] The sending unit 201 is configured to broadcast an ARP message through a preset IP network address, and the message carries an IP address to be detected;
[0061] The receiving unit 202 is configured to receive ARP response failure information or ARP response success information.
[0062] When the IP address to be detected needs to be configured, the device further includes an IP address replacement unit 203, configured to replace the preset IP network address with the IP address to be detected after receiving the ARP response failure message.
[0063] The sending unit can send ARP messages to other terminals by calling protocol stack functions.
Embodiment 3
[0064] Embodiment 3, the present invention also provides a device for assisting automatic detection of IP address conflicts, see Figure 3, the device includes:
[0065] A first receiving unit 301, configured to receive an ARP message;
[0066] Judging unit 302, used to judge whether its own IP address is the same as the IP address to be detected;
[0067] The processing unit 303 is used to feed back ARP response success information to the first terminal when the judging unit judges that its own IP address is the same as the IP address to be detected; if the judging unit judges that its own IP address is not the same as the IP address to be detected , feeding back ARP response failure information to the first terminal.
[0068] Through the embodiments of the present invention, the occurrence of IP address conflicts can be avoided from the source; that is to say, IP address conflict detection can be performed before setting, and the IP network address is used during the detecti...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com