CN114268603A - Method and equipment for automatically acquiring IP address of power distribution automation terminal - Google Patents

Method and equipment for automatically acquiring IP address of power distribution automation terminal Download PDF

Info

Publication number
CN114268603A
CN114268603A CN202111319392.4A CN202111319392A CN114268603A CN 114268603 A CN114268603 A CN 114268603A CN 202111319392 A CN202111319392 A CN 202111319392A CN 114268603 A CN114268603 A CN 114268603A
Authority
CN
China
Prior art keywords
distribution automation
address
terminal
automation terminal
arp
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.)
Granted
Application number
CN202111319392.4A
Other languages
Chinese (zh)
Other versions
CN114268603B (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.)
Zhejiang Guoli Network Security Technology Co ltd
Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Zhejiang Guoli Network Security Technology Co ltd
Ningbo Power Supply Co of State Grid Zhejiang Electric Power 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 Zhejiang Guoli Network Security Technology Co ltd, Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical Zhejiang Guoli Network Security Technology Co ltd
Priority to CN202111319392.4A priority Critical patent/CN114268603B/en
Publication of CN114268603A publication Critical patent/CN114268603A/en
Application granted granted Critical
Publication of CN114268603B publication Critical patent/CN114268603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a method and equipment for automatically acquiring an IP address of a power distribution automation terminal, which relate to the technical field of network security and specifically comprise the following steps: a detection terminal of the detection equipment sends an ARP broadcast packet carrying an ip address of the detection terminal and an MAC address of the detection terminal; the detection terminal judges whether an ARP response data packet returned by the distribution automation terminal is received or not; if the ARP response data packet is not received, manually configuring the distribution automation terminal and the detection terminal in a network segment; sending the ARP broadcast packet again; until receiving an ARP response data packet returned by the distribution automation terminal; and updating the IP address of the power distribution automation terminal in the response data into an ARP cache list. According to the method and the device, the detection terminal and the distribution automation terminal can be connected one to one in an ARP polling mode, and the IP address and the MAC address of the target distribution automation terminal are automatically acquired.

Description

Method and equipment for automatically acquiring IP address of power distribution automation terminal
Technical Field
The invention relates to the technical field of network security, in particular to a method and equipment for automatically acquiring an IP address of a power distribution automation terminal.
Background
At present, operation and maintenance, monitoring and other workers in a distribution room in China need to maintain, detect and other problems when a distribution automation terminal is encountered, in the process of detecting and operating and maintaining equipment, operation and maintenance workers in many cases need to manually inquire and manually input an IP address of target equipment, and the operation is complex. Meanwhile, the repeated operation of the machine greatly blocks the informatization and the intellectualization of the distribution automation terminal, and the efficiency of workers is also reduced. The development of informatization and intellectualization of China is not facilitated to follow up by the power distribution room.
At present, no tool for automatically acquiring the IP address of the distribution automation terminal in a distribution room exists. And the operation, maintenance, monitoring and other workers need to be connected with the distribution room and the distribution automation terminal every time, and the manual input command is used for acquiring the IP address of the distribution automation terminal. The prior art is complicated and is not beneficial to informatization and intellectualization.
Chinese patent with application number CN200710194837.4 discloses a method and device for automatically detecting an IP address, the method specifically comprises: the method comprises the steps that a first terminal broadcasts an ARP message to other terminals through a preset IP network address, the ARP message carries an IP address to be detected, and the ARP message is used for the other terminals to judge whether the IP address of the first terminal is the same as the IP address to be detected or not; and the first terminal receives ARP response information sent by other terminals according to the judgment result. The invention also discloses a device for automatically detecting the IP address conflict; the invention also discloses a device for assisting in automatically detecting the IP address conflict. The invention judges the IP address conflict through the ARP message, avoids the occurrence of the IP address conflict situation from the source, and can be carried out under the condition of not influencing network communication, thereby avoiding the complicated problem positioning process and saving a large amount of maintenance cost.
However, this method is suitable for the case where the IP address of the target device terminal is known, and the corresponding MAC address is obtained from the IP address of the target device terminal, but the IP address of the target device terminal cannot be obtained without knowing it. Meanwhile, the first terminal and other terminals belong to the same network segment, and cannot be searched when facing target equipment terminals in different network segments.
In view of the above technical problems, it is desirable to design a device capable of autonomously identifying an IP of a distribution automation terminal, and when a detection device is connected to the distribution automation terminal, the device can automatically resolve and acquire an IP address of the distribution automation terminal.
Disclosure of Invention
The invention provides a method and equipment for automatically acquiring an intelligent power distribution automation terminal IP based on an ARP protocol, which solve the problems of complicated and complex IP address acquisition and insufficient automation and intelligence during operation and maintenance monitoring.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for automatically acquiring an IP address of a power distribution automation terminal comprises the following steps:
s1, the detection terminal of the detection equipment sends an ARP broadcast packet carrying the IP address and the MAC address of the detection terminal;
s2, the detection terminal judges whether an ARP response data packet returned by the distribution automation terminal is received;
s3, if not receiving the ARP response data packet, manually configuring to make the distribution automation terminal and the detection terminal in a network segment; sending an ARP broadcast packet carrying the IP address and the MAC address of the detection terminal again; until receiving an ARP response data packet returned by the distribution automation terminal;
and S4, updating the IP address of the power distribution automation terminal in the ARP response packet data into an ARP cache list.
Preferably, the non-distribution automation terminal judges whether the IP addresses of the non-distribution automation terminal are matched when receiving the ARP broadcast packet, and if not, no information is returned.
Preferably, the data of the ARP response packet further includes a distribution automation terminal MAC address.
Preferably, the distribution automation terminal MAC address corresponds to the distribution automation terminal IP address, and is updated to the ARP cache list together.
Preferably, the manual configuration is performed in such a manner that the distribution automation terminal and the detection terminal are in one network segment, and the network segment in which the distribution automation terminal is located is input into the detection terminal.
Preferably, the detection terminal automatically adjusts the address range of the ARP sending APR broadcast packet according to the network scale of the distribution automation terminal system.
Preferably, the detection terminal divides the network of the automatic terminal system into network segments according to the network scale of the distribution automation terminal system, and sequentially performs scanning and broadcasting in each network segment until receiving an ARP response data packet returned by the distribution automation terminal.
A detection device for automatically acquiring the IP address of a distribution automation terminal uses the method for automatically acquiring the IP address of the distribution automation terminal; the detection device comprises the following modules:
a detection terminal for sending ARP broadcast packet and receiving ARP response data packet returned from the distribution automation terminal,
a detection module for obtaining network segment information of the target distribution automation terminal, adjusting the target broadcast network segment according to the information received by the detection terminal,
the database module is used for storing and updating the ARP cache list,
and the processor module is used for encrypting the data of the ARP broadcast packet, analyzing the received ARP response data packet and acquiring the IP address and the MAC address contained in the ARP response data packet.
Compared with the prior art, the invention has the following advantages:
the invention provides a method for automatically acquiring an intelligent power distribution automatic terminal IP based on an ARP protocol, which comprises the steps that according to configuration parameters input and stored by an operator, a detection device automatically identifies whether a detection terminal and a power distribution automatic terminal are in the same network segment according to returned data; and the network scale of a system where the distribution automation terminal is located is automatically judged according to the configuration, cross-network-segment searching is carried out in an ARP polling mode, the detection terminal and the distribution automation terminal are connected one-to-one, and the IP address and the MAC address of the target distribution automation terminal are automatically obtained through analysis, so that the problems that the IP address is complex and complicated to obtain when operation and maintenance are monitored, and automation and intelligence are insufficient are solved.
Drawings
FIG. 1 is a flow chart of a method for automatically acquiring an intelligent distribution automation terminal IP based on an ARP protocol;
fig. 2 is a schematic diagram of the information transmission process between the detection tool and the distribution automation terminal in the invention.
Detailed Description
In order to make the purpose and technical solution of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below with reference to the embodiments of the present invention.
In the description of the present application, it is to be understood that the terms "length," "upper," "lower," "vertical," "horizontal," "top," "bottom," "inner," "outer," etc. indicate orientations or positional relationships based on those illustrated in the drawings, which are merely for convenience in describing the present application and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be considered limiting of the present application.
As shown in fig. 1 and fig. 2, a method for automatically acquiring an IP address of a distribution automation terminal adopts a one-to-one detection method, and includes the following steps:
s1, the detection terminal of the detection equipment sends an ARP broadcast packet carrying the ip address of the detection terminal and the MAC address of the detection terminal;
s2, the detection terminal judges whether an ARP response data packet returned by the distribution automation terminal is received; if the ARP response data packet is not received, the distribution automation terminal and the detection terminal are not in the same network segment, and the distribution automation terminal and the detection terminal are in the same network segment through manual configuration;
s3, sending the ARP broadcast packet carrying the IP address and the MAC address of the detection terminal again; and the detection terminal automatically adjusts the ARP polling address range according to the network scale of the distribution automation terminal system. Until an ARP response data packet returned by the distribution automation terminal is received, the next step is carried out; if an ARP response data packet is received at the beginning, the distribution automation terminal and the detection equipment are in the same network segment, and the next step is directly carried out;
and S4, the distribution automation terminal equipment returns an ARP response data packet carrying the MAC address of the distribution automation terminal, obtains the IP address of the distribution automation terminal after analysis, and updates the IP address of the distribution automation terminal in the ARP response data packet data into an ARP cache list.
The distribution automation terminal can return data when receiving the ARP broadcast packet, other non-distribution automation terminals can automatically judge whether own IP addresses are matched or not when receiving the ARP broadcast packet, and no information is returned if the IP addresses are not matched.
Preferably, the data of the ARP response packet further includes a distribution automation terminal MAC address. And the MAC address of the power distribution automation terminal corresponds to the IP address of the power distribution automation terminal and is updated to an ARP cache list together.
In step S3, the manual configuration is performed such that the distribution automation terminal and the detection terminal are in one network segment, and the network segment where the distribution automation terminal is located is input to the detection terminal. And after the network segment where the distribution automation terminal is positioned is input, the detection terminal automatically adjusts the address range of ARP polling according to the network scale of the distribution automation terminal system, namely the size of the network segment.
And the detection terminal divides the network of the automatic terminal system into network segments according to the network scale of the distribution automatic terminal system, and sequentially performs scanning and broadcasting in each network segment, wherein the process is an ARP polling process until an ARP response data packet returned by the distribution automatic terminal is received.
The invention also provides a detection device for automatically acquiring the IP address of the distribution automation terminal, and the system specifically comprises the following modules:
a detection terminal for sending ARP broadcast packet and receiving ARP response data packet returned from the distribution automation terminal,
a detection module for obtaining network segment information of the target distribution automation terminal, adjusting the target broadcast network segment according to the information received by the detection terminal,
the database module is used for storing and updating the ARP cache list,
and the processor module is used for encrypting the data of the ARP broadcast packet, analyzing the received ARP response data packet and acquiring the IP address and the MAC address contained in the ARP response data packet.
The invention provides a method for automatically acquiring an intelligent power distribution automatic terminal IP based on an ARP protocol, which comprises the steps that according to configuration parameters input and stored by an operator, a detection device automatically identifies whether a detection terminal and a power distribution automatic terminal are in the same network segment according to returned data; and automatically judging the scale of the system network where the distribution automation terminal is located according to the configuration, performing cross-network-segment searching in an ARP (address resolution protocol) polling mode, performing one-to-one connection between the detection terminal and the distribution automation terminal, and automatically analyzing and obtaining the IP address and the MAC address of the target distribution automation terminal. The problems that the IP address is complex and complex to obtain when the operation and maintenance are monitored, and automation and intellectualization are insufficient are solved.
The above are merely embodiments of the present invention, which are described in detail and with particularity, and therefore should not be construed as limiting the scope of the invention. It should be noted that, for those skilled in the art, various changes and modifications can be made without departing from the spirit of the present invention, and these changes and modifications are within the scope of the present invention.

Claims (7)

1. A method for automatically acquiring an IP address of a distribution automation terminal is characterized by comprising the following steps:
s1, the detection terminal of the detection equipment sends an ARP broadcast packet carrying the IP address and the MAC address of the detection terminal;
s2, the detection terminal judges whether an ARP response data packet returned by the distribution automation terminal is received; if the ARP response data packet is not received, the configuration is changed to enable the distribution automation terminal and the detection terminal to be in the same network segment;
s3, the detection terminal automatically adjusts the ARP polling address range according to the network scale of the distribution automation terminal system, and sends an ARP broadcast packet carrying the IP address and the MAC address of the detection terminal again; until receiving an ARP response data packet returned by the distribution automation terminal;
and S4, analyzing the ARP response data packet data to obtain the IP address of the power distribution automation terminal and updating the IP address into an ARP cache list.
2. A method for automatically acquiring an IP address of a distribution automation terminal according to claim 1, characterized in that: and when the non-power distribution automation terminal receives the ARP broadcast packet, judging whether the IP addresses of the non-power distribution automation terminal are matched, and if not, not returning any information.
3. A method for automatically acquiring an IP address of a distribution automation terminal according to claim 1, characterized in that: and the data of the ARP response data packet comprises a power distribution automation terminal MAC address.
4. A method for automatically acquiring an IP address of a distribution automation terminal according to claim 3, characterized in that: and the MAC address of the distribution automation terminal corresponds to the IP address of the distribution automation terminal obtained by analysis, and is updated to an ARP cache list together.
5. A method for automatically acquiring an IP address of a distribution automation terminal according to claim 1, characterized in that: the mode of changing the configuration to enable the distribution automation terminal and the detection terminal to be in one network segment is that the network segment where the distribution automation terminal is located is input into the detection terminal.
6. A method for automatically acquiring an IP address of a distribution automation terminal according to claim 1, characterized in that: in step S3, the detection terminal divides the network of the distribution automation terminal system into segments according to the network scale of the distribution automation terminal system, and sequentially performs scanning and broadcasting in each segment until receiving an ARP response packet returned by the distribution automation terminal.
7. The utility model provides an automatic acquire equipment of distribution automation terminal IP address which characterized in that: use of a method for automatically acquiring a distribution automation terminal IP address according to any of the preceding claims 1-6; the device comprises the following modules:
a detection terminal used for sending ARP broadcast packet and receiving ARP response data packet returned by the distribution automation terminal, a detection module used for obtaining network segment information of the target distribution automation terminal and adjusting the target broadcast network segment according to the information received by the detection terminal,
the database module is used for storing and updating the ARP cache list,
and the processor module is used for encrypting the data of the ARP broadcast packet, analyzing the received ARP response data packet and acquiring the IP address and the MAC address contained in the ARP response data packet.
CN202111319392.4A 2021-11-09 2021-11-09 Method and equipment for automatically acquiring IP address of power distribution automation terminal Active CN114268603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111319392.4A CN114268603B (en) 2021-11-09 2021-11-09 Method and equipment for automatically acquiring IP address of power distribution automation terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111319392.4A CN114268603B (en) 2021-11-09 2021-11-09 Method and equipment for automatically acquiring IP address of power distribution automation terminal

Publications (2)

Publication Number Publication Date
CN114268603A true CN114268603A (en) 2022-04-01
CN114268603B CN114268603B (en) 2023-09-22

Family

ID=80824903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111319392.4A Active CN114268603B (en) 2021-11-09 2021-11-09 Method and equipment for automatically acquiring IP address of power distribution automation terminal

Country Status (1)

Country Link
CN (1) CN114268603B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710439A (en) * 2012-05-29 2012-10-03 南京邮电大学 Obtaining method of user terminal parameter information
CN103763632A (en) * 2014-01-10 2014-04-30 济南中维世纪科技有限公司 Method for identifying self-adaption network of network equipment
CN103873301A (en) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 System and method for automatically finding and adding devices
CN104079678A (en) * 2014-05-28 2014-10-01 赵海林 Method for automatically obtaining WDS host information based on wireless terminal
US20150281172A1 (en) * 2012-12-19 2015-10-01 Huawei Technologies Co., Ltd. Method, relay agent, and system for acquiring internet protocol address in network
CN105657076A (en) * 2014-11-12 2016-06-08 江苏威盾网络科技有限公司 ARP (Address Resolution Protocol) agent method based on different VLANs ((Virtual Local Area Networks)
CN112929241A (en) * 2021-03-26 2021-06-08 新华三信息安全技术有限公司 Network testing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710439A (en) * 2012-05-29 2012-10-03 南京邮电大学 Obtaining method of user terminal parameter information
US20150281172A1 (en) * 2012-12-19 2015-10-01 Huawei Technologies Co., Ltd. Method, relay agent, and system for acquiring internet protocol address in network
CN103763632A (en) * 2014-01-10 2014-04-30 济南中维世纪科技有限公司 Method for identifying self-adaption network of network equipment
CN103873301A (en) * 2014-03-20 2014-06-18 浙江宇视科技有限公司 System and method for automatically finding and adding devices
CN104079678A (en) * 2014-05-28 2014-10-01 赵海林 Method for automatically obtaining WDS host information based on wireless terminal
CN105657076A (en) * 2014-11-12 2016-06-08 江苏威盾网络科技有限公司 ARP (Address Resolution Protocol) agent method based on different VLANs ((Virtual Local Area Networks)
CN112929241A (en) * 2021-03-26 2021-06-08 新华三信息安全技术有限公司 Network testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程春玲;崔国亮;隋宗见;: "基于广播SNMP的网络管理并行轮询算法", 计算机应用研究, no. 12 *

Also Published As

Publication number Publication date
CN114268603B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN101068179B (en) Customer end wireless switch-in method, system and device thereof
CN101557414B (en) Positioning method, equipment and system based on WLAN
EP3547758A1 (en) Home appliance network configuration method, home appliance, and user terminal
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN105916189B (en) A kind of terminal matches network method and terminal network distribution device
EP2571196B1 (en) Method and device for upgrading radio relay equipment
CN102739428B (en) Method and device for data acquisition, and system
EP2541834A1 (en) Method and device for managing machince-to-machine network topology structure
CN107301054B (en) Software updating method based on ad hoc network
CN103501356A (en) Network address configuration method and system of network camera
CN108833979B (en) Pre-configuration file importing method of dual-system convergence terminal and dual-system convergence terminal
CN108401257B (en) Railway base station integrated monitoring system
US20180368049A1 (en) Method and apparatus for gathering network neighborhood information and generating a reduced neighbor report
CN102595379B (en) Intelligent identification method and system for wireless electronic terminal
CN105392185A (en) Intelligent equipment networking method and device, and system
CN105682134A (en) WIFI-based intelligent terminal real-time sniffing method and real-time sniffing system
CN113676526A (en) Industrial data access management system and method
CN115474107A (en) Intelligent electric energy meter communication method and device, equipment and storage medium
CN1802613A (en) Method and device for identifying the cause of failures in industrial processes
CN114268603A (en) Method and equipment for automatically acquiring IP address of power distribution automation terminal
CN113905107A (en) Method and device for acquiring point list data of industrial equipment and gateway
US20160294465A1 (en) Information collection system, relay terminal, control method for relay terminal to connect to center system, sensor terminal, and control method for sensor terminal to connect to center system
CN115128999A (en) Integrated distributed rural sewage treatment station intelligent control system
CN115168427B (en) Equipment searching method, device, equipment and storage medium
CN105722082A (en) Method for intelligent equipment to obtain operation network configuration by using access point function

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