CN106534402B - Method and system for identifying train network equipment - Google Patents

Method and system for identifying train network equipment Download PDF

Info

Publication number
CN106534402B
CN106534402B CN201611085691.5A CN201611085691A CN106534402B CN 106534402 B CN106534402 B CN 106534402B CN 201611085691 A CN201611085691 A CN 201611085691A CN 106534402 B CN106534402 B CN 106534402B
Authority
CN
China
Prior art keywords
equipment
train network
address
network equipment
identification module
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
CN201611085691.5A
Other languages
Chinese (zh)
Other versions
CN106534402A (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.)
CRRC Zhuzhou Institute Co Ltd
Original Assignee
CRRC Zhuzhou Institute 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 CRRC Zhuzhou Institute Co Ltd filed Critical CRRC Zhuzhou Institute Co Ltd
Priority to CN201611085691.5A priority Critical patent/CN106534402B/en
Publication of CN106534402A publication Critical patent/CN106534402A/en
Application granted granted Critical
Publication of CN106534402B publication Critical patent/CN106534402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a system for identifying train network equipment, wherein the method comprises the following steps: the upper computer is connected with the train network equipment through an Ethernet interface; the IP identification module acquires an IP packet received by the Ethernet port, analyzes the IP packet to acquire a source IP address of the IP packet, and acquires the IP address of the train network equipment from the source IP address; the equipment identification module establishes TCP connection with the train network equipment through the IP address of the train network equipment and sends a request instruction for acquiring the equipment type to the train network equipment; and the train network equipment receives the request instruction and sends the equipment type of the train network equipment to the equipment identification module. The method improves the working efficiency of the identification process.

Description

Method and system for identifying train network equipment
Technical Field
The invention relates to the technical field of train network equipment, in particular to a method and a system for identifying train network equipment.
Background
At present, when the state monitoring, configuration updating and program updating are carried out on train network equipment, equipment needs to be connected, and the IP address and the equipment type of the equipment need to be known in advance, but under the common condition, no matter designers deploy the equipment, or maintainers can not accurately know the IP address of the equipment when overhauling the equipment, not to mention the equipment type, at the moment, additional wiring is needed, a debugging serial port is connected to check the IP of the equipment, the operation is very troublesome, and the efficiency is very low.
There are basically two ways to monitor the state of the train network device, to update the configuration and to update the program, one is based on the debugging serial port and the Ethernet port mix: the debugging serial port is used as a command channel, and auxiliary tool software such as FTP related tools are added for file transmission to perform configuration and program updating on the equipment, so that the efficiency is very low; another approach is based entirely on ethernet ports, which is critical to require prior knowledge of IP.
At present, the mode of acquiring the train network equipment IP is to connect an upper computer with a debugging serial port of the equipment, then a console window program is operated on the upper computer, and the mode of acquiring the train network equipment type is also the debugging serial port by acquiring in a command mode. At present, the IP of the train network equipment and the equipment type are obtained basically by debugging a serial port, and the method has the following defects: most of the upper computers used by users at present are notebook computers, the existing notebook computers are basically not provided with serial ports, and hardware such as usb-to-serial ports needs to be purchased additionally if the serial ports need to be connected, so that the cost is increased; because monitoring, configuration and program updating aiming at the train network equipment are all based on IP, obtaining the IP through the serial port is equivalent to additionally connecting a serial port line and adding additional operation, so that the working efficiency is directly reduced; the IP acquired through the serial port can be memorized only by people and then used, so that errors can be easily caused, rework is caused, and the working efficiency is directly reduced.
Disclosure of Invention
The invention aims to provide a method and a system for identifying train network equipment so as to improve the working efficiency of an identification process.
In order to solve the above technical problem, the present invention provides a method for identifying a train network device, comprising:
the upper computer is connected with the train network equipment through an Ethernet interface;
the IP identification module acquires an IP packet received by the Ethernet port, analyzes the IP packet to acquire a source IP address of the IP packet, and acquires the IP address of the train network equipment from the source IP address;
the equipment identification module establishes TCP connection with the train network equipment through the IP address of the train network equipment and sends a request instruction for acquiring the equipment type to the train network equipment;
and the train network equipment receives the request instruction and sends the equipment type of the train network equipment to the equipment identification module.
Preferably, the obtaining the IP address of the train network device from the source IP address includes:
and filtering and screening the original IP address, and removing all interfered IP addresses to obtain the IP address of the train network equipment.
Preferably, the method further comprises:
if the IP identification module does not obtain the IP address of the train network equipment within the preset time, the network port control module closes the network port of the upper computer firstly, then opens the network port of the upper computer, simulates one-time connection of a network link, and triggers the train network equipment to send out an APR data packet.
Preferably, after the train network device receives the request instruction and sends the device type of the train network device to the device identification module, the method further includes:
and the equipment identification module receives the equipment type of the train network equipment, matches the equipment type with the stored equipment model library and establishes an equipment module corresponding to the equipment type.
The present invention also provides a system for identifying a train network device, the system comprising:
the upper computer is used for being connected with the train network equipment through an Ethernet interface;
the IP identification module is used for acquiring an IP packet received by the Ethernet port, analyzing the IP packet to acquire a source IP address of the IP packet and acquiring the IP address of the train network equipment from the source IP address;
the equipment identification module is used for establishing TCP connection with the train network equipment through the IP address of the train network equipment and sending a request instruction for acquiring the equipment type to the train network equipment;
and the train network equipment is used for receiving the request instruction and sending the equipment type of the train network equipment to the equipment identification module.
Preferably, the IP identification module includes:
the analysis unit is used for acquiring the IP packet received by the Ethernet port and analyzing the IP packet to acquire a source IP address of the IP packet;
and the screening unit is used for filtering and screening the original IP address, removing all interfered IP addresses and obtaining the IP address of the train network equipment.
Preferably, the system further comprises:
and the network port control module is used for firstly closing the network port of the upper computer and then opening the network port of the upper computer if the IP identification module does not obtain the IP address of the train network equipment within the preset time, simulating one-time connection of a network link, and triggering the train network equipment to send out an APR data packet.
Preferably, the train identification module further includes:
and the model establishing unit is used for receiving the equipment type of the train network equipment, matching the equipment type with the stored equipment model library and establishing an equipment model corresponding to the equipment type.
The invention provides a method and a system for identifying train network equipment.A host computer is connected with the train network equipment through an Ethernet interface; the IP identification module acquires an IP packet received by the Ethernet port, analyzes the IP packet to acquire a source IP address of the IP packet, and acquires the IP address of the train network equipment from the source IP address; the equipment identification module establishes TCP connection with the train network equipment through the IP address of the train network equipment and sends a request instruction for acquiring the equipment type to the train network equipment; and the train network equipment receives the request instruction and sends the equipment type of the train network equipment to the equipment identification module. Therefore, the upper computer is connected with the train network equipment through the Ethernet interface, the IP address of the equipment is obtained by obtaining and analyzing the data packet of the Ethernet, the IP address and the equipment type of the train network equipment are directly identified based on the Ethernet interface, and the IP of the equipment can be quickly and efficiently obtained, so that the subsequent operations of monitoring the state, configuring the equipment, updating the program and the like of the equipment based on the IP can be conveniently carried out.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method of identifying train network devices provided by the present invention;
FIG. 2 is a detailed flow chart of identifying train network devices;
fig. 3 is a schematic structural diagram of a system for identifying train network devices according to the present invention.
Detailed Description
The core of the invention is to provide a method and a system for identifying train network equipment so as to improve the working efficiency of the identification process.
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Noun interpretation of related art terms:
IP: internet Protocol network interconnection Protocol;
ARP: address Resolution Protocol.
Referring to fig. 1, fig. 1 is a flowchart of a method for identifying a train network device according to the present invention, the method including:
s11: the upper computer is connected with the train network equipment through an Ethernet interface;
s12: the IP identification module acquires an IP packet received by the Ethernet port, analyzes the IP packet to acquire a source IP address of the IP packet, and acquires the IP address of the train network equipment from the source IP address;
s13: the equipment identification module establishes TCP connection with the train network equipment through the IP address of the train network equipment and sends a request instruction for acquiring the equipment type to the train network equipment;
s14: and the train network equipment receives the request instruction and sends the equipment type of the train network equipment to the equipment identification module.
Therefore, in the method, the upper computer is connected with the train network equipment through the Ethernet interface, the data packet of the Ethernet is acquired and analyzed to acquire the IP address of the equipment, the IP address and the equipment type of the train network equipment are directly identified based on the Ethernet interface, and the IP of the equipment can be quickly and efficiently acquired, so that the subsequent operations of monitoring the state, configuring the equipment, updating the program and the like of the equipment based on the IP can be conveniently carried out.
Based on the above method, specifically, in step S12, the process of obtaining the IP address of the train network device from the source IP address includes: and filtering and screening the original IP address, and removing all interfered IP addresses to obtain the IP address of the train network equipment.
Further, the method further comprises: if the IP identification module does not obtain the IP address of the train network equipment within the preset time, the network port control module closes the network port of the upper computer firstly, then opens the network port of the upper computer, simulates one-time connection of a network link, and triggers the train network equipment to send out an APR data packet.
Among them, TCP (Transmission Control Protocol) is a connection-oriented, reliable transport layer communication Protocol based on byte stream.
Further, after the train network device receives the request instruction and sends the device type of the train network device to the device identification module, the device identification module receives the device type of the train network device, matches the device type with the stored device model library, and establishes a device module corresponding to the device type.
In the method, the upper computer is only required to be connected with the equipment through the Ethernet interface, and the train network equipment can be accurately identified by capturing the network data packet.
Based on the method, the detailed specific process for identifying the train network equipment comprises the following steps:
a) the upper computer is connected with the train network equipment through an Ethernet interface;
b) the IP identification module starts to acquire an IP packet received by an Ethernet port of the upper computer, analyzes the IP packet to acquire a source IP address in the IP packet, filters and screens the IP address, and removes all interfered IP addresses to acquire the IP address of the train network equipment;
c) if the IP address of the train network equipment is obtained in the step b within a certain time, the step f is carried out; if the IP address of the train network equipment is not acquired, namely the equipment does not send any IP packet outwards, the IP identification module stops acquiring the IP packet received by the Ethernet port;
d) the network port control module closes the network port of the upper computer firstly, then opens the network port of the upper computer, simulates one-time connection of a network link, and triggers the train network equipment to send out an ARP data packet, and the ARP data packet is sent out under the condition;
e) the IP identification module starts to acquire an ARP packet received by an Ethernet port of the upper computer, analyzes the ARP packet to acquire a source IP address, filters and screens the IP address, and removes all interfered IP addresses to acquire the IP address of the train network equipment;
f) the equipment identification module establishes TCP connection with the equipment based on the acquired IP address of the train network equipment, and then sends a request instruction for acquiring the equipment type to the equipment;
g) the train network module replies the equipment type after receiving the request instruction, and the equipment identification module matches with an equipment model library configured in the equipment identification module after acquiring the equipment type, establishes a corresponding equipment model, and generates a graph for subsequent state monitoring, configuration updating and program updating operations of the equipment. Referring to fig. 2, fig. 2 is a detailed flowchart for identifying train network devices.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a system for identifying train network devices according to the present invention, the system including:
the upper computer 101 is used for being connected with train network equipment through an Ethernet interface;
the IP identification module 102 is configured to obtain an IP packet received by the ethernet port, analyze the IP packet to obtain a source IP address of the IP packet, and obtain an IP address of the train network device from the source IP address;
the equipment identification module 103 is used for establishing a TCP connection with the train network equipment through the IP address of the train network equipment and sending a request instruction for acquiring the equipment type to the train network equipment;
and the train network device 104 is configured to receive the request instruction and send the device type of the train network device to the device identification module.
Therefore, in the system, the upper computer is connected with the train network equipment through the Ethernet interface, the IP identification module acquires and analyzes the Ethernet data packet to acquire the IP address of the equipment, the IP address and the equipment type of the train network equipment are directly identified based on the Ethernet interface, and the IP of the equipment can be quickly and efficiently acquired so as to facilitate the follow-up operations of monitoring the state, configuring, updating the program and the like of the equipment based on the IP.
Based on the above system, specifically, the IP identification module includes:
the analysis unit is used for acquiring the IP packet received by the Ethernet port and analyzing the IP packet to acquire a source IP address of the IP packet;
and the screening unit is used for filtering and screening the original IP address, removing all interfered IP addresses and obtaining the IP address of the train network equipment.
Further, the system further comprises:
and the network port control module is used for firstly closing the network port of the upper computer and then opening the network port of the upper computer if the IP identification module does not obtain the IP address of the train network equipment within the preset time, simulating one-time connection of a network link, and triggering the train network equipment to send out an APR data packet.
Further, the train identification module further includes:
and the model establishing unit is used for receiving the equipment type of the train network equipment, matching the equipment type with the stored equipment model library and establishing an equipment model corresponding to the equipment type.
The IP identification module is mainly responsible for capturing network data packets in real time and identifying accurate equipment IP from the network data packets; the network port control module is mainly responsible for closing and opening the network port of the upper computer so as to trigger the train network equipment to send an ARP protocol data packet; the equipment identification module is mainly responsible for sending a request command for acquiring the equipment type and the configuration parameters to the equipment, establishing an equipment model according to data replied by the equipment, and generating a graph so as to facilitate the subsequent operation of monitoring the state of the equipment, updating the configuration and updating the program.
The invention utilizes the upper computer to connect with the train network equipment through the Ethernet interface, and obtains and analyzes the data packet of the Ethernet to obtain the IP address of the equipment; the invention triggers train network equipment to send an ARP data packet by closing the network port and then opening the network port, and then acquires and analyzes an IP address; the invention obtains the IP address by analyzing the data packet, sends a command for obtaining the equipment type to the equipment, and establishes the graphical interface of the equipment model by utilizing the configured equipment model library after obtaining the equipment type. The invention can enable design, debugging and maintenance personnel of the network equipment of the train to quickly and efficiently acquire the IP of the equipment, so as to facilitate the subsequent operations of monitoring the state, configuring, updating programs and the like of the equipment based on the IP.
In summary, according to the method and system for identifying the train network device provided by the invention, the upper computer is connected with the train network device through the ethernet interface; the IP identification module acquires an IP packet received by the Ethernet port, analyzes the IP packet to acquire a source IP address of the IP packet, and acquires the IP address of the train network equipment from the source IP address; the equipment identification module establishes TCP connection with the train network equipment through the IP address of the train network equipment and sends a request instruction for acquiring the equipment type to the train network equipment; and the train network equipment receives the request instruction and sends the equipment type of the train network equipment to the equipment identification module. Therefore, the upper computer is connected with the train network equipment through the Ethernet interface, the IP address of the equipment is obtained by obtaining and analyzing the data packet of the Ethernet, the IP address and the equipment type of the train network equipment are directly identified based on the Ethernet interface, and the IP of the equipment can be quickly and efficiently obtained, so that the subsequent operations of monitoring the state, configuring the equipment, updating the program and the like of the equipment based on the IP can be conveniently carried out.
The method and the system for identifying the train network equipment provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (2)

1. A method of identifying a train network device, comprising:
the upper computer is connected with the train network equipment through an Ethernet interface;
the IP identification module acquires an IP packet received by the Ethernet port, analyzes the IP packet to acquire a source IP address of the IP packet, and acquires the IP address of the train network equipment from the source IP address;
the equipment identification module establishes TCP connection with the train network equipment through the IP address of the train network equipment and sends a request instruction for acquiring the equipment type to the train network equipment;
the train network equipment receives the request instruction and sends the equipment type of the train network equipment to the equipment identification module;
after the train network device receives the request instruction and sends the device type of the train network device to the device identification module, the method further comprises the following steps:
the equipment identification module receives the equipment type of the train network equipment, matches the equipment type with a stored equipment model library and establishes an equipment module corresponding to the equipment type;
the obtaining the IP address of the train network device from the source IP address includes:
filtering and screening the original IP address, and removing all interfered IP addresses to obtain the IP address of the train network equipment;
further comprising:
if the IP identification module does not obtain the IP address of the train network equipment within the preset time, the network port control module closes the network port of the upper computer firstly, then opens the network port of the upper computer, simulates one-time connection of a network link, and triggers the train network equipment to send out an APR data packet.
2. A system for identifying train network devices, comprising:
the upper computer is used for being connected with the train network equipment through an Ethernet interface;
the IP identification module is used for acquiring an IP packet received by the Ethernet port, analyzing the IP packet to acquire a source IP address of the IP packet and acquiring the IP address of the train network equipment from the source IP address;
the equipment identification module is used for establishing TCP connection with the train network equipment through the IP address of the train network equipment and sending a request instruction for acquiring the equipment type to the train network equipment;
the train network equipment is used for receiving the request instruction and sending the equipment type of the train network equipment to the equipment identification module;
the train identification module further comprises:
the model establishing unit is used for receiving the equipment type of the train network equipment, matching the equipment type with a stored equipment model library and establishing an equipment model corresponding to the equipment type;
the IP identification module comprises:
the analysis unit is used for acquiring the IP packet received by the Ethernet port and analyzing the IP packet to acquire a source IP address of the IP packet;
the screening unit is used for filtering and screening the original IP address, removing all interfered IP addresses and obtaining the IP address of the train network equipment;
further comprising:
and the network port control module is used for firstly closing the network port of the upper computer and then opening the network port of the upper computer if the IP identification module does not obtain the IP address of the train network equipment within the preset time, simulating one-time connection of a network link, and triggering the train network equipment to send out an APR data packet.
CN201611085691.5A 2016-11-30 2016-11-30 Method and system for identifying train network equipment Active CN106534402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611085691.5A CN106534402B (en) 2016-11-30 2016-11-30 Method and system for identifying train network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611085691.5A CN106534402B (en) 2016-11-30 2016-11-30 Method and system for identifying train network equipment

Publications (2)

Publication Number Publication Date
CN106534402A CN106534402A (en) 2017-03-22
CN106534402B true CN106534402B (en) 2020-02-18

Family

ID=58355400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611085691.5A Active CN106534402B (en) 2016-11-30 2016-11-30 Method and system for identifying train network equipment

Country Status (1)

Country Link
CN (1) CN106534402B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049050B (en) * 2019-04-22 2021-03-19 中国科学院计算机网络信息中心 Communication method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0601706D0 (en) * 2006-01-27 2006-03-08 Amrivox Ltd Automatic IP Network Determination And Configuration For Edge Devices
CN102868561B (en) * 2012-09-28 2015-07-08 南车株洲电力机车研究所有限公司 Train network system maintenance method and device

Also Published As

Publication number Publication date
CN106534402A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN107426059B (en) DPI equipment feature library automatic updating method and system, DPI equipment and cloud server
CN107979497B (en) Automatic configuration method and device
CN111796858A (en) Method, system and related equipment for access detection of application programs in Kubernetes cluster
CN103780610A (en) Network data recovery method based on protocol characteristics
CN111262879A (en) Firewall security policy opening method and device based on simulation path analysis
CN109271217B (en) Network flow detection method and system under cloud environment
CN105376077A (en) Network behavior information processing method, log transmitting method, network behavior information processing device and system
CN106650425A (en) Method and device for controlling security sandbox
CN112328374A (en) Comprehensive evaluation system and method based on virtualized real-operation environment
CN112437463A (en) Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium
CN110995764A (en) Fuzzy test system and method for data flow of application layer of mobile cellular network
CN106534402B (en) Method and system for identifying train network equipment
CN111211934A (en) Cluster remote communication test method and system
CN105141484B (en) Android equipment remote debugging method based on cloud server
CN201813382U (en) Network monitoring system for carrier rocket test and launch controll
US10367785B2 (en) Software defined traffic modification system
CN106603360B (en) Method and device for testing safety of automobile bus based on bus batch data
Van Tu et al. PPTMon: Real-time and fine-grained packet processing time monitoring in virtual network functions
KR20150026345A (en) Apparatus and method for creating whitelist with network traffic
CN105306388A (en) Port data mirroring implementation method based on netfilter framework
Johanson et al. Improving vehicle diagnostics through wireless data collection and statistical analysis
CN108363922B (en) Automatic malicious code simulation detection method and system
CN116962184A (en) Method, system, terminal and medium for automatically deploying RoCE cluster
US20060229067A1 (en) Wireless interface for test and measurement device
Van Tu et al. Measuring end-to-end packet processing time in service function chaining

Legal Events

Date Code Title Description
C06 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