CN112511376A - Method and terminal for measuring TSN network forwarding time characteristic - Google Patents

Method and terminal for measuring TSN network forwarding time characteristic Download PDF

Info

Publication number
CN112511376A
CN112511376A CN202011260180.9A CN202011260180A CN112511376A CN 112511376 A CN112511376 A CN 112511376A CN 202011260180 A CN202011260180 A CN 202011260180A CN 112511376 A CN112511376 A CN 112511376A
Authority
CN
China
Prior art keywords
time
tsn
forwarding
message
recording module
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.)
Granted
Application number
CN202011260180.9A
Other languages
Chinese (zh)
Other versions
CN112511376B (en
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.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
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 Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202011260180.9A priority Critical patent/CN112511376B/en
Publication of CN112511376A publication Critical patent/CN112511376A/en
Priority to PCT/CN2021/125676 priority patent/WO2022100411A1/en
Application granted granted Critical
Publication of CN112511376B publication Critical patent/CN112511376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

The invention discloses a method and a terminal for measuring the forwarding time characteristic of a TSN (time delay network), wherein the method comprises the following steps: recording the actual time stamps of the same message passing through key processing points with preset number in the TSN equipment; collecting and storing a preset number of timestamps, and simultaneously sending the timestamps to a TSN control plane; and comparing the time stamps with the preset number with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result. The invention detects whether the TSN function is normal or not according to the measurement result by accurately measuring the TSN forwarding time characteristic, evaluates the TSN performance, and further adjusts and optimizes the business path forwarding time calculation of the TSN.

Description

Method and terminal for measuring TSN network forwarding time characteristic
Technical Field
The invention relates to the technical field of computer application, in particular to a method and a terminal for measuring the forwarding time characteristic of a TSN (time delay network).
Background
A Time Sensitive Network (TSN) refers to a set of protocol standards being developed by a TSN task group in an IEEE802.1 working group, and the standards define a Time Sensitive mechanism for ethernet data transmission, and increase determinacy and reliability for a standard ethernet to ensure that the ethernet can provide a stable and consistent service level for transmission of critical data. The Time Sensitive Network (TSN) is a new generation of network standard based on ethernet, and has functions of time synchronization, delay guarantee, and the like to ensure real-time performance. TSN in essence refers to a set of "sub-standards" that are formulated based on specific application requirements under the framework of the IEEE802.1 standard, and is intended to establish a "generic" time-sensitive mechanism for ethernet protocols to ensure time-certainty in network data transmission. Since it is under the protocol standard under IEEE802.1, TSN is only a protocol standard regarding the second layer in the ethernet communication protocol model, namely, the data link layer (more precisely, the MAC layer). The TSN provides a universal time-sensitive mechanism for the MAC layer of the Ethernet protocol, and provides possibility for the interoperation between different protocol networks while ensuring the time certainty of Ethernet data communication.
The TSN network device comprises a TSN switch and a TSN terminal, and the TSN device has the functions of global time synchronization (conforming to an IEEE802.1 AS protocol), time gating shaper (conforming to an IEEE802.1 Qbv protocol) and flow filtering supervision (conforming to an IEEE802.1 Qci protocol, and is optional).
The procedure for transmitting time sensitive traffic of the TSN is: firstly, the whole network TSN equipment must be globally time-synchronized; then the 1Qci input stream filtering and monitoring module discards or enqueues the time-sensitive service stream in different global time periods according to the configuration of the control plane, and which output queue the time-sensitive service stream is enqueued to; and finally, the 1Qbv output queue time gating module dispatches and outputs the service flows of different queues in different global time periods according to the configuration of the control surface.
The TSN can control the forwarding time of the traffic flow in each device through controlling the input and output control of each TSN device based on the global time, thereby realizing the time certainty of end-to-end transmission of the traffic flow. As shown in the TSN device forwarding time model shown in fig. 1, the time points of Tb and Tc and their actions are mainly controlled to realize the certainty of the message forwarding time. Therefore, it is the key of the deterministic forwarding of the TSN network to precisely control Tb, Tc, i.e. to ensure that the actual forwarding time Tb2, Tc2 of the device is the same as the expected forwarding time Tb1, Tc1 or the deviation is fixed.
The expected time and the actual time in the actual network forwarding of the TSN are shown in the following table:
Figure BDA0002774376170000021
Figure BDA0002774376170000031
actual network forwarding at the TSN is not an ideal model, and there are deviations from actual and expected, including:
(1) tb1 and Tc1 are expected times of control plane configuration, but the actual times of the TSN devices Tb2 and Tc2 cannot be completely consistent with Tb1 and Tc1 or are fixed and deviated, and the deviation depends on the specific implementation of the TSN devices.
(2) Under the condition of determining Tb2 and Tc2, Ta2 and Td2 have fluctuation under different packet lengths and network traffic, and cannot be fixed, and the deviation size also depends on the specific implementation of the TSN device.
The bandwidth efficiency of the TSN network is reduced by non-fixed deviations of the actual operating time of the TSN device from the expected time. For example, for CQF application of TSN, in order for the downstream node to be able to accommodate line delay and time fluctuation, the upstream node needs to take a conservative value in the available time of the Cycle period (CycleTime), which is the nominal CycleTime time-physical line delay-Ta maximum jitter-Tb maximum jitter-Tc maximum jitter-Td maximum jitter. The greater the jitter, the less the cycle period available time, and the less efficient the TSN network.
At present, no method for specially measuring the forwarding time characteristic of the TSN exists, and IEEE802.1 ag and ITU-T Y.1731 define that DM and 1DM in CFM OAM can only measure end-to-end bidirectional and unidirectional delay of head and tail nodes, and cannot measure time between nodes and inside the nodes. INT (in-band network telemetry) can record the time stamps of incoming and outgoing devices, i.e. Ta, Td in fig. 1, but cannot measure the Tb, Tc times in the devices finely.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a method and a terminal for measuring the forwarding time characteristic of a TSN (time delay network), and aims to solve the problem of accurately measuring the forwarding time characteristic of the TSN in the prior art.
In order to achieve the above object, the present invention provides a method for measuring a TSN network forwarding time characteristic, where the method for measuring a TSN network forwarding time characteristic includes the following steps:
recording the actual time stamps of the same message passing through key processing points with preset number in the TSN equipment;
collecting and storing a preset number of timestamps, and simultaneously sending the timestamps to a TSN control plane;
and comparing the time stamps with the preset number with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result.
Optionally, in the method for measuring the forwarding time characteristic of the TSN network, the preset number is 4; the recording of the actual timestamps of the same message passing through the key processing points with the preset number in the TSN device further comprises the following steps:
adding 4 timestamp collectors and 1 timestamp collector in advance on an internal forwarding plane path of the TSN device, where the 4 timestamp collectors are a first time recording module, a second time recording module, a third time recording module, and a fourth time recording module, respectively.
Optionally, in the method for measuring the forwarding time characteristic of the TSN network, the first time recording module is configured after line receiving framing and before receiving temporary storage;
the second time recording module is arranged after forwarding and searching and before outputting and queuing;
the third time recording module is arranged after the output queue and before the sending temporary storage;
and the fourth time recording module is arranged after the sending temporary storage and before the sending framing.
Optionally, the method for measuring the forwarding time characteristic of the TSN network, where the recording of the actual time stamp of the same packet passing through a preset number of key processing points inside the TSN device specifically includes:
the first time recording module records the current global time Ta2 at the moment of receiving the SFD field of the message of the line as the receiving time of the data packet line;
the second time recording module records the global time Tb2 at the moment of writing the message into the output queue as the actual time for enqueuing the data packet;
the third time recording module records the global time Tc2 at the moment of reading the first byte of the message from the queue as the actual time for dequeuing the data packet;
and the fourth time recording module records the global time Td2 at the moment of sending the SFD field of the message as the actual time of sending the data packet circuit.
Optionally, the method for measuring a forwarding time characteristic of a TSN network, where the collecting and storing a preset number of timestamps and sending the timestamps to a TSN control plane simultaneously includes:
the timestamp collector collects 4 timestamps of Ta2, Tb2, Tc2 and Td2 of the same message;
and carrying 4 timestamps in the original message by modifying the original message, sending the original message to the TSN control plane, or packaging the 4 timestamps into an independent measurement message, and sending the independent measurement message to the TSN control plane through an additional forwarding channel.
Optionally, the method for measuring the forwarding time characteristic of the TSN network, where the comparing the preset number of timestamps with the expected timestamps and obtaining the difference between the actual time and the expected time according to the comparison result specifically includes:
the TSN control plane configures the TSN equipment to perform time stamp recording on the selected service flow;
the TSN control plane analyzes the original message or the measurement message from the TSN equipment, extracts Ta2, Tb2, Tc2 and Td2 in the original message or the measurement message, compares the Ta2, Tb2, Tc1 and Td1 with the expected Ta1, Tb1, Tc1 and Td1, and measures the deviation between the two.
Optionally, the method for measuring the TSN network forwarding time characteristic includes configuring a timestamp control table on the TSN control plane, where the timestamp control table is set after the forwarding lookup and before the second time recording module;
the time stamp control table takes the number of the service flow as a table index and stores the time stamp control information of the service flow.
Optionally, in the method for measuring the TSN network forwarding time characteristic, the TSN control plane controls the packet sending time, the packet length, and the burst number by controlling the time when a packet sent by a packet sender reaches the TSN device.
In addition, to achieve the above object, the present invention further provides a terminal, wherein the terminal includes: the measuring program of the TSN network forwarding time characteristic is executed by the processor to realize the steps of the measuring method of the TSN network forwarding time characteristic.
In addition, in order to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a TSN network forwarding time characteristic measurement program, and the TSN network forwarding time characteristic measurement program implements the steps of the TSN network forwarding time characteristic measurement method when executed by a processor.
Recording the actual timestamps of the same message passing through key processing points with preset number in the TSN equipment; collecting and storing a preset number of timestamps, and simultaneously sending the timestamps to a TSN control plane; and comparing the time stamps with the preset number with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result. The invention detects whether the TSN function is normal or not according to the measurement result by accurately measuring the TSN forwarding time characteristic, evaluates the TSN performance, and further adjusts and optimizes the business path forwarding time calculation of the TSN.
Drawings
Fig. 1 is a schematic diagram of a TSN device forwarding time model in the prior art of the present invention;
FIG. 2 is a flow chart of a preferred embodiment of a method for measuring the forward time characteristics of a TSN network according to the present invention;
FIG. 3 is a schematic diagram illustrating the connection between devices in the preferred embodiment of the method for measuring the forwarding time characteristic of the TSN network according to the present invention;
fig. 4 is a schematic diagram illustrating the processing of the forwarding plane of the TSN device and the processing of the TSN control plane in the preferred embodiment of the method for measuring the forwarding time characteristic of the TSN network according to the present invention;
fig. 5 is a schematic diagram of a method for implementing 4 TSN devices with internal timestamp acquisition according to a preferred embodiment of the method for measuring the forwarding time characteristic of the TSN network of the present invention;
FIG. 6 is a schematic diagram of the device connection of the TSN added with the packet sender in the preferred embodiment of the method for measuring the forwarding time characteristic of the TSN network;
FIG. 7 is a diagram illustrating 1Qbv windowing time and window size measurements in a preferred embodiment of the method for measuring the forwarding time characteristics of a TSN network of the present invention;
FIG. 8 is a diagram illustrating an operating environment of a terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 2, the method for measuring the TSN network forwarding time characteristic according to the preferred embodiment of the present invention includes the following steps:
and step S10, recording the actual time stamps of the same message passing through a preset number of key processing points in the TSN device.
Specifically, as shown in fig. 3, the TSN control plane is respectively in communication connection with TSN terminal A, TSN switch 1, TSN switch 2, TSN switch 3, and TSN terminal B, and in addition, TSN terminal A, TSN switch 1, TSN switch 2, TSN switch 3, and TSN terminal B are sequentially connected (TSN terminal A, TSN switch 1, TSN switch 2, TSN switch 3, and TSN terminal B all represent TSN devices) for information interaction. The method of the invention is divided into two parts, one is from the TSN control plane to the TSN device: TSN timestamp record configuration, second, TSN device to TSN control plane: the TSN timestamp records the result.
Wherein the preset number is preferably 4; before the step S10, the method further includes: as shown in fig. 4, the 4 timestamp collectors are respectively a first time recording module (i.e., timestamp record a in fig. 4), a second time recording module (i.e., timestamp record B in fig. 4), a third time recording module (i.e., timestamp record C in fig. 4), and a fourth time recording module (i.e., timestamp record D in fig. 4), and the timestamp collector is timestamp collection E in fig. 4.
As shown in fig. 4, the first time recording module (timestamp recording a) is arranged after line reception framing and before reception buffering; the second time recording module (timestamp record B) is arranged after forwarding search (namely after the message is received and the forwarding search is finished) and before output queuing (namely enqueuing); the third time recording module (timestamp recording C) is arranged after output queuing (namely, the message is read from the queue) and before sending and temporarily storing; the fourth time recording module (timestamp recording D) is set after the sending buffer (i.e. the packet is read from the sending buffer) and before the sending frame.
The step S10 specifically includes:
step S11, the first time recording module records the current global time Ta2 as the receiving time of the data packet circuit at the moment of receiving the SFD field of the message of the circuit;
step S12, the second time recording module records the global time Tb2 at the moment of writing the message into the output queue as the actual time of enqueuing the data packet;
step S13, the third time recording module records the global time Tc2 at the time when the first byte of the packet is read from the queue, as the actual time for dequeuing the packet;
step S14, the fourth time recording module records the global time Td2 at the time of sending the SFD field of the packet as the actual time of sending the packet over the circuit.
And step S20, collecting and storing the time stamps with the preset number, and sending the time stamps to the TSN control plane.
Specifically, the step S20 specifically includes:
step S21, the timestamp collector (i.e. timestamp collection E in fig. 4) collects 4 timestamps Ta2, Tb2, Tc2 and Td2 of the same message;
and step S22, carrying 4 timestamps in the original message by modifying the original message, and sending the original message to the TSN control plane, or packing the 4 timestamps into independent measurement messages, and sending the independent measurement messages to the TSN control plane through an additional forwarding channel.
And step S30, comparing the preset number of time stamps with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result.
Specifically, the step S30 specifically includes:
step S31, the TSN control plane configures the TSN device to perform time stamp recording on the selected service stream, and records which time stamps;
step S32, the TSN control plane analyzes the original message or the measurement message from the TSN device, extracts Ta2, Tb2, Tc2, and Td2 in the original message or the measurement message, compares the extracted Ta2, Tb2, Tc2, and Td1 with the expected Ta1, Tb1, Tc1, and Td1, and measures the deviation between the two.
The invention provides a method for accurately measuring the time forwarding characteristic of a TSN (time series transport network), which is characterized in that the difference between the actual time and the expected time is measured by recording the actual time stamps of the same message passing through 4 key processing points in a TSN device, collecting 4 time stamps, storing the 4 time stamps, and comparing the time stamps with the expected time stamps.
Further, as shown in fig. 5, 1 time stamp control table F is added in addition to a (time stamp record a), B (time stamp record B), C (time stamp record C), D (time stamp record D), and E (time stamp collection E).
The timestamp control table F is configured by the TSN control plane, and stores timestamp control information of a service flow by using a service flow number FlowID (network flow number) as a table index:
(1) whether the timestamp record is valid: valid signal (Valid means that data is Valid);
(2) a Bitmap (Bitmap) signal of which timestamps need to be recorded, wherein the Bitmap is 4 bits and corresponds to the timestamps of Ta2, Tb2, Tc2 and Td2 respectively;
(3) recording the current sequence number SeqID (unique identifier) of the message with the timestamp; initializing the SeqID to be 0, and automatically adding 1 after finding the message with effective timestamp record each time; and setting the current SeqID of the corresponding service flow as 0 each time the control plane initiates a new TSN timestamp record to the service flow.
In addition to the normal TSN forwarding process, the forwarding plane of the TSN device has the following processing flow at points ((i) - (ii) shown in fig. 5):
recording Ta time stamps of all messages by a first time recording module (time stamp recording A), and carrying out subsequent processing on the Ta time stamps and the messages along with a path;
secondly, the message is normally received, temporarily stored, forwarded and searched, and the service flow number FlowID and the output queue number QueueID of the message are obtained;
thirdly, the message uses FlowID to search a timestamp control table F to obtain Valid, Bitmap and SeqID of the message, adds 1 to the SeqID and writes the SeqID back to the timestamp control table F;
fourthly, recording the time stamps Tb2, Ta2, Tb2 and the message to carry out subsequent processing along with the path;
recording time stamp Tc2, Ta2, Tb2, Tc2 and message carry out subsequent processing together with the path;
recording time stamp Td2, sending time stamp information Ta2, Tb2, Tc2, Td2, forwarding information and time stamp control information to time stamp collector (time stamp collection E).
The information that each location needs to carry is as follows:
Figure BDA0002774376170000111
Figure BDA0002774376170000121
the timestamp collector (timestamp collection E) takes SeqID as an index for the Valid message, saves QueueID, timestamp Bitmap and information of Ta2, Tb2, Tc2 and Td2 of the message, and waits for the TSN control plane to read and calculate.
Further, as shown in fig. 6, the measurement method includes 1 packet sender in addition to the TSN control plane and the TSN device, and the packet sender can control packet sending time, packet length, and burst number. The packet sender can be a standard network tester or an autonomous packet sender in the TSN device. The packet sender controls the time when the packet sent by the packet sender reaches the TSN device through manual work or a TSN control plane, and falls within a Gate closing window of 1Qbv, that is, a Gate OFF period of fig. 7 (fig. 7 shows measurement of 1Qbv window opening time and window opening size).
The measurement process is as follows, the manual or TSN control plane control packet sender uses minimum 64 byte message to burst M messages continuously with the line peak value, and the process is carried out in a multi-iteration mode:
(1) 1, time: the packet sender sends a packet length of 64, M is 1 (1 burst, P0), the TSN device records 4 timestamps of the P0, and the Tc2 obtained at this time is the starting time of 1Qbv windowing.
(2) And 2, time: the packet length is 64, M is 2 (burst 2 packets, P0, P1), records 4 time stamps of P0, P1, if Tc2(P1) -Tc2(P0) < (64 × 8)/line rate. Then, the P0 and P1 are considered to be emitted in the same 1Qbv window, and the 1Qbv window is judged to be greater than or equal to (2 × 64B × 8)/line speed.
……
(M +1) th (M + 1): the method comprises the steps of recording 4 time stamps of all messages, if Tc2(Pm) -Tc2(Pm-1) > is 1Qbv cycle period, and Tc2(Pm-1) -Tc2(Pm-2) < (64 x 8)/line rate, determining that Pm-2 and Pm-1 are sent out in the same 1Qbv window, determining that Pm-1 and Pm-2 are not sent out in the same 1Qbv window, enabling the 1Qbv window to only contain M64 byte messages, wherein the size of the 1bv window is larger than or equal to (M64B x 8)/line rate, and is smaller than or equal to (M +1) ((64B) 8)/line rate, and the measurement accuracy is (64B x 8)/line rate.
The invention can accurately measure the TSN forwarding time characteristic, can detect whether the TSN function is normal according to the measurement solution, evaluate the TSN performance, and further adjust and optimize the business path forwarding time calculation of the TSN.
Further, as shown in fig. 8, based on the above method for measuring the forwarding time characteristic of the TSN network, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Fig. 8 shows only some of the components of the terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the terminal. The memory 20 is used for storing application software installed in the terminal and various types of data, such as program codes of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a TSN network forwarding time characteristic measuring program 40, and the TSN network forwarding time characteristic measuring program 40 can be executed by the processor 10, so as to implement the TSN network forwarding time characteristic measuring method in the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, and is configured to run program codes stored in the memory 20 or process data, such as executing a method for measuring a forwarding time characteristic of the TSN network.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the terminal and for displaying a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the measurement program 40 for the TSN network forwarding time characteristic in the memory 20:
recording the actual time stamps of the same message passing through key processing points with preset number in the TSN equipment;
collecting and storing a preset number of timestamps, and simultaneously sending the timestamps to a TSN control plane;
and comparing the time stamps with the preset number with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result.
Wherein the preset number is 4; the recording of the actual timestamps of the same message passing through the key processing points with the preset number in the TSN device further comprises the following steps:
adding 4 timestamp collectors and 1 timestamp collector in advance on an internal forwarding plane path of the TSN device, where the 4 timestamp collectors are a first time recording module, a second time recording module, a third time recording module, and a fourth time recording module, respectively.
The first time recording module is arranged after line receiving framing and before receiving temporary storage;
the second time recording module is arranged after forwarding and searching and before outputting and queuing;
the third time recording module is arranged after the output queue and before the sending temporary storage;
and the fourth time recording module is arranged after the sending temporary storage and before the sending framing.
The recording of the actual timestamps of the same message passing through the key processing points with the preset number in the TSN device specifically includes:
the first time recording module records the current global time Ta2 at the moment of receiving the SFD field of the message of the line as the receiving time of the data packet line;
the second time recording module records the global time Tb2 at the moment of writing the message into the output queue as the actual time for enqueuing the data packet;
the third time recording module records the global time Tc2 at the moment of reading the first byte of the message from the queue as the actual time for dequeuing the data packet;
and the fourth time recording module records the global time Td2 at the moment of sending the SFD field of the message as the actual time of sending the data packet circuit.
Wherein, collect preset number time stamp and save, send for the TSN control plane simultaneously, specifically include:
the timestamp collector collects 4 timestamps of Ta2, Tb2, Tc2 and Td2 of the same message;
and carrying 4 timestamps in the original message by modifying the original message, sending the original message to the TSN control plane, or packaging the 4 timestamps into an independent measurement message, and sending the independent measurement message to the TSN control plane through an additional forwarding channel.
Comparing the preset number of timestamps with the expected timestamps, and obtaining the difference between the actual time and the expected time according to the comparison result, the method specifically comprises the following steps:
the TSN control plane configures the TSN equipment to perform time stamp recording on the selected service flow;
the TSN control plane analyzes the original message or the measurement message from the TSN equipment, extracts Ta2, Tb2, Tc2 and Td2 in the original message or the measurement message, compares the Ta2, Tb2, Tc1 and Td1 with the expected Ta1, Tb1, Tc1 and Td1, and measures the deviation between the two.
The TSN control plane is configured with a time stamp control table which is arranged after the forwarding search and before the second time recording module;
the time stamp control table takes the number of the service flow as a table index and stores the time stamp control information of the service flow.
The TSN control plane controls the time of a packet sender sending a message to the TSN device, and the packet sender controls the packet sending time, the message length and the burst number.
The present invention also provides a storage medium, wherein the storage medium stores a TSN network forwarding time characteristic measurement program, and the TSN network forwarding time characteristic measurement program implements the steps of the TSN network forwarding time characteristic measurement method described above when executed by a processor.
In summary, the present invention provides a method and a terminal for measuring a forwarding time characteristic of a TSN network, where the method includes: recording the actual time stamps of the same message passing through key processing points with preset number in the TSN equipment; collecting and storing a preset number of timestamps, and simultaneously sending the timestamps to a TSN control plane; and comparing the time stamps with the preset number with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result. The invention detects whether the TSN function is normal or not according to the measurement result by accurately measuring the TSN forwarding time characteristic, evaluates the TSN performance, and further adjusts and optimizes the business path forwarding time calculation of the TSN.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for measuring the TSN network forwarding time characteristic is characterized by comprising the following steps:
recording the actual time stamps of the same message passing through key processing points with preset number in the TSN equipment;
collecting and storing a preset number of timestamps, and simultaneously sending the timestamps to a TSN control plane;
and comparing the time stamps with the preset number with the expected time stamps, and obtaining the difference between the actual time and the expected time according to the comparison result.
2. The method for measuring the forwarding time characteristics of a TSN network according to claim 1, wherein the preset number is 4; the recording of the actual timestamps of the same message passing through the key processing points with the preset number in the TSN device further comprises the following steps:
adding 4 timestamp collectors and 1 timestamp collector in advance on an internal forwarding plane path of the TSN device, where the 4 timestamp collectors are a first time recording module, a second time recording module, a third time recording module, and a fourth time recording module, respectively.
3. The method for measuring the forwarding time characteristics of the TSN according to claim 2, wherein the first time recording module is disposed after line receiving framing and before receiving temporary storage;
the second time recording module is arranged after forwarding and searching and before outputting and queuing;
the third time recording module is arranged after the output queue and before the sending temporary storage;
and the fourth time recording module is arranged after the sending temporary storage and before the sending framing.
4. The method for measuring the forwarding time characteristic of the TSN network according to claim 3, wherein the recording of the actual time stamps of the same packet passing through the key processing points with the preset number inside the TSN device specifically includes:
the first time recording module records the current global time Ta2 at the moment of receiving the SFD field of the message of the line as the receiving time of the data packet line;
the second time recording module records the global time Tb2 at the moment of writing the message into the output queue as the actual time for enqueuing the data packet;
the third time recording module records the global time Tc2 at the moment of reading the first byte of the message from the queue as the actual time for dequeuing the data packet;
and the fourth time recording module records the global time Td2 at the moment of sending the SFD field of the message as the actual time of sending the data packet circuit.
5. The method for measuring the forwarding time characteristics of the TSN network according to claim 4, wherein the collecting and storing a preset number of timestamps and sending the timestamps to the TSN control plane at the same time specifically includes:
the timestamp collector collects 4 timestamps of Ta2, Tb2, Tc2 and Td2 of the same message;
and carrying 4 timestamps in the original message by modifying the original message, sending the original message to the TSN control plane, or packaging the 4 timestamps into an independent measurement message, and sending the independent measurement message to the TSN control plane through an additional forwarding channel.
6. The method for measuring the forwarding time characteristics of the TSN network according to claim 5, wherein the comparing the time stamps with the predetermined number of time stamps with the expected time stamps to obtain the difference between the actual time and the expected time according to the comparison result specifically comprises:
the TSN control plane configures the TSN equipment to perform time stamp recording on the selected service flow;
the TSN control plane analyzes the original message or the measurement message from the TSN equipment, extracts Ta2, Tb2, Tc2 and Td2 in the original message or the measurement message, compares the Ta2, Tb2, Tc1 and Td1 with the expected Ta1, Tb1, Tc1 and Td1, and measures the deviation between the two.
7. The method for measuring the forwarding time characteristics of TSN network according to claim 3, wherein the TSN control plane is configured with a timestamp control table, and the timestamp control table is configured after the forwarding lookup and before the second time recording module;
the time stamp control table takes the number of the service flow as a table index and stores the time stamp control information of the service flow.
8. The method for measuring the forwarding time characteristics of the TSN network according to claim 1, wherein the TSN control plane controls the packet sending time, the packet length and the burst number by controlling the time when a packet sender sends a packet to the TSN device.
9. A terminal, characterized in that the terminal comprises: a memory, a processor and a TSN network forward time characteristic measurement program stored on the memory and executable on the processor, the TSN network forward time characteristic measurement program when executed by the processor implementing the steps of the TSN network forward time characteristic measurement method according to any one of claims 1-8.
10. A storage medium storing a TSN network forward time characteristic measurement program, which when executed by a processor implements the steps of the TSN network forward time characteristic measurement method according to any one of claims 1 to 8.
CN202011260180.9A 2020-11-12 2020-11-12 Method and terminal for measuring TSN network forwarding time characteristic Active CN112511376B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011260180.9A CN112511376B (en) 2020-11-12 2020-11-12 Method and terminal for measuring TSN network forwarding time characteristic
PCT/CN2021/125676 WO2022100411A1 (en) 2020-11-12 2021-10-22 Method for measuring forwarding time characteristics of tsn, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011260180.9A CN112511376B (en) 2020-11-12 2020-11-12 Method and terminal for measuring TSN network forwarding time characteristic

Publications (2)

Publication Number Publication Date
CN112511376A true CN112511376A (en) 2021-03-16
CN112511376B CN112511376B (en) 2022-04-15

Family

ID=74957255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011260180.9A Active CN112511376B (en) 2020-11-12 2020-11-12 Method and terminal for measuring TSN network forwarding time characteristic

Country Status (2)

Country Link
CN (1) CN112511376B (en)
WO (1) WO2022100411A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285515A (en) * 2021-12-14 2022-04-05 昆高新芯微电子(江苏)有限公司 Method and device for realizing any TSN time window period
CN114390009A (en) * 2021-12-20 2022-04-22 中国电子科技集团公司第五十四研究所 Data processing method and device in time-sensitive network
WO2022100411A1 (en) * 2020-11-12 2022-05-19 鹏城实验室 Method for measuring forwarding time characteristics of tsn, and terminal
CN114978754A (en) * 2022-06-21 2022-08-30 奥特酷智能科技(南京)有限公司 TSN (time delay network) anomaly detection method and system
CN115065646A (en) * 2022-04-29 2022-09-16 中国电子技术标准化研究院 Message timing sending method and device based on software and hardware cooperation
CN115277500A (en) * 2022-09-26 2022-11-01 北京智芯微电子科技有限公司 Time delay visualization method and system for TSN (traffic sequence indicator) flow, storage medium and controller

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396333B (en) * 2022-08-24 2024-01-16 北京智芯微电子科技有限公司 Visual chip, method and switch for communication network delay test
CN115426068B (en) * 2022-09-20 2023-10-27 北京智芯微电子科技有限公司 TSN clock synchronization system and method, computer storage medium and chip
CN115801544B (en) * 2023-01-29 2023-05-23 北京智芯微电子科技有限公司 Network monitoring method, device, system and storage medium
CN116366570B (en) * 2023-05-30 2023-08-18 新华三技术有限公司 Message forwarding method and device and programmable device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751248A (en) * 2008-11-28 2010-06-23 国际商业机器公司 Method and system applied by Web for designing time-sensitive performance test case
CN103138887A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Processing method of 1588 event messages and processing method of 1588 event messages
WO2018041108A1 (en) * 2016-08-29 2018-03-08 中兴通讯股份有限公司 Method, apparatus, and device for determining clock time of time synchronization packet
CN108650051A (en) * 2018-05-10 2018-10-12 西安电子科技大学 The clock synchronization apparatus and method of general devices at full hardware single step 1588
US20180316592A1 (en) * 2017-04-26 2018-11-01 Microsemi Storage Solutions, Inc. Scheduled network setup test method and system
US10250868B1 (en) * 2017-03-29 2019-04-02 Amazon Technologies, Inc. Synchronizing data streams
WO2020013874A1 (en) * 2018-07-08 2020-01-16 Intel Corporation Apparatus, system and method of scheduling time sensitive networking (tsn) wireless communications
CN110971331A (en) * 2019-11-26 2020-04-07 中国信息通信研究院 Hop-by-hop time delay measurement method and system
WO2020119920A1 (en) * 2018-12-14 2020-06-18 Diehl Metering Systems Gmbh Method for collecting data in a network, sensor, consumption meter, temporary receiver and network
CN111585836A (en) * 2020-04-26 2020-08-25 工业互联网创新中心(上海)有限公司 Network testing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11522627B2 (en) * 2018-12-26 2022-12-06 Abb Schweiz Ag TSN enabled controller
US20200259896A1 (en) * 2019-02-13 2020-08-13 Telefonaktiebolaget Lm Ericsson (Publ) Industrial Automation with 5G and Beyond
WO2020187422A1 (en) * 2019-03-21 2020-09-24 Huawei Technologies Co., Ltd. Network entities and methods for a wireless network system for determining time information
CN112511376B (en) * 2020-11-12 2022-04-15 鹏城实验室 Method and terminal for measuring TSN network forwarding time characteristic

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751248A (en) * 2008-11-28 2010-06-23 国际商业机器公司 Method and system applied by Web for designing time-sensitive performance test case
CN103138887A (en) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 Processing method of 1588 event messages and processing method of 1588 event messages
WO2018041108A1 (en) * 2016-08-29 2018-03-08 中兴通讯股份有限公司 Method, apparatus, and device for determining clock time of time synchronization packet
US10250868B1 (en) * 2017-03-29 2019-04-02 Amazon Technologies, Inc. Synchronizing data streams
US20180316592A1 (en) * 2017-04-26 2018-11-01 Microsemi Storage Solutions, Inc. Scheduled network setup test method and system
CN108650051A (en) * 2018-05-10 2018-10-12 西安电子科技大学 The clock synchronization apparatus and method of general devices at full hardware single step 1588
WO2020013874A1 (en) * 2018-07-08 2020-01-16 Intel Corporation Apparatus, system and method of scheduling time sensitive networking (tsn) wireless communications
WO2020119920A1 (en) * 2018-12-14 2020-06-18 Diehl Metering Systems Gmbh Method for collecting data in a network, sensor, consumption meter, temporary receiver and network
CN110971331A (en) * 2019-11-26 2020-04-07 中国信息通信研究院 Hop-by-hop time delay measurement method and system
CN111585836A (en) * 2020-04-26 2020-08-25 工业互联网创新中心(上海)有限公司 Network testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
""rfc2960 - SCTP"", 《3GPP TSG_GERAN\TSG_GERAN》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022100411A1 (en) * 2020-11-12 2022-05-19 鹏城实验室 Method for measuring forwarding time characteristics of tsn, and terminal
CN114285515A (en) * 2021-12-14 2022-04-05 昆高新芯微电子(江苏)有限公司 Method and device for realizing any TSN time window period
CN114285515B (en) * 2021-12-14 2023-12-19 昆高新芯微电子(江苏)有限公司 Method and device for realizing arbitrary TSN time window period
CN114390009A (en) * 2021-12-20 2022-04-22 中国电子科技集团公司第五十四研究所 Data processing method and device in time-sensitive network
CN114390009B (en) * 2021-12-20 2024-04-26 中国电子科技集团公司第五十四研究所 Data processing method and device in time-sensitive network
CN115065646A (en) * 2022-04-29 2022-09-16 中国电子技术标准化研究院 Message timing sending method and device based on software and hardware cooperation
CN115065646B (en) * 2022-04-29 2024-04-02 中国电子技术标准化研究院 Message timing sending method and device based on software and hardware cooperation
CN114978754A (en) * 2022-06-21 2022-08-30 奥特酷智能科技(南京)有限公司 TSN (time delay network) anomaly detection method and system
CN114978754B (en) * 2022-06-21 2023-09-19 奥特酷智能科技(南京)有限公司 TSN anomaly detection method and system
CN115277500A (en) * 2022-09-26 2022-11-01 北京智芯微电子科技有限公司 Time delay visualization method and system for TSN (traffic sequence indicator) flow, storage medium and controller

Also Published As

Publication number Publication date
WO2022100411A1 (en) 2022-05-19
CN112511376B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN112511376B (en) Method and terminal for measuring TSN network forwarding time characteristic
Bacinoglu et al. Scheduling status updates to minimize age of information with an energy harvesting sensor
CN106850466B (en) Method and device for forwarding data packet in time-triggered network
US10135711B2 (en) Technologies for sideband performance tracing of network traffic
US20240214323A1 (en) Packet transmission method and apparatus
US6477168B1 (en) Cell/frame scheduling method and communications cell/frame scheduler
WO2012065477A1 (en) Method and system for avoiding message congestion
CN108881031B (en) Self-adaptive reliable data transmission method based on SDN network
CN107087306A (en) The method dispatched for wireless information source
CN103155488A (en) Delay measurement system and delay measurement method, as well as delay measurement device and delay measurement program
US12047300B2 (en) Packet forwarding method, device, and system
CN101548510A (en) Method and apparatus for transmitting transport stream packets
CN108614792B (en) 1394 transaction layer data packet storage management method and circuit
CN110505157B (en) Classification scheduling method and device adaptive to time-triggered network
CN103490995A (en) Message sending method and message sending device
US10334539B2 (en) Metered interface
CN115065646B (en) Message timing sending method and device based on software and hardware cooperation
CN117155883A (en) TSN network card device, method and medium for realizing message timing transmission
CN114401076B (en) Method and device for reducing Ethernet data transmission shaking
CN117014967A (en) Mobile communication system, method and user plane node
WO2017088489A1 (en) Data message transmission method and system, and communication system
CN117221175A (en) Time delay measuring method and device, storage medium and program product thereof
Seliem et al. TSN-based industrial network performance analysis
Zheng et al. Design of time-triggered service processing flow on ethernet end system
CN114301852A (en) Message transmission control, generation and transmission method, configuration method, equipment and medium

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
GR01 Patent grant
GR01 Patent grant