Method for testing network performance parameters of terminal equipment on physical link
By marking and analyzing packet information in real time in the network analyzer, the problem that the existing technology cannot test the network performance of the actual terminal equipment in real time is solved, and network performance monitoring and fault diagnosis of vehicle-mounted Ethernet equipment is realized, which significantly improves network problems. Diagnostic accuracy and efficiency.
Patent Information
- Application Number
- CN202411664671.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-01-10
AI Technical Summary
Existing network analyzers cannot accurately test the network performance parameters of actual terminal devices on physical links in real time, resulting in the inability to monitor and reflect the actual transmitted packet status in real time, affecting network fault diagnosis and optimization.
By connecting the network analyzer to the terminal device, using the combination of software and hardware methods, the packet information is marked and analyzed in real time, including high-precision timestamps and checksums, and statistics of the delay, jitter, packet loss rate and other parameters of the packet to achieve the goal of Network performance test of actual terminal devices sending messages on physical links.
Real-time monitoring and analysis of network performance parameters is realized, network defects and equipment failure points can be accurately discovered, the accuracy and efficiency of network problem diagnosis is improved, and network optimization is provided.
Smart Images

Figure CN119299349A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network performance testing and analysis, and in particular to a method for testing network performance parameters of a terminal device on a physical link. Background Art
[0002] When in-vehicle Ethernet devices are used in networking applications, network performance parameters such as transmission delay, jitter, and packet loss rate have a crucial impact on real-time performance and reliability. Transmission delay refers to the time required for data to travel from the sender to the receiver, jitter refers to the instability of this transmission time, and packet loss rate refers to the proportion of data packets lost during data transmission. These performance indicators directly affect the communication quality and efficiency of the in-vehicle network, so accurate testing of them is a key step to ensure the normal operation of the network.
[0003] Currently, network analyzers are commonly used to test these network performance parameters. These devices usually perform a self-transmitting and self-receiving test, that is, the network analyzer acts as both the sender and receiver of the data message. In this way, the network analyzer can measure the transmission delay, jitter and packet loss rate of the message in a closed system. This test method is widely used because it is easy to operate and the results are quickly available.
[0004] However, existing network analyzers have obvious limitations. Since the test is based on the transmission and reception of the network analyzer itself, rather than the communication mode of the actual equipment in the network, the test results cannot accurately reflect the performance of the actual network equipment during operation. This means that although the test results may be statistically close to the actual situation, in actual applications, especially when there are problems in the network, the existing test methods cannot monitor and reflect the actual transmission message status in real time. This inconsistency creates obstacles when diagnosing and solving problems, making it difficult for network administrators to optimize network performance or debug network failures based on test results. Therefore, developing a new test method for network equipment in the actual operating environment, which can monitor and analyze the transmission delay, jitter and packet loss rate of actual messages in the network in real time, is of great significance to improving the network reliability and performance of in-vehicle Ethernet equipment. Summary of the invention
[0005] In view of this, the present invention proposes a method for testing network performance parameters of a terminal device on a physical link. The present invention solves the problem that the current network analyzer cannot test the delay, jitter and packet loss rate of a message sent by an actual terminal device on a physical link in real time through a combination of software and hardware. The method is simple and has little cost increase. It can not only realize the test of the delay, jitter and packet loss rate on a physical link by the current network analyzer, but also reflect the link status of actual applications. It is more customer-friendly and more conducive to project problem solving.
[0006] To this end, the present invention adopts the following technical solutions:
[0007] The present invention provides a method for testing network performance parameters of a terminal device on a physical link, the method comprising:
[0008] Connecting the network analyzer to the network of the terminal device includes: connecting the P1 port of the network analyzer to the X1 port of the source device; connecting the P2 port of the network analyzer to the X2 port of the switch network; connecting the P4 port of the network analyzer to the X3 port of the switch network; connecting the P3 port of the network analyzer to the X4 port of the sink device;
[0009] The network analyzer marks the message received at the P1 port. The marked message is sent to the switch network through the P2 port, and then enters the network analyzer through the P4 port. The received message will be marked again.
[0010] The network analyzer collects message information according to the tags, analyzes the message information in real time, and tests the network performance parameters of the actual terminal device sending the message on a physical link.
[0011] Furthermore, the network performance parameters include: delay, jitter, packet loss and disorder.
[0012] Furthermore, the mark includes: a high-precision timestamp for calculating delay, a checksum for ensuring data integrity, and a packet sequence number for identifying a message sequence.
[0013] Furthermore, the network analyzer counts message information according to the tags, including: the ports P1, P2, P3, and P4 of the network analyzer have the following statistics: the number of received messages, the number of sent messages, the receiving rate, the sending rate, and the number of received FCS error messages.
[0014] Furthermore, the network analyzer collects message information according to the tags, including: when receiving messages from the source device, the P1 port and the P4 port of the network analyzer select filtering conditions, each filtering condition is defined as a flow, and each flow has independent statistical information: the number of received messages, the number of forwarded messages, the receiving rate, the forwarding rate, the average delay, the maximum delay, the minimum delay, the average delay jitter, the maximum delay jitter, the minimum delay jitter, the real-time packet loss number and the number of out-of-order messages.
[0015] Furthermore, the delay of sending a message by an actual terminal device on a physical link is tested in real time, including:
[0016] Add the first timestamp of the Ethernet message received by the P1 port to the end of the message and send it out through the P2 port;
[0017] After recording the second timestamp of the Ethernet message received by the P4 port, remove the first timestamp of the message and send it out through the P3 port;
[0018] The delay of the message on the switch network is obtained by subtracting the second timestamp of the message from the first timestamp.
[0019] Furthermore, the packet loss, jitter, and disorder of messages sent by actual terminal devices on a physical link are tested in real time, including:
[0020] The same type of different life signal messages are screened out through message features, and the number of packet losses, jitter, and disorder are counted through the continuity relationship of life signals.
[0021] Advantages and positive effects of the present invention:
[0022] The present invention can comprehensively evaluate network performance and accurately discover network defects by testing key information such as network delay, jitter, delay, number of packets sent, number of packet losses, minimum jitter, maximum jitter, etc. of messages sent from one device to another on the actual network in real time. This testing method can not only help the project team identify problems with equipment and network cables, but also reveal problems with equipment configuration, such as switch configuration errors that may cause specific messages to not be transmitted as expected. At the same time, by combining the statistical information of the source device and the host device, the present invention can also effectively discover the fault points of the terminal device. Such a comprehensive testing and analysis capability significantly improves the accuracy and efficiency of network problem diagnosis and provides strong support for network optimization and management. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 This is a connection diagram of an Ethernet physical interface in an embodiment of the present invention;
[0025] Figure 2 A flowchart of software processing in an embodiment of the present invention;
[0026] Figure 3 This is a network wiring diagram for testing CCU to trailer RIOM on a subway train network in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] The present invention provides a method for testing the network performance parameters of a terminal device on a physical link. The method uses a network analyzer for testing. The original network wiring method is that the X1 port of the source device is connected to the X2 port of the switch network through an Ethernet cable, and the X3 port of the switch network is connected to the X4 port of the sink device through an Ethernet cable, so that the source device sends a message to the sink device. The actual test wiring method is as follows Figure 1 As shown, the analyzer is connected in series between the source device, the sink device and the switch network. Specifically, the P1, P2, P4, and P3 ports of the network analyzer are connected to the X1 port of the source device, the X2 port of the switch network, the X3 port of the switch network, and the X4 port of the sink device, respectively. The message sent from the source device is processed by the link channel of the network analyzer P1->P2 and then sent to the switch network. The switch network forwards the message to the P4 port of the analyzer, and after being processed by the P4->P3 link channel, it is sent to the sink device.
[0030] Port information statistics: The analyzer's ports P1, P2, P3, and P4 have the following statistics: number of received packets, number of sent packets, receiving rate, sending rate, and number of received FCS error packets.
[0031] Flow information statistics: When the analyzer's ports P1 and P4 receive messages from the source device, you can select filtering conditions. Each filtering condition is defined as a flow. Each flow has independent statistical information: number of received messages, number of forwarded messages, receiving rate, forwarding rate, average delay, maximum delay, minimum delay, average delay jitter, maximum delay jitter, minimum delay jitter, real-time packet loss number, and number of out-of-order messages.
[0032] Adding label blocks: During the test, the network analyzer will mark the messages received by the P1 port. These marks contain information such as high-precision timestamps for calculating delays, checksums to ensure data integrity, and packet numbers for identifying message sequence.
[0033] Transmission and reception of messages: The marked messages are sent to the switch network through the P2 port, and then enter the network analyzer through the P4 port. After receiving, the message will be recorded with the receiving timestamp information again.
[0034] Real-time data analysis: Through the network analyzer, the timestamps of message sending and receiving can be compared to calculate the precise delay. In addition, the continuous relationship between life signals can be used to count network problems such as packet loss, jitter, and disorder.
[0035] like Figure 2 As shown, a method for testing network performance parameters of a terminal device on a physical link in an embodiment of the present invention is applied to a network analyzer. The core hardware of the network analyzer is implemented using FPGA. The FPGA can record accurate timestamps and shorten the analysis time of the network analyzer. Specifically, the method includes the following steps:
[0036] S1, FPGA adds the timestamp 1 of the Ethernet message received by port P1 to the end of the message and sends it out through port P2;
[0037] S2, FPGA records the timestamp 2 of the Ethernet message received at port P4, removes the timestamp 1 of the message, and sends it out through port P3;
[0038] S3, FPGA uses the timestamp 2 of the message to make a difference with the timestamp 1 to obtain the delay of the message on the switch network;
[0039] S4. FPGA filters out different life signal messages of the same type through message features, and counts packet loss, jitter, and disorder through the continuity relationship of life signals.
[0040] To facilitate understanding, the test method in the above embodiment is explained below by taking the network delay, jitter, number of packets sent, number of packet losses, minimum jitter, maximum jitter and other information of a message sent by the CCU of car Mp1 on a subway train network through the switch network to reach car T RIOM as an example.
[0041] like Figure 3 As shown, unscrew the network cable connecting the CCU of MP1 car to CS2, connect it to the P1 port of the network analyzer, use a new network cable to connect the P2 port of the network analyzer and the interface between CS2 and the CCU of MP1 car, unscrew the network cable connecting the RIOM of T car to CS3, connect it to the P3 port of the network analyzer, use a new network cable to connect the P4 port of the network analyzer and the interface between CS3 and the RIOM of T car.
[0042] After the network cable is connected, start the network analyzer, connect the network analyzer through the computer and open the management software to configure the labels of the messages to be processed, such as configuring the message source IP, destination IP, sending port number, and data values with message characteristics (the train network uses the TRDP protocol for communication, and the TRDP message header is the first 40 bytes of the UDP message user data. It can be based on the offset defined by the specific variables of the TRDP message header, such as setting the ComID label-different TRDP message identification code). Through label configuration, the network analyzer can identify the only message that needs to be analyzed. Repeat the above process to configure multiple messages that need to be analyzed, and realize the analysis of multiple messages in one analysis process.
[0043] After the configuration is completed, click the "Execute" button on the network analyzer operation interface to start real-time analysis of the message flow. Through the monitor interface of the analyzer management software, you can view the network delay, jitter, number of packets sent, number of packets lost, minimum jitter, maximum jitter and other information of the monitored message flow in real time.
[0044] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing network performance parameters of a terminal device on a physical link, characterized in that: The method comprises: Connecting the network analyzer to the network of the terminal device includes: connecting the P1 port of the network analyzer to the X1 port of the source device; connecting the P2 port of the network analyzer to the X2 port of the switch network; connecting the P4 port of the network analyzer to the X3 port of the switch network; connecting the P3 port of the network analyzer to the X4 port of the sink device; The network analyzer marks the message received at the P1 port. The marked message is sent to the switch network through the P2 port, and then enters the network analyzer through the P4 port. The received message will be marked again. The network analyzer collects message information according to the tags, analyzes the message information in real time, and tests the network performance parameters of the actual terminal device sending the message on a physical link.
2. A method for testing network performance parameters of a terminal device on a physical link according to claim 1, characterized in that: The network performance parameters include: delay, jitter, packet loss and out-of-order.
3. A method for testing network performance parameters of a terminal device on a physical link according to claim 1, characterized in that: The mark includes: a high-precision time stamp for calculating delay, a checksum for ensuring data integrity, and a packet sequence number for identifying the message sequence.
4. A method for testing network performance parameters of a terminal device on a physical link according to claim 1, characterized in that: The network analyzer collects statistics on message information according to the tags, including: the ports P1, P2, P3, and P4 of the network analyzer have the following statistics: the number of received messages, the number of sent messages, the receiving rate, the sending rate, and the number of received FCS error messages.
5. A method for testing network performance parameters of a terminal device on a physical link according to claim 1, characterized in that: The network analyzer collects message information according to the tags, including: when the P1 port and P4 port of the network analyzer receive messages from the source device, they select filtering conditions. Each filtering condition is defined as a flow, and each flow has independent statistical information: number of received messages, number of forwarded messages, receiving rate, forwarding rate, average delay, maximum delay, minimum delay, average delay jitter, maximum delay jitter, minimum delay jitter, real-time packet loss number and number of out-of-order messages.
6. A method for testing network performance parameters of a terminal device on a physical link according to claim 2, characterized in that: Real-time test of the delay of the actual terminal device sending messages on a physical link, including: Add the first timestamp of the Ethernet message received by the P1 port to the end of the message and send it out through the P2 port; After recording the second timestamp of the Ethernet message received by the P4 port, remove the first timestamp of the message and send it out through the P3 port; The delay of the message on the switch network is obtained by subtracting the second timestamp of the message from the first timestamp.
7. A method for testing network performance parameters of a terminal device on a physical link according to claim 2, characterized in that: Real-time testing of packet loss, jitter, and disorder of messages sent by actual terminal devices on a physical link, including: Based on the message characteristics, the same type of different life signal messages are screened out, and the number of packet losses, jitter and disorder are counted through the continuity relationship of the life signals.