CN114268603B - 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
CN114268603B
CN114268603B CN202111319392.4A CN202111319392A CN114268603B CN 114268603 B CN114268603 B CN 114268603B CN 202111319392 A CN202111319392 A CN 202111319392A CN 114268603 B CN114268603 B CN 114268603B
Authority
CN
China
Prior art keywords
terminal
distribution automation
address
power distribution
automation terminal
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
CN202111319392.4A
Other languages
Chinese (zh)
Other versions
CN114268603A (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

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The application 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 power distribution automation terminal is received or not; if the ARP response data packet is not received, manually configuring to enable the power distribution automation terminal and the detection terminal to be in a network segment; re-sending the ARP broadcast packet; until an ARP response data packet returned by the power distribution automation terminal is received; and updating the IP address of the power distribution automation terminal in the response data into an ARP cache list. According to the application, through an ARP polling mode, one-to-one connection can be carried out between the detection terminal and the power distribution automation terminal, and the IP address and the MAC address of the target power distribution automation terminal can be automatically acquired.

Description

Method and equipment for automatically acquiring IP address of power distribution automation terminal
Technical Field
The application 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
When workers in a distribution room in China run into the problems that maintenance, detection and the like are needed for a distribution automation terminal, in many cases, the workers need to manually inquire and manually input an IP address of a target device in the process of detecting and operating equipment, the operation is complex, the maintenance workers and the workers in the distribution room need to insert a notebook computer on the distribution automation terminal to manually use system commands or the like, and the distribution room in some places is relatively narrow in space and can not simultaneously accommodate equipment such as people and computers. Meanwhile, the repeated operation of the machine greatly blocks the informatization and the intellectualization of the power distribution automation terminal, and reduces the efficiency of staff. Is unfavorable for the distribution room to follow the development of informatization and intelligence in China.
There is no tool that can automatically obtain the IP address of a distribution automation terminal in a distribution room. The operation and maintenance, monitoring and other staff need to be connected with the distribution automation terminal in a distribution room every time, and a command is manually input to acquire the IP address of the distribution automation terminal. The prior art is complicated and is not beneficial to informatization and intellectualization.
The Chinese patent with the application number of CN200710194837.4 discloses a method and a device for automatically detecting an IP address, wherein the method specifically comprises the following steps: the first terminal broadcasts an ARP message to other terminals through a preset IP network address, wherein the ARP message carries an IP address to be detected, and the ARP message is used for judging whether the IP address of the other terminals is the same as the IP address to be detected; and the first terminal receives ARP response information sent by other terminals according to the judgment result. The application also discloses a device for automatically detecting the IP address conflict; the application also discloses a device for assisting in automatically detecting the IP address conflict. The application judges the IP address conflict through the ARP message, avoids the occurrence of the IP address conflict condition from the source, and can be carried out under the condition of not influencing network communication, thereby avoiding the complex problem positioning process and saving a great amount of maintenance cost.
However, the method is applicable to the case that the IP address of the target equipment terminal is known, the corresponding MAC address is obtained according to the IP address of the target equipment terminal, and the IP address of the target equipment terminal cannot be obtained under the unknown condition. Meanwhile, the first terminal and other terminals belong to the same network segment, and target equipment terminals facing different network segments cannot be searched.
Aiming at the technical problems, a device capable of autonomously identifying the IP of the power distribution automation terminal is required to be designed, and when the detection device is connected with the power distribution automation terminal, the IP address of the power distribution automation terminal can be automatically resolved and acquired.
Disclosure of Invention
The application 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 acquisition of an IP address during operation and maintenance monitoring and insufficient automation and intellectualization.
In order to achieve the above purpose, the present application provides the following technical solutions:
a method for automatically acquiring an IP address of a power distribution automation terminal, comprising the steps of:
s1, a detection terminal of detection equipment sends an ARP broadcast packet carrying an IP address of the detection terminal and an MAC address of the detection terminal;
s2, the detection terminal judges whether an ARP response data packet returned by the power distribution automation terminal is received or not;
s3, if the ARP response data packet is not received, manually configuring the distribution automation terminal and the detection terminal in a network segment; re-sending an ARP broadcast packet carrying the IP address of the detection terminal and the MAC address of the detection terminal; until an ARP response data packet returned by the power distribution automation terminal is received;
and S4, updating the IP address of the power distribution automation terminal in the ARP response data packet data into an ARP cache list.
Preferably, when receiving the ARP broadcast packet, the non-distribution automation terminal judges whether the IP addresses of the non-distribution automation terminal are matched, and if the IP addresses of the non-distribution automation terminal are not matched, no information is returned.
Preferably, the ARP response packet further includes a power 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 enables the distribution automation terminal and the detection terminal to be in one network segment, and the network segment in which the distribution automation terminal is located is input into the detection terminal.
Preferably, the detecting terminal automatically adjusts the address range of the ARP sending APR broadcasting packet according to the network scale of the power 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 automatic terminal system of the power distribution, and scans and broadcasts in each network segment in sequence until ARP response data packets returned by the automatic terminal of the power distribution are received.
A detection device for automatically acquiring an IP address of a power distribution automation terminal, using the method for automatically acquiring an IP address of a power distribution automation terminal according to any one of the above; the detection device comprises the following modules:
the detection terminal is used for sending ARP broadcast packets and receiving ARP response data packets returned by the distribution automation terminal,
the detection module is used for acquiring the network segment information of the target distribution automation terminal, adjusting the target broadcasting network segment according to the information received by the detection terminal,
a database module for storing and updating 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 application has the following advantages:
the application provides a method for automatically acquiring an intelligent power distribution automation terminal IP based on ARP protocol, which comprises the steps that according to the configuration parameters input and stored by an operator, a detection device automatically identifies whether the detection terminal and the power distribution automation terminal are in the same network section according to returned data; and the network scale of the system where the distribution automation terminal is located is automatically judged according to configuration, cross-network section searching is carried out in an ARP polling mode, one-to-one connection is carried out between the detection terminal and the distribution automation terminal, the IP address and the MAC address of the target distribution automation terminal are automatically analyzed and acquired, and the problems that the IP address is complicated and complex to acquire during monitoring operation and maintenance and is not automatic and intelligent are solved.
Drawings
FIG. 1 is a flow chart of a method for automatically acquiring an IP of an intelligent power distribution automation terminal based on ARP protocol of the present application;
fig. 2 is a schematic diagram of the information transmission process of the detection tool and the distribution automation terminal in the application.
Detailed Description
In order to make the purpose and technical solution of the embodiments of the present application more clear, the technical solution of the present application will be clearly and completely described below in connection with the embodiments of the present application.
In the description of the present application, it should be understood that the terms "length," "upper," "lower," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate description of the present application and simplify the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be configured and operated in a particular orientation, and thus should not be construed as limiting the present application.
As shown in fig. 1 and 2, a method for automatically acquiring an IP address of a power distribution automation terminal adopts a one-to-one detection method, which comprises the following steps:
s1, a detection terminal of detection equipment sends an ARP broadcast packet carrying an ip address of the detection terminal and an MAC address of the detection terminal;
s2, the detection terminal judges whether an ARP response data packet returned by the power distribution automation terminal is received or not; 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 manually configured to be in one network segment;
s3, re-sending an ARP broadcast packet carrying the IP address of the detection terminal and the MAC address of the detection terminal; and the detection terminal automatically adjusts the ARP polling address range according to the network scale of the power distribution automation terminal system. Until an ARP response data packet returned by the power distribution automation terminal is received, carrying out the next step; if the ARP response data packet is received at the beginning, the distribution automation terminal and the detection equipment are indicated to be under the same network segment, and the next step is directly carried out;
s4, the distribution automation terminal equipment returns an ARP response data packet carrying the MAC address of the distribution automation terminal, the IP address of the distribution automation terminal is obtained after analysis, and the IP address of the distribution automation terminal in the ARP response data packet data is updated into an ARP cache list.
The power distribution automation terminal returns data when receiving the ARP broadcast packet, and other non-power distribution automation terminals automatically judge whether the IP addresses of the power distribution automation terminals are matched or not when receiving the ARP broadcast packet, and do not return any information if the IP addresses of the power distribution automation terminals are not matched.
Preferably, the ARP response packet further includes a power 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 the ARP cache list together.
In step S3, the manual configuration enables the distribution automation terminal and the detection terminal to be in a network segment, in which the distribution automation terminal is located, by inputting the network segment into the detection terminal. After the network segment where the power distribution automation terminal is located is input, the detection terminal automatically adjusts the address range of ARP polling according to the network scale of the power 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 automatic terminal system of the power distribution, and scans and broadcasts the network segments in sequence, wherein the process is an ARP polling process until an ARP response data packet returned by the automatic terminal of the power distribution is received.
The application also provides a detection device for automatically acquiring the IP address of the power distribution automation terminal, the method for automatically acquiring the IP address of the power distribution automation terminal according to any one of the above, and the system specifically comprises the following modules:
the detection terminal is used for sending ARP broadcast packets and receiving ARP response data packets returned by the distribution automation terminal,
the detection module is used for acquiring the network segment information of the target distribution automation terminal, adjusting the target broadcasting network segment according to the information received by the detection terminal,
a database module for storing and updating 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 application provides a method for automatically acquiring an intelligent power distribution automation terminal IP based on ARP protocol, which comprises the steps that according to the configuration parameters input and stored by an operator, a detection device automatically identifies whether the detection terminal and the power distribution automation terminal are in the same network section according to returned data; and automatically judging the network scale of the system where the distribution automation terminal is located according to the configuration, searching the cross-network segment in an ARP polling mode, connecting the detection terminal and the distribution automation terminal one to one, and automatically analyzing and acquiring the IP address and the MAC address of the target distribution automation terminal. The method solves the problems that the acquisition of the IP address is complicated and complicated during the monitoring operation and maintenance, and the automation and the intellectualization are not enough.
The foregoing is a description of embodiments of the application, which are specific and detailed, but are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application.

Claims (6)

1. The method for automatically acquiring the IP address of the power distribution automation terminal is characterized by comprising the following steps of:
s1, a detection terminal of detection equipment sends an ARP broadcast packet carrying an IP address of the detection terminal and an MAC address of the detection terminal;
s2, the detection terminal judges whether an ARP response data packet returned by the power distribution automation terminal is received or not; if the ARP response data packet is not received, changing the configuration to enable the distribution automation terminal and the detection terminal to be in the same network segment;
s3, the detection terminal automatically adjusts an ARP polling address range according to the network scale of the power distribution automation terminal system, and sends an ARP broadcast packet carrying the IP address of the detection terminal and the MAC address of the detection terminal again; until an ARP response data packet returned by the power distribution automation terminal is received;
s4, analyzing 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;
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 detection terminal inputs the network segment where the distribution automation terminal is located.
2. A method for automatically acquiring an IP address of a power distribution automation terminal as claimed in claim 1, wherein: when receiving the ARP broadcast packet, the non-distribution automation terminal judges whether the IP addresses of the non-distribution automation terminal are matched, and if the IP addresses of the non-distribution automation terminal are not matched, no information is returned.
3. A method for automatically acquiring an IP address of a power distribution automation terminal as claimed in claim 1, wherein: and the ARP response data packet comprises a power distribution automation terminal MAC address.
4. A method of automatically acquiring an IP address of a power distribution automation terminal as claimed in claim 3, wherein: and the MAC address of the power distribution automation terminal corresponds to the IP address of the power distribution automation terminal obtained through analysis, and is updated to the ARP cache list together.
5. A method for automatically acquiring an IP address of a power distribution automation terminal as claimed in claim 1, wherein: in step S3, the detection terminal divides the network of the automatic terminal system into network segments according to the network scale of the automatic terminal system, and scans and broadcasts in each network segment in turn until receiving the ARP response data packet returned by the automatic terminal.
6. An apparatus for automatically acquiring an IP address of a power distribution automation terminal, characterized in that: a method of automatically acquiring an IP address of a power distribution automation terminal using the method of any one of the preceding claims 1-5; the device comprises the following modules:
the detection terminal is used for sending ARP broadcast packets and receiving ARP response data packets returned by the distribution automation terminal, the detection module is used for acquiring network segment information of the target distribution automation terminal, and according to the information received by the detection terminal,
the target broadcast network segment is adjusted so that,
a database module for storing and updating ARP cache list,
a processor module for encrypting the data of the ARP broadcast packet and 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 CN114268603A (en) 2022-04-01
CN114268603B true 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 (5)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888551B (en) * 2012-12-19 2017-09-12 华为技术有限公司 Internet Protocol address acquisition methods, trunking and system in a kind of network
CN104079678A (en) * 2014-05-28 2014-10-01 赵海林 Method for automatically obtaining WDS host information based on wireless terminal

Patent Citations (5)

* 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
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的网络管理并行轮询算法;程春玲;崔国亮;隋宗见;;计算机应用研究(第12期);全文 *

Also Published As

Publication number Publication date
CN114268603A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CN109768870A (en) A kind of industry control network assets discovery method and system based on active probing technique
EP3010289A1 (en) Method and apparatus for controlling signal transmission and electronic device
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
CN109525939B (en) NVR and IPC automatic pairing method and wireless video monitoring automatic networking system
CN103747061B (en) A kind of dynamic environment monitoring system and its operation method of supporting many networkings to access
CN113676526A (en) Industrial data access management system and method
CN114268603B (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
CN104915308A (en) Method and device for supporting serial port and interface communication protocol stacks of TCP and UDP at same time
CN111302177A (en) Equipment running state feedback monitoring method and device
CN104954462A (en) High-concurrency extensible smart home communication method and high-concurrency extensible smart home communication system
EP3515121A1 (en) Device networking method, apparatus and system
KR20150051029A (en) System and method for providing integrated energy network service
CN114124952B (en) Cloud platform access system and method of data acquisition equipment
CN109347699A (en) Wireless terminal acquisition system and its method based on openwrt router
CN110995308B (en) Terminal data acquisition system and acquisition method thereof
CN111132160B (en) Route management method, terminal access method and wireless access system
CN109410085B (en) Binding system and method for farm equipment
CN112650765A (en) Method, device and equipment for judging station faults and storage medium
CN112671854A (en) Data processing method, server and system
WO2013000287A1 (en) Method and device for configuring cell parameters
CN111935299B (en) Communication equipment
CN112118161B (en) Device control method and system based on Google intelligent assistant

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