The test method and device of train grade ethernet device based on IEC61375 agreements
Technical field
The present invention relates to networked control system of the train technical field, it is more particularly to a kind of based on the train grade of IEC61375 agreements with
The too test method and device of net equipment.
Background technology
With the fast development of train network technology, the development trend that ethernet technology is applied to train network is progressively shown
It is existing.Train needs for response train operation, can be carried according to the length that carrying situation adjusts train to achieve the purpose that flexibly to use
High operational efficiency.And the network control system of different vehicle groups may be from the unit of different designs, manufacturer's production, train
Ethernet network system is different, and only following identical communication protocol standard could realize that the interconnection across marshaling network is mutual
It is logical.Currently, to realize, ethernet network interconnects between marshalling, and IEC61375 series international standards have issued a series of passes
In the Its Relevant Technology Standards of train Ethernet, IEC61375-2-5, IEC61375-2-3 and IEC61375-3-4 belong to train with
Net very much the major criterion in field.If a train Ethernet protocol test system can be established, it is possible in train grade Ethernet
Product formally before application, is assessed, evaluated to the network equipment for being designed for the transmission of train grade Ethernet, efficiently reduce across
Intercommunication is difficult caused by agreement difference between marshalling, reduces the industrial accident that may occur in train operation.It is based on
The train grade Ethernet protocol uniformity test technology of IEC61375 agreements and the exploitation of equipment are that train grade ethernet network is mutual
Join the important leverage means and safeguard of intercommunication.
The train ethernet device according to IEC protocol developments moves towards to apply successively at present, and for IEC serial protocols standards
Design carries out train ethernet device uniformity test and belongs to blank field, still without forming ripe test method and means.
The content of the invention
An embodiment of the present invention provides a kind of test methods of the train grade ethernet device based on IEC61375 agreements, use
To realize the accurate test of the train grade ethernet device based on IEC61375 agreements, this method includes:
Monitor the TTDP message datas to be measured of train grade ethernet device ETBN and TRDP message datas to be measured;
TTDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TTDP message datas to be measured
Hold feature;TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature;
According to the transmission cycle feature of TTDP message datas to be measured and form content characteristic, the standard with TTDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TTDP message datas of ETBN;According to treating
Survey the transmission cycle feature of TRDP message datas and form content characteristic, with the standard transmission periodic characteristics of TRDP message datas and
The comparative result of format content feature obtains the test result of the TRDP message datas of ETBN.
The embodiment of the present invention additionally provides a kind of test device of the train grade ethernet device based on IEC61375 agreements,
To realize the accurate test of the train grade ethernet device based on IEC61375 agreements, which includes:
Monitoring unit, for monitoring the TTDP message datas to be measured of train grade ethernet device ETBN and TRDP to be measured reports
Literary data;
Analytic unit for analyzing TTDP message datas to be measured, obtains the transmission week of TTDP message datas to be measured
Phase feature and form content characteristic;TRDP message datas to be measured are analyzed, obtain the transmission week of TRDP message datas to be measured
Phase feature and form content characteristic;
Test cell, for the transmission cycle feature and form content characteristic according to TTDP message datas to be measured, with TTDP
The standard transmission periodic characteristic of message data and the comparative result of form content characteristic, obtain the TTDP message datas of ETBN
Test result;According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the mark with TRDP message datas
The comparative result of quasi- transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and storage on a memory
And the computer program that can be run on a processor, the processor realize above-mentioned be based on when performing the computer program
The test method of the train grade ethernet device of IEC61375 agreements.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is the computer program for the test method for performing the above-mentioned train grade ethernet device based on IEC61375 agreements.
Technical solution provided in an embodiment of the present invention is by monitoring the TTDP messages to be measured of train grade ethernet device ETBN
Data and TRDP message datas to be measured;TTDP message datas to be measured are analyzed, obtain the transmission of TTDP message datas to be measured
Periodic characteristic and form content characteristic;TRDP message datas to be measured are analyzed, obtain the transmission of TRDP message datas to be measured
Periodic characteristic and form content characteristic;According to the transmission cycle feature of TTDP message datas to be measured and form content characteristic, with
The standard transmission periodic characteristic of TTDP message datas and the comparative result of form content characteristic, obtain the TTDP message datas of ETBN
Test result;According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, with TRDP message datas
The comparative result of standard transmission periodic characteristic and form content characteristic obtains the test result of the TRDP message datas of ETBN, real
The accurate test of the train grade ethernet device based on IEC61375 agreements is showed.
Description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, not
Form limitation of the invention.In the accompanying drawings:
Fig. 1 is the flow of the test method of the train grade ethernet device based on IEC61375 agreements in the embodiment of the present invention
Schematic diagram;
Fig. 2 is the test device of the train grade ethernet device based on IEC61375 agreements in one embodiment of the invention
Structure diagram;
Fig. 3 is the test method of the train grade ethernet device based on IEC61375 agreements in another embodiment of the present invention
Flow diagram;
Fig. 4 is that the structure of the stability test that different number ETBN forms ETBN topological structure in the embodiment of the present invention is shown
It is intended to;
Fig. 5 is that TRDP process datas message defines schematic diagram in the embodiment of the present invention;
Fig. 6 is that TRDP message datas message defines schematic diagram in the embodiment of the present invention;
Fig. 7 is the test device of the train grade ethernet device based on IEC61375 agreements in another embodiment of the present invention
Structure diagram.
Specific embodiment
Understand to make the object, technical solutions and advantages of the present invention clearer, it is right with reference to embodiment and attached drawing
The present invention is described in further details.Here, the exemplary embodiment and its explanation of the present invention be for explaining the present invention, but simultaneously
It is not as a limitation of the invention.
The present invention is tested for IEC61375 series trains Ethernet protocol, extracts to test train ethernet device
Test parameter, design corresponding detection method.Develop train uniformity test equipment, verification equipment under test ETBN (Ethernet
Train Backbone Node) to train grade Topology discovery of Ethernet networks agreement as defined in IEC61375-2-5 (TTDP agreements,
Train Topology Discovery Data Protocol) and IEC61375-2-3 as defined in train real-time data communication association
View (TRDP agreements, Train Realtime Data Protocol) two important train ethernet communication protocols meet situation
With performance indicator requirement.Test designs ethernet test experimental facilities and method, from agreement and biography from train application scenarios
The uniformity of the angle measurement train ethernet device of defeated performance.
The purpose of the present invention is to be used in a new generation towards high-speed EMU Ethernet control signal transmission, design is tested
Means, method and associated test devices, existing ethernet test can not set the Ethernet for meeting train Ethernet transport protocol
Standby to be tested, the description integrated testability method of present system can be realized and train grade ethernet device ETBN is commented
Estimate and evaluate.
In order to achieve the above object, the technical solution adopted in the present invention is:
Train grade Ethernet protocol uniformity test based on the exploitation of IEC61375-2-5, IEC61375-2-3 consensus standard
Method, feature are:Based on igh-speed wire-rod production line technology, intercepted using analytical equipment progress Ethernet data is monitored, store and divide
Train grade Ethernet data is analysed, and key protocol Parameter analysis is carried out with the protocal analysis software of customized development, analyzes train
Transmission cycle feature, the format character of grade Ethernet data design interactive testing method, by test industrial personal computer according to protocol interface
Control instruction is sent, analyzes the correctness of the data content returned by being tested train grade ethernet device ETBN.
It describes in detail below to the testing scheme of the train grade ethernet device based on IEC61375 agreements.
Fig. 1 is the flow of the test method of the train grade ethernet device based on IEC61375 agreements in the embodiment of the present invention
Schematic diagram, as shown in Figure 1, this method comprises the following steps:
Step 101:Monitor the TTDP message datas to be measured of train grade ethernet device ETBN and TRDP message datas to be measured;
Step 102:TTDP message datas to be measured are analyzed, obtain the transmission cycle feature of TTDP message datas to be measured
And form content characteristic;TRDP message datas to be measured are analyzed, obtain the transmission cycle feature of TRDP message datas to be measured
And form content characteristic;
Step 103:According to the transmission cycle feature of TTDP message datas to be measured and form content characteristic, with TTDP messages
The standard transmission periodic characteristic of data and the comparative result of form content characteristic, obtain the test knot of the TTDP message datas of ETBN
Fruit;According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard transmission with TRDP message datas
The comparative result of periodic characteristic and form content characteristic obtains the test result of the TRDP message datas of ETBN.
When it is implemented, tested train grade ethernet device ETBN systems power-up starts, confirm that system is in initial launch
State, after test system (introducing to the test device of train grade ethernet device as detailed below) is ready, measurement is tested to be set
The transmitted data on network of standby (train grade ethernet device ETBN), i.e. monitor the TTDP to be measured of train grade ethernet device ETBN
Message data and TRDP message datas to be measured, the snoop procedure can include:Measured target data are filtered out, that is, are filtered out
The TTDP message datas of IEC61375 agreements and TRDP message datas, screening ground foundation can include:TTDP messages send purpose
MAC Address is ' 01-80-C2-00-00-0E ' H and ' 01-80-C2-00-00-10 ' H, TRDP message monitorings udp port 17224
With TCP port 17225;The cycle is carried out for the TTDP messages and TRDP messages for meeting IEC61375 agreements specified address and port
Behavioural analysis and message content analysis, that is, analyze transmission cycle feature and form content characteristic.
When it is implemented, above-mentioned transmission cycle feature also refers to cycle behavioural analysis, cycle behavioural analysis refers to root
According to train grade ethernet device ETBN to be measured agreement support situation, use high speed Ethernet data analysis equipment by train grade with
Too in network data deposit data cache, message is sorted using detecting system local zone time, detects and records equipment under test
The Ethernet protocol message of transmission.The same type message that previous moment is received with later moment in time can be calculated according to local zone time
Interval time, for judging to receive message periodic feature.
Periodical criterion:Cycle according to protocal analysis message is THelloAnd TTopo;Then analysis system is cut respectively
The interval time for taking message is tHelloAnd tTopo, multiple survey calculation average valueWith
Cycle behavior criterion isWherein Δ t
To measure allowable error scope, require to adjust according to actual test, general setting value is 1ms.
When it is implemented, above-mentioned format content feature also refers to message content analysis, message content analysis refers to
In the Ethernet data analytical equipment, inline operations system, and protocol contents analysis system is worked out in an operating system, it is used for
The meaning expressed by binary system message structure that real time parsing ether network packet is transmitted, including to the application number of plies inside message
According to parsing.
It defines standard message collection and is combined into x={ x1,x2,L,xN, xiFor a certain type standard message, and by αpIt represents in it
Portion's binary piece of information, measurement gained message collection are combined into y={ y1,y2,L,yN, yiThe correspondence x sent for equipment under testiReport
Text, βqRepresent its intrinsic BINARY position information.The correctness measurement of measured message should be calculated by formula below:
Wherein, p=0,1, L n-1, q=0,1, L n-1, xiAnd yiTo be all the coding of n,Represent exclusive or.
D is the measurement of message uniformity, illustrates the difference between tested message and standard message, numerical value reflects mistake
Number of bits by mistake.D=0, then it is assumed that tested message is consistent with standard message content.
Message content analysis criterion is d=0.
(1) first, the test of the TTDP message datas to be measured four interfaces of single ETBN fed back according to triggering command
It is introduced.
When it is implemented, the equipment for sending triggering command can be the high-performance industrial personal computer in left side as shown in Figure 2, also may be used
Be simulation private client (ECSC).
Train grade network control message is sent when it is implemented, being simulated using special-purpose software, is made with reference to IEC61375-2-3
With TRDP message structure design test cases, including test incoming message, anticipated output message and test environment.Analysis and Control report
The control effect of text is analyzed in above-mentioned cycle behavioural analysis and message content, carries out cycle uniformity judgement, content consistency is sentenced
It is disconnected, and judge that (" interbehavior " as shown in Figure 3, the interbehavior data can refer to this hair to interbehavior on this basis
The data fed back according to triggering command mentioned in bright embodiment) it is whether correct.
When it is implemented, support tested ETBN Ethernet interfaces wiring diagram (M12D-Code Female) such as the following table 1 institute
Show:
Table 1
It describes in detail below to the test of this four ports.
First, in one embodiment, the ETBN can include:Train grade control service ECSP interfaces;
The TTDP message datas to be measured of train grade ethernet device ETBN and TRDP message datas to be measured are monitored, can be wrapped
It includes:It monitors the TRDP that ECSP interfaces are fed back according to triggering command and controls message data;
TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature, can include:The TRDP control message datas that ECSP interfaces are fed back according to triggering command are analyzed, obtain basis
The TRDP control transmission cycle features of message data and form content characteristic of ECSP interfaces triggering command feedback;
According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard with TRDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN, including:Root
According to the TRDP control transmission cycle features of message data and form content characteristic of ECSP interfaces feedback, the TRDP with ECSP interfaces
The standard transmission periodic characteristic of message data and the comparative result of form content characteristic are controlled, determines ECSP interfaces to train grade net
The control effect of network.
When it is implemented, ECSP interfaces (train grade controls service interface) test:ECSP interfaces are used for train grade network
Control service.
Test purpose:ECSP interfaces are verified to train grade network-based control effect.
Test method:Private client (ECSC) behavior of simulation sends control signal.
ECSP interface testing message primary fields are as shown in table 2 below.
Table 2
Each field is set respectively, controls train grade network action, according to above-mentioned cycle behavioural analysis and message content point
Analysis is tested, and obtains the test result of the ECSP interfaces.
Second, in one embodiment, the ETBN can include:Train topological database TTDB interfaces;
The TTDP message datas to be measured of train grade ethernet device ETBN and TRDP message datas to be measured are monitored, can be wrapped
It includes:Monitor the TRDP message datas that TTDB interfaces are read according to triggering command;
TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature, can include:The TRDP message datas that TTDB interfaces are read according to triggering command are analyzed, obtain TTDB interfaces
The transmission cycle feature of TRDP message datas and form content characteristic read according to triggering command;
According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard with TRDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN, can wrap
It includes:The transmission cycle feature of TRDP message datas and form content characteristic read according to TTDB interfaces, reads with TTDB interfaces
The standard transmission periodic characteristic of TRDP message datas and the comparative result of form content characteristic determine that TTDB interfaces read train grade
The correctness of information.
When it is implemented, TTDB interfaces (train topological data bank interface) are tested:TTDB interfaces are used to read train series
It is believed that breath.
Test purpose:It is verified the correctness that TTDB interfaces read train grade information.
Test method:Pseudo-terminal sends TTDB requests and reads signal.
TTDB interface testing message primary fields are as shown in table 3 below.
Table 3
Each field is set respectively, controls train grade network action, according to above-mentioned cycle behavioural analysis and message content point
Analysis is tested, and obtains the test result of the TTDB interfaces.
3rd, in one embodiment, the ETBN can include:Train domain name resolution service DNS interfaces;
The TTDP message datas to be measured of train grade ethernet device ETBN and TRDP message datas to be measured are monitored, can be wrapped
It includes:Monitor the TRDP address message data that DNS interfaces are read according to triggering command;
TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature, can include:The TRDP address message data that DNS interfaces are read according to triggering command are analyzed, DNS is obtained and connects
The transmission cycle feature and content characteristic for the TRDP address message data that mouth is read according to triggering command;
According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard with TRDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN, can wrap
It includes:According to the transmission cycle feature and content characteristic of the TRDP address message data that DNS interfaces are read, with TRDP address message numbers
According to standard transmission periodic characteristic and form content characteristic comparative result, determine that DNS interfaces read train grade address information
Correctness.
When it is implemented, DNS service interface testing (train domain name mapping test):DNS interfaces are used to provide train grade net
Network address resolution service, train grade Ethernet automatically configure IP address with train marshalling list variation and send configuration result by DNS interfaces.
Test purpose:It is verified the correctness that DNS interfaces read train grade address information.
Test method:Pseudo-terminal sends DNS request and reads signal.
DNS interface testing message primary fields are as shown in table 4 below.
Table 4
Each field values are set respectively, train grade network action are controlled, according in above-mentioned cycle behavioural analysis and message
Hold analysis to be tested, obtain the test result of the DNS interfaces.
4th, in one embodiment, the ETBN can include:ETBN control interfaces;
The TTDP message datas to be measured of train grade ethernet device ETBN and TRDP message datas to be measured are monitored, including:Prison
The TRDP that ETBN control interfaces are fed back according to triggering command is listened to control message data;
TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature, can include:The TRDP control message datas that ETBN control interfaces are fed back according to triggering command are analyzed, are obtained
The TRDP that ETBN control interfaces are fed back according to triggering command controls the transmission cycle feature of message data and form content characteristic;
According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard with TRDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN, can wrap
It includes:The TRDP control transmission cycle features of message data and form content characteristic fed back according to ETBN control interfaces, with ETBN
The standard transmission periodic characteristic of control interface feedback TRDP control message datas and the comparative result of form content characteristic, determine
The control effect of ETBN control interfaces.
When it is implemented, ETBN control interfaces are tested:ETBN control interfaces be used for train grade ethernet device ETBN into
Row control, passes through mini transmission signal.
Test purpose:It is verified the control effect of ETBN control interfaces.
Test method:Pseudo-terminal sends ETBN control datas, observes ETBN control results.
ETBN control interface test packet primary fields are as shown in table 5 below.
Table 5
Each field is set respectively, controls train grade network action, according to above-mentioned cycle behavioural analysis and message content point
Analysis is tested, and obtains the test result of the DNS interfaces.
(2) secondly, topological structure stability test is formed to train grade ethernet device ETBN to be introduced (to TTDP
Agreement stability test):
When it is implemented, the TTDP agreements with reference to as defined in IEC61375-2-5, work out TTDP test packets, main analog is not
The influence factors such as same number of nodes, general traffics influence and different sending cycles, form train grade ethernet device ETBN
The effect of topology finds the design defect of train grade ethernet device ETBN.
TTDP message structures test primary fields as shown in the following table 6 and table 7.
Table 6
Table 7
Main analog difference number of nodes, general traffics are influenced below and different sending cycle these three influence because
Element, the test that topology is formed to train grade ethernet device ETBN are introduced.
First, in one embodiment, monitor the TTDP message datas to be measured of train grade ethernet device ETBN and to be measured
TRDP message datas can include:Monitor the TTDP message datas of different number ETBN;
TTDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TTDP message datas to be measured
Hold feature, can include:The TTDP message datas of different number ETBN are analyzed, obtain the TTDP reports of different number ETBN
The transmission cycle feature of literary data and form content characteristic;
According to the transmission cycle feature of TTDP message datas to be measured and form content characteristic, the standard with TTDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TTDP message datas of ETBN, can wrap
It includes:According to the transmission cycle feature of the TTDP message datas of different number ETBN and form content characteristic, with different number ETBN
The standard transmission periodic characteristic of TTDP message datas and the comparative result of form content characteristic, obtain ETBN pairs of different number
ETBN forms the stability test result of topological structure.
When it is implemented, as shown in figure 4, simulation train grade multinode situation.In Fig. 4, message simulation interactive device can
To be the train grade ethernet device ETBN mentioned in the embodiment of the present invention, the train grade network switching equipment can also be train grade
Ethernet device ETBN.In test laboratory, when simulating train grade multinode situation, multiple messages in Fig. 4 can be used to simulate
Interactive device as test equipment is assisted, is tested in transmission cycle feature and the form of train grade ethernet device ETBN messages
Hold feature.In addition, the train grade network switching equipment in Fig. 2 can also be train grade ethernet device ETBN.Message mould in Fig. 4
Intending interactive device can be connected with the train grade network switching equipment on right side in Fig. 2.
When it is implemented, by 2,4,8,16,30 train grade ethernet device ETBN's of analog machine transmission
TTDP message informations observe the train grade that analog machine transmission whether is added in the TTDP Topology messages of equipment under test
Network topological information.
Second, in one embodiment, monitor the TTDP message datas to be measured of train grade ethernet device ETBN and to be measured
TRDP message datas can include:Monitor the TTDP message datas of general traffics;
TTDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TTDP message datas to be measured
Hold feature, can include:The TTDP message datas of general traffics are analyzed, obtain the TTDP messages that regular traffic flows down
The transmission cycle feature of data and form content characteristic;
According to the transmission cycle feature of TTDP message datas to be measured and form content characteristic, the standard with TTDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TTDP message datas of ETBN, can wrap
It includes:According to the transmission cycle feature of the TTDP message datas of general traffics and form content characteristic, with general traffics
The standard transmission periodic characteristic of TTDP message datas and the comparative result of form content characteristic, obtain general traffics to ETBN shapes
Into the stability test result of topological structure.
When it is implemented, constructing normal big flow Business Stream, observation train grade ethernet device ETBN forms the steady of topology
It is qualitative.Such as:The Ethernet analog service stream for constructing 90Mbps or so carries out data turn by train grade ethernet device ETBN
Hair, at the same intercept TTDP messages as a result, observation message in contained tested train grade ethernet device ETBN topology information whether
Correctly, whether communication cycle is correct.
3rd, in one embodiment, monitor the TTDP message datas to be measured of train grade ethernet device ETBN and to be measured
TRDP message datas can include:Monitor the TTDP message datas of different sending cycles;
TTDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TTDP message datas to be measured
Hold feature, can include:The TTDP message datas of different sending cycles are analyzed, obtain the TTDP reports of different sending cycles
The transmission cycle feature of literary data and form content characteristic;
According to the transmission cycle feature of TTDP message datas to be measured and form content characteristic, the standard with TTDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TTDP message datas of ETBN, can wrap
It includes:According to the transmission cycle feature of the TTDP message datas of different sending cycles and form content characteristic, from different sending cycles
The standard transmission periodic characteristic of TTDP message datas and the comparative result of form content characteristic, obtain different sending cycles pair
ETBN forms the stability test result of topological structure.
When it is implemented, the sending cycle precision of adjustment train grade topological message, observation train grade ethernet device ETBN
Form the stability of topology.Such as:If the sending cycle of normal condition Train level data message isWherein Δ t is measurement allowable error scope, is simulated
Equipment sends precision as 2 Δ t, 4 Δ t, the improper message of 8 Δ t, and observation train grade ethernet device ETBN forms topology
Stability, ideally topology, which forms result, should keep stable.
(3) again, the test to TRDP message datas is introduced.
When it is implemented, TRDP customizes message uniformity test:IEC61375-2-3 agreements define TRDP messages
Structure, equipment under test can fill in itself customization data field according to the structure of TRDP messages.The definition of TRDP process datas message can
With as shown in Figure 5.The definition of TRDP message datas message is as shown in Figure 6.
When it is implemented, arrangement test is illustrated according to User Defined message content, using above-mentioned according to the above-mentioned cycle
Behavioural analysis and message content analysis, can examine communication cycle, send message whether meet it is expected, receive message whether meet it is pre-
Whether phase, User Defined content are topological more than legitimacy, the train grade of message length limitation, source address and destination address field (DAF)
The correctness of check value with controlling topological check value etc..
Two aspects that the test of TRDP message datas includes are tested below.
First, TRDP train grade organize into groups control information uniformity test.
In one embodiment, the TTDP message datas to be measured of train grade ethernet device ETBN and TRDP to be measured are monitored
Message data can include:Monitor TRDP trains grade marshalling control message data;
TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature, can include:Control message data is organized into groups to TRDP trains grade to analyze, and obtains the marshalling control of TRDP trains grade
The transmission cycle feature of message data and form content characteristic;
According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard with TRDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN, can wrap
It includes:The control transmission cycle feature of message data and form content characteristic are organized into groups according to TRDP trains grade, compiled with TRDP trains grade
The standard transmission periodic characteristic of group control message data and the comparative result of form content characteristic, obtain the marshalling control of TRDP trains grade
The test result of information processed.
When it is implemented, the train grade of test equipment crawl is controlled message, carry out automated analysis emphasis and check field
Meet consensus standard content, progress is associated with the test of the control message of above-mentioned ECSP interfaces and ETBN control interfaces, when above-mentioned
After control field numerical value is set in the testing procedure of ECSP interfaces and ETBN control interfaces, the update of train marshalling list information is checked,
The test process of above-mentioned ECSP interfaces and ETBN control interfaces after respective field setting, answers correct response in TRDP train grades
It organizes into groups in related information.Train grade control message tests primary fields as shown in the following table 8.
Table 8
The marshalling of second, TRDP train grade starts information exchange uniformity test.
In one embodiment, the TTDP message datas to be measured of train grade ethernet device ETBN and TRDP to be measured reports are monitored
Literary data can include:It monitors the marshalling of TRDP trains grade and starts message data;
TRDP message datas to be measured are analyzed, are obtained in transmission cycle feature and the form of TRDP message datas to be measured
Hold feature, can include:Startup message data is organized into groups to TRDP trains grade to analyze, and is obtained the marshalling of TRDP trains grade and is started
The transmission cycle feature of message data and form content characteristic;
According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, the standard with TRDP message datas
The comparative result of transmission cycle feature and form content characteristic obtains the test result of the TRDP message datas of ETBN, can wrap
It includes:It is organized into groups according to TRDP trains grade and starts the transmission cycle feature of message data and form content characteristic, compiled with TRDP trains grade
Group starts the standard transmission periodic characteristic of message data and the comparative result of form content characteristic, obtains the marshalling of TRDP trains grade and opens
The test result of dynamic information.
When it is implemented, tested instrument is after the power is turned on, TTDP processes are carried out, train application initialization rank is entered after process
Section is, it is necessary to which interaction is carried on the train marshalling list information in TRDP message contents, and by grouping information request message, (CSTINFO please
Ask) and grouping information notice (CSTINFO notices) message composition.
A) behavior is verified:Tested train grade ethernet device ETBN after the power is turned on, should first send CSTINFO request datas and oneself
Body CSTIONFO is notified, synchronous to receive the CSTINFO notices for coming from other ETBN, ultimately forms the topology letter in whole network
Breath.
B) content verification:Grouping information request message (CSTINFO requests) and grouping information notice (CSTINFO notices)
Message repeats to be verified in the testing procedure of above-mentioned ECSP interfaces and ETBN control interfaces.Grouping information request message
(CSTINFO requests) test primary fields are as shown in table 9 below.
Table 9
Based on same inventive concept, additionally provided in the embodiment of the present invention it is a kind of based on the train grade of IEC61375 agreements with
The too test device of net equipment, such as the following examples.Due to the survey of the train grade ethernet device based on IEC61375 agreements
It is similar to the test method of the train grade ethernet device based on IEC61375 agreements that the principle solved the problems, such as is put in trial assembly, therefore base
The row based on IEC61375 agreements are may be referred in the implementation of the test device of the train grade ethernet device of IEC61375 agreements
The implementation of the test method of vehicle grade ethernet device, overlaps will not be repeated.It is used below, term " unit " or
" module " can realize the combination of the software and/or hardware of predetermined function.Although the described device of following embodiment is preferably
It is realized with software, but the realization of the combination of hardware or software and hardware is also what may and be contemplated.
Fig. 7 is the test device of the train grade ethernet device based on IEC61375 agreements in another embodiment of the present invention
Structure diagram, as shown in fig. 7, the device includes:
Monitoring unit 02, for monitoring the TTDP message datas to be measured of train grade ethernet device ETBN and TRDP to be measured
Message data;
Analytic unit 04 for analyzing TTDP message datas to be measured, obtains the transmission of TTDP message datas to be measured
Periodic characteristic and form content characteristic;TRDP message datas to be measured are analyzed, obtain the transmission of TRDP message datas to be measured
Periodic characteristic and form content characteristic;
Test cell 06, for the transmission cycle feature and form content characteristic according to TTDP message datas to be measured, with
The standard transmission periodic characteristic of TTDP message datas and the comparative result of form content characteristic, obtain the TTDP message datas of ETBN
Test result;According to the transmission cycle feature of TRDP message datas to be measured and form content characteristic, with TRDP message datas
The comparative result of standard transmission periodic characteristic and form content characteristic obtains the test result of the TRDP message datas of ETBN.
When it is implemented, monitoring unit 02 can be the monitoring analytical equipment in Fig. 2, analytic unit 04 and test cell 06
It can be the high-performance industrial personal computer in Fig. 2 and Fig. 4.
In one embodiment, the ETBN can include:Train grade control service ECSP interfaces;
The monitoring unit specifically can be used for:It monitors the TRDP that ECSP interfaces are fed back according to triggering command and controls message number
According to;
The analytic unit specifically can be used for:The TRDP fed back to ECSP interfaces according to triggering command controls message data
It is analyzed, is obtained in transmission cycle feature and the form of the TRDP control message datas fed back according to ECSP interfaces triggering command
Hold feature;
The test cell specifically can be used for:According to the transmission cycle for the TRDP control message datas that ECSP interfaces are fed back
Feature and form content characteristic, it is special with the standard transmission periodic characteristic and format content of the TRDP control message datas of ECSP interfaces
The comparative result of sign determines ECSP interfaces to train grade network-based control effect.
In one embodiment, the ETBN can include:Train topological database TTDB interfaces;
The monitoring unit specifically can be used for:Monitor the TRDP message datas that TTDB interfaces are read according to triggering command;
The analytic unit specifically can be used for:The TRDP message datas read to TTDB interfaces according to triggering command carry out
Analysis obtains the transmission cycle feature of TRDP message datas and the form content characteristic that TTDB interfaces are read according to triggering command;
The test cell specifically can be used for:According to the transmission cycle feature for the TRDP message datas that TTDB interfaces are read
And form content characteristic, the standard transmission periodic characteristic of TRDP message datas and the ratio of form content characteristic are read with TTDB interfaces
Compared with as a result, determining that TTDB interfaces read the correctness of train grade information.
In one embodiment, the ETBN can include:Train domain name resolution service DNS interfaces;
The monitoring unit specifically can be used for:Monitor the TRDP address message numbers that DNS interfaces are read according to triggering command
According to;
The analytic unit specifically can be used for:The TRDP address message data read to DNS interfaces according to triggering command
It is analyzed, transmission cycle feature and the content for obtaining the TRDP address message data that DNS interfaces are read according to triggering command are special
Sign;
The test cell specifically can be used for:According to the transmission cycle for the TRDP address message data that DNS interfaces are read
Feature and content characteristic, and the standard transmission periodic characteristic of TRDP address message data and the comparative result of form content characteristic,
Determine that DNS interfaces read the correctness of train grade address information.
In one embodiment, the ETBN can include:ETBN control interfaces;
The monitoring unit specifically can be used for:The TRDP that ETBN control interfaces are fed back according to triggering command is monitored to control
Message data;
The analytic unit specifically can be used for:The TRDP fed back to ETBN control interfaces according to triggering command controls message
Data are analyzed, and obtain the transmission cycle feature for the TRDP control message datas that ETBN control interfaces are fed back according to triggering command
And form content characteristic;
The test cell specifically can be used for:According to the transmission for the TRDP control message datas that ETBN control interfaces are fed back
Periodic characteristic and form content characteristic, with ETBN control interfaces feedback TRDP control message data standard transmission periodic characteristic and
The comparative result of format content feature determines the control effect of ETBN control interfaces.
In one embodiment, the monitoring unit specifically can be used for:Monitor the TTDP message numbers of different number ETBN
According to;
The analytic unit specifically can be used for:The TTDP message datas of different number ETBN are analyzed, are obtained not
With the transmission cycle feature of the TTDP message datas of quantity ETBN and form content characteristic;
The test cell specifically can be used for:According to the transmission cycle feature of the TTDP message datas of different number ETBN
And form content characteristic, with the standard transmission periodic characteristics of the TTDP message datas of different number ETBN and form content characteristic
Comparative result obtains the stability test result that different number ETBN forms ETBN topological structure.
In one embodiment, the monitoring unit specifically can be used for:Monitor the TTDP message datas of general traffics;
The analytic unit is specifically used for:The TTDP message datas of general traffics are analyzed, obtain regular traffic
The transmission cycle feature of the TTDP message datas flowed down and form content characteristic;
The test cell is specifically used for:According to the transmission cycle feature and form of the TTDP message datas of general traffics
Content characteristic, with the standard transmission periodic characteristic of the TTDP message datas of general traffics and the comparison knot of form content characteristic
Fruit obtains the stability test result that general traffics form ETBN topological structure.
In one embodiment, the monitoring unit specifically can be used for:Monitor the TTDP message numbers of different sending cycles
According to;
The analytic unit is specifically used for:The TTDP message datas of different sending cycles are analyzed, obtain different hairs
Send the transmission cycle feature of the TTDP message datas in cycle and form content characteristic;
The test cell is specifically used for:It is passed according to the transmission cycle feature of the TTDP message datas of different sending cycles
Formula content characteristic, the comparison from the standard transmission periodic characteristic and form content characteristic of the TTDP message datas of different sending cycles
As a result, obtain the stability test result that different sending cycles form ETBN topological structure.
In one embodiment, the monitoring unit specifically can be used for:Monitor TRDP trains grade marshalling control message number
According to;
The analytic unit is specifically used for:Control message data is organized into groups to TRDP trains grade to analyze, and obtains TRDP row
The vehicle grade marshalling control transmission cycle feature of message data and form content characteristic;
The test cell is specifically used for:The transmission cycle feature that control message data is organized into groups according to TRDP trains grade is passed
Formula content characteristic organizes into groups the comparison of the standard transmission periodic characteristic and form content characteristic of control message data with TRDP trains grade
As a result, obtain the test result of TRDP trains grade marshalling control information.
In one embodiment, the monitoring unit specifically can be used for:It monitors the marshalling of TRDP trains grade and starts message number
According to;
The analytic unit specifically can be used for:Startup message data is organized into groups to TRDP trains grade to analyze, and is obtained
The marshalling of TRDP trains grade starts the transmission cycle feature of message data and form content characteristic;
The test cell specifically can be used for:The transmission cycle feature for starting message data is organized into groups according to TRDP trains grade
And form content characteristic, it is organized into groups with TRDP trains grades and starts the standard transmission periodic characteristic of message data and form content characteristic
Comparative result obtains the test result that the marshalling of TRDP trains grade starts information.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and storage on a memory
And the computer program that can be run on a processor, the processor realize above-mentioned be based on when performing the computer program
The test method of the train grade ethernet device of IEC61375 agreements.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is the computer program for the test method for performing the above-mentioned train grade ethernet device based on IEC61375 agreements.
The embodiment of the present invention mainly realizes:
1) train grade Ethernet protocol data screening standard is devised, magnanimity train grade Ethernet data is screened,
It filters out and meets train level data protocol massages as defined in IEC61375, screening flank speed reaches 100Mbps, in data transmission
In the case that load is big, effective target test packet can be recorded, screened and reset.
2) analysis system structure separated with monitoring analytical equipment/message simulation interactive device, realizes control and operation
The separation of layer, improves the collecting efficiency and simulation precision of system, analysis system terminal (high-performance server) can be according to survey
Examination needs, with test parameter is flexibly worked out, to customize different test targets and method, realize test automation, scripting.
3) guide product research and development test is tested with productivity, and testing procedure and test parameter are marked with actual IEC61375
It is designed on the basis of standard, different from general conformance test method, using the behavior for simulating true train grade ethernet device ETBN
Data acquisition and evaluation are carried out, close to true actual working environment, effectively finds that the design defect of product and standard are applicable in mistake.
4) design standard test method, extracting standardized test environment, test parameter, testing procedure surveys uniformity
Examination can repeat, and complete and form testing standard.
5) train grade Ethernet protocol field and the realization effect of operation behavior conformance test method are not limited to find
The consistency problem of system under test (SUT) also has the ability for finding specific error field reason.
6) IEC61375-2-5 and the regulation of IEC61375-2-3 agreements only define the design rule of frame, actual
Equipment under test is potentially based on this exploitation customization behavior, this conformance test method can equally promote test based on IEC61375-
The unspecified customization agreement of 2-5 and IEC61375-2-3 institutes.
The advantageous effects of technical solution that the present invention implements to provide are:
The protocol fields of train grade ethernet device ETBN and the uniformity test of operation behavior, at home and abroad still belong to blank
Field, existing conformance test method define only device external performance, can not complete internal agreement field consistency
Test, and train grade transmission information and be not limited to content as defined in IEC61375-2-5, transmitted by IEC61375-2-3
Train marshalling list information also need verification accordance.The present invention is combined based on IEC61375-2-5, IEC61375-2-3 Protocol Standard
The train grade Ethernet protocol field of quasi- exploitation and the conformance test method of operation behavior define test environment, test is set
Standby function, testing procedure and test parameter design.The scope of uniformity test covers functional test, testing partial performances and steady
Qualitative test, designing scheme combine the requirement of train application scenarios, to the function and performance of train grade ethernet device ETBN
Realize assessment.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step can be with
It is realized with general computing device, they can concentrate on single computing device or be distributed in multiple computing devices
On the network formed, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it
Store and performed in the storage device by computing device, and in some cases, can be held with the order being different from herein
They are either fabricated to each integrated circuit modules or will be multiple in them by the shown or described step of row respectively
Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present invention be not restricted to it is any specific hard
Part and software combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this field
For art personnel, the embodiment of the present invention can have various modifications and variations.Within the spirit and principles of the invention, made
Any modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.