CN110995533A - Ethernet streaming test system - Google Patents

Ethernet streaming test system Download PDF

Info

Publication number
CN110995533A
CN110995533A CN201911158375.XA CN201911158375A CN110995533A CN 110995533 A CN110995533 A CN 110995533A CN 201911158375 A CN201911158375 A CN 201911158375A CN 110995533 A CN110995533 A CN 110995533A
Authority
CN
China
Prior art keywords
test
equipment
streaming
data
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911158375.XA
Other languages
Chinese (zh)
Inventor
王森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peitian Robot Technology Co Ltd
Original Assignee
Peitian Robot Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peitian Robot Technology Co Ltd filed Critical Peitian Robot Technology Co Ltd
Priority to CN201911158375.XA priority Critical patent/CN110995533A/en
Publication of CN110995533A publication Critical patent/CN110995533A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses Ethernet test system that streams includes test equipment, test equipment be used for establishing with the communication connection between the equipment that awaits measuring, send the streaming data to the equipment that awaits measuring according to the configuration information, according to the feedback data that streaming data and the equipment that awaits measuring sent, obtain the test result, wherein, test equipment is including the receiving port, controller, Ethernet physical layer chip and the output port that connect gradually, the output port passes through industry Ethernet cable and is connected with the equipment that awaits measuring. By means of the mode, the automatic test of the EtherCAT bus can be achieved, and the test efficiency is improved.

Description

Ethernet streaming test system
Technical Field
The application relates to the technical field of communication, in particular to an Ethernet streaming test system.
Background
EtherCAT (Ethernet for Control Automation Technology, industrial Ethernet) is a real-time industrial field bus communication protocol based on an Ethernet development framework, and the emergence of EtherCAT establishes a new standard for the real-time performance and the flexibility of topology of a system. The EtherCAT bus is a protocol based on a hundred-mega ethernet and is widely applied to industrial equipment at present, but because the working environment of the industrial equipment is relatively complex, if the industrial equipment runs, packet loss occurs, and a production accident is likely to be caused, the requirement on the communication performance of the EtherCAT bus is very high, and a flow test method is needed to measure the communication performance of the EtherCAT bus.
At present, no effective or standard test method exists for testing the streaming performance of the EtherCAT bus, only a test method for an Ethernet port exists, and the established test environment is complex in operation and high in cost.
Disclosure of Invention
The problem that this application mainly solved provides a test system is flowed to ethernet, can realize the automated test of etherCAT bus, improves efficiency of software testing.
In order to solve the technical problem, the present application adopts a technical scheme that: the flow test system comprises test equipment, wherein the test equipment is used for establishing communication connection with the equipment to be tested, sending flow data to the equipment to be tested according to configuration information, and obtaining a test result according to the flow data and feedback data sent by the equipment to be tested, wherein the test equipment comprises a receiving port, a controller, an Ethernet physical layer chip and an output port which are sequentially connected, and the output port is connected with the equipment to be tested through an industrial Ethernet cable.
Through the scheme, the beneficial effects of the application are that: the EtherCAT bus is used for connecting the test equipment and the equipment to be tested, data are transmitted between the test equipment and the equipment to be tested, the test equipment can calculate the streaming performance of the equipment to be tested by using streaming data and feedback data, the automatic test of the EtherCAT bus can be realized, manual measurement and calculation are not needed, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a schematic structural diagram of an embodiment of a streaming test system provided in the present application;
FIG. 2 is a schematic structural diagram of another embodiment of the streaming test system provided in the present application;
fig. 3 is a schematic flowchart of an embodiment of an ethernet streaming performance testing method provided in the present application;
fig. 4 is a schematic flowchart of another embodiment of a method for testing streaming performance of an ethernet network according to the present application;
fig. 5 is a schematic structural diagram of an embodiment of a storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a streaming test system provided in the present application, and the streaming test system 10 includes: the device 11 is tested.
The test equipment 11 can be a mainboard with an EtherCAT port, and simultaneously stores burning firmware; the device to be tested 20 is a device including at least one EtherCAT port; before testing, an operator connects the device under test 20 and the test device 11, specifically, the test device 11 and the device under test 20 are connected through an EtherCAT bus.
The test device 11 may act as a master and the device under test 20 may act as a slave, the test device 11 being configured to establish a communication connection with the device under test 20.
In a specific embodiment, the configuration of the master station and the slave station may be performed when the firmware of the test device 11 and the firmware of the device under test 20 are written, specifically, the configuration may be performed by a tester through an instruction, or the configuration may be performed in the firmware; after the physical connection between the test device 11 and the device under test 20 is established, the test device 11 and the device under test 20 may interact to establish a communication connection so as to perform a streaming test on the test device 20.
The test device 11 is further configured to send the streaming data to the device under test 20 according to the configuration information, and obtain a test result according to the streaming data and the feedback data sent by the device under test 20.
The test equipment 11 can be configured in advance to enable the test equipment 11 to work normally and limit the working time; the configuration information may be obtained by configuring the test device 11 for an external device, or may be a configuration interface provided for the test device 11 itself.
The test device 11 includes a receiving port 111, a controller 112, an ethernet physical layer chip 113, and an output port 114, which are connected in sequence, and the output port 114 is connected to the device under test 20 through an industrial ethernet cable.
The EtherCAT bus streaming performance test mainly includes a packet loss rate test, where the packet loss rate is a ratio of the number of lost data packets in the test to the number of transmitted data packets, that is, the packet loss rate is [ (the number of input data packets-the number of output data packets)/the number of input data packets ] × 100%.
The test device 11 is further configured to, after receiving the feedback data, compare the streaming data in the streaming data with the feedback data, and calculate a streaming performance, where the streaming performance may be an error rate or a packet loss rate. For example, the streaming performance is an error rate, the streaming data sent by the test equipment 11 to the device under test 20 is 1001, data analyzed by the device under test 20 becomes 1011 due to channel noise and the like, the device under test 20 sends feedback data containing 1011 to the test equipment 11, and the test equipment 11 compares the feedback data with the sent streaming data to calculate the error rate.
The test equipment 11 actively sends the streaming data to the equipment to be tested 20, the test equipment 11 compares the feedback data fed back by the equipment to be tested 20 with the streaming data to obtain the streaming performance parameters such as packet loss rate or bit error rate, and the like, so that the automatic test of the EtherCAT bus can be realized, manual measurement and calculation are not needed, and the test efficiency is greatly improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of another embodiment of the streaming test system provided in the present application, which is different from the foregoing embodiment: the streaming test system 10 in this embodiment further includes an upper computer 12.
Connection among the test equipment 11, the equipment to be tested 20 and the upper computer 13 can be established firstly, and specifically, the upper computer 12 is connected with the test equipment 11 by using a serial port cable; the upper computer 12 may be a computer such as a desktop computer, a notebook computer, or an industrial personal computer, and may send configuration information to the test equipment 11 to configure the test equipment 11; the test device 11 is configured to send beat data to the device under test 20 according to the configuration information after receiving the test message sent by the upper computer 12.
The test result includes a packet loss rate and an error rate, and the test device 11 may be configured to read the number of error codes in the ethernet physical layer chip 113, and calculate the packet loss rate or the error rate.
The upper computer 12 has an Asynchronous serial port (UART), and a serial port terminal tool is installed in the upper computer 12 to receive an input command and display a test result. Specifically, the upper computer 12 may be a computer with a UART port, and the upper computer 12 is installed with a terra Term serial software for receiving commands input by a tester during a test process and displaying test results. The test equipment 11 is connected with the upper computer 12 through a serial port cable; specifically, the receiving port 111 in the test device 11 is connected to the upper computer 12 through a serial cable.
The controller 112 may employ an FPGA (Field Programmable Gate Array), an ARM (Advanced Reduced Instruction Set computer), a DSP (Digital Signal Processing), a Switch chip, or the like as a control core.
With continued reference to fig. 2, the testing device 11 further includes a first indicator light 115, a second indicator light 116, and a third indicator light 117 connected to the controller 112, wherein the first indicator light 115 is used to indicate whether power is applied, the second indicator light 116 is used to indicate the status of the testing device 11, and the third indicator light 117 is used to indicate whether packet loss occurs.
In a specific embodiment, the first indicator light 115 is a power-on monochromatic indicator light of the testing device 11, and if the power-on is normal, the color of the first indicator light 115 may be green and normally on; the second indicator light 116 is a single color status indicator light that includes three states: 1. the green normally-on state indicates that the test equipment 11 is connected with the equipment to be tested 20 and the EtherCAT bus works normally; 2. a normally off state, which indicates that the test equipment 11 is not connected with the equipment to be tested 20 or the EtherCAT bus works abnormally; 3. a flashing state indicating that a streaming test is in progress; the third indicator light 117 is a two-color indicator light, and the color of the third indicator light 117 may be green or red; when the color of the third indicator light 117 is green, it indicates that there is no packet loss, and when the color of the third indicator light 117 is red, it indicates that there is a packet loss.
Before the flow test is performed, the test device 11 may be powered on, i.e., a power switch of the test device 11 is turned on or the test device 11 is driven to operate, and the tester checks the states of the first indicator light 115, the second indicator light 116, and the third indicator light 117 in the test device 11.
The test device 11 is further configured to send a communication establishment message to the device under test 20 after being powered on, where the communication establishment message is used to instruct the test device 11 to pre-establish a communication connection with the device under test 20; the communication may be performed if the device under test 20 can receive the communication establishment message sent by the test device 11 and can respond, that is, send a communication establishment success message to the test device 11 to notify the test device 11 that a communication connection is established between the two devices.
If the physical connection between the test device 11 and the device 20 to be tested is not established or the device 20 to be tested fails, the device 20 to be tested cannot respond and cannot perform the test, for such a situation, the test device 11 may be configured to determine whether a communication establishment success message is received within a preset time period, if the communication establishment success message is received by the test device 11 within the preset time period, it indicates that the two devices may normally communicate, and at this time, the second indicator light 116 in the test device 11 may be in a green normally-on state; if the communication establishment success message fed back by the device under test 20 is not received within the preset time period, it may be that the device under test 20 fails, at this time, the test device 11 may send a warning message to indicate that the communication connection between the two devices is not established, for example, the second indicator light 116 is in an off state to indicate that the connection is not established.
The test device 11 is further configured to send a prompt message to the upper computer 12, where the prompt message includes version information of the test device 11 and status information, and the status information is used to indicate whether the output port 114 of the test device 11 is available.
In a specific embodiment, a testing environment is initialized in a serial port terminal tool of the upper computer 12, a tester inputs a display command, and the upper computer 12 sends a prompt message to the testing equipment 11 after receiving the display command input by the tester so as to query version information and state information of the current testing equipment 11; the version information may be a version number of firmware or hardware of the test device 11, and the status information includes a status of the output port 114 of the test device 11 to identify whether the output port 114 is available, and if the output port 114 is not available, the device under test 20 cannot be tested.
The test device 11 is also used for clearing the test result stored in the test device 11; specifically, after receiving the prompt message, the testing device 11, in addition to feeding back version information and state information to the upper computer 12, also clears the streaming test result stored in itself, that is, clears the flow and packet loss count information obtained in the previous test, so as to avoid confusion of the streaming test result and save the storage space. In other embodiments, the test device 11 may be further configured to erase the stored streaming test result after receiving an erase message sent by the upper computer 12.
The test equipment 11 is further configured to send a configuration success message to the upper computer 12 after receiving the configuration information sent by the upper computer 12, so as to notify the upper computer 12 of successful configuration, and send the streaming data to the device to be tested 20; the configuration information includes a format and a streaming duration of the code stream, and the upper computer 12 configures the test equipment 11, specifically, configures the format and the streaming duration of the code stream.
The test device 11 is further configured to determine whether feedback data sent by the device to be tested 20 is received within a preset time duration; specifically, under normal conditions, after receiving the streaming data sent by the test equipment 11, the device to be tested 20 processes the parsed data and returns the data to the test equipment 11 in the form of feedback data; in case of a fault, the device under test 20 may not receive the streaming data or may not send the feedback data value to the test device 11, so that the test device 11 is configured to determine whether a transmission abnormality occurs by determining whether the feedback data is received within a preset time period; specifically, the test equipment 11 is configured to determine that the output port 114 of the device under test 20 is abnormal when the feedback data is not received.
When the whole streaming test system is working, the test device 11 is used to periodically send streaming data to the device under test 20, the second indicator light 116 may be in a flashing state, and the test device 11 may check whether the feedback data is normally received and whether the received feedback data is consistent with the sent streaming data.
After the test equipment 11 sends the streaming data, in a preset streaming period, the test equipment 11 does not receive the feedback data, and the device to be tested 20 does not receive the streaming data, which indicates that the receiving port 111 of the device to be tested 20 is abnormal; after the test equipment 11 sends the streaming data, in a preset streaming period, the test equipment 11 does not receive the feedback data, and the device under test 20 receives the streaming data, which indicates that the output port 114 of the device under test 20 is abnormal. The device to be tested 20 may send a reception success message to the test device 11 after receiving the streaming data to notify the test device 11 whether the reception of the streaming data is normal in real time, and if the test device 11 receives the reception success message sent by the device to be tested 20, it is determined that the device to be tested 20 receives the streaming data, otherwise, it is determined that the device to be tested 20 does not receive the streaming data.
The test equipment 11 is also used for calculating whether the lengths of the streaming data and the feedback data are the same through a script; if the data are the same, calculating the error rate according to the similarity of the streaming data and the feedback data; and if the difference is different, calculating the packet loss rate according to the ratio of the lengths of the feedback data and the streaming data.
After the test device 11 is configured, the test device 11 is configured to automatically perform a streaming test operation, that is, periodically and automatically send streaming data to the device under test 20, and receive feedback data fed back by the device under test 20; according to the obtained feedback data and the obtained streaming data, the packet loss rate, the bit error rate and the auto-negotiation information can be automatically calculated through the script.
Further, the test device 11 is configured to determine whether the length of the beat stream data is the same as that of the feedback data, and if the length of the beat stream data is the same as that of the feedback data, it indicates that there is no packet loss, and may compare whether the beat stream data is the same as the feedback data by bit, and calculate a ratio of the number of error codes to the total number of transmitted codes, thereby obtaining an error rate; if the lengths of the streaming data and the feedback data are different, it indicates that the device 20 to be tested loses the received wrong data in the receiving process, and causes packet loss, and at this time, the packet loss rate can be calculated by using the ratio of the number of the feedback data to the number of the streaming data. After obtaining the streaming performance of the device 20 to be tested, the packet loss rate, the auto-negotiation information, or the bit error rate may be stored in the streaming test result.
In another specific embodiment, the test apparatus 11 is further configured to determine whether the feedback data is empty to determine whether the output port 114 of the device under test 20 is abnormal, specifically, if the feedback data is empty, the test apparatus 11 determines that the output port 114 of the device under test 20 is abnormal.
In other specific embodiments, the test device 11 is further configured to determine whether the receiving port 111 of the device under test 20 is abnormal by determining a value or a format of the feedback data; specifically, if the feedback data conforms to the default abnormal value of the receiving port 111 or the default abnormal format of the receiving port 111, the test device 11 determines that the receiving port 111 of the device under test 20 is abnormal.
The test equipment 11 is also used for calculating the streaming performance at intervals of preset time so that the upper computer 12 can obtain a test result in real time; the upper computer 12 may send a read message to the device 20 to be tested at intervals of a preset time so as to obtain the streaming performance in real time, where the preset time is less than the streaming duration, and the packet loss rate calculated by the testing device 11 may be stored in the controller 112 so as to be conveniently read by the upper computer 12.
The test device 11 is further configured to calculate a packet loss rate or an error rate within the streaming duration after the streaming is finished; after the streaming test is finished, the upper computer 12 is configured to send a read message to the test equipment 11 to obtain a streaming test result; the test device 11 is configured to, after receiving the read message sent by the upper computer 12, feed back a streaming test result to the upper computer 12, where the streaming test result includes streaming data, feedback data, and a packet loss rate or an error rate.
The test equipment 11 is the core of the streaming test system 10 and can receive a control command from the upper computer 12; inputting the code streams with various formats into the device to be tested 20, namely sending the streaming data to the device to be tested 20, wherein the formats of the code streams can be 4B5B, 1B2B, 5B6B and other block coding formats, bidirectional codes or signal alternate transcoding and the like; counting the fed-back data, reading the number of error codes in the PHY of the device 20 to be tested, and calculating the packet loss rate or the error code rate; and feeding back the test result to the upper computer 12, thereby realizing the automatic test of the EtherCAT bus.
Referring to fig. 3, fig. 3 is a schematic flowchart of an embodiment of a method for testing streaming performance of an ethernet network provided in the present application, where the method includes:
step 31: the test equipment establishes communication connection with the equipment to be tested.
Before testing, connecting equipment to be tested with test equipment; specifically, the test equipment and the equipment to be tested are connected by an EtherCAT cable.
The configuration of the master station and the slave station may be performed when writing the firmware of the test device and the firmware of the device under test, and specifically, may be configured by a tester through an instruction, or may be set in the firmware. After the physical connection between the test equipment and the equipment to be tested is established, the test equipment and the equipment to be tested can interact with each other, and communication connection is established, so that the test equipment can carry out streaming test conveniently.
Step 32: and the test equipment sends the streaming data to the equipment to be tested according to the configuration information.
After the communication connection between the test equipment and the equipment to be tested is established, the test equipment can be configured according to the configuration information, so that the test equipment can normally work and the working time length is limited.
Step 33: the test equipment judges whether feedback data sent by the equipment to be tested is received within a preset time length.
Under normal conditions, after the equipment to be tested receives the streaming data sent by the test equipment, the equipment to be tested processes the analyzed data and returns the data to the test equipment in the form of feedback data; in case of a fault, the device to be tested may not receive the streaming data or may not send the feedback data value to the test device, so that the test device may determine whether the transmission is abnormal by determining whether the feedback data is received within a preset time period.
Step 34: and if the feedback data is not received, the test equipment determines that the output port of the equipment to be tested is abnormal.
If the test equipment does not receive the feedback data, the transmission is indicated to be in fault, and the output port of the equipment to be tested may be abnormal.
Step 35: and if the feedback data is received, the test equipment obtains a test result according to the streaming data and the feedback data.
After receiving the feedback data, the testing device may compare the streaming data in the streaming data with the feedback data to calculate the streaming performance, where the streaming performance may be an error rate or a packet loss rate. For example, the streaming performance is an error rate, the streaming data sent to the device to be tested by the testing device is 1001, the data analyzed by the device to be tested is changed into 1011 due to channel noise and the like, the device to be tested sends feedback data containing 1011 to the testing device, and the testing device compares the feedback data with the sent streaming data to calculate the error rate.
The test equipment is set as a master station, the equipment to be tested is set as a slave station, and by means of data transmission between the test equipment and the equipment to be tested, the test equipment can calculate the streaming performance by means of streaming data and feedback data, so that automatic test of an EtherCAT bus can be realized, and the test efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another embodiment of a method for testing streaming performance of an ethernet network according to the present application, the method including:
step 41: the test equipment establishes communication connection with the equipment to be tested.
The connection among the test equipment, the equipment to be tested and the upper computer can be established firstly, and particularly, the upper computer is connected with the test equipment by using a serial port cable.
Before the flow test is carried out, firstly, the test equipment is electrified, namely, a power switch of the test equipment is turned on or the test equipment is driven to work, and a tester checks the states of a first indicator light, a second indicator light and a third indicator light in the test equipment; if the power-on is normal, the first indicator light can be in a green normally-on state, and if the power-on is impossible or the power-on voltage does not reach the standard, the first indicator light can be in a normally-off state.
After the test equipment is powered on, the test equipment establishes communication connection with the equipment to be tested; specifically, the test equipment sends a communication establishment message to the equipment to be tested to indicate the test equipment to establish communication connection with the equipment to be tested in advance; if the device to be tested can receive the communication establishment message sent by the test device and can respond, that is, send a communication establishment success message to the test device to notify the test device that communication connection is established between the two devices, communication can be performed.
If the physical connection between the test equipment and the equipment to be tested is not established or the equipment to be tested breaks down, the equipment to be tested cannot respond and cannot perform the test, for the condition, the test equipment can judge whether a communication establishment success message is received within a preset time period, if the communication establishment success message is received within the preset time period, the test equipment indicates that the test equipment and the equipment to be tested can normally communicate, and at the moment, a second indicator lamp in the test equipment can be in a green normally-on state; if the communication establishment success message fed back by the device to be tested is not received within the preset time period, the device to be tested may fail, and at this time, the test device may send a warning message to indicate that the two devices cannot establish communication connection, for example, the second indicator light is in an off state to indicate that connection is not established.
Step 42: and the test equipment sends a prompt message to the upper computer.
The prompt message includes version information of the test device and status information indicating whether an output port of the test device is available.
In a specific embodiment, a test environment is initialized in a serial port terminal tool of an upper computer, a tester inputs a display command, and the upper computer sends a prompt message to test equipment after receiving the display command input by the tester so as to inquire version information and state information of the current test equipment; the version information may be a version number of firmware or hardware of the test device, and the state information includes a state of an output port of the test device to identify whether the output port of the test device is available, and if the output port of the test device is not available, the test of the device under test cannot be performed.
Step 43: the test equipment clears the test result stored in the test equipment.
After receiving the prompt message, the testing device not only feeds back version information and state information to the upper computer, but also clears the stored streaming test result, namely clears the flow and packet loss count information obtained in the last test, so as to avoid confusion of the streaming test result and save the storage space. In other embodiments, the test device may further clear the stored streaming test result after receiving a clear message sent by the upper computer.
Step 44: and the test equipment sends the streaming data to the equipment to be tested according to the configuration information.
After receiving the configuration information sent by the upper computer, the test equipment can send a configuration success message to the upper computer so as to inform the upper computer of successful configuration and send streaming data to the equipment to be tested; the configuration information comprises the format and the streaming duration of the code stream, and the upper computer configures the test equipment, specifically, configures the format and the streaming duration of the code stream.
Step 45: the test equipment judges whether feedback data sent by the equipment to be tested is received within a preset time length.
After the whole streaming test system works, the test equipment can periodically send streaming data to the equipment to be tested, the second indicator light can be in a flashing state, and the test equipment can check whether the feedback data are normally received and whether the received feedback data are consistent with the sent streaming data.
Step 46: and if the feedback data is not received, the test equipment determines that the output port of the equipment to be tested is abnormal.
After the test equipment sends the streaming data, in a preset streaming period, the test equipment does not receive the feedback data, and the equipment to be tested does not receive the streaming data, which indicates that the receiving port of the equipment to be tested is abnormal; after the test equipment sends the streaming data, the test equipment does not receive the feedback data in a preset streaming period, and if the equipment to be tested receives the streaming data, the output port of the equipment to be tested is abnormal.
Step 47: the test equipment calculates whether the lengths of the streaming data and the feedback data are the same through the script; if the data are the same, calculating the error rate according to the similarity of the streaming data and the feedback data; and if the difference is different, calculating the packet loss rate according to the ratio of the lengths of the feedback data and the streaming data.
After the test equipment is configured, the test equipment automatically executes the streaming test operation, namely periodically and automatically sending streaming data to the equipment to be tested and receiving feedback data fed back by the equipment to be tested; the test equipment can automatically calculate the packet loss rate, the bit error rate and the auto-negotiation information through the script according to the obtained feedback data and the obtained streaming data.
Furthermore, the test equipment can judge whether the lengths of the printing stream data and the feedback data are the same, if the lengths of the printing stream data and the feedback data are the same, the phenomenon of packet loss does not exist, the color of the third indicator light is green, whether the printing stream data and the feedback data are the same can be compared according to the position, and the ratio of the number of error codes to the total number of transmitted codes is calculated, so that the error rate is obtained; for example, when the beat data and the feedback data are 1000 and 1010, respectively, it can be seen that the values of the second bit and the third bit are different, the error rate is (2/6) × 100% — 33.3%; if the lengths of the streaming data and the feedback data are different, it is indicated that the device to be tested loses the received wrong data in the receiving process, so that packet loss is caused, the color of the third indicator light is red, the rest data are correct, no error code is generated, and the packet loss rate can be calculated by using the ratio of the number of the feedback data to the streaming data; for example, if the number of packets corresponding to the streaming data is 10 and the number of packets corresponding to the feedback data is 7, the packet loss ratio is [ (10-7)/10] × 100% — 30%. After the streaming performance of the device to be tested is obtained, the packet loss rate, the auto-negotiation information or the error rate can be stored in the streaming test result.
In another specific embodiment, it may be further determined whether the feedback data is empty to determine whether the output port of the device under test is abnormal, and specifically, if the feedback data is empty, the test device determines that the output port of the device under test is abnormal.
In other specific embodiments, whether the receiving port of the device under test is abnormal may be determined by determining the value or format of the feedback data, and specifically, if the feedback data conforms to the preset receiving port abnormality value or the preset receiving port abnormality format, the testing device determines that the receiving port of the device under test is abnormal.
And 48: and the test equipment calculates the streaming performance at intervals of preset time so that the upper computer can obtain the test result in real time.
The test equipment calculates the streaming performance at intervals of preset time, namely, the upper computer sends a reading message to the equipment to be tested at intervals of preset time so that the upper computer can obtain the streaming performance in real time, the preset time is less than the streaming time, and the packet loss rate calculated by the test equipment can be stored in the controller so as to be convenient for the upper computer to read.
Step 49: and after the streaming is finished, the test equipment calculates the packet loss rate or the bit error rate within the streaming time.
After the streaming is finished, the testing equipment can calculate the packet loss rate or the error rate within the streaming time, and the upper computer sends a reading message to the testing equipment after the streaming test is finished so as to obtain a streaming test result; after receiving the reading message sent by the upper computer, the testing equipment feeds back a streaming test result to the upper computer, wherein the streaming test result comprises streaming data, feedback data, packet loss rate or bit error rate.
After receiving the streaming data, the device to be tested can send a receiving success message to the test device so as to inform the test device whether the receiving of the streaming data is normal or not in real time; if the test equipment receives a successful receiving message sent by the equipment to be tested, the fact that the streaming data is sent to the equipment to be tested is indicated, and the test equipment judges that the equipment to be tested receives the streaming data; if the test equipment does not receive the successful receiving message sent by the equipment to be tested within the set time, the communication between the equipment to be tested and the test equipment is in fault, at the moment, the test equipment judges that the equipment to be tested does not receive the streaming data, and can remind a tester to overhaul the equipment or automatically reestablish communication connection by sending an alarm.
The conventional streaming test system cannot identify the EtherCAT protocol, the ethernet streaming test system 10 of the embodiment can test the EtherCAT protocol, the cost is low, and since the bandwidth of the EtherCAT bus is low, a complex test system is not required, the operation is simple, and the implementation is easy.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a storage medium provided in the present application, where the storage medium 50 is used to store a computer program 51, and the computer program 51 is used to implement the method for testing the streaming performance of the ethernet in the foregoing embodiment when being executed by a processor.
The storage medium 50 may be a server, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above embodiments are merely examples, and not intended to limit the scope of the present application, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present application, or those directly or indirectly applied to other related arts, are included in the scope of the present application.

Claims (9)

1. An Ethernet streaming test system is characterized by comprising test equipment, wherein the test equipment is used for establishing communication connection with equipment to be tested, sending streaming data to the equipment to be tested according to configuration information, and obtaining a test result according to the streaming data and feedback data sent by the equipment to be tested;
the test equipment comprises a receiving port, a controller, an Ethernet physical layer chip and an output port which are sequentially connected, wherein the output port is connected with the equipment to be tested through an industrial Ethernet cable.
2. The ethernet streaming test system according to claim 1, wherein:
the test equipment is also used for judging whether feedback data sent by the equipment to be tested is received within a preset time length; and if the feedback data is not received, determining that the output port of the equipment to be tested is abnormal.
3. The Ethernet streaming test system of claim 1,
the test equipment is further used for determining that the output port is abnormal when the feedback data is null.
4. The Ethernet streaming test system of claim 1,
the test equipment is further used for determining that the receiving port is abnormal when the feedback data conforms to a receiving port abnormal preset value or a receiving port abnormal preset format.
5. The Ethernet streaming test system of claim 1,
the Ethernet streaming test system also comprises an upper computer connected with the test equipment through a serial port cable, and a serial port terminal tool is installed in the upper computer to receive an input command and display a test result; the test result comprises a packet loss rate and an error rate, and the test equipment is further used for reading the number of the error codes in the Ethernet physical layer chip and calculating the packet loss rate or the error rate.
6. The Ethernet streaming test system of claim 5,
the test equipment is also used for sending prompt information to the upper computer and clearing the test result stored in the test equipment;
the prompt information comprises version information and state information of the test equipment, and the state information is used for indicating whether the output port is available.
7. The Ethernet streaming test system of claim 1,
the test result comprises packet loss rate and bit error rate, and the test equipment is also used for calculating whether the lengths of the beat data and the feedback data are the same through a script; if the data are the same, calculating the error rate according to the similarity of the beat stream data and the feedback data; and if the difference is different, calculating the packet loss rate according to the ratio of the lengths of the feedback data and the streaming data.
8. The Ethernet streaming test system of claim 7,
the configuration information comprises the format of a code stream and the streaming duration, and the testing equipment is further used for calculating the streaming performance at intervals of preset time so that an upper computer can obtain the testing result in real time, wherein the preset time is less than the streaming duration; or after the streaming is finished, calculating the packet loss rate or the bit error rate within the streaming duration.
9. The Ethernet streaming test system of claim 1,
the test equipment further comprises a first indicator light, a second indicator light and a third indicator light, wherein the first indicator light is used for indicating whether the test equipment is powered on, the second indicator light is used for indicating the state of the test equipment, and the third indicator light is used for indicating whether packet loss occurs.
CN201911158375.XA 2019-11-22 2019-11-22 Ethernet streaming test system Pending CN110995533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911158375.XA CN110995533A (en) 2019-11-22 2019-11-22 Ethernet streaming test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911158375.XA CN110995533A (en) 2019-11-22 2019-11-22 Ethernet streaming test system

Publications (1)

Publication Number Publication Date
CN110995533A true CN110995533A (en) 2020-04-10

Family

ID=70086031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911158375.XA Pending CN110995533A (en) 2019-11-22 2019-11-22 Ethernet streaming test system

Country Status (1)

Country Link
CN (1) CN110995533A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114413A (en) * 2021-03-03 2021-07-13 杭州迪普科技股份有限公司 Indicator lamp control method and device
CN113504773A (en) * 2021-07-29 2021-10-15 安徽江淮汽车集团股份有限公司 Ethernet test method and Ethernet test system of vehicle-mounted controller
CN115914327A (en) * 2022-11-07 2023-04-04 中国第一汽车股份有限公司 Control method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553632A (en) * 2003-05-29 2004-12-08 华为技术有限公司 Apparatus for realizing high service amount test in wide-band network
CN107659434A (en) * 2017-09-11 2018-02-02 上海斐讯数据通信技术有限公司 A kind of automatic test approach of Devices to test, apparatus and system
CN107872365A (en) * 2017-10-23 2018-04-03 上海斐讯数据通信技术有限公司 A kind of Ethernet fourdrinier wire beats stream performance test methods and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553632A (en) * 2003-05-29 2004-12-08 华为技术有限公司 Apparatus for realizing high service amount test in wide-band network
CN107659434A (en) * 2017-09-11 2018-02-02 上海斐讯数据通信技术有限公司 A kind of automatic test approach of Devices to test, apparatus and system
CN107872365A (en) * 2017-10-23 2018-04-03 上海斐讯数据通信技术有限公司 A kind of Ethernet fourdrinier wire beats stream performance test methods and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114413A (en) * 2021-03-03 2021-07-13 杭州迪普科技股份有限公司 Indicator lamp control method and device
CN113114413B (en) * 2021-03-03 2022-09-30 杭州迪普科技股份有限公司 Indicator lamp control method and device
CN113504773A (en) * 2021-07-29 2021-10-15 安徽江淮汽车集团股份有限公司 Ethernet test method and Ethernet test system of vehicle-mounted controller
CN115914327A (en) * 2022-11-07 2023-04-04 中国第一汽车股份有限公司 Control method, device, equipment and storage medium
CN115914327B (en) * 2022-11-07 2024-03-26 中国第一汽车股份有限公司 Control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110995533A (en) Ethernet streaming test system
US8793366B2 (en) Method and arrangement for diagnosing networks including field bus systems
CN109194551B (en) Method, device and system for testing performance of real-time Ethernet equipment
US11063855B2 (en) Monitoring of the data transmission in a client/server-based device access system
WO2021073221A1 (en) Train control dmi data redundancy control method and system
US5842039A (en) Most recent first dynamic protocol detection for use with a programmable controller
CN107957692A (en) Controller redundancy approach, apparatus and system
CN111130821B (en) Power failure alarm method, processing method and device
WO2023147731A1 (en) Abnormal data processing method and apparatus, and electronic device
CN111106990B (en) Self-diagnosis method for loop of underwater multi-channel signal acquisition and transmission array system
CN110708715B (en) Service fault finding method and device for 5G base station
WO2011150717A1 (en) Implementation method and device for eliminating a communication chip fault
CN110768814B (en) Communication port fault detection method
CN112015163B (en) Method and device for quickly identifying diagnostic subject on CAN bus
CN116962184A (en) Method, system, terminal and medium for automatically deploying RoCE cluster
CN113810238A (en) Network monitoring method, electronic device and storage medium
CN108337135B (en) Communication control system, method and device
CN109634203B (en) Control system for controlling IO terminal based on numerical control controller and corresponding method
CN113557694B (en) Network management device, management method, and recording medium
CN114205263A (en) Communication method, system and storage medium for Ether CAT network
CN111930582A (en) System management bus detection platform, processor and system management bus detection method
WO2016074396A1 (en) Power source monitoring method and device
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN112825501A (en) Signal degradation processing method, device and system
CN113009246A (en) PSE equipment detection device and PSE equipment detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410