An interconnection and interworking test system and method based on an ETB network

By designing an interoperability testing system for ETB networks, which automates the simulation of operating conditions and compares results, the system solves the problem of cumbersome and time-consuming ETB network testing processes, and achieves efficient and accurate interoperability testing.

CN115643185BActive Publication Date: 2025-11-07CHINA ACADEMY OF RAILWAY SCI CORP LTD +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211262892.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-14
Publication Date
2025-11-07
Estimated Expiration
2042-10-14

AI Technical Summary

Technical Problem

The existing ETB network protocol interoperability testing process is cumbersome, time-consuming, error-prone, and difficult to cover all abnormal operating conditions. It also requires a lot of manual operation and cannot guarantee that different ETBN devices can achieve consistent interoperability under any operating conditions.

Method used

Design an interoperability testing system based on ETB network, including ETBN device set, ETB-side data flow exchange control system, power control system, host computer and ECN-side data flow exchange control system. By automatically simulating various working conditions, compare the actual results of ETBN devices with the expected results to achieve automated testing and verification.

Benefits of technology

It greatly reduces testing time and manpower costs, ensures the comprehensiveness and reliability of testing, simplifies the operation process, and improves the accuracy and convenience of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115643185B_ABST
    Figure CN115643185B_ABST
Patent Text Reader

Abstract

The application provides an interconnection and interworking test system and method based on an ETB network, which comprises an ETBN device set, an ETB side data stream exchange control system, a power supply control system, an upper computer and an ECN side data stream exchange control system. The ECN side data stream exchange control system controls the upper computer and the ETBN device to interact information, distributes a plurality of marshalling TRDP data simulated by the upper computer to corresponding ETBN devices in the ETBN device set, and forwards an Ethernet instruction of the topology structure of the ETBN device set sent by the upper computer to the ETB side data stream exchange control system. The upper computer sends an instruction for setting the topology structure of the ETBN device set to the ETB side data stream exchange control system according to a corresponding IP address, sends a test excitation to each ETBN device, calculates a test expected result, compares the test expected result with an actual result fed back by the ETBN device, and obtains a test result.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Ethernet communication of rail transit vehicles, and particularly relates to an interconnection and interworking test system and method based on an ETB network. BACKGROUND

[0002] A train communication network, as a core component of a distributed train control and diagnosis system, can network and communicate a plurality of computer-controlled components on a train, achieve information exchange, and thus achieve the purpose of consistent control and diagnosis and resource sharing.

[0003] Currently, a train communication network begins to use a train backbone network (ETB) and an Ethernet marshalling network (ECN) to replace an existing twisted train bus (WTB) and a multifunction vehicle bus (MVB) network bus, so as to realize train-level and vehicle-level data communication.

[0004] Train reconnection is a key technology for realizing flexible carrying capacity, and the key technical support for realizing train marshalling reconnection on an ETB type train backbone network is that ETBN devices of different trains can realize interconnection and interworking. Generally, hardware configurations and software architectures of ETBN devices of different train host factories are not the same, although software implementation of ETBN devices with different hardware configurations and software architectures is based on IEC61375 protocol as a design basis, but IEC61375 protocol involves many functions and has high complexity, and thus without comprehensive testing, it cannot be ensured that all ETBN devices can reach an agreement under any working condition.

[0005] In order to solve the above problems, the traditional ETB network protocol interconnection and interworking test usually needs to invest more test personnel, and requires full-time manual operation (including manual wiring, manual line changing, manual power-off and power-on, and manual checking of internal states of ETBN devices and artificial confirmation of whether the results are correct, etc.) according to different test item points. The whole process is very complicated, time-consuming and prone to errors, and it is also difficult to cover all abnormal working conditions. SUMMARY

[0006] In order to solve at least one of the above problems, one purpose of the present application is to provide an interconnection and interworking test system based on an ETB network, which compares actual results after device testing of an ETBN device set with expected results under automatic simulation of various working conditions, and then tests and verifies the interconnection and interworking function of different ETBN devices. Another purpose of the present application is to provide an interconnection and interworking test method based on an ETB network.

[0007] In order to achieve the above object, the application discloses an interconnection test system based on an ETB network, comprising: an ETBN device set, an ETB-side data stream exchange control system, a power control system, an upper computer and an ECN-side data stream exchange control system.

[0008] The ETBN device set comprises a plurality of ETBN devices, each of which is connected to the ETB-side data stream exchange control system, the ECN-side data stream exchange control system and the power control system.

[0009] The ETB-side data stream exchange control system controls the change of the topology of the ETBN device set through an Ethernet protocol.

[0010] The power control system controls the power-on and power-off of the ETBN devices by changing the state of its own relay.

[0011] The ECN-side data stream exchange control system controls the information interaction between the upper computer and the ETBN devices, distributes a plurality of marshaled TRDP data simulated by the upper computer to the corresponding ETBN devices, and forwards the Ethernet instructions of the topology of the ETBN device set sent by the upper computer to the ETB-side data stream exchange control system.

[0012] The upper computer sends instructions for setting the topology of the ETBN device set to the ETB-side data stream exchange control system according to the corresponding IP address, sends test stimuli to each ETBN device, calculates test expected results, compares the test expected results with the actual results fed back by the ETBN devices, and obtains test results.

[0013] Further, the change of the topology of the ETBN device set comprises one or a combination of the following:

[0014] Any one or more devices in the ETBN device set are bypassed.

[0015] One of the AB data between any two adjacent ETBN devices is blocked and connected.

[0016] The physical connection order of the ETBN devices is changed.

[0017] Further, the power control system is specifically used for controlling the opening and closing of the relay contacts of the ETBN devices through Ethernet instructions, realizing the power-off and power-on of the ETBN devices.

[0018] Further, each of the ETBN devices is tested according to a unified test interface protocol; the test interface protocol includes but is not limited to a control method set and a state acquisition method set to realize control and acquisition of the ETBN device state.

[0019] Further, the control method set includes:

[0020] controlling connection / disconnection of a specified ETB port of the ETBN device;

[0021] controlling whether bypass of the ETBN device is enabled;

[0022] setting a universally unique identifier of the ETBN device;

[0023] setting an occupancy request and an occupancy direction of the ETBN device.

[0024] Further, the state acquisition method set includes:

[0025] acquiring a software version of the ETBN device;

[0026] acquiring a connection / disconnection state of an ETB port of the ETBN device;

[0027] acquiring a bypass enable state of the ETBN device;

[0028] acquiring a protocol running state of the ETBN device.

[0029] To achieve the above object, one aspect of the present application discloses an interconnection and interworking test method based on an ETB network, applied to the interconnection and interworking test system, and the interconnection and interworking test method includes:

[0030] sending a topology structure instruction to the ETB side data stream exchange control system according to a corresponding IP address, so that the ETB side data stream exchange control system sets a topology structure of the ETBN device set;

[0031] selecting a test case and calculating a test expected result;

[0032] comparing the test expected result with an actual result fed back by the ETBN device to obtain a test result.

[0033] Further, the test case includes: IEC61375-2-5 protocol function test, IEC61375-2-3 protocol function test and TRDP communication protocol function test.

[0034] Further, the IEC61375-2-5 protocol function test includes:

[0035] Test the correctness of all non-faulty ETBN device TTDP protocol calculation in the presence of any one or more faulty ETBN device nodes;

[0036] Test the correctness of all ETBN device TTDP protocol calculation in the presence of ETB line random faults;

[0037] Test the correctness of source address conversion and destination address conversion of the three-layer switching function of the ETBN device;

[0038] Test the correctness of the bypass function fast switching function of the ETBN device;

[0039] Test the correctness of the master-slave switching function of the ETBN device.

[0040] Further, the test of the IEC61375-2-3 protocol function includes:

[0041] Test the correctness of all non-faulty ETBN device TTDB protocol in the presence of any one or more faulty ETBN device nodes;

[0042] Test the correctness of all ETBN device TTDB protocol calculation in the presence of ETB line random faults;

[0043] Test the correctness of the ETBN device occupation and end change function;

[0044] Further, the test of the TRDP communication protocol function includes:

[0045] Test the correctness of the ETB to ECN and ECN to ETB TRDP protocol conversion of all ETBN devices in single column working condition;

[0046] Test the correctness of the ETB to ECN and ECN to ETB TRDP protocol conversion of all ETBN devices in two-column reconnection working condition;

[0047] Test the correctness of the ETB to ECN and ECN to ETB TRDP protocol conversion of all ETBN devices in the presence of any one or more faulty groups;

[0048] Test the correctness of the ETB to ECN and ECN to ETB TRDP protocol conversion of all ETBN devices after the completion of reconnection and decoupling operation;

[0049] Test the correctness of the application initial running function.

[0050] The ETB network-based interconnection and interworking test system and method provided by the present application can greatly reduce the time cost and labor cost of testing, while ensuring the comprehensiveness and reliability of the test. Attached Figure Description

[0051] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 This invention provides a detailed structural diagram of an embodiment of the ETB interoperability automatic testing system.

[0053] Figure 2 This illustrates the physical connection between an ETBN device and an ETB-side data stream exchange control system according to an embodiment of this application;

[0054] Figure 3 This application illustrates an embodiment of an ETBN device with an initial connection topology of XXXXYYYY MII connection relationship configuration.

[0055] Figure 4 This document illustrates a flowchart of an interoperability test based on an ETB network according to an embodiment of this application.

[0056] Figure 5 This document illustrates a robustness testing flowchart for the TTDP protocol according to an embodiment of this application.

[0057] Figure 6 This diagram illustrates a fault node operating condition according to an embodiment of this application.

[0058] Figure 7 This application shows a flowchart illustrating the robustness testing process of the TTDB protocol according to an embodiment of the present application.

[0059] Figure 8 This invention illustrates a flowchart of a test procedure for the address translation function of a Layer 3 switch according to an embodiment of the present application.

[0060] Figure 9 This diagram illustrates the topology of an ETBN device set according to an embodiment of this application.

[0061] Figure 10 This illustration shows a TRDP data stream transmission direction diagram according to an embodiment of this application. Detailed Implementation

[0062] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all the other embodiments obtained by those of ordinary skill in the art without creative effort should fall into the scope of the present application.

[0063] According to an aspect of the present application, the embodiment discloses an interconnection and interworking test system based on ETB network. As shown in the figure, Figure 1 The interconnection and interworking test system based on ETB network includes an ETBN device set 3, an ETB side data stream exchange control system 5, a power supply control system 4, an upper computer 1 and an ECN side data stream exchange control system 2. The ETBN device set 3 includes a plurality of ETBN devices.

[0064] The ETBN device is the tested object. The present application tests the execution of IEC protocol and TRDP protocol, and then verifies whether all the ETBN devices participating in the test can realize interconnection and interworking.

[0065] The ETBN device can be divided into a test device and a tested device. The basis of realizing the interconnection and interworking of ETB network is to ensure that the ETBN device participating in networking meets the requirements of IEC protocol and TRDP protocol. The test device has been proved by relevant tests that the ETB network composed of the test device can realize the interconnection and interworking function. The tested device has not been tested based on the interconnection and interworking of ETB network, so it cannot be determined whether the tested device meets the requirements of IEC protocol and TRDP protocol. In the embodiment, if the interconnection and interworking test based on ETB network is passed, it is proved that the ETB network composed of the ETBN device of the embodiment can realize the interconnection and interworking function, and then it is proved that the tested device meets the requirements of IEC protocol and TRDP protocol. On the contrary, if any test point is not passed, it is proved that the ETB network composed of the ETBN device of the embodiment cannot realize the interconnection and interworking function, and then it is proved that the tested device does not meet the requirements of IEC protocol and TRDP protocol.

[0066] In the embodiment, it is assumed that the test device is numbered X and the tested device is numbered Y (the numbers X and Y are only used to distinguish the two devices, and are not used to limit). As shown in the figure, Figure 1 The ETBN device is connected with the power supply control system 4, the ETB side data stream exchange control system 5 and the ECN side data stream exchange control system 2, and the ETBN devices are connected with each other to form an ETB network. Due to the difference in manufacturing process of different ETBN devices, the ETBN devices in the ETB network may have different software architecture and hardware configuration. As shown in the figure, Figure 1As shown, the dashed box 6 is a companion device, and the dashed box 7 is a device under test, and the software architecture and hardware configuration of the two are different. There are many cases of different software architecture and hardware configuration, taking the initialization time as an example. The initialization time of different ETBN devices is different due to the difference in hardware. The IEC protocol of the ETB network has extremely high complexity, so after the ETB network is built, the interconnection and intercommunication of the ETB network need to be tested to avoid the difference in characteristics between the ETBN devices, which causes the ETB network to be unable to communicate in real time, so that the IEC protocol function and the TRDP protocol function between the ETBN devices cannot be realized, and finally the phenomenon of the ETB network being unable to interconnect and intercommunicate occurs.

[0067] The ETB side data stream exchange control system 5 is used to control the topology change of the ETBN device set 3 through the Ethernet protocol. The host computer 1 sends a restAPI instruction to the ETB side data stream exchange control system 5 to set the connection topology of the ETBN device set 3. After receiving the restAPI instruction, the ETB side data stream exchange control system 5 adjusts the topology structure of the ETBN device set 3 according to the instruction.

[0068] Specifically, after receiving the restAPI instruction, the ETB side data stream exchange control system 5 configures the isolation relationship of all the ports of the ETB to form the corresponding ETB topology structure.

[0069] The power control system 4 is used to control the power-on and power-off of each ETBN device by controlling the state of its own relay.

[0070] Specifically, the power control system 4 is connected to each ETBN device. The ECN side data stream exchange control system 2 sends an Ethernet instruction to the power control system 4 to control the power-on and power-off state of the ETBN device. After receiving the Ethernet instruction, the power control system 4 controls the relay contact of its own single-chip microcomputer to adjust the power-on and power-off of the specific ETBN device, thereby simulating different working conditions.

[0071] One of the functions of the ECN side data stream exchange control system 2 is to control the information interaction between the host computer 1 and the ETBN device, and to transfer the restAPI instruction to the ETB side data stream exchange control system 5. Therefore, the ECN side data stream exchange control system 2 can serve as a medium for communication between the host computer 1 and other devices.

[0072] Specifically, the host computer 1 generates multiple grouping TRDP data streams through a single network port, and the ECN side data stream exchange control system 2 can distribute the TRDP data stream to different ETBN devices through VLAN. At the same time, the ECN side data stream exchange control system 2 can also receive the TRDP data stream sent by different ETBN devices and transmit it to the host computer 1.

[0073] In addition, the host computer 1 also needs to pass through the ECN side data stream exchange control system 2 when controlling the state of the ETBN device and obtaining the state information of the ETBN device. The host computer 1 realizes the acquisition and control of the ETBN device state by using an interface protocol, which includes a control method set and a state acquisition set. In actual operation, the acquisition of the ETBN device state is realized by using a state acquisition restAPI instruction, and the control of the ETBN device state is realized by using a control restAPI instruction. After receiving the state acquisition restAPI instruction sent by the host computer 1, the ECN side data stream exchange control system 2 obtains the state of the ETBN device through the debugging interface. After receiving the control restAPI instruction sent by the host computer 1 to 2, the ECN side data stream exchange control system 2 controls the state of the ETBN device through the debugging interface. In addition, the host computer 1 also sends a restAPI instruction for setting the connection topology of the ETBN device set 3 to the ECN side data stream exchange control system 2, which is forwarded to the ETB side data stream exchange control system 5 through the ECN side data stream exchange control system 2. In addition, the host computer can also send a command to control the power-on or power-off state of the ETBN device to the ECN side data stream exchange control system 2, and the ECN side data stream exchange control system 2 forwards the command to the power supply control system 4 to realize the power-on and power-off of the ETBN device.

[0074] In this application, the host computer 1 can send a restAPI instruction for setting the connection topology of the ETBN device set 3 to the ETB side data stream exchange control system 5 according to the corresponding IP address, so that the ETB side data stream exchange control system 5 configures the isolation relationship of all the ports of the ETB according to the instruction, and forms the corresponding ETB topology structure. The host computer 1 is also used to send a test excitation to the ETBN device set 3 topology to start the interconnection and interworking test, then calculate the test expected result under each test excitation, and compare the test expected result with the actual result fed back by the ETBN device set to obtain the test result.

[0075] Specifically, before sending the test excitation, the tester needs to select the test case on the host computer 1. The test case includes the test of IEC61375-2-5 protocol function, the test of IEC61375-2-3 protocol function and the test of TRDP communication protocol function. It should be pointed out here that the essence of the interconnection and interworking test based on the ETB network is to verify whether the IEC protocol function is executed correctly and whether the TRDP protocol is run correctly.

[0076] The ETB side data stream exchange control system 5 can configure the isolation relationship of all the ports of the ETB according to the restAPI instruction for setting the connection topology of the ETBN device set 3, form a corresponding ETB topology structure, and avoid manual line switching by the tester. The host computer 1 can interact with the ETBN device through the ECN side data stream exchange control system 2, and avoid the process of manually checking the state of the ETBN device by the tester. The host computer 1 can also control the power-on and power-off of the ETBN device through the power control system 4, and avoid the process of manual power-on and power-off. The host computer 1 can automatically traverse all working conditions of the interconnection and interworking test, avoid the omission of working conditions in manual testing, and improve the accuracy and convenience of the interconnection and interworking test.

[0077] The topology structure change of the ETBN device set 3 includes one or a combination of the following: any one or more ETBN devices are bypassed; one of the A path and B path data between any two adjacent ETBN devices is blocked and connected; the physical connection order of the ETBN device is changed.

[0078] Before the test is executed, the tester first selects the topology structure of the ETBN device set 3 on the host computer 1. The bypassed ETBN device does not participate in communication when the ETB network communicates, and will not be recognized and discovered by the remaining ETBN devices.

[0079] As shown in Figure 3 When the ETBN device is connected, each ETBN device has two adjacent ETBN devices except the two end ETBN devices, that is, there are two reference directions, and there are two ETB interfaces in each reference direction, which are respectively referred to as A path and B path. Since the ETBN device has two reference directions, for convenience of distinction, the four ETB interfaces are respectively referred to as A1, A2, B1 and B2. The A path and the B path are completely identical in function and belong to a redundant relationship. The purpose of setting the A path and the B path is to ensure that there is a standby route for communication in the ETB network in the case of A path or B path failure.

[0080] The physical connection order of the above-mentioned ETBN device refers to the connection order between each test device and each device under test. Specifically, all the ETB interfaces of the test ETBN are in a serial connection relationship, that is, the connection object of the direction 1 or direction 2 of the device under test can be another device under test or a test device. Different connection objects will make the physical connection order of the ETBN device different.

[0081] In the present application, the topology of the ETBN device set 3 can be selected, and the diversity of the topology of the ETBN device set 3 can be ensured in the interconnection and interworking test, so as to avoid the omission of the topology. In the interconnection and interworking test system, the topology of the ETBN device set 3 is changed in order to verify that the interconnection and interworking function of the ETBN device set 3 can be realized at each position of different topologies, so as to ensure the diversity of the topology of the ETBN device set 3 and improve the comprehensiveness and accuracy of the interconnection and interworking test.

[0082] The power control system of the interconnection and interworking test system can control the opening and closing of the relay contact of the ETBN device through the Ethernet instruction, so as to realize the power-off and power-on of the ETBN device.

[0083] Specifically, the host computer 1 sends an Ethernet instruction for controlling the power-on and power-off of the ETBN device to the power control system 4. The instruction is forwarded to the power control system 4 through the ECN side data stream exchange control system 2. After receiving the Ethernet instruction, the power control system 4 changes the state of the relay on the single-chip microcomputer, and then controls the power-on and power-off of the corresponding ETBN device.

[0084] In the present application, the tester can directly control the power-on and power-off of the ETBN device through the host computer 1, which avoids the complex manual power-on and power-off operation and improves the convenience of the interconnection and interworking test.

[0085] In some embodiments, the interconnection and interworking test based on the ETB network tests the ETBN device according to a unified test interface protocol. The test interface protocol includes but is not limited to a control method set and a state acquisition method set, so as to realize the control and acquisition of the state of the ETBN device.

[0086] Specifically, the acquisition and control of the state of the ETBN device is completed through the debugging interface.

[0087] The acquisition process of the state of the ETBN device includes:

[0088] Firstly, the host computer 1 sends a state acquisition restAPI instruction to the ECN side data stream exchange control system 2;

[0089] Then, the ECN side data stream exchange control system 2 distributes the state acquisition restAPI instruction to the ETBN device;

[0090] Finally, the ETBN device replies the state information of itself.

[0091] The control process of the state of the ETBN device is similar to the acquisition process, and the specific process includes:

[0092] Then, the host computer 1 sends a control restAPI instruction to the ECN side data stream exchange control system 2;

[0093] Secondly, the ECN side data stream exchange control system 2 distributes the control restAPI to the ETBN device;

[0094] Finally, the ETBN device implements the corresponding behavior according to the instruction.

[0095] The interconnection and interworking test system tests the ETBN device according to a unified test interface protocol, so that the tester can directly obtain or control the state of the ETBN device on the host computer 1, avoiding the complex process of manual wiring and line switching, and also avoiding errors that may occur when manually adjusting the state of the ETBN device, making the interconnection and interworking test process simple and accurate.

[0096] In some embodiments, the control method set includes: controlling the connection and disconnection of a specified ETB interface of the ETBN device; controlling whether the bypass port of the ETBN device is enabled; setting the universally unique identifier UUID of the ETBN device; and setting the occupation request and occupation direction of the ETBN device.

[0097] Specifically, the main purpose of the control method set is to simulate fault conditions and change the topology of the ETBN device set 3. The unique universal identifier UUID of the ETBN device is mainly used to identify the ETBN device. For example, in the ETB network interconnection and interworking test of 8 ETBN devices, 2 adjacent ETBN devices are usually divided into a group, and the two ETBN devices have a master-slave relationship, and the two ETBN devices share the same unique universal identifier UUID to identify the group. In addition, the unique universal identifier UUID can also be used to determine the information transmission direction. In the field of train communication, the ETB network has two reference directions, which are from the left ETBN device group to the right ETBN device group and from the right ETBN device group to the left ETBN device group. The reference direction is determined by the unique universal identifier UUID of the two ETBN device groups, and the specific reference direction is that the ETBN device group with a higher unique universal identifier UUID points to the ETBN device group with a lower unique universal identifier UUID.

[0098] The host computer 1 can control various states of the ETBN device through the control method set, so that the state of the ETBN device does not need to be manually adjusted during the interconnection and interworking test based on the ETB network, making it convenient for the tester to test. In addition, various working states of the ETBN device can be automatically simulated, making the test content of the interconnection and interworking test based on the ETB network more comprehensive, and improving the accuracy of the interconnection and interworking test based on the ETB network.

[0099] In some embodiments, the status acquisition method set includes: acquiring the software version of the ETBN device; acquiring the ETB port connection / disconnection status of the ETBN device; acquiring the bypass enable status of the ETBN device; and acquiring the protocol operation status of the ETBN device, etc.

[0100] Specifically, the status of ETBN devices is obtained by the host computer 1 through the debugging interface to access each ETBN device. The main information of the ETBN device's IEC protocol operating status includes: etbTopoCnt, opTrnTopoCn, ttdpok, opCstCnt, ownTrnCstNo, etbnID, OPTrnDirState, etbnRole, reference direction, and Layer 3 routing table, etc.

[0101] The host computer 1 can obtain various states of the ETBN device through the control method set, so that the ETBN device status does not need to be manually obtained during the interoperability testing process. This avoids the complicated process of manual wiring and manual status acquisition, and makes it convenient for testers to conduct interoperability testing.

[0102] In a preferred embodiment, the ETBN device has three types of interfaces: ECN interface, debugging interface, and ETB interface.

[0103] In a preferred embodiment, the ECN interface of the ETBN device is used to connect the ETBN device and the ECN-side data flow exchange control system 2, and the ECN interface is used to transmit the TRDP data flow of this group.

[0104] In a preferred embodiment, the debugging interface is used to connect the ETBN device and the ECN-side data flow exchange control system 2. The ECN-side data flow exchange control system 2 forwards the control RESTAPI commands and status acquisition RESTAPI commands sent by the host computer 1 to the ETBN device through the debugging interface.

[0105] In a preferred embodiment, the ETB interface of the ETBN device is used to connect the ETBN device to the ETB-side data flow exchange control system 5. After receiving the RESTAPI command for setting the connection topology of the ETBN device set 3, the ETB-side data flow exchange control system 5 forms the corresponding ETB topology by configuring the isolation relationship of the ports of all its ETBs.

[0106] In a preferred embodiment, the tester selects the topology of ETBN device set 3 on the host computer 1. The REST API command for setting the connection topology of ETBN device set 3 is issued by the host computer 1 and first reaches the ECN-side data flow exchange control system 2. Then, the ECN-side data flow exchange control system 2 forwards the command to the ETB-side data flow exchange control system 5 according to the IP address.

[0107] In the preferred embodiment, the tester selects the test stimulus on the host computer 1, which is distributed to the ETBN device by the ECN side data stream exchange control system 2 through different interfaces. The control restAPI instruction reaches the ETBN device through the debugging interface, and the TRDP data stream reaches the ETBN device through the ECN interface.

[0108] In the preferred embodiment, the test stimulus is first sent by the host computer 1, which calculates the expected result of the state of each ETBN device under the working condition. Then the host computer sends the state acquisition restAPI instruction to acquire the state information of each ETBN device. Then, after receiving the state acquisition restAPI instruction, the ETBN device sends the state information to the ECN side data stream exchange control system 2 through the debugging interface, and then the ECN side data stream exchange control system 2 forwards the state information to the host computer 1.

[0109] After the host computer 1 acquires the actual state information of the ETBN device, it compares it with the expected result, and then determines whether the interconnection and interworking of the ETB network under the current working condition is successful.

[0110] In the preferred embodiment, the host computer 1 can display the test progress of the interconnection and interworking test, the test conditions and expected results of each interconnection and interworking test, the actual state of each ETBN device, and generate a corresponding test report.

[0111] In the preferred embodiment, the host computer 1 has three ways to simulate fault working conditions, which are:

[0112] 1. The host computer 1 sends instructions to the single-chip relay control board of the power control system 4 to control the corresponding ETBN device to be powered off;

[0113] 2. The host computer 1 sends control restAPI instructions to the corresponding ETBN device to control the bypass port enablement;

[0114] 3. The host computer 1 sends restAPI instructions for setting the connection topology of the ETBN device set 3 to the ETB side data stream exchange control system 5. The content of the restAPI instruction is to control the ETB side data stream exchange control system 5 to configure the isolation relationship of the ports of all ETBs of itself to shield specific ETBN devices.

[0115] It is pointed out here that among the three ways to simulate fault working conditions, the second and third ways have the same running results, and the difference lies in the method used.

[0116] In a preferred embodiment, the method of simulating the first fault condition is to send instructions to the single-chip microcomputer relay control board of the power control system 4, and the power control system 4 controls the power-on and power-off of the corresponding ETBN device.

[0117] There are 8 ETBN devices in this embodiment, and the fault conditions can be classified according to the number of fault nodes, which can be divided into 1 to 7 fault nodes. In each classification, the ETBN devices that fail are different, so the number of fault conditions is very large. In the interconnection and interworking test, the power control system 4 is used to control the power-on and power-off of the ETBN device, which avoids manual operation.

[0118] The ETB network in this embodiment is composed of 8 ETBN devices, 4 of which are measured devices, and the other 4 are accompanying measurement devices. As shown in Figure 1 and Figure 2 , the accompanying measurement devices are numbered X, and the measured devices are numbered Y. When the ETB network composed of 8 ETBN devices is tested for interconnection and interworking, at least 4 rounds of testing are usually required. In the 4 rounds of testing, the physical connection order of the ETBN devices is different from each other, and the 4 connection orders are as follows:

[0119] X-X-X-X-Y-Y-Y-Y;

[0120] X-X-Y-Y-X-X-Y-Y;

[0121] X-X-Y-Y-Y-Y-X-X;

[0122] Y-Y-X-X-X-X-Y-Y.

[0123] In this embodiment, 4 accompanying measurement devices and 4 measured devices are connected to form an ETB network. Each ETBN device has 4 ETB interfaces, which are A1, A2, B1 and B2 respectively. All ETBN devices are connected to the ETB side data stream exchange control system 5, as shown in Figure 2 , Figure 3The ETB-side data stream switching control system 5 has 32 interfaces in total, and 8 ETBN devices are connected to the 32 interfaces. The ETB-side data stream switching control system 5 has another interface connected to the ECN-side data stream switching control system 2 to receive restAPI instructions for setting the connection topology of the ETBN device set 3. The connection between each ETBN device is realized by the interconnection between two interfaces in the MII interface protocol inside the ETB-side data stream switching control system 5, where the main function of the MII interface protocol is to realize the connection between the Ethernet MAC and the physical layer chip. After the ETB-side data stream switching control system 5 receives the restAPI instructions for setting the connection topology of the ETBN device set 3, the isolation relationship of the ports of all ETBs in the ETB-side data stream switching control system 5 is configured through the MII interface protocol to form the corresponding ETB topology structure.

[0124] Taking the connection between device X1 and device X2 of the ETBN device set 3 in the embodiment as an example, the A1 port of device X1 is connected to the interface X01 of the ETB-side data stream switching control system 5, the A2 port of device X1 is connected to the interface X02 of the ETB-side data stream switching control system 5, the B1 port of device X1 is connected to the interface X03 of the ETB-side data stream switching control system 5, and the B2 port of device X1 is connected to the interface X04 of the ETB-side data stream switching control system 5. The A1 port of device X2 is connected to the interface X05 of the ETB-side data stream switching control system 5, the A2 port of device X2 is connected to the interface X06 of the ETB-side data stream switching control system 5, the B1 port of device X2 is connected to the interface X07 of the ETB-side data stream switching control system 5, and the B2 port of device X2 is connected to the interface X08 of the ETB-side data stream switching control system 5. The restAPI instructions for setting the connection topology of the ETBN device set 3 indicate that the A2 port of device X1 is connected to the A1 port of device X2, and the B2 port of device X1 is connected to the B1 port of device X2. Based on the content of the MII interface protocol, the restAPI instructions for setting the connection topology of the ETBN device set 3 are converted into the connection between the interface X02 and the interface X05 inside the ETB-side data stream switching control system 5, and the connection between the interface X04 and the interface X07. In this way, the connection sequence of X1-X2-X3-X4-Y1-Y2-Y3-Y4 shown in the figure is completed. Figure 3

[0125] ​The interconnection test system of the application has the following beneficial effects: the robustness test of the IEC61375-2-5 TTDP protocol of ETBNs of different manufacturers in various scenes can be completed; the robustness test of the IEC61375-2-3 TTDB protocol of ETBNs of different manufacturers in various scenes can be completed; the function test of the application layer train-level communication protocol of ETBNs of different manufacturers in various scenes can be completed; the fault simulation is automatically applied without manual intervention, which greatly reduces the complexity of manual operation and ensures the objectivity and comprehensiveness of the test results.

[0126] Based on the same principle, the application also discloses an ETB network-based interconnection test method, as shown in the accompanying drawings, the method comprises the following steps: Figure 4

[0127] S100: sending a topology structure instruction to the ETB-side data stream exchange control system 5 according to the corresponding IP address, so as to make the ETB-side data stream exchange control system 5 set the topology structure of the ETBN device set 3;

[0128] S200: selecting a test case and calculating a test expected result by the upper computer 1;

[0129] S300: sending a test excitation to the ETBN device by the upper computer 1, comparing the test expected result with the actual result fed back by the ETBN device, and obtaining a test result.

[0130] Specifically, for the reconnection working condition of 8 ETBN devices, the process of setting the ETBN device connection topology is as follows:

[0131] Firstly, the debugging network port IP addresses of the 8 ETBN devices are set as 192.168.2.11 to 192.168.2.18 in turn, and the eight addresses will not change due to the test.

[0132] Then, the debugging network port IP address of the ETB-side data stream exchange control system 5 is set as 192.168.2.100, and the network port IP of the upper computer 1 is set as 192.168.2.1. The above IP addresses are only the addresses set in the embodiment and can be set according to the specific situation, and are not used for limitation.

[0133] Next, after the test operator selects the topology structure of the ETBN device set 3, the upper computer 1 sends a restAPI instruction for setting the connection topology of the ETBN device set 3 to the ETB-side data stream exchange control system 5 according to the IP address.

[0134] Finally, the ETB-side data stream exchange control system 5 configures the isolation relationship of the ports of all ETBs, and forms the corresponding ETB topology structure.

[0135] ​In the interconnection and interworking test method, the test process needs to traverse all the working conditions required for testing to ensure the comprehensiveness of the test. In addition, the interconnection and interworking test method can also select test cases, and the tester can let the interconnection and interworking test system perform automatic testing, simplifying the test operation of the tester.

[0136] In some embodiments, the test case includes: testing of IEC61375-2-5 protocol functions, testing of IEC61375-2-3 protocol functions, and testing of TRDP communication protocol functions.

[0137] Specifically, the essence of the interconnection and interworking test is to test the IEC protocol functions and the TRDP protocol functions. The IEC protocol (IEC61375-2-5 protocol and IEC61375-2-3 protocol) and the TRDP communication protocol are the application layer of the ETB network. When testing, if the ETB network cannot realize interconnection and interworking, it proves that the ETBN device participating in networking does not comply with the IEC protocol and the TRDP protocol.

[0138] The testing of the IEC61375-2-5 protocol functions includes:

[0139] 1. In the presence of any one or more ETBN device faults, test the correctness of the protocol of all non-fault ETBN devices;

[0140] 2. In the case of random ETB line faults, test the correctness of the protocol calculation of all ETBN devices;

[0141] 3. The correctness of the source address translation and destination address translation of the three-layer switching function of the ETBN device;

[0142] 4. The correctness of the fast switching function of the bypass function of the ETBN device;

[0143] 5. The correctness of the master-slave switching function of the ETBN device.

[0144] Specifically, SNAT is source address translation, and DNAT is destination address translation. The process of converting a private IP address to a global IP address is called source address translation. Conversely, the process of converting a global IP address to a private IP address is called destination address translation.

[0145] The interconnection and interworking test method of the present application can test multiple functions of the IEC61375-2-5 protocol, so that the interconnection and interworking test method can test multiple functions of the IEC61375-2-5 protocol, ensuring the accuracy of the interconnection and interworking test method.

[0146] The testing of the IEC61375-2-3 protocol functions includes:

[0147] 1. Test the correctness of TTDB protocol of all non-faulty ETBN devices in the presence of any one or more ETBN device faults;

[0148] 2. Test the correctness of TTDB protocol calculation of all ETBN devices in the presence of ETB line random faults;

[0149] 3. Test the correctness of ETBN device occupation and end change function;

[0150] Specifically, the IEC61375-2-3 test process is the same as the method of IEC61375-2-5 protocol test, which will not be repeated. The interconnection test method of the application can test multiple functions of IEC61375-2-3 protocol, which ensures the accuracy of the interconnection test method.

[0151] The test of TRDP communication protocol function includes:

[0152] 1. Test the correctness of TRDP protocol conversion of ETB to ECN and ECN to ETB of all ETBN devices in single column working condition;

[0153] 2. Test the correctness of TRDP protocol conversion of ETB to ECN and ECN to ETB of all ETBN devices in two column reconnection working condition;

[0154] 3. Test the correctness of TRDP protocol conversion of ETB to ECN and ECN to ETB of all ETBN devices in the presence of any one or more fault groups;

[0155] 4. Test the correctness of TRDP protocol conversion of ETB to ECN and ECN to ETB of all ETBN devices after the completion of reconnection and decoupling operation;

[0156] 5. The correctness of the initial operation function is applied.

[0157] Specifically, as shown in Figure 10 The specific content of TRDP communication protocol function test is:

[0158] 1. The host computer 1 randomly generates four group TRDP data streams according to the project application layer protocol, and sends them to the ECN side data stream exchange control system 2. There are four groups of ETBN devices in the interconnection test system, and each TRDP data stream generated corresponds to an ETBN device group. The specific content of the four group TRDP data streams is as follows:

[0159] Group 1: F1i1, F1i2, F1i3...

[0160] Group 2: F2i1, F2i2, F2i3...

[0161] Group 3: F3i1, F3i2, F3i3...

[0162] Group 4: F4i1, F4i2, F4i3...

[0163] 2. The host computer 1 calculates the expected results after forwarding through the ETBN device according to the project application layer protocol, and the expected results are as follows:

[0164] Group 1: F1o1_exp, F1o2_exp, F1o3_exp...

[0165] Group 2: F2o1_exp, F2o2_exp, F2o3_exp...

[0166] Group 3: F3o1_exp, F3o2_exp, F3o3_exp...

[0167] Group 4: F4o1_exp, F4o2_exp, F4o3_exp...

[0168] 3. The ECN side data stream exchange control system 2 distributes the TRDP data streams of each group to the corresponding ETBN device group;

[0169] 4. After each group of ETBN devices receives the corresponding data stream, it will be repackaged according to the project application layer protocol to form the ETB side data stream ETBFx and forwarded to the ETB side;

[0170] 5. Each group of ETBN devices receives the ETB side data stream ETBFx of the remaining group of ETBN devices in real time, and at the same time, repackages and forwards the ETB side data stream of the remaining group and the ETB measurement data stream generated by itself to the ECN side (sent to the ECN side data stream exchange control system 2) according to the project application layer protocol to form the following data stream:

[0171] Group 1: F1o1_act, F1i2_act, F1i3_act...

[0172] Group 2: F2o1_act, F2i2_act, F2i3_act...

[0173] Group 3: F3o1_act, F3i2_act, F3i3_act...

[0174] Group 4: F4o1_act, F4i2_act, F4i3_act...

[0175] 6. The final ECN side data stream exchange control system 2 forwards all the above data streams to the host computer 1, and the host computer 1 compares all the received data streams with the expected result data stream of step 2 one by one, and if all the data streams match, it is considered that the test is successful, otherwise the test fails, and the matching rule is: Fxoy_exp==Fxoy_act.

[0176] The TRDP communication protocol function test can test multiple key data of the TRDP communication protocol, and verify the correctness of the ECN network and the ETB network application layer data forwarding.

[0177] In some embodiments, the TRDP communication protocol function test is performed by using Figure 4 The interconnection and interworking test method can perform the TTDP protocol test under the heavy-haul working condition of the 2-column 8-vehicle ETBN equipment marshalling, covering all normal and fault node working conditions, and the test flow is as shown in Figure 5 The specific process is as follows:

[0178] 1. The tester sets the IP addresses of the 8 ETBN equipment debugging network cards to 192.168.2.11-192.168.2.18 in turn through the host computer 1, sets the IP address of the ETB side data stream exchange control system 5 debugging network port to 192.168.2.100, and sets the IP address of the host computer network port to 192.168.2.1.

[0179] 2. The tester selects the TTDP protocol test of the traversing fault node working condition on the host computer 1.

[0180] 3. The tester selects the initial ETBN equipment set 3 connection topology as X-X-X-X-Y-Y-Y-Y on the host computer 1.

[0181] 4. The tester clicks the start test button on the host computer 1.

[0182] 5. The host computer 1 sends a restAPI instruction for setting the ETBN equipment set 3 connection topology to 192.168.2.100.

[0183] 6. After receiving the restAPI instruction for setting the ETBN equipment set 3 connection topology, the ETB side data stream exchange control system 5 configures the isolation relationship of each port to form the connection topology relationship as shown in Figure 3

[0184] ​7. The host computer 1 tests all fault node conditions, and each fault node condition test needs to check whether the TTDP protocol calculation of the ETBN device of the non-fault node is correct. In the ETB network, each ETBN device is a node of the ETB network, so in the ETB network composed of 8 ETBN devices, the fault node conditions are classified according to the number of fault nodes, and further divided into 1 to 7 node faults, and each number of node faults is divided into many cases according to the distribution order of the fault nodes. Figure 6 The 8 cases of single node fault are listed, and this application does not list them one by one.

[0185] The simulation of the operation mode of several fault nodes can adopt any one of the following three ways:

[0186] (1) The host computer 1 sends instructions to the single-chip microcomputer relay control board of the power control system 4 to control the power-off of the corresponding ETBN device;

[0187] (2) The host computer 1 sends a control restAPI instruction to the corresponding ETBN device to control the bypass port enablement;

[0188] (3) The host computer 1 sends a restAPI instruction for setting the connection topology of the ETBN device set 3 to the ETB side data flow exchange control system 5, and the content of the restAPI instruction is to control the bypass port enablement of a specific ETBN device.

[0189] 8. After the host computer 1 calculates the expected result of the current condition, the tester sends a state acquisition restAPI instruction to each ETBN device. Each ETBN device returns its device state information to the host computer 1 according to the Json text protocol. The Json text protocol format is as follows:

[0190]

[0191] 9. After the host computer 1 receives the state information returned by the ETBN device, it is compared with the calculated expected result. There are 8 rules for comparison, which are as follows:

[0192] Rule 1: The host computer 1 calculates etbTopoCnt according to the TTDP protocol. The calculation result and the etbTopoCnt returned by all non-fault ETBN devices are compared, and they need to be equal.

[0193] Rule 2: The host computer 1 calculates opTopoCnt according to the TTDB protocol. The calculation result and the opTopoCnt returned by all non-fault ETBN devices are compared, and they need to be equal.

[0194] Rule 3: Master 1 compares ttdpok of all non-faulty ETBN devices, which needs to be all 1.

[0195] Rule 4: Master 1 compares OPTrnDirState of all non-faulty ETBN devices, which needs to be all 4.

[0196] Rule 5: Master 1 calculates expected ownTrnCstNo of each non-faulty ETBN device node according to the distribution of faulty nodes. The calculation result needs to be equal to the actual ownTrnCstNo of the corresponding ETBN device node, and the actual ownTrnCstNo of the ETBN device node is different from each other. If the two devices in the same consist are both non-faulty nodes, their ownTrnCstNo needs to be equal.

[0197] Rule 6: Master 1 calculates expected etbnID of each non-faulty ETBN device node according to the distribution of faulty nodes. The calculation result needs to be equal to the actual etbnID of the corresponding ETBN device node, and the actual etbnID of the ETBN device node is different from each other.

[0198] Rule 7: Master 1 calculates expected ownOpCstNo of each non-faulty ETBN device node according to the distribution of faulty nodes. The calculation result needs to be equal to the actual ownOpCstNo of the corresponding ETBN device node, and the actual ownOpCstNo of the ETBN device node is different from each other. If the two ETBN devices in the same consist are both non-faulty nodes, their ownOpCstNo needs to be equal.

[0199] Rule 8: Regardless of the fault condition entered, if the two ETBN devices in each consist are both non-faulty nodes, the master-stand state (etbnrole) of the ETBN device needs to be 1 master and 1 standby. If there are two master ETBN devices in the same consist or two standby ETBN devices in the same consist, it is considered that the interconnection and interoperation test fails. If there is only one faulty device in each consist, the master-stand state (etbnrole) of the other ETBN device in the consist needs to be master.

[0200] 10. Master 1 automatically calculates the expected results of all non-ETBN device nodes IEC protocol running, and compares with the actual results returned by all non-faulty ETBN device nodes. If consistent, it is considered that this round of fault condition test is passed. If not consistent, this round of fault condition test fails, the test is immediately stopped, and then the failure reason is investigated.

[0201] 11. After each round of fault node condition test is passed, the corresponding fault node is restored, and the restoration of the fault node adopts the reverse way of the above-mentioned three simulation fault node ways.

[0202] 12. After the recovery operation of all fault nodes is completed, the host computer 1 sends a state acquisition restAPI instruction to all ETBN device nodes at the same time.

[0203] 13. All ETBN device nodes reply their own state information using the above-mentioned json text protocol.

[0204] 14. The host computer 1 receives and saves the state information replied by all ETBN device nodes.

[0205] 15. The host computer 1 performs expected result calculation and comparison with actual results according to the above-mentioned 8 rules. If all comparison results are consistent, it is considered that the interconnection and interworking test is passed, otherwise it is considered that the interconnection and interworking test fails.

[0206] After the interconnection and interworking test is passed, the simulation test process of the next fault working condition is entered, and this is repeated until the interconnection and interworking test of all fault node working conditions is completed. Regardless of the fault node working condition entered, after all fault nodes are recovered, they should be restored to the complete 8-node 4-formation ETB network. The small end node with the unique universal identifier UUID is in the formation ownTrnCstNo of 1, and then it is sequentially incremented.

[0207] In general, when the interconnection and interworking test system performs robustness test of the IEC61375-2-5 TTDP protocol, the fault working condition of each ETBN device needs to be tested twice, which are the test of the working condition with fault device and the test of the working condition after the recovery of the fault device.

[0208] In some embodiments, the interconnection and interworking test method can be used Figure 4 The interconnection and interworking test method can be used in this embodiment to test the robustness of the TTDB protocol of IEC61375-2-3, and the specific test process is as shown in Figure 7 The host computer 1 needs to traverse all formation setting occupation request working conditions.

[0209] First, connect the ETBN devices according to the topology shown in Figure 1 The IP addresses of the 8 ETBN device debug network cards are set to 192.168.2.11 to 192.168.2.18 in turn, the IP address of the debug network port of the ETB side data flow exchange control system 5 is set to 192.168.2.100, and the IP address of the host computer network port is set to 192.168.2.1.

[0210] In implementation, the tester uses the host computer 1 to first select a test case, and the host computer 1 sends a test stimulus. The tester selects the initial ETBN device set 3 connection topology as X-X-X-X-Y-Y-Y-Y on the host computer 1. After sending the test stimulus, the restAPI instruction for setting the ETBN device set 3 connection topology is sent to the ETB side data stream switching control system 5, and the restAPI instruction for setting the direction 1 occupation is sent to the ETBN device. The physical connection order of the 4 DUTs and the 4 companion devices in the ETBN device set 3 is set as X-X-X-X-Y-Y-Y-Y. Two adjacent devices form a group, and the same device can only be a device in one group. The two devices in a group have a master-slave relationship. The unique universal identifier UUID of each group is set, wherein the unique universal identifier UUID of the group 1 is less than the unique universal identifier UUID of the group 4. After receiving the restAPI instruction for setting the ETBN device set 3 connection topology, the ETB side data stream switching control system 5 configures the isolation relationship of each port to form the connection topology relationship as shown in the figure. Figure 3 The occupation request and the occupation direction of each group are sent through the TRDP protocol message with the comid equal to 120. In the TRDP protocol message, the two protocol variables of Leadreq and Leaddir are mainly set. In the test, the expected results of the states of each group are as follows:

[0211] (1) The host computer 1 sets the occupation request of the group 1, sets the occupation direction as the direction 1, and the expected results of the IEC protocol OPTrnDirState returned by the ETBN device, Opcstno, Opcstdir, Trncstno, and Etbleadstate, wherein:

[0212] The expected result of OPTrnDirState is that the value of the group 1 is 4, the value of the group 2 is 4, the value of the group 3 is 4, and the value of the group 4 is 4;

[0213] The expected result of Opcstno is that the value of the group 1 is 1, the value of the group 2 is 2, the value of the group 3 is 3, and the value of the group 4 is 4;

[0214] The expected result of Opcstdir is that the value of the group 1 is 1, the value of the group 2 is 2, the value of the group 3 is 1, and the value of the group 4 is 2;

[0215] The expected result of Trncstno is that the value of the group 1 is 1, the value of the group 2 is 2, the value of the group 3 is 3, and the value of the group 4 is 4;

[0216] The expected result of Etbleadstate is that the value of the group 1 is 9, the value of the group 2 is 5, the value of the group 3 is 5, and the value of the group 4 is 5.

[0217] (2) The host computer 1 sets the occupation request of the marshalling 1, and the occupation direction is set as direction 2. The OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device are as follows:

[0218] The OPTrnDirState expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 4, the marshalling 3 is 4, and the marshalling 4 is 4;

[0219] The Opcstno expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 3, the marshalling 3 is 2, and the marshalling 4 is 1;

[0220] The Opcstdir expected result is as follows: the marshalling 1 is 2, the marshalling 2 is 1, the marshalling 3 is 2, and the marshalling 4 is 1;

[0221] The Trncstno expected result is as follows: the marshalling 1 is 1, the marshalling 2 is 2, the marshalling 3 is 3, and the marshalling 4 is 4;

[0222] The Etbleadstate expected result is as follows: the marshalling 1 is 9, the marshalling 2 is 5, the marshalling 3 is 5, and the marshalling 4 is 5.

[0223] (3) The host computer 1 sets the occupation request of the marshalling 2, and the occupation direction is set as direction 1. The OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device are as follows:

[0224] The OPTrnDirState expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 4, the marshalling 3 is 4, and the marshalling 4 is 4;

[0225] The Opcstno expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 3, the marshalling 3 is 2, and the marshalling 4 is 1;

[0226] The Opcstdir expected result is as follows: the marshalling 1 is 2, the marshalling 2 is 1, the marshalling 3 is 2, and the marshalling 4 is 1;

[0227] The Trncstno expected result is as follows: the marshalling 1 is 1, the marshalling 2 is 2, the marshalling 3 is 3, and the marshalling 4 is 4;

[0228] The Etbleadstate expected result is as follows: the marshalling 1 is 5, the marshalling 2 is 9, the marshalling 3 is 5, and the marshalling 4 is 5.

[0229] (4) The host computer 1 sets the marshalling 2 occupation request, the occupation direction is set to direction 2, and the OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device, wherein:

[0230] The OPTrnDirState expected result is: the marshalling 1 value is 4, the marshalling 2 value is 4, the marshalling 3 value is 4, and the marshalling 4 value is 4;

[0231] The Opcstno expected result is: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 3, and the marshalling 4 value is 4;

[0232] The Opcstdir expected result is: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 1, and the marshalling 4 value is 2;

[0233] The Trncstno expected result is: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 3, and the marshalling 4 value is 4;

[0234] The Etbleadstate expected result is: the marshalling 1 value is 5, the marshalling 2 value is 9, the marshalling 3 value is 5, and the marshalling 4 value is 5.

[0235] (5) The host computer 1 sets the marshalling 3 occupation request, the occupation direction is set to direction 1, and the OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device, wherein:

[0236] The OPTrnDirState expected result is: the marshalling 1 value is 4, the marshalling 2 value is 4, the marshalling 3 value is 4, and the marshalling 4 value is 4;

[0237] The Opcstno expected result is: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 3, and the marshalling 4 value is 4;

[0238] The Opcstdir expected result is: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 1, and the marshalling 4 value is 2;

[0239] The Trncstno expected result is: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 3, and the marshalling 4 value is 4;

[0240] The Etbleadstate expected result is: the marshalling 1 value is 5, the marshalling 2 value is 5, the marshalling 3 value is 9, and the marshalling 4 value is 5.

[0241] (6) The host computer 1 sets the occupation request of the marshalling 3, and the occupation direction is set as direction 2. The OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device are as follows:

[0242] The OPTrnDirState expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 4, the marshalling 3 is 4, and the marshalling 4 is 4;

[0243] The Opcstno expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 3, the marshalling 3 is 2, and the marshalling 4 is 1;

[0244] The Opcstdir expected result is as follows: the marshalling 1 is 2, the marshalling 2 is 1, the marshalling 3 is 2, and the marshalling 4 is 1;

[0245] The Trncstno expected result is as follows: the marshalling 1 is 1, the marshalling 2 is 2, the marshalling 3 is 3, and the marshalling 4 is 4;

[0246] The Etbleadstate expected result is as follows: the marshalling 1 is 5, the marshalling 2 is 5, the marshalling 3 is 9, and the marshalling 4 is 5.

[0247] (7) The host computer 1 sets the occupation request of the marshalling 4, and the occupation direction is set as direction 1. The OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device are as follows:

[0248] The OPTrnDirState expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 4, the marshalling 3 is 4, and the marshalling 4 is 4;

[0249] The Opcstno expected result is as follows: the marshalling 1 is 4, the marshalling 2 is 3, the marshalling 3 is 2, and the marshalling 4 is 1;

[0250] The Opcstdir expected result is as follows: the marshalling 1 is 2, the marshalling 2 is 1, the marshalling 3 is 2, and the marshalling 4 is 1;

[0251] The Trncstno expected result is as follows: the marshalling 1 is 1, the marshalling 2 is 2, the marshalling 3 is 3, and the marshalling 4 is 4;

[0252] The Etbleadstate expected result is as follows: the marshalling 1 is 5, the marshalling 2 is 5, the marshalling 3 is 9, and the marshalling 4 is 5.

[0253] (8) The host computer 1 sets the marshalling 4 occupation request, and the occupation direction is set as direction 2. The OPTrnDirState expected result, Opcstno expected result, Opcstdir expected result, Trncstno expected result and Etbleadstate expected result in the IEC protocol returned by the ETBN device are as follows:

[0254] The OPTrnDirState expected result is as follows: the marshalling 1 value is 4, the marshalling 2 value is 4, the marshalling 3 value is 4, and the marshalling 4 value is 4.

[0255] The Opcstno expected result is as follows: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 3, and the marshalling 4 value is 4.

[0256] The Opcstdir expected result is as follows: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 1, and the marshalling 4 value is 2.

[0257] The Trncstno expected result is as follows: the marshalling 1 value is 1, the marshalling 2 value is 2, the marshalling 3 value is 3, and the marshalling 4 value is 4.

[0258] The Etbleadstate expected result is as follows: the marshalling 1 value is 5, the marshalling 2 value is 5, the marshalling 3 value is 5, and the marshalling 4 value is 9.

[0259] The host computer 1 sends a state acquisition restAPI instruction to the ETBN device. After the ETBN device returns the state information, the returned state information is compared with the expected result. If the state information is different from the expected result, it is determined that the ETB network interconnection test fails. If the state information is the same as the expected result, the remaining working conditions are traversed, and the above operation is repeated.

[0260] After the host computer 1 completes the setting occupation request working condition of all marshalling, the test result is obtained. It should be noted that when testing the robustness of the TTDB protocol, the working conditions to be traversed are composed of two variables, which are: different ETBN device marshalling of the occupation request and different application direction of the ETBN device marshalling application direction request.

[0261] In some embodiments, the interconnection test method uses Figure 4 The interconnection test method can test the IP address conversion function of SNAT and DNAT specified in the IEC61375-2-5 protocol, and the flow of the IP address conversion function test is as shown in Figure 8 The topology structure diagram of the ETBN device is as shown in Figure 9The host computer 1 creates four VLAN interfaces through a physical network card and sets corresponding IP addresses. For an ETB network with four marshalling units of ETBN devices and an ETB network in which the unique universal identifier of marshalling unit 1 is less than that of marshalling unit 4, according to the IEC61375-2-5 protocol standard, the ETBN device maps the private IP addresses of the four VLAN interfaces into different global IP addresses. The specific case is as follows:

[0262] Vlan id101: corresponding to marshalling unit 1, private IP address 10.1.0.11, global IP address 10.128.64.11;

[0263] Vlan id102: corresponding to marshalling unit 2, private IP address 10.1.0.12, global IP address 10.128.128.12;

[0264] Vlan id103: corresponding to marshalling unit 3, private IP address 10.1.0.13, global IP address 10.128.192.13;

[0265] Vlan id104: corresponding to marshalling unit 4, private IP address 10.1.0.14, global IP address 10.129.0.14.

[0266] After the ETB side data flow exchange control system 5 sets the topology of each ETBN device, the host computer 1 needs to traverse the sending of an ICMP (Internet Control Message Protocol) request message from different VLAN interfaces and to different global IP addresses to test whether all global IP addresses can be correctly accessed from any different marshalling unit. This embodiment tests the global IP address of marshalling unit 3 accessed from marshalling unit 2. In order to focus on the address conversion process of the ICMP message on each path, Figure 9 The topology of the ETBN device in the middle is simplified to have only one ETBN device in each marshalling unit. The step number in the address conversion process corresponds to the arrow number in Figure 8 , and the arrow direction is the transmission direction of the ICMP request message. The entire address conversion process is as follows:

[0267] 1. The host computer 1 sends an ICMP request message and carries VLAN ID 102. The parameters in this step are as follows:

[0268] i. Source IP address: 10.1.0.12;

[0269] ii. Destination IP address: 10.128.192.13;

[0270] iii. Source MAC address: pc_vlan102_mac;

[0271] iv. Destination MAC address: etbn2_mac.

[0272] 2. ECN side data exchange control system 2 forwards the ICMP request message to marshalling 2, and removes VLAN 102, the parameters in this step are as follows:

[0273] i. Source IP address: 10.1.0.12;

[0274] ii. Destination IP address: 10.128.192.13;

[0275] iii. Source MAC address: pc_vlan102_mac;

[0276] iv. Destination MAC address: etbn2_mac.

[0277] 3. The ETBN device of marshalling 2 modifies the ICMP request message as follows, and then forwards the ICMP request message to the ETB side, the parameters in this step are as follows:

[0278] i. Source IP address: 10.128.128.12;

[0279] ii. Destination IP address: 10.128.192.13;

[0280] iii. Source MAC address: etbn2_mac;

[0281] iv. Destination MAC address: etbn3_mac.

[0282] 4. The ETBN device of marshalling 3 modifies the ICMP request message as follows, and then forwards the ICMP request message to the ECN side of marshalling 3, the parameters in this step are as follows:

[0283] i. Source IP address: 10.128.128.12;

[0284] ii. Destination IP address: 10.1.0.13;

[0285] iii. Source MAC address: etbn3_mac;

[0286] iv. Destination MAC address: pc_vlan103_mac.

[0287] 5. ECN side data exchange control system 2 forwards the ICMP request message to the host 1 network port through VLAN 103, and removes VLAN 103, the parameters in this step are as follows:

[0288] i. Source IP address: 10.128.128.12;

[0289] ii. Destination IP address: 10.1.0.13;

[0290] iii. Source MAC address: etbn3_mac;

[0291] iv. Destination MAC address: pc_vlan103_mac.

[0292] 6. After the host computer 1 receives the ICMP request message, it sends an ICMP reply message carrying VLAN103. The parameters in this step are as follows:

[0293] i. Source IP address: 10.1.0.13;

[0294] ii. Destination IP address: 10.128.128.12;

[0295] iii. Source MAC address: pc_vlan103_mac;

[0296] iv. Destination MAC address: etbn3_mac.

[0297] 7. The ECN side data exchange control system 2 forwards the ICMP reply message to the marshalling 3 and removes VLAN103. The parameters in this step are as follows:

[0298] i. Source IP address: 10.1.0.13;

[0299] ii. Destination IP address: 10.128.128.12;

[0300] iii. Source MAC address: pc_vlan103_mac;

[0301] iv. Destination MAC address: etbn3_mac.

[0302] 8. The ETBN device of the marshalling 3 modifies the ICMP reply message as follows and forwards the ICMP reply message to the ETB side. The parameters in this step are as follows:

[0303] i. Source IP address: 10.128.192.13;

[0304] ii. Destination IP address: 10.128.128.12;

[0305] iii. Source MAC address: etbn3_mac;

[0306] iv. Destination MAC address: etbn2_mac.

[0307] 9. The ETBN modification ICMP reply packet of group 2 is as follows, and the ICMP reply packet is forwarded to the ECN side of group 2, and the parameters in this step are as follows:

[0308] i. Source IP address: 10.128.192.13;

[0309] ii. Destination IP address: 10.1.0.12;

[0310] iii. Source MAC address: etbn2_mac;

[0311] iv. Destination MAC address: pc_vlan102_mac.

[0312] 10. The ECN side data exchange control system 2 forwards the ICMP reply packet to the host 1 network port through VLAN 102, and removes VLAN 102, and the parameters in this step are as follows:

[0313] i. Source IP address: 10.128.192.13;

[0314] ii. Destination IP address: 10.1.0.12;

[0315] iii. Source MAC address: etbn2_mac;

[0316] iv. Destination MAC address: pc_vlan102_mac.

[0317] After the above steps are completed, the host 1 checks whether the ICMP reply packet sent in the above step 1 is received. If the host 1 receives the ICMP reply packet sent in the above step 1, it proves that the interconnection test system is normal for the source address translation SNAT and the destination address translation DNAT functions.

[0318] Through the above method, the interconnection test system tests the source address translation SNAT and the destination address translation DNAT functions.

[0319] Each of the embodiments in the specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment mainly describes the difference from other embodiments. Especially, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the related parts can be referred to the part of the method embodiment.

[0320] The above merely provides an example of the present application, but is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application should be included in the scope of claims of the present application.

Claims

1. An interconnection and interworking test system based on an ETB network, characterized in that, Comprise: ETBN device set, ETB side data stream exchange control system, power supply control system, host computer and ECN side data stream exchange control system; wherein, The ETBN device set comprises a plurality of ETBN devices, each of which is connected to the ETB side data stream exchange control system, the ECN side data stream exchange control system and the power supply control system, the ECN side data stream exchange control system is connected to the host computer and the ETB side data stream exchange system, and the power supply control system is connected to the ECN side data exchange control system; The ETB side data stream exchange control system controls the topology change of the ETBN device set through the Ethernet protocol; The power supply control system controls the power-on and power-off of the ETBN device by changing the state of its relay; The ECN side data stream exchange control system controls the host computer and the ETBN device to interact with each other, distributes a plurality of marshalling TRDP data simulated by the host computer to the corresponding ETBN device, and forwards the Ethernet instruction of the topology of the ETBN device set sent by the host computer to the ETB side data stream exchange control system; The host computer sends instructions for setting the topology of the ETBN device set to the ETB side data stream exchange control system according to the corresponding IP address, sends test excitation to each ETBN device, calculates test expected results, and compares the test expected results with the actual results fed back by the ETBN device to obtain test results.

2. The ETB network-based interworking test system of claim 1, wherein, The topology change of the ETBN device set includes one or a combination of the following: Any one or more devices in the ETBN device set are bypassed; One of the AB data between any two adjacent ETBN devices is blocked and connected; The physical connection order of the ETBN device is changed.

3. The ETB network-based interworking test system of claim 1, wherein, The power supply control system is specifically used for controlling the opening and closing of the relay contact of the ETBN device through the Ethernet instruction, realizing the power-off and power-on of the ETBN device.

4. The ETB network-based interworking test system of claim 1, wherein, Each of the ETBN devices is tested according to a unified test interface protocol; the test interface protocol includes but is not limited to: a control method set and a state acquisition method set, to realize the control and acquisition of the ETBN device state.

5. The ETB network-based interworking test system of claim 4, wherein, The control method set includes: Control the connection / disconnection of the specified ETB port of the ETBN device; Control whether the bypass of the ETBN device is enabled; Set the universally unique identifier of the ETBN device; Set the occupation request and occupation direction of the ETBN device.

6. The ETB network-based interworking test system of claim 4, wherein, The state acquisition method set includes: Get the software version of the ETBN device; Get the ETB port connection / disconnection state of the ETBN device; Get the bypass enable state of the ETBN device; Get the protocol running state of the ETBN device.

7. An interconnection and interworking test method based on an ETB network, applied to the interconnection and interworking test system of any one of claims 1-6, characterized in that, Comprise: According to the corresponding IP address, send the topology instruction to the ETB side data stream exchange control system, so that the ETB side data stream exchange control system sets the topology of the ETBN device set; selecting a test case and calculating a test expected result; comparing the test expected result with an actual result fed back by the ETBN device to obtain a test result. 8.The ETB network-based interconnection and interoperability test method of claim 7, wherein, The test case comprises: a test of IEC61375-2-5 protocol functions, a test of IEC61375-2-3 protocol functions and a test of TRDP communication protocol functions. 9.The ETB network-based interconnection and interoperability test method of claim 8, wherein, The test of the IEC61375-2-5 protocol functions comprises: testing correctness of TTDP protocol calculation of all non-fault ETBN devices in the presence of any one or more fault nodes of the ETBN device; testing correctness of TTDP protocol calculation of all ETBN devices in the presence of random faults of the ETB line; testing correctness of source address conversion and destination address conversion of three-layer switching functions of the ETBN device; testing correctness of bypass function fast switching function of the ETBN device; testing correctness of master-slave switching function of the ETBN device.

10. The interconnection and interoperability test method based on the ETB network according to claim 8, wherein, The test of the IEC61375-2-3 protocol functions comprises: testing correctness of TTDB protocol of all non-fault ETBN devices in the presence of any one or more fault nodes of the ETBN device; testing correctness of TTDB protocol calculation of all ETBN devices in the presence of random faults of the ETB line; testing correctness of occupation and end change functions of the ETBN device.

11. The interconnection and interoperability test method based on ETB network according to claim 8, characterized in that, The test of the TRDP communication protocol functions comprises: testing correctness of ETB-to-ECN and ECN-to-ETB TRDP protocol conversion of all ETBN devices in a single-column working condition; testing correctness of ETB-to-ECN and ECN-to-ETB TRDP protocol conversion of all ETBN devices in a two-column reconnection working condition; testing correctness of ETB-to-ECN and ECN-to-ETB TRDP protocol conversion of all ETBN devices in the presence of any one or more fault groups; testing correctness of ETB-to-ECN and ECN-to-ETB TRDP protocol conversion of all ETBN devices after completion of reconnection and decoupling operations; testing correctness of an application initial running function.

Citation Information

Patent Citations

  • An IEC 61375 protocol-based train level Ethernet apparatus testing method and device

    CN108092854A

  • Real-time Ethernet device performance test method, device and system

    CN109194551A