CN114374625A - Time-sensitive network testing method and device, electronic equipment and storage medium - Google Patents

Time-sensitive network testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114374625A
CN114374625A CN202111599911.7A CN202111599911A CN114374625A CN 114374625 A CN114374625 A CN 114374625A CN 202111599911 A CN202111599911 A CN 202111599911A CN 114374625 A CN114374625 A CN 114374625A
Authority
CN
China
Prior art keywords
transmission
time
data packet
node
sensitive network
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
CN202111599911.7A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202111599911.7A priority Critical patent/CN114374625A/en
Publication of CN114374625A publication Critical patent/CN114374625A/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
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps

Abstract

The invention provides a time-sensitive network testing method, a time-sensitive network testing device, electronic equipment and a storage medium, wherein the time-sensitive network testing method is applied to a field programmable gate array and comprises the following steps: determining a transmission link of a data packet based on a time sensitive network, wherein the transmission link comprises a transmission source node and a transmission destination node; transmitting the data packet at the transmission source node and receiving the data packet at the transmission destination node, wherein the data packet comprises timestamp information; and analyzing the transmission performance of the data packet along the transmission link based on the time stamp information. The time-sensitive network testing method provided by the invention realizes the test and analysis of the transmission performance of the data packet based on the time-sensitive network.

Description

Time-sensitive network testing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computer networks, in particular to a time-sensitive network testing method and device, electronic equipment and a storage medium.
Background
A Time Sensitive Network (TSN) is a set of protocol standards under the IEEE 802.1 standard framework and aims to provide deterministic minimum delay data transmission for ethernet. The method defines mechanisms such as time synchronization, traffic scheduling and shaping in the Ethernet, and increases the determinacy and reliability for the standard Ethernet. The time-sensitive network has important application in industry 4.0, and can fuse two network layers, namely an Operation Technology (OT) and an Information Technology (IT), which are the most critical network layers of an industrial network, so as to realize common-network transmission of different data. Compared with a closed traditional industrial control network, the time-sensitive network not only improves the universality and connectivity among industrial devices, but also provides technical support for a series of new services such as big data analysis, automatic network configuration, intelligent device connection and the like.
As known in the related art, a time-sensitive network can support co-networking of multiple time-sensitive data streams and common ethernet data streams. In the application process, the gating list of each switch needs to be configured, and the data frame forwarding logic and time of each switch are planned in advance to meet the requirements of communication delay sizes and determinacy of different data streams. However, currently, there is no test for performance index such as data packet transmission delay based on time sensitive network.
Disclosure of Invention
The invention provides a time-sensitive network testing method, a time-sensitive network testing device, electronic equipment and a storage medium, which are used for solving the defect that the prior art does not have the defect of testing performance indexes such as data packet transmission delay and the like based on a time-sensitive network and realizing the test and analysis of the transmission performance of a data packet based on the time-sensitive network.
The invention provides a time sensitive network testing method, which is characterized in that the time sensitive network testing method is applied to a field programmable gate array and comprises the following steps: determining a transmission link of a data packet based on a time sensitive network, wherein the transmission link comprises a transmission source node and a transmission destination node; transmitting the data packet at the transmission source node and receiving the data packet at the transmission destination node, wherein the data packet comprises timestamp information; and analyzing the transmission performance of the data packet along the transmission link based on the time stamp information.
The time-sensitive network testing method provided by the invention is characterized in that the transmission link further comprises a plurality of transmission intermediate nodes, and the time-sensitive network testing method further comprises the following steps: and carrying out nanosecond time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node.
The time-sensitive network testing method provided by the invention is characterized in that the nanosecond time synchronization setting is carried out on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node, and comprises the following steps: respectively determining a master node and a slave node in the transmission source node, the plurality of transmission intermediate nodes and two adjacent nodes of the transmission destination node; determining a communication latency between the master node and the slave node based on a reception time difference, wherein the reception time difference is a time difference between the master node and the slave node receiving for a synchronization frame; and adjusting the local clock offset of the slave node based on the communication delay, and performing nanoscale time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node based on the local clock offset.
The time-sensitive network testing method provided by the invention is characterized by further comprising the following steps: recording timestamp information of the data packet transmitted to the transmission intermediate node; the transmission performance comprises transmission delay and transmission jitter, and the analyzing the transmission performance of the data packets along the transmission link based on the timestamp information comprises: acquiring the data packet at the transmission destination node based on direct memory access, and extracting the timestamp information in the data packet, wherein the timestamp information comprises node timestamp information of the data packet at each node reaching the transmission link; and analyzing the transmission delay and transmission jitter of the data packet along the transmission link based on the node timestamp information.
The time-sensitive network testing method provided by the invention is characterized in that the data packet comprises a data frame structure, and the data frame structure is determined by adopting the following method: determining a structural format, wherein the structural format at least comprises a destination address, a source address, a label protocol identifier, a virtual local area network label, a data frame length, a data flow ID, a data packet ID and the node timestamp information of each node; and obtaining the data frame structure based on the structure format.
The invention also provides a time-sensitive network testing device, which is characterized in that the time-sensitive network testing device is applied to a field programmable gate array and comprises the following components: the device comprises a determining module, a transmitting module and a receiving module, wherein the determining module is used for determining a transmitting link of a data packet based on a time sensitive network, and the transmitting link comprises a transmitting source node and a transmitting destination node; a processing module, configured to send the data packet at the transmission source node and receive the data packet at the transmission destination node, where the data packet includes timestamp information; and the analysis module is used for analyzing the transmission performance of the data packet along the transmission link based on the timestamp information.
According to the time-sensitive network testing device provided by the invention, the transmission link further comprises a plurality of transmission intermediate nodes, and the time-sensitive network testing device further comprises: and the setting module is used for carrying out nanosecond time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of any one of the time-sensitive network testing methods described above.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the time sensitive network testing method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the time-sensitive network testing method as described in any one of the above.
The time-sensitive network testing method, the time-sensitive network testing device, the electronic equipment and the storage medium provided by the invention are used for determining a transmission link of a data packet based on a time-sensitive network, sending the data packet at a transmission source node and receiving the data packet at a transmission destination node, and analyzing the transmission performance of the data packet along the transmission link according to timestamp information in the data packet. The test and analysis of the transmission performance of the data packet based on the time sensitive network are realized.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a time-sensitive network testing method provided by the present invention;
FIG. 2 is a second schematic flow chart of a method for testing a time-sensitive network according to the present invention;
fig. 3 is one of the flow diagrams illustrating the nanosecond time synchronization setting performed on the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node according to the present invention;
FIG. 4 is a schematic diagram illustrating a calculation principle of data transmission delay in the time synchronization process according to the present invention;
fig. 5 is a schematic flow chart of analyzing transmission performance of a data packet along a transmission link based on timestamp information according to the present invention;
FIG. 6 is a schematic diagram of the location of node timestamp information provided by the present invention;
FIG. 7 is a schematic structural diagram of a time-sensitive network testing apparatus provided in the present invention;
fig. 8 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
The time sensitive network may support co-networking of multiple time sensitive data streams with a common ethernet data stream. In the application process, the gating list of each switch needs to be configured, and the data frame forwarding logic and time of each switch are planned in advance to meet the requirements of communication delay sizes and determinacy of different data streams.
As known in the art, many researchers have attempted to configure various switches in a network topology according to communication requirements between different devices, so as to schedule data flows to meet application requirements. However, most of the related work only verifies the switch configuration through software simulation, and performance indexes such as packet transmission delay and delay distribution are not tested on the basis of an actual time-sensitive network. On one hand, although some manufacturers have developed switches supporting time-sensitive networks, industrial equipment supporting time synchronization protocols is rare, and the frequency of transmitting and receiving data packets by the equipment is difficult to debug. Time sensitive networks, on the other hand, require time accuracy on the nanosecond level. Therefore, testing it requires recording the time stamp of each packet in time-synchronized hardware and analyzing each packet.
The invention provides a time-sensitive network testing method, which analyzes the transmission performance of a data packet along a transmission link according to timestamp information in the data packet in the transmission process. The test and analysis of the transmission performance of the data packet based on the time sensitive network are realized.
The time-sensitive network testing method provided by the invention can be applied to the field programmable gate array. A Field Programmable Gate Array (FPGA) is a semi-custom integrated circuit. A field programmable gate array may flexibly implement various hardware logic through a hardware description language. In the application process, many fpga development boards may also include a general-purpose processor chip. Through reasonable hardware Logic and software drive design, Programmable Logic (also called PL) in a field Programmable gate array development board and a Processor System (also called PS) can perform data interaction.
The procedure of the time-sensitive network testing method provided by the present invention will be described with reference to the following examples.
Fig. 1 is a schematic flow chart of a time-sensitive network testing method provided by the present invention.
In an exemplary embodiment of the present invention, as shown in fig. 1, the time-sensitive network testing method may include steps 110 to 130, which will be described separately below.
In step 110, a transmission link for the data packet is determined based on the time-sensitive network, wherein the transmission link includes a transmission source node and a transmission destination node.
In one embodiment, the transmission link for the data packet may be determined based on a time sensitive network. It will be appreciated that the transmission link may be a multi-hop data stream link. A transmission link may comprise a transmission source node as well as a transmission destination node. In one example, the transmission source node and the transmission destination node on each data flow link may be test equipment, and each hop in the network may be a time-sensitive switch.
In step 120, a data packet is transmitted at a transmission source node, and the data packet is received at a transmission destination node, wherein the data packet includes time stamp information.
In an embodiment, time synchronization hardware may be utilized to send a data packet at a transmission source node and receive a data packet at a transmission destination node, and corresponding timestamp information is recorded at the transceiving ports of all nodes, it is understood that the timestamp information may be recorded at each hop of a multi-hop data stream link.
In an example, the production mode of the data packet may be configured based on a direct memory access manner, and the data packet is read at the receiving node or the transmission destination node to analyze the network performance of the time-sensitive network.
In step 130, the transmission performance of the data packet along the transmission link is analyzed based on the time stamp information.
In one embodiment, after receiving a data packet sent to the test device of the transmission destination node of the link, the test device sends the data packet to the processor system in a direct memory access manner. The processor system extracts from it time stamp information about the data frames received and transmitted by the respective nodes on the link. Further, based on the timestamp information, the end-to-end delay and jitter of all packets in each data flow and the scheduling performance of the time-sensitive network data flow can be analyzed.
In yet another embodiment, in order to test the performance index of the time-sensitive network under various different data stream loads, the test equipment located at the transmission source node of the link needs to accurately generate and send data packets with time precision on the nanosecond level. In this implementation, the corresponding parameters of the multiple data streams may be configured at the processor system according to the test topology. The processor system may configure the corresponding registers of the packet generation module on the programmable logic via the general purpose interface. In an example, the packet generation module may configure parameters such as a packet sending period, a packet sending number per period, a packet sending time interval, a VLAN, a packet size, and the like of the plurality of data streams, respectively. After the configuration is finished, the data packet generating module sends a data packet to the Ethernet media access controller according to the AXI-Stream protocol based on the finite state automata.
In this embodiment, by analyzing forwarding and queuing times of all switches on the link, a network bottleneck in the link can be found out. The multiple processor systems can obtain the influence of each data stream in the whole network topology on the time-sensitive network performance by performing integrated offline analysis on the received data, so that a data stream scheduling algorithm is optimized in a targeted manner.
The time-sensitive network testing method provided by the invention can determine the transmission link of the data packet based on the time-sensitive network, send the data packet at the transmission source node and receive the data packet at the transmission destination node, and analyze the transmission performance of the data packet along the transmission link according to the timestamp information in the data packet. The test and analysis of the transmission performance of the data packet based on the time sensitive network are realized.
To further describe the time-sensitive network testing method provided by the present invention, the following embodiments are described below.
Fig. 2 is a second schematic flow chart of the time-sensitive network testing method provided by the present invention.
In an exemplary embodiment of the present invention, the transmission link may further include a plurality of transmission intermediate nodes, and it is understood that a transmission intermediate node may correspond to each hop on the time-sensitive network link. As shown in fig. 2, the time-sensitive network testing method may include steps 210 to 240, where steps 210 to 230 are the same as steps 110 to 130 described above, and the detailed description and advantageous effects thereof refer to the foregoing description, which is not repeated herein, and step 240 will be described in detail below.
In step 240, nanosecond time synchronization setting is performed on the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node.
In an embodiment, in a time-sensitive network, nodes (including a transmission source node, a transmission intermediate node, and a transmission destination node) in a local area network may perform point-to-point nanosecond-level time synchronization according to an 802.1AS protocol, so that all nodes perform data flow scheduling, data packet transceiving, and the like at the same time. Each time-sensitive network test device has a local clock and needs to perform point-to-point time synchronization according to time synchronization data frames sent by surrounding network nodes.
The following describes a procedure of nanosecond time synchronization setting of a transmission source node, a plurality of transmission intermediate nodes, and a transmission destination node, with reference to the following embodiments.
Fig. 3 is one of the flow diagrams illustrating the nanosecond time synchronization setting performed on the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node according to the present invention.
In an exemplary embodiment of the present invention, as shown in fig. 3, the setting of nanosecond time synchronization for the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node may include steps 310 to 330, which will be described below.
In step 310, a master node and a slave node are respectively determined among two neighboring nodes of a transmission source node, a plurality of transmission intermediate nodes, and a transmission destination node.
In step 320, a communication latency between the master node and the slave node is determined based on a reception time difference, wherein the reception time difference is a time difference at which the master node and the slave node receive for the synchronization frame.
In step 330, the local clock offset of the slave node is adjusted based on the communication delay, and the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node are set to be time-synchronized at a nanometer scale based on the local clock offset.
In one embodiment, as shown in fig. 4, one of the two network nodes between any one hop is a master node, and the other is a slave node. The master node sends a sync frame to the slave node at time t0, the slave node receives the sync frame at time t1 locally, and returns a reply frame at time t 2. The master node finally receives the reply frame at time t3 locally and sends corresponding information to the slave node. Thus, the slave node can calculate the communication delay with the master node by the formula ((t3-t0) - (t2-t 1))/2.
During the application process, the time sensitive network switch may send a time synchronization message to the test device with the destination MAC address being a reserved address (e.g., 1-80-C2-00-00-0E). The destination address does not exist in the real topology and is not forwarded. When the test equipment receives the message, the message can be sent to the processor system in a direct memory access mode, the processor system executes the time synchronization logic and initiates a reply or calculates the link delay. After calculating the link delay, the processor system also adjusts the offset and timing of the local clock on the programmable logic based on the results to align with the master node. By the mode, nanoscale time synchronization setting of the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node is sequentially realized.
The present invention will be described with reference to the following embodiments, which are used to analyze the transmission performance of data packets along a transmission link based on timestamp information.
Fig. 5 is a schematic flow chart of analyzing transmission performance of a data packet along a transmission link based on timestamp information according to the present invention.
In an exemplary embodiment of the invention, the time-sensitive network testing method may further include recording timestamp information of data packet transmission to the transmission intermediate node, and the transmission performance includes transmission delay and transmission jitter. As shown in fig. 5, analyzing the transmission performance of the data packet along the transmission link based on the timestamp information may include steps 510 and 520, which are described below.
In step 510, based on the dma, a data packet is obtained at a transmission destination node, and timestamp information in the data packet is extracted, where the timestamp information includes node timestamp information of the data packet at each node of the transmission link.
In step 520, the transmission delay and transmission jitter of the data packets along the transmission link are analyzed based on the node timestamp information.
In one embodiment, timestamp information may be obtained at the sending and receiving ports of each node of the time sensitive network. As shown in fig. 6, the positions of the timestamps on the multi-hop data stream links need to be recorded, and the marked time instants correspond to the first partial data frame structure one to one. When the transmission source node generates a packet, all timestamp field values are 0. All timestamp modules use the same hardware logic regardless of the location. During the transmission of data packets, each time stamp hardware will modify the content of the data frame as it passes by, writing the time stamp into the first data frame
Figure BDA0003432813480000101
Position while shifting the original content back by 8 bytes. In this way, the timestamp information may correspond one-to-one with each node location as the processor system portion of the destination node reads the data frame from the hardware.
In an exemplary embodiment of the present invention, the data packet may include a data frame structure, wherein the data frame structure may be determined in the following manner: determining a structural format, wherein the structural format at least comprises a destination address, a source address, a label protocol identifier, a virtual local area network label, a data frame length, a data flow ID, a data packet ID and node timestamp information of each node; and obtaining a data frame structure based on the structure format.
The invention aims to analyze the per-hop and end-to-end delay of each data packet of each data flow on a link on a complex network topology. Because the time sensitive network is the complement of the ethernet protocol, the frame structure of the ethernet is adopted, but the data content in the data packet is specified.
In an embodiment, if n nodes (including the transmission source node and the transmission destination node) are present between a data stream from the transmission source node to the transmission destination node, the corresponding time-sensitive network test data frame structure may be set in the manner shown in table 1.
TABLE 1 time sensitive network test data frame Structure
Figure BDA0003432813480000111
In the application process, the VLAN tag may be set according to 802.1Q and time sensitive network protocols for priority classification of different data streams in the network. The data frame length is a minimum of 46 bytes as specified by ethernet, and therefore the length field is a minimum of 46 bytes. If the content required for storing the time stamp is less than 46 bytes, the excess portion is set to 0.
In one implementation, when the ethernet media access controller in the programmable logic receives the first bit data of the data packet from the physical link, the time stamp of the current local clock is recorded, and then the content of the data frame is modified during the process of receiving the data packet. In this embodiment, the device and other hardware and software modules in the time-sensitive network switch are unaware of the timestamp mechanism.
In one embodiment, the data packet may be obtained at the transmission destination node based on direct memory access, where the data packet includes node timestamp information of the data packet at each node arriving at the transmission link. Further, the transmission delay and transmission jitter of the data packets along the transmission link can be analyzed based on the node timestamp information.
The time-sensitive network testing method provided by the invention is based on the characteristic that the field programmable gate array can customize hardware and software and hardware interaction, and provides a testing method capable of carrying out nanosecond time synchronization, transceiving and data packet analysis with a time-sensitive network node. The performance test problem under the scenes of multi-hop topology and multi-data flow field on the time sensitive network is solved. The time-sensitive network testing method provided by the invention not only can be used for counting the end-to-end network delay between the data stream source node and the destination node, but also can be used for deeply analyzing the delay of each hop in a link.
According to the above description, it can be seen that the time-sensitive network testing method provided by the present invention can determine the transmission link of the data packet based on the time-sensitive network, send the data packet at the transmission source node and receive the data packet at the transmission destination node, and analyze the transmission performance of the data packet along the transmission link according to the timestamp information in the data packet. The test and analysis of the transmission performance of the data packet based on the time sensitive network are realized.
Based on the same conception, the invention also provides a time-sensitive network testing device.
The time-sensitive network testing device provided by the invention is described below, and the time-sensitive network testing device described below and the time-sensitive network testing method described above can be referred to correspondingly.
FIG. 7 is a schematic structural diagram of a time-sensitive network testing apparatus according to the present invention.
In an exemplary embodiment of the present invention, the time sensitive network test apparatus may be applied to a field programmable gate array. As shown in fig. 7, the time-sensitive network test apparatus may include a determination module 710, a processing module 720, and an analysis module 730. Each module will be described separately below.
The determining module 710 may be configured to determine a transmission link of the data packet based on the time-sensitive network, where the transmission link includes a transmission source node and a transmission destination node.
The processing module 720 may be configured for sending a data packet at a transmission source node and receiving a data packet at a transmission destination node, wherein the data packet includes timestamp information.
The analyzing module 730 may be configured for analyzing the transmission performance of the data packets along the transmission link based on the time stamp information.
In an exemplary embodiment of the present invention, the transmission link further includes a plurality of transmission intermediate nodes, and the time-sensitive network testing apparatus further includes a setting module. The setting module may be configured to perform nanosecond time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node.
In an exemplary embodiment of the present invention, the setting module may perform nanosecond time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node in the following manner: respectively determining a main node and a slave node in a transmission source node, a plurality of transmission intermediate nodes and two adjacent nodes of a transmission destination node; determining a communication delay between the master node and the slave node based on a reception time difference, wherein the reception time difference is a time difference between the master node and the slave node for receiving the synchronization frame; and adjusting the local clock offset of the slave node based on the communication delay, and performing nanoscale time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node based on the local clock offset.
In an exemplary embodiment of the present invention, the time-sensitive network testing apparatus may further include a recording module, wherein the recording module may be configured to: and recording the timestamp information of the data packet transmitted to the transmission intermediate node. The transmission performance includes transmission delay and transmission jitter, and the analyzing module 730 can analyze the transmission performance of the data packet along the transmission link based on the timestamp information in the following manner: based on direct memory access, acquiring a data packet at a transmission destination node, and extracting timestamp information in the data packet, wherein the timestamp information comprises node timestamp information of the data packet at each node of a transmission link; and analyzing the transmission delay and transmission jitter of the data packet along the transmission link based on the node time stamp information.
In an exemplary embodiment of the invention, the data packet includes a data frame structure, and the determining module 710 may determine the data frame structure in the following manner: determining a structural format, wherein the structural format at least comprises a destination address, a source address, a label protocol identifier, a virtual local area network label, a data frame length, a data flow ID, a data packet ID and node timestamp information of each node; and obtaining a data frame structure based on the structure format.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call logic instructions in the memory 830 to perform a time-sensitive network test method, wherein the time-sensitive network test method may be applied to a field programmable gate array the method may include: determining a transmission link of a data packet based on a time sensitive network, wherein the transmission link comprises a transmission source node and a transmission destination node; transmitting a data packet at a transmission source node and receiving the data packet at a transmission destination node, wherein the data packet comprises timestamp information; and analyzing the transmission performance of the data packet along the transmission link based on the time stamp information.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer being capable of executing the time-sensitive network testing method provided by the above methods, wherein the time-sensitive network testing method can be applied to a field programmable gate array, and the method can include: determining a transmission link of a data packet based on a time sensitive network, wherein the transmission link comprises a transmission source node and a transmission destination node; transmitting a data packet at a transmission source node and receiving the data packet at a transmission destination node, wherein the data packet comprises timestamp information; and analyzing the transmission performance of the data packet along the transmission link based on the time stamp information.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the time-sensitive network testing method provided by the above methods, wherein the time-sensitive network testing method can be applied to a field programmable gate array, and the method can include: determining a transmission link of a data packet based on a time sensitive network, wherein the transmission link comprises a transmission source node and a transmission destination node; transmitting a data packet at a transmission source node and receiving the data packet at a transmission destination node, wherein the data packet comprises timestamp information; and analyzing the transmission performance of the data packet along the transmission link based on the time stamp information.
The above-described embodiments of the apparatus are merely illustrative, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A time-sensitive network testing method is applied to a field programmable gate array and comprises the following steps:
determining a transmission link of a data packet based on a time sensitive network, wherein the transmission link comprises a transmission source node and a transmission destination node;
transmitting the data packet at the transmission source node and receiving the data packet at the transmission destination node, wherein the data packet comprises timestamp information;
and analyzing the transmission performance of the data packet along the transmission link based on the time stamp information.
2. The method of time-sensitive network testing of claim 1, wherein the transmission link further comprises a plurality of transmission intermediate nodes, the method further comprising:
and carrying out nanosecond time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node.
3. The method for testing a time-sensitive network according to claim 2, wherein the setting of nanosecond time synchronization for the transmission source node, the plurality of transmission intermediate nodes, and the transmission destination node comprises:
respectively determining a master node and a slave node in the transmission source node, the plurality of transmission intermediate nodes and two adjacent nodes of the transmission destination node;
determining a communication latency between the master node and the slave node based on a reception time difference, wherein the reception time difference is a time difference between the master node and the slave node receiving for a synchronization frame;
and adjusting the local clock offset of the slave node based on the communication delay, and performing nanoscale time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node based on the local clock offset.
4. The method of time-sensitive network testing of claim 2, further comprising: recording timestamp information of the data packet transmitted to the transmission intermediate node; the transmission performance comprises transmission delay and transmission jitter, and the analyzing the transmission performance of the data packets along the transmission link based on the timestamp information comprises:
acquiring the data packet at the transmission destination node based on direct memory access, and extracting the timestamp information in the data packet, wherein the timestamp information comprises node timestamp information of the data packet at each node reaching the transmission link;
and analyzing the transmission delay and transmission jitter of the data packet along the transmission link based on the node timestamp information.
5. The method of claim 4, wherein the data packet comprises a data frame structure, and wherein the data frame structure is determined by:
determining a structural format, wherein the structural format at least comprises a destination address, a source address, a label protocol identifier, a virtual local area network label, a data frame length, a data flow ID, a data packet ID and the node timestamp information of each node;
and obtaining the data frame structure based on the structure format.
6. A time-sensitive network testing device, which is applied to a field programmable gate array, comprises:
the device comprises a determining module, a transmitting module and a receiving module, wherein the determining module is used for determining a transmitting link of a data packet based on a time sensitive network, and the transmitting link comprises a transmitting source node and a transmitting destination node;
a processing module, configured to send the data packet at the transmission source node and receive the data packet at the transmission destination node, where the data packet includes timestamp information;
and the analysis module is used for analyzing the transmission performance of the data packet along the transmission link based on the timestamp information.
7. The time-sensitive network test apparatus of claim 6, wherein the transmission link further comprises a plurality of transmission intermediate nodes, the apparatus further comprising:
and the setting module is used for carrying out nanosecond time synchronization setting on the transmission source node, the plurality of transmission intermediate nodes and the transmission destination node.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the time sensitive network testing method according to any of claims 1 to 5 are implemented when the program is executed by the processor.
9. A non-transitory computer readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the time sensitive network testing method according to any of claims 1 to 5.
10. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, performs the steps of the time sensitive network testing method of any one of claims 1 to 5.
CN202111599911.7A 2021-12-24 2021-12-24 Time-sensitive network testing method and device, electronic equipment and storage medium Pending CN114374625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111599911.7A CN114374625A (en) 2021-12-24 2021-12-24 Time-sensitive network testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111599911.7A CN114374625A (en) 2021-12-24 2021-12-24 Time-sensitive network testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114374625A true CN114374625A (en) 2022-04-19

Family

ID=81141796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111599911.7A Pending CN114374625A (en) 2021-12-24 2021-12-24 Time-sensitive network testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114374625A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277519A (en) * 2022-07-30 2022-11-01 重庆长安汽车股份有限公司 Flow shaping test method, system, device and medium
CN115801544A (en) * 2023-01-29 2023-03-14 北京智芯微电子科技有限公司 Network monitoring method, equipment, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049299A (en) * 2015-08-27 2015-11-11 北京百度网讯科技有限公司 Detection method and device for time delay state information and network architecture
CN108599885A (en) * 2018-03-08 2018-09-28 清华大学 High-precision time synchronization method
US20190020551A1 (en) * 2017-07-13 2019-01-17 Avago Technologies General Ip (Singapore) Pte. Ltd. Apparatus and method for measurements at intermediate nodes in end-to-end performance test
CN111953442A (en) * 2020-06-28 2020-11-17 成都星辰瀑布通信技术有限公司 Quick high-precision time synchronization system
CN112702231A (en) * 2020-12-21 2021-04-23 交控科技股份有限公司 Network delay measuring method and system
WO2021250158A1 (en) * 2020-06-10 2021-12-16 Telefonaktiebolaget Lm Ericsson (Publ) Technique for transporting a time protocol message for time-sensitive networking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049299A (en) * 2015-08-27 2015-11-11 北京百度网讯科技有限公司 Detection method and device for time delay state information and network architecture
US20190020551A1 (en) * 2017-07-13 2019-01-17 Avago Technologies General Ip (Singapore) Pte. Ltd. Apparatus and method for measurements at intermediate nodes in end-to-end performance test
CN108599885A (en) * 2018-03-08 2018-09-28 清华大学 High-precision time synchronization method
WO2021250158A1 (en) * 2020-06-10 2021-12-16 Telefonaktiebolaget Lm Ericsson (Publ) Technique for transporting a time protocol message for time-sensitive networking
CN111953442A (en) * 2020-06-28 2020-11-17 成都星辰瀑布通信技术有限公司 Quick high-precision time synchronization system
CN112702231A (en) * 2020-12-21 2021-04-23 交控科技股份有限公司 Network delay measuring method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277519A (en) * 2022-07-30 2022-11-01 重庆长安汽车股份有限公司 Flow shaping test method, system, device and medium
CN115801544A (en) * 2023-01-29 2023-03-14 北京智芯微电子科技有限公司 Network monitoring method, equipment, system and storage medium
CN115801544B (en) * 2023-01-29 2023-05-23 北京智芯微电子科技有限公司 Network monitoring method, device, system and storage medium

Similar Documents

Publication Publication Date Title
CN108737003B (en) Methods, systems, and computer readable media for testing Time Sensitive Network (TSN) elements
US10425321B2 (en) Methods, systems, and computer readable media for testing time sensitive network (TSN) elements
JP6214008B2 (en) Method and apparatus for communicating time information between time recognition devices
KR101911579B1 (en) Controller driven oam for openflow
CN105723657B (en) Switch, controller, system and link quality detection method
CN114374625A (en) Time-sensitive network testing method and device, electronic equipment and storage medium
Steinbach et al. An extension of the OMNeT++ INET framework for simulating real-time ethernet with high accuracy
CN101521607B (en) Method and device for testing Ethernet network performance
US20160156533A1 (en) Method for time aware inline remote mirroring
US10728134B2 (en) Methods, systems, and computer readable media for measuring delivery latency in a frame-preemption-capable network
CN113347065A (en) Flow scheduling test device and method in time-sensitive network
Mildner Time sensitive networking for wireless networks-a state of the art analysis
EP3174237B1 (en) Time synchronization method and apparatus for network devices and time synchronization server
EP2751941B1 (en) A system and a method for identifying a point in time of receipt of a data packet
CN104734907A (en) Method for actively measuring end-to-end path performance of OpenFlow network and system adopted by the same
US11444831B2 (en) Methods, systems, and computer readable media for measuring schedule update time for a time aware shaper implementation
Bosk et al. Methodology and infrastructure for tsn-based reproducible network experiments
Oeldemann et al. FlueNT10G: A programmable FPGA-based network tester for multi-10-gigabit ethernet
Zarick et al. Transparent clocks vs. enterprise ethernet switches
CN112469067B (en) Method and system for monitoring network batch service flow
Miranda et al. Enabling time-sensitive network management over multi-domain wired/wi-fi networks
Senk et al. Flexible measurement testbed for evaluating Time-Sensitive networking in industrial automation applications
Simon et al. Ethernet with time sensitive networking tools for industrial networks
US20220158919A1 (en) Information Sharing Method and Apparatus in Redundancy Network, and Computer Storage Medium
CN114024598B (en) Forwarding interface test method and device

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