CN101072147A - Industrial Ethernet protocol analysisand field tester - Google Patents

Industrial Ethernet protocol analysisand field tester Download PDF

Info

Publication number
CN101072147A
CN101072147A CN 200710078637 CN200710078637A CN101072147A CN 101072147 A CN101072147 A CN 101072147A CN 200710078637 CN200710078637 CN 200710078637 CN 200710078637 A CN200710078637 A CN 200710078637A CN 101072147 A CN101072147 A CN 101072147A
Authority
CN
China
Prior art keywords
network
epa
message
test
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.)
Pending
Application number
CN 200710078637
Other languages
Chinese (zh)
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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN 200710078637 priority Critical patent/CN101072147A/en
Publication of CN101072147A publication Critical patent/CN101072147A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Aiming at disadvantages of current on site testing instrument for industrial control network, the invention designs portable instrument of analyzing and on site testing industrial Ethernet protocol (IEP). The designed instrument possesses features: monitoring state of EPA network in real time; carrying out performance analysis based on message of equipment declaration on network; detecting whether network connection and equipment are connected to network correctly; determining route of target equipment (TE), querying information of TE, detecting port state of TE; testing whether the tested object realizes service declared by the object according to EPA standard; testing time Synch precision between tested equipment and main clock; based on EPA standard to carry out deterministic scheduling analysis for message captured from network; carrying out attribute test for objects in management information database etc. The invention can widely be applicable to analyze and on site testing IEP.

Description

Industrial ethernet protocol is analyzed and on-spot tester
Technical field
The present invention relates to the communication technology, computer technology and automatic control technology, specifically is a kind of Industrial Ethernet Control technology.
Background technology
In national standard--the 65C/357/NP that forms on the basis of " the Industrial Ethernet EPA (Ethernetfor plant automation) system configuration and the communication standard that are used for commercial measurement and control system " (being called for short " EPA standard ") will list fieldbus international standard IEC 61158 in as the 14 type.At present, be applied to engineering reality more and more, and all also be in the starting stage to the on-the-spot Installation and Debugging of analysis, the EPA network equipment of EPA network and to the test of EPA Related product based on the product of EPA standard.There is not the ready-made instrument that EPA network and EPA Related product are analyzed and tested.
Along with the popularization of EPA standard, increasing EPA Related product begins to enter practical application area.The EPA network has the characteristics of himself as having increased EPA communication scheduling management entity at link layer, having defined the client layer of oneself etc. as a kind of Industrial Ethernet, therefore in the on-the-spot Installation and Debugging and operation phase of EPA network, existing network analysis, field adjustable instrument exist the scheduling rule that can not analyze the EPA network, the problems such as various service messages of not discerning the EPA protocol definition, therefore are necessary to develop portable network analysis and field commissioning instrument at the EPA network.
Summary of the invention
Technical problem to be solved by this invention is, at the measuring and analysing meter that in the on-the-spot Installation And Test process of Industrial Ethernet, does not have standard at present, the present invention has designed a kind of industrial ethernet protocol analysis and on-spot tester, can analyze the EPA network, in the on-the-spot Installation and Debugging process of EPA network, can carry out testing protocol consistency to the EPA Related product, and can detect and locating network fault, help the user to finish troubleshooting of faults work.
The technical scheme that the present invention solves the problems of the technologies described above is, design a kind of EPA protocal analysis and field commissioning instrument, this protocal analysis and field commissioning instrument comprise power unit, network analysis part, on-the-spot test and fault detection part, EPA testing protocol consistency part.Power unit provides the power supply of AC adapter, powered battery and bus-powered three kinds of supply power modes for this regulator; Network analysis partly comprises: EPA network condition statistical module, EPA network equipment analysis module, EPA network utilization test module, testing throughput module, message on this part real-time statistics network, the equipment of the utilance of monitoring EPA network, the transmission performance of network, the whole EPA network situation of reaching the standard grade, and, the equipment on the EPA network is carried out performance evaluation according to the device asserts message on the network.Wherein EPA network condition statistical module is finished the statistics to the various messages on the EPA network; EPA network equipment analysis module the equipment on the whole EPA network of the monitoring situation of reaching the standard grade according to the device asserts message on the network, is analyzed each equipment on the EPA network; EPA network utilization test module, the utilance of the whole EPA network of real-time monitoring, thereby can know the EPA network work whether the worker often, whether optimum and whether be in real-time working situation such as overburden; The testing throughput module, finishing the data volume that the EPA network is sent and receives adds up, neatly the EPA network throughput is tested, compare goodput and theoretical value, thereby can know the transmission performance of whole network, by can also find to influence the bottleneck position of whole network performance to the testing throughput between the diverse location.On-the-spot test and fault detection part comprise: EPA target device connectivity checks module, EPA target device route tracking module, address conflict are checked module, equipment query module, whether this part detects the EPA network and connects normal, the equipment route follows the trail of the objective, check address conflict, the query aim equipment state, the acquisition equipment port status.Wherein, EPA target device connectivity checks module: whether checkout EPA target device correctly inserts the EPA network; EPA target device route tracking module: by following the trail of the route of EPA target device, detect EPA network configuration, the path of message and the position of target device, determine the physical location of target device further combined with the router distribution situation of network; The IP/MAC address conflict is checked module: whether the IP address/MAC Address that detects equipment on the EPA network has conflict, and the corresponding MAC Address/IP address of inquiry; Target device information enquiry module: utilize equipment query request service according to physical equipment item PD Tag or functional block example item FB Tag query facility state; The TCP module: the designated user datagram protocol udp port of acquisition equipment, and scanning target device whole transmission control protocol tcp ports open situation, thereby can grasp the network operation situation of target device.
EPA homogeneity of product part of detecting comprises: service testing module, time synchronized test module, deterministic schedule test module, object properties test module, protocol state machine test module, whether the EPA Related product that this part is used to test access network has realized the service of this product statement by the EPA standard, and test the timing tracking accuracy of itself and master clock, according to the EPA standard message of catching on the network is carried out the deterministic schedule analysis, object in the management information bank is carried out attribute test, the mode of operation of test measurand.Service testing module wherein: whether test measurand (referring to an access EPA Related products to be tested such as network) has realized the service of its statement by the EPA standard; Time synchronized test module: the timing tracking accuracy of test measurand; Deterministic schedule test module: catch messages all on the network and analyze then and whether message is dispatched, comprise test its deterministic schedule precision and dispatching sequence by the EPA standard; Object properties test module: the object in the management information bank is carried out attribute test, promptly test measurand and whether can carry out corresponding read-write operation by the regulation of EPA standard; The protocol state machine test module: whether the test measurand can carry out correct operation and can be transformed into next correct state under certain state.
The present invention has realized the function that existing Industrial Ethernet network analysis instruments such as EPA network performance analysis, EPA device analysis/inquiry, EPA testing protocol consistency are not had according to the characteristics of EPA network.The present invention has adopted three kinds of supply power modes, has greatly strengthened the continuous firing ability of portable set in industry spot.
Description of drawings
Fig. 1 is a system configuration theory diagram of the present invention
Fig. 2 is power unit circuit principle structure figure
Fig. 3 is a system architecture diagram of the present invention
Fig. 4 is background program and graphical interfaces communication scheme
Fig. 5 is an EPA network condition statistical module operation principle structured flowchart
Fig. 6 is service testing, object properties test, protocol state machine test module operation principle structured flowchart
Embodiment
Reaching instantiation with reference to the accompanying drawings specifies technical scheme of the present invention:
Figure 1 shows that system configuration theory diagram of the present invention.This portable protocal analysis and tester adopt chip microprocessor as central control processor, the microprocessor chip S3C2410 (ARM9) that is specifically designed to the portable set exploitation can be adopted in the core, this central control processor is as a backstage control treatment module, and specifically comprise the power management part, network analysis part, on-the-spot test and fault detection part, EPA testing protocol consistency part.16M Flash and 64M RAM aspect internal memory, have been used so that enough space motion programs are arranged.For the convenience of debugging, the rapidity of programming code, this portable apparatus has also designed Ethernet interface and the control circuit of a 100M, and RS232 mouth and JTAG mouth use the LCD touch display screen as debug port, be convenient to checking of on-the-spot operation and data, realize man-machine interaction.
For portable product, what at first need to consider promptly is the problem of power supply and power consumption, power management is partly controlled this portable apparatus and is adopted three kinds of supply power modes to provide power supply for it, be respectively the power supply of AC adapter, powered battery and bus-powered, leave corresponding interface, to strengthen its continuous firing ability in industry spot for this reason.What secondly need consideration promptly is the problem of man-machine interaction, the graphics engine that it is touch-screen that the present invention adopts the graphic user interface back-up system MiniGUI quick, stable and lightweight that is used for embedded system of the version of increasing income drives (240x320), realizes man-machine interaction.
Figure 2 shows that the power unit schematic block circuit diagram.Partly control the switching of power analog switch by power management, determine that power unit provides the mode of power supply for this analysis tester.Wherein, it is bus-powered or the power supply of DC-DC adapter that power analog switch A is used for selecting, power analog switch B control out-put supply is to be provided by battery to export or exported by voltage transformation module, the input of power analog switch A connects the DC-DC adapter and the network equipment respectively, the output of analog switch A connects the power transfer module input, power transfer module output connects power analog switch B, and this module provides 5V charge power supply for battery charging module.Bus-powered mode is connected to network equipment port by network cable, by among the RJ-45 not 4/5 and 7/8 two of usefulness line to powering, it is by bus-powered or powered by adapter that power analog switch A control is selected, be converted to the output of 5V voltage by bus or by the power supply that adapter provides through voltage transformation module, one the tunnel battery charging module is provided is battery charge, carry out Charge Management by MAX1555, the input selecting side of battery output analog switch B, another road directly outputs to the input selecting side of analog switch B, analog switch B selects one of them as output, this portable apparatus of output needs after voltage transitions 5V and 3.3V operating voltage, the adjustable output voltage scope of operating voltage is 1.2 ~ 5.5V.
Figure 3 shows that system module structured flowchart of the present invention.As shown in the figure, the present invention transplants flush type LINUX operating system on the bottom hardware basis, based on the flush type LINUX operating system transplantation be used for embedded system fast, graphic user interface back-up system MiniGUI stable and lightweight is touch-screen graphics engine drives (240x320), simultaneously since flush type LINUX operating system to the good support of network, the procotol that the ICP/IP protocol stack partly adopts the flush type LINUX operating system through cutting to carry.MiniGUI and ICP/IP protocol stack have constituted whole software of the present invention basis, realize this portable apparatus 3 major parts all functions of totally 14 functional modules by central control processor on this basis.
Figure 4 shows that backstage control treatment module and graphical interfaces communication scheme.As shown in the figure, each function of this portable apparatus all is that each functional module is separately a background process by the realization of background process and graphical interfaces process, and they can create one's own thread.Message queue by flush type LINUX system between each background process and the graphical interfaces process communicates, backstage control treatment module control background process is connected with the EPA network by network interface, be responsible for the analysis of EPA network, on-the-spot adjustment and uniformity test, and the result is sent to the graphical interfaces process by message queue; The graphical interfaces process is divided into two threads, and one of them thread only is responsible for receiving the result that background process sends over from message queue, and global buffer is as a result got up, and another thread Cheng Ze that serves as theme is responsible for the result is shown to graphical interfaces.
Control and treatment process and enforcement thereof at the backstage control treatment module is described specifically below.The backstage control treatment module comprises: power management part, network analysis part, on-the-spot test and fault detection part, EPA testing protocol consistency part.Below the function and the execution mode of each module in the each several part specified.
Network analysis partly comprises EPA network condition statistical module, network equipment analysis module, network utilization test module and testing throughput module.Major function is the real-time utilance of monitoring EPA network, the situation of reaching the standard grade of the equipment on the transmission performance of network, the whole EPA network, and, the equipment on the EPA network is carried out performance evaluation according to the device asserts message on the network.
(A.1) EPA network condition statistical module
This module is finished and parse the EPA message from the ethernet frame that network is caught, and parse corresponding COS according to the type of service field of " EPA standard " regulation, add up the ratio of message number, percentage and the cycle message of various services/aperiodic message etc.
As shown in Figure 5, this portable apparatus inserts after the EPA network by ethernet controller, utilizes raw socket at first to catch all ethernet frames on the network.EPA network condition statistical module is judged the network layer protocol type according to the type field of frame structure: if the value of this field is 0x0806, then this ethernet frame is ARP (Address Resolution Protocol) packet; If the value of this field is 0x8035, then this ethernet frame is Reverse Address Resolution Protocol RARP (Reverse AddressResolution Protocol) packet; If the value of this field is 0x8888 or 0x8889, then this ethernet frame is IEEE1 588 (time synchronization protocol) packet; If the value of this field is 0x0800, then this ethernet frame is Internet protocol IP (Internet Protocol) packet; If the value of this field is other values, then this ethernet frame is designated as Others.
For the IP packet, then further read the protocol fields in its IP stem, if the value of this field is 1, then this IP packet is Internet Control Message Protocol ICMP (Internet Control MessagesProtocol) packet; If the value of this field is 2, then this IP packet is the Internet Group Management Protocol IGMP (Internet Group Management Protocol) packet; If the value of this field is 6, then this IP packet is transmission control protocol TCP (Transfer Control Protocol) packet; If the value of this field is 17, then this IP packet is User Datagram Protoco (UDP) UDP (User DatagramProtocol) packet; If the value of this field is other values, be Others then with this IP data packet recording.
For the UDP message bag, further read the destination interface field value in its UDP stem, if the value of this field is 0x88bc, judges that then this UDP message bag is the EPA message, otherwise be designated as Others.
For the EPA message, EPA network condition statistical module is according to " EPA standard ", which kind of service is value according to the type of service field in its EPA stem determine to belong to, and add up corresponding message number, and in total message shared percentage, as definition Internet Control Message Protocol ICMP corresponding device statement service etc.Simultaneously, according to the EPA standard code, be the cycle message except that information sets up service message separately, other be message aperiodic all, but the ratio of computing cycle message/aperiodic message by this.
(A.2) EPA network equipment analysis module
Device asserts is a kind of service of " EPA standard " regulation, each online equipment all can be regular transmitting apparatus on network statement service message, EPA network equipment analysis module captures the device asserts service message of online equipment, then according to " EPA standard " regulation to the device asserts service message, whether device identification Device ID, PD Tag, this equipment of the visual string representation of use in this message are read out by information such as configurations, analysis result is passed to the graphical interfaces process by message queue.Because each equipment is periodic broadcasting equipment assert packet on network all, so this module also will periodically be upgraded the display result on the touch-screen.
(A.3) EPA network utilization test module
In EPA network management work, analyze and to check network utilization, can monitor the overall operation situation of EPA network effectively, thus know the EPA network work whether the worker often, whether optimum and whether be in extra-heavy working condition.This module is calculated all ethernet frame data amount sums then by catching ethernet frames all on the network, can calculate network utilization with this data volume sum divided by the network bandwidth that the user sets.
(A.4) testing throughput module
This module is finished the data volume that network is sent and receives and is added up, neatly the throughput of a certain section link in the EPA network is tested, compare goodput and theoretical value, thereby can know the performance of whole network, by can also find to influence the bottleneck position of whole network performance to the testing throughput between the diverse location.
When throughput is tested, need insert this portable analysis regulator respectively the transmit leg and the recipient of EPA network, one as one of sender as the recipient.The theoretical throughput of being demarcated according to the Network Design ability is provided with a predetermined threshold, transmit leg is individual to the packet N1 that the recipient sends certain frame length by certain speed (being no more than predetermined threshold), and transmit leg is noted local zone time and is assumed to be t when sending start of heading s(unit is 10 -6S), send and write down local zone time once more behind the message and be assumed to be t eThe recipient counts to be N2, recipient judge whether N1 equates with N2 to the packet of receiving, if N1 is not equal to N2, then packet has been lost in explanation, and the recipient asks transmit leg to reduce transmission rate and resends new packet, and continues to begin test; If N1 equals N2, then can calculate the network throughput of tested link as follows: network throughput=[N1* frame size (byte) * 8*10 -6]/[(t e-t s) * 1024*1024] Mbps.
On-the-spot test and fault detection part comprise the connectedness of checking target device, the equipment that follows the trail of the objective route, check whether target ip address clashes, checks whether destination-mac address clashes, equipment query and six functional modules of TCP.
The function of this part mainly is to detect in the on-the-spot Installation and Debugging process of EPA network that network connects and equipment correct access network whether, determines the target device route, checks address conflict, query aim facility information, acquisition equipment port status.
(B.1) EPA target device connectivity checks module
Whether this module check test EPA target device correctly inserts the EPA network.In the on-the-spot Installation and Debugging process of EPA network, but the situation of equipment access network cisco unity malfunction may occur, can test its access network this moment by this portable analysis tester whether correctly.Target device connectivity checks module at first sends Internet control Message Protocol ICMP query message to target device, type of message is " Echo Request (echo request) ", if target device has correctly inserted the EPA network and network parameter also disposes correctly, then can respond one " ICMP return response ICMP echo replay ".If in setting-up time, do not receive ICMP return response message, illustrate that then target device does not correctly insert the EPA network.This module receives that response message just can determine that target device has correctly inserted the EPA network according to this message later.And the local zone time that sends response message " ICMP Echo Request " noted (being assumed to be t1) and fill it into the data division of this message, according to the ICMP agreement, target device is when response " ICMP Echo Request " message, to copy to the data division of this message (Ji Lu time data t1 before) in " ICMP echo replay " message, when receiving " ICMPecho replay " message of target device response, therefrom parse time data t1, deduct t1 with local zone time t2 at this moment and just can obtain RTT two-way time.
(B.2) EPA target device route tracking module
This module is used for detecting easily the path of EPA network configuration, message and the position of target device.By following the trail of the route of EPA target device, obtain the physical location of target device further combined with the router distribution situation of network.
At first send a UDP message by EPA target device route tracking module to target device, destination interface is an impossible value (greater than 30000) in this UDP message, and the ttl value of IP stem is set to 1, after if target device is received this message, then respond " ICMP Destination Unreachable (the ICMP target can not arrive) " message and beam back this module, if router is received this message, it can subtract 1 with the ttl value of IP stem, when ttl value was 0, router abandoned this message and produces " ICMP TimeExceeded (ICMP is overtime) " message.When this module is received " ICMP Time Exceeded " message, ttl value is increased by 1 and write down the source address (being the address of router) of this message, and then send this message, up to receiving " the ICMP port can not arrive " message; When this module is received " the ICMP port can not arrive " message, illustrate that the route between this portable analysis regulator and the target device sets up, can the follow the trail of the objective route of equipment of the router address of noting during " ICMP Time Exceeded " message by receiving.
(B.3) the IP/MAC address conflict is checked module
Detect the IP/MAC address of equipment in the network and whether conflict, and the MAC Address of query aim IP address correspondence or the IP address of destination-mac address correspondence.
This module adopts ARP at first to obtain the IP address and the MAC Address corresponding relation of all devices in the subnet, according to this corresponding relation, and the MAC Address that can query aim IP address correspondence or the IP address of destination-mac address correspondence; Simultaneously, if there is the corresponding IP address of a plurality of MAC Address, then this IP address clashes; If there is the corresponding MAC Address in a plurality of IP address, then this MAC Address clashes.
(B.4) target device information enquiry module
Utilize equipment query request service according to PD Tag or FB Tag query facility, obtain the details of target device, as PD Tag whether conflict, information such as IP address, Device ID.
In the on-the-spot Installation and Debugging process of EPA network, may only know the PD Tag or the FB Tag of an equipment, utilize this module can inquire concrete equipment and details thereof.The value of user input query type and PDTag or FB Tag, the graphical interfaces process passes to the target device information enquiry module with user's input by message queue.This module is utilized equipment query request service broadcasting " EM_FindTagQuery (equipment query request) " message on network of " EPA standard " regulation, all devices on the EPA network is received " Query Type (query type) " field of at first judging this message behind this message, if this field is 0, represent that this query requests message is to inquire about according to PD Tag, and then judge whether the PD Tag field in " EM_FindTagQuery " message is consistent with the PD Tag of oneself, if unanimity then responds " EM_FindTagReply (equipment query request-reply) " message, then ignore as if inconsistent.In like manner, if the query type field in " EM_FindTagQuery " message is 1, represent that then the query requests type is to inquire about according to FB Tag, and then judge whether the FB Tag field in " EM_FindTagQuery " message is consistent with the FB Tag of oneself, if unanimity then responds " EM_FindTagReply (equipment query request-reply) " message, then ignore as if inconsistent.This module is according to " EM_FindTagReply " message of receiving, parses whether PD Tag conflicts, information such as IP address, Device ID.
(B.5) TCP module
The acquisition equipment port status specifically is that the appointment udp port of target device is surveyed, and scans whole tcp ports and open situation, thereby can grasp the network operation situation of target device.
In the on-the-spot Installation and Debugging process of EPA network, target device connectivity checks module can only detect the target device accessed network, but but detects less than " device asserts service message ", also inquires about less than equipment.The single port of TCP module scanning UDP, and the tcp port of target device opens situation, thus can grasp the network operation situation of target device.The tcp port working condition that a plurality of threads scan target device is apace opened in the connect system call that this module utilizes flush type LINUX system to provide.During scanning, this module attempts to connect with each tcp port of target device by the connect system call, if certain tcp port of target device is opened, then the connect at this tcp port calls and will run succeeded; If certain tcp port of target device is closed, then call and failure is returned and error code is ECONNREFUSED at the connect of this tcp port.Successful connect calls then the result is passed to the graphical interfaces process by message queue under this module records, and these successful connect call corresponding port and are the tcp port distribution situation that target device is opened.
For udp port, this module sends UDP message arbitrarily to the port of target device, if this udp port of target device is closed, then respond " ICMP Dest Unreachable (target can not arrive) " message, the port of determining target device if this module receives this message is closed, otherwise this port of target device is then opened.
This portable detector can provide uniformity test to the EPA Related product in the access network, mainly comprises the test of five aspects such as service testing, time synchronized test, deterministic schedule test, object properties test and protocol state machine test.The present invention can carry out the uniformity test and the energy analytical test result of above-mentioned 5 parts to the EPA Related product in the access network, and test result is presented on the touch-screen, finally forms test report.
EPA consistency of product part of detecting comprises service testing module, time synchronized test module, deterministic schedule test module, object properties test module and five modules of protocol state machine test module; Generally there is a packet capturing device in existing test platform between tester and EPA network, tester is connected with the packet capturing device by serial ports, the packet capturing device inserts the EPA network by network interface, portable tester of the present invention is access network directly, saved the packet capturing device, thereby simplified test platform, simultaneously owing to directly insert the EPA network by network interface, can not be limited by the low rate of serial ports in the test process, can not have packet loss or data delay phenomenon.
Below the specific implementation of each module is done detailed description.
(C.1) time synchronized test module
This module is mainly tested the timing tracking accuracy of equipment under test IUT and master clock.The time synchronized test module is created two new threads (being that the time synchronism detection sends thread and receiving thread) behind the initialization network, the time synchronized test sends thread and is responsible for transmitting time synchronism detection request message, time synchronized test receiving thread is responsible for time of reception synchronism detection response message, and once Ce Shi entire flow is as follows:
1, time synchronized test receiving thread blocks stand-by period synchronism detection response message;
2, the time synchronized test sends thread transmitting time synchronism detection request message, comprises a sequence-number field (sequence number of supposing this test is S1) in this message;
3, after master clock on the EPA network and equipment under test receive this request message, immediate record is descended the local zone time of this moment and is responded a time synchronized test response message, the sequence-number field of this response message is that the value of this field in the request message is (for this test, this value is S1), the timestamp field is the local zone time for noting when receiving request message then;
4, after time synchronized test receiving thread receives the time synchronized response message of equipment under test and master clock, compare the sequence-number field in these two messages, identical if (supposing all to be S1), illustrate that then they are corresponding to once test together, then extract two timestamp fields in the message, and calculate time and the synchronous precision of master clock of equipment under test, and be about to timestamp field in these two messages and do subtraction and take absolute value again, thus the time and the synchronous precision of master clock of acquisition equipment under test.
5, by time synchronized test receiving thread test result is sent to the graphical interfaces process.
(C.2) deterministic schedule test module
This module is carried out the deterministic schedule analysis according to key messages such as time of advent of all messages on the network, source IP address, type of message, priority to message.Comprise that scheduling precision analysis, dispatching sequence analyze, the scheduling strategy analysis.
The deterministic schedule test module is caught messages all on the network certainty of dispatching message on the phase-split network then.When catching message, this module is at first determined the original position in grand cycle, the cooperation that needs configuration software during test is the original position of master clock configuration to the grand cycle, with the starting point of master clock cycle message as a grand cycle, this module grasps the key messages such as the time of advent, source IP address, type of message, priority of all messages on the network then.When second grand cycle begins on the message in a grand cycle carry out the deterministic schedule analysis, certainty lexical analysis to message must guarantee just can carry out after the message in whole grand cycle has all grasped, that is to say message grasp with analysis time on be sequencing and can not be concurrent.According to the EPA standard message in the one-period on the network is carried out deterministic parsing, stops if analysis result and EPA standard are inconsistent analyzing and the result is sent to the graphical interfaces process and show type of error, deterministic schedule analyze specifically comprise following some:
1, scheduling precision analysis, the time of checking the cycle message that each EPA equipment sends with respect to initial deviate of grand cycle whether with configuration software be provided with consistent;
2, the dispatching sequence analyzes, check in a grand cycle cycle message sending order whether with configuration software be provided with consistent, check that whether according to priority high message aperiodic of different priorities in a grand cycle message in the low message front of priority, checks whether message aperiodic of the equal priority in the grand cycle presses the little priority transmission in IP address;
3, scheduling strategy analysis, check in the network each EPA equipment the message stage in cycle whether sent aperiodic the data assert packet and form whether correct, check each EPA equipment after sending data aperiodic, whether sent aperiodic data send finish assert packet and form whether correct.
(C.3) service testing, protocol state machine test, object properties test module
Service testing comprises system management entity service testing and the test of application access entity services, whether the test measurand has realized the service that this measurand is stated by the EPA standard, when carrying out service testing, test from request service, positive respond services, three aspects of Negative Acknowledgment service; The object properties test is whether the test measurand can carry out corresponding read-write operation by the regulation of EPA standard, mainly is that the object in the management information bank is tested; The test of protocol state machine is whether the test measurand can carry out correct operation and can be transformed into next correct state under certain state.These several test modules can be integrated into a background test program module.Be illustrated in figure 6 as the operation principle block diagram of realizing service testing, object properties test, protocol state machine test.At first create message queue and obtain network parameter from network; Create the test assignment thread subsequently, this thread drives testing engine, obtain the order of user's input on the graphical interfaces, drive the EPA protocol stack according to user command and send test packet, and then establishment EPA mission thread, the control of this thread sends test packet and according to response message analytical test result, according to the type and the sequential testing message of " EPA uniformity test standard " setting, whether realized the service that this measurand is stated by the EPA standard from request service, positive respond services, three aspects tests of Negative Acknowledgment service measurand; Whether test can carry out corresponding read-write operation by the regulation of EPA standard to the measurand in the management information bank; Whether the test measurand can carry out correct operation and can be transformed into next correct state under certain state.The test assignment thread is according to the response message analytical test result who receives, and test result returned in the testing engine sends to the graphical interfaces process by message queue and send into graphical interfaces and show test results.

Claims (9)

1, a kind of Industrial Ethernet EPA protocal analysis tester, comprise power unit, network analysis part, on-the-spot test and fault detection part, EPA testing protocol consistency part, each functional module is separately a background process, can create the thread of oneself, it is characterized in that, network analysis part: the utilance of monitoring Industrial Ethernet in real time, the equipment situation of reaching the standard grade, and, the equipment on the Industrial Ethernet is carried out performance evaluation according to EPA device asserts message; On-the-spot test and fault detection part: whether detection EPA network is connected normal, determines the target device route, checks address conflict, query aim facility information, acquisition equipment port status; EPA testing protocol consistency part: the timing tracking accuracy of test equipment under test and master clock, according to the EPA standard message of catching on the network is carried out the deterministic schedule analysis, measurand is carried out service testing, protocol state machine test, object properties test.
2, protocal analysis tester according to claim 1 is characterized in that, described power unit can provide the power supply of AC adapter, powered battery and bus-powered three kinds of supply power modes.
3, protocal analysis tester according to claim 1, it is characterized in that, EPA network condition statistical module in the described network analysis part is caught the EPA message from network, and parse corresponding COS, add up the message number of various services, the ratio of and cycle message/aperiodic message.
4, protocal analysis tester according to claim 1 is characterized in that, described acquisition equipment port status is that the appointment udp port of target device is surveyed, and scans whole tcp ports and open situation.
5, protocal analysis tester according to claim 1, it is characterized in that described query aim facility information utilizes equipment query request service according to physical equipment item PD Tag or functional block example item FB Tag query facility state by the target device information enquiry module.
6, according to one of them described protocal analysis tester of claim 1-5, it is characterized in that this protocal analysis tester directly inserts the EPA network by network interface.
7, according to one of them described protocal analysis tester of claim 1-5, it is characterized in that, be responsible for respectively sending and time of reception synchronism detection request message and response message by sending thread and receiving thread in the timing tracking accuracy test.
8, according to one of them described protocal analysis tester of claim 1-5, it is characterized in that the deterministic schedule module is dispatched precision analysis, dispatching sequence's analysis, scheduling strategy analysis according to the time of advent, source IP address, type of message, the priority of all messages on the network to message in the described EPA testing protocol consistency part.
According to one of them described protocal analysis tester of claim 1-5, it is characterized in that 9, described service testing is whether the test measurand has realized its statement by the EPA standard service; The protocol state machine test is the mode of operation of test measurand; The object properties test is whether the object in the test and management information bank carries out corresponding read-write operation by the regulation of EPA standard.
CN 200710078637 2007-06-20 2007-06-20 Industrial Ethernet protocol analysisand field tester Pending CN101072147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710078637 CN101072147A (en) 2007-06-20 2007-06-20 Industrial Ethernet protocol analysisand field tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710078637 CN101072147A (en) 2007-06-20 2007-06-20 Industrial Ethernet protocol analysisand field tester

Publications (1)

Publication Number Publication Date
CN101072147A true CN101072147A (en) 2007-11-14

Family

ID=38899146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710078637 Pending CN101072147A (en) 2007-06-20 2007-06-20 Industrial Ethernet protocol analysisand field tester

Country Status (1)

Country Link
CN (1) CN101072147A (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917316A (en) * 2010-09-13 2010-12-15 北京航空航天大学 Communication method and device for high-speed real-time industrial Ethernet
CN101557325B (en) * 2009-05-20 2011-04-27 大连理工大学 EPA real-time aggregative indicator testing method
CN102158882A (en) * 2011-05-27 2011-08-17 重庆邮电大学 Two-channel data detection and protocol analysis meter based on 6LowPAN and method
CN101764698B (en) * 2008-12-25 2011-12-28 四零四科技股份有限公司 Automatic recovering method for power equipment
CN102368729A (en) * 2011-09-23 2012-03-07 北京东方网信科技股份有限公司 Accurate network speed limit method at non-realtime system
CN102394786A (en) * 2011-12-14 2012-03-28 武汉钢铁(集团)公司 Hand-held network protocol and threat analyzer
CN102395141A (en) * 2011-11-04 2012-03-28 大唐移动通信设备有限公司 Recurrence method and equipment based on consistency testing
CN102457880A (en) * 2010-10-25 2012-05-16 大唐移动通信设备有限公司 Conformance testing method and system
CN102457881A (en) * 2010-10-25 2012-05-16 大唐移动通信设备有限公司 Conformance testing method and system
CN101625865B (en) * 2008-07-07 2012-10-17 数维科技(北京)有限公司 DRA consistency test method, consistency test device and system
CN103888323A (en) * 2014-04-22 2014-06-25 株洲南车时代电气股份有限公司 Ethernet equipment first-operation behavior consistency testing method and device
CN104780081A (en) * 2015-04-27 2015-07-15 浙江宇视科技有限公司 Network connection failure detection device and method
CN105553973A (en) * 2015-12-14 2016-05-04 中国电子信息产业集团有限公司第六研究所 System and method for detecting industrial control equipment abnormality
CN106817279A (en) * 2017-01-13 2017-06-09 山东浪潮商用系统有限公司 A kind of broadband-based network detecting method
CN107547540A (en) * 2017-08-30 2018-01-05 上海许继电气有限公司 The protocol massages monitoring methods of IEC 60,870 5 104
CN107749810A (en) * 2017-09-27 2018-03-02 武汉凌安科技有限公司 A kind of interface protocol test analysis equipment based on realtime graphic
CN108449221A (en) * 2016-12-30 2018-08-24 迈普通信技术股份有限公司 A kind of wireless controller concentrates forwarding performance test method, apparatus and system
CN108683558A (en) * 2018-05-10 2018-10-19 中国铁路总公司 Railway security Communication Protocol Conformance Testing Methodology
CN109495303A (en) * 2018-11-19 2019-03-19 广州开信通讯系统有限公司 Obtain the method, device network managing device and system, electronic device and storage medium of equipment parameter information
CN109698838A (en) * 2019-02-01 2019-04-30 智慧盈通(北京)工业技术有限公司 A kind of terminal access unit
CN110061891A (en) * 2019-04-18 2019-07-26 上海锵戈科技有限公司 A kind of efficient multiple target IP blocking monitoring and dispatching method and system of low invasion
CN111897581A (en) * 2020-09-25 2020-11-06 广州朗国电子科技有限公司 Screen-off awakening method and device, storage medium and all-in-one machine equipment
CN114040427A (en) * 2021-10-28 2022-02-11 中国联合网络通信集团有限公司 Debugging and testing method, device, equipment and system
CN115277483A (en) * 2022-07-27 2022-11-01 西安热工研究院有限公司 Industrial control network monitoring method, device and storage medium
CN116743617A (en) * 2023-08-11 2023-09-12 浙江国利信安科技有限公司 Method, computing device, and storage medium for network testing
CN117395327A (en) * 2023-12-12 2024-01-12 浙江国利信安科技有限公司 Method, apparatus and computer readable storage medium for Ethernet access EPA network

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625865B (en) * 2008-07-07 2012-10-17 数维科技(北京)有限公司 DRA consistency test method, consistency test device and system
CN101764698B (en) * 2008-12-25 2011-12-28 四零四科技股份有限公司 Automatic recovering method for power equipment
CN101557325B (en) * 2009-05-20 2011-04-27 大连理工大学 EPA real-time aggregative indicator testing method
CN101917316A (en) * 2010-09-13 2010-12-15 北京航空航天大学 Communication method and device for high-speed real-time industrial Ethernet
CN102457880B (en) * 2010-10-25 2015-05-06 大唐移动通信设备有限公司 Conformance testing method and system
CN102457881B (en) * 2010-10-25 2015-05-06 大唐移动通信设备有限公司 Conformance testing method and system
CN102457880A (en) * 2010-10-25 2012-05-16 大唐移动通信设备有限公司 Conformance testing method and system
CN102457881A (en) * 2010-10-25 2012-05-16 大唐移动通信设备有限公司 Conformance testing method and system
CN102158882B (en) * 2011-05-27 2014-07-09 重庆邮电大学 Two-channel data detection and protocol analysis meter based on 6LowPAN and method
CN102158882A (en) * 2011-05-27 2011-08-17 重庆邮电大学 Two-channel data detection and protocol analysis meter based on 6LowPAN and method
CN102368729A (en) * 2011-09-23 2012-03-07 北京东方网信科技股份有限公司 Accurate network speed limit method at non-realtime system
CN102368729B (en) * 2011-09-23 2013-11-27 北京东方网信科技股份有限公司 Accurate network speed limit method at non-realtime system
CN102395141B (en) * 2011-11-04 2014-06-04 大唐联仪科技有限公司 Recurrence method and equipment based on consistency testing
CN102395141A (en) * 2011-11-04 2012-03-28 大唐移动通信设备有限公司 Recurrence method and equipment based on consistency testing
CN102394786A (en) * 2011-12-14 2012-03-28 武汉钢铁(集团)公司 Hand-held network protocol and threat analyzer
CN103888323A (en) * 2014-04-22 2014-06-25 株洲南车时代电气股份有限公司 Ethernet equipment first-operation behavior consistency testing method and device
CN103888323B (en) * 2014-04-22 2018-09-04 株洲南车时代电气股份有限公司 A kind of ethernet device just operation action conformance test method and device
CN104780081A (en) * 2015-04-27 2015-07-15 浙江宇视科技有限公司 Network connection failure detection device and method
CN104780081B (en) * 2015-04-27 2018-06-05 浙江宇视科技有限公司 A kind of network connectivity fai_lure detection device and method
CN105553973A (en) * 2015-12-14 2016-05-04 中国电子信息产业集团有限公司第六研究所 System and method for detecting industrial control equipment abnormality
CN108449221A (en) * 2016-12-30 2018-08-24 迈普通信技术股份有限公司 A kind of wireless controller concentrates forwarding performance test method, apparatus and system
CN108449221B (en) * 2016-12-30 2021-04-13 迈普通信技术股份有限公司 Method, device and system for testing centralized forwarding performance of wireless controller
CN106817279A (en) * 2017-01-13 2017-06-09 山东浪潮商用系统有限公司 A kind of broadband-based network detecting method
CN107547540A (en) * 2017-08-30 2018-01-05 上海许继电气有限公司 The protocol massages monitoring methods of IEC 60,870 5 104
CN107547540B (en) * 2017-08-30 2020-06-26 上海许继电气有限公司 IEC-60870-5-104 protocol message monitoring method
CN107749810A (en) * 2017-09-27 2018-03-02 武汉凌安科技有限公司 A kind of interface protocol test analysis equipment based on realtime graphic
CN108683558A (en) * 2018-05-10 2018-10-19 中国铁路总公司 Railway security Communication Protocol Conformance Testing Methodology
CN108683558B (en) * 2018-05-10 2020-08-04 中国铁路总公司 Railway safety communication protocol consistency testing method
CN109495303A (en) * 2018-11-19 2019-03-19 广州开信通讯系统有限公司 Obtain the method, device network managing device and system, electronic device and storage medium of equipment parameter information
CN109698838A (en) * 2019-02-01 2019-04-30 智慧盈通(北京)工业技术有限公司 A kind of terminal access unit
CN110061891A (en) * 2019-04-18 2019-07-26 上海锵戈科技有限公司 A kind of efficient multiple target IP blocking monitoring and dispatching method and system of low invasion
CN111897581B (en) * 2020-09-25 2021-08-31 广州朗国电子科技有限公司 Screen-off awakening method and device, storage medium and all-in-one machine equipment
CN111897581A (en) * 2020-09-25 2020-11-06 广州朗国电子科技有限公司 Screen-off awakening method and device, storage medium and all-in-one machine equipment
CN114040427A (en) * 2021-10-28 2022-02-11 中国联合网络通信集团有限公司 Debugging and testing method, device, equipment and system
CN114040427B (en) * 2021-10-28 2023-07-07 中国联合网络通信集团有限公司 Adjustment and measurement method, device, equipment and system
CN115277483A (en) * 2022-07-27 2022-11-01 西安热工研究院有限公司 Industrial control network monitoring method, device and storage medium
CN116743617A (en) * 2023-08-11 2023-09-12 浙江国利信安科技有限公司 Method, computing device, and storage medium for network testing
CN116743617B (en) * 2023-08-11 2023-11-10 浙江国利信安科技有限公司 Method, computing device, and storage medium for network testing
CN117395327A (en) * 2023-12-12 2024-01-12 浙江国利信安科技有限公司 Method, apparatus and computer readable storage medium for Ethernet access EPA network
CN117395327B (en) * 2023-12-12 2024-03-12 浙江国利信安科技有限公司 Method, apparatus and computer readable storage medium for Ethernet access EPA network

Similar Documents

Publication Publication Date Title
CN101072147A (en) Industrial Ethernet protocol analysisand field tester
CN102922089B (en) Welding process information acquisition and quality monitoring device and method based on Ethernet
CN101808355B (en) System and method for testing consistency of industrial wireless network protocol
CN101739011B (en) CPCI bus-based high-accuracy clock synchronization method and system thereof
CN101893662B (en) Nuclear phase method for digital transformer substation
CN101227340B (en) Embedded type network quality detecting device and method and evaluation system and evaluation method thereof
CN101399715B (en) Network test platform and test method for optical fiber channel
CN107065706B (en) A kind of distributed telemetry station working-condition monitoring system
CN102387185B (en) Double-frequency-band communication device for indoor light sensor wireless network
CN104660384A (en) Network remote monitoring method for open numerical control system
CN109031131B (en) The real-time host system of the heterogeneous polynuclear of battery testing and analog meter and method
CN201797372U (en) Nuclear phase system for intelligent digital transformer substation
CN201364137Y (en) Bridge strain signal conditioner
CN103034206A (en) Industrial data collection system adopting late binding communication plug-in unit
CN102749864A (en) Bridge acceleration signal conditioner
CN102946335B (en) A kind of network condition detection method and system
CN101895426B (en) Data acquisition method and system in network resource evaluation
CN106656395A (en) Improved system and method for synchronous time measurement in power grid based on self-learning
Auler et al. Power quality monitoring controlled through low-cost modules
CN104980319A (en) Serial-parallel combination efficient multi-target IP end performance monitoring and scheduling method
CN213399965U (en) Infrared intelligent network acquisition terminal
Feldmeier Statistical monitors for local area networks
CN111158339B (en) CAN bus simulation monitoring system
CN203522776U (en) Configurable industrial Ethernet data parsing system
CN112986894A (en) Test method for software separation of multi-core intelligent electric meter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication