Communication Control Method

The method addresses frame discards in mixed TSN and non-TSN networks by detecting non-compatible devices and controlling communication to stabilize data transmission, ensuring efficient data transfer in mixed network environments.

JP7533733B2Active Publication Date: 2024-08-14MEIDENSHA CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023175666
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2024-08-14
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

Conventional networks face issues with frame discards due to buffer overflow when large amounts of data are communicated, especially in systems where TSN-compatible and non-TSN-compatible networks coexist, leading to instability and complex settings.

Method used

A method for detecting non-TSN-compatible network devices and controlling communication by discarding general data frames or adjusting bandwidth at the boundary between TSN and non-TSN networks, using time synchronization methods to ensure stable data transmission.

Benefits of technology

Enables automatic detection and handling of non-TSN devices, reducing frame discards and improving system stability by optimizing transmission timing and bandwidth in mixed network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533733000009
    Figure 0007533733000009
  • Figure 0007533733000010
    Figure 0007533733000010
  • Figure 0007533733000008
    Figure 0007533733000008
Patent Text Reader

Abstract

To provide a communication control method and a time synchronization method that automatically detect a network apparatus that is not compatible with time sensitive networking (TSN) when a conventional network and TSN coexist, and appropriately cope with a boundary between the two.SOLUTION: A method includes obtaining information on transmission and reception time of each UDP frame, from a time-stamp when UDP frames of different frame sizes are made back and forth between TSN relay devices 1a and 1b, and then calculating transmission time of each UDP frame on the basis of the obtained information. The method includes if a transmission time difference between the UDP frames is N times a frame size difference, determining that N conventional HUBs 2 or the like are present between the TSN relay devices 1a and 1b.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication control method in a system using TSN (Time Sensitive Networking). [Background technology]

[0002] Conventional networks have adopted methods for bandwidth control, such as setting priorities and widening the interval between transmission frames, but there are restrictions such as limiting the amount of transmission in order to relieve momentary congestion on the network and prevent frames from being discarded.

[0003] Therefore, a method is being used to ensure that important data arrives reliably while transmitting large amounts of data using time division by TSN. TSN is a network bandwidth control technology that uses time synchronization by PTP (IEEE 1588 Precision Time Protocol) and transmits data during time-division periods on the network using this highly accurate clock.

[0004] According to TSN, important data and other communication data (data other than important data: hereinafter referred to as general data) are transmitted at different times, so that the transmission of important data is not affected by the transmission of general data. For example, Patent Document 1 is a publicly known technology related to TSN. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Patent Publication No. 2020-17877 Summary of the Invention [Problem to be solved by the invention]

[0006] (1) In conventional networks (networks that do not support TSN), when a large amount of data is transmitted, the buffers of network devices such as switching hubs (hereafter referred to as HUBs) can momentarily become insufficient, causing frames to be discarded. If important data is discarded at this time, it can become a problem. There are methods that use protocols to confirm delivery and resend data, but these methods take time due to timeout processing, etc., and are therefore not applicable to systems that require responsiveness.

[0007] Therefore, as mentioned above, the network was designed to have sufficient capacity by making adjustments such as setting the priority of sending certain frames first and spreading out the intervals between frames to send them more slowly. However, this design makes it impossible to communicate large amounts of data.

[0008] In contrast, a TSN network (a network that supports TSN) transmits data in time-shared periods using a PTP time-synchronized clock. During the period for important data determined by TSN, only important data is sent and received, so it is less susceptible to the effects of general data. However, during the period for transmitting general data, each HUB transmits large amounts of data, so a mechanism such as delivery confirmation is required to avoid discarding frames due to high load.

[0009] (2) If all HUBs in a system support TSN, data types can be separated into time-division periods. A new system can be built using only TSN-compatible HUBs, but in practice, it is common to update part of a conventional system to a TSN-compatible HUB.

[0010] Conventional networks, which operate to keep transmission loads low, coexist with TSN networks, which are time-division separated by data type (important data / general data), and problems arise at the boundary between the two.

[0011] Conventional networks transmit only a small amount of data, less than 1% of the transmission path, and even in the rare cases when large amounts of data such as files are sent, measures such as slow transmission using bandwidth control and timing control are used to prevent multiple HUBs from sending large amounts of data at the same time. On the other hand, TSN networks have ample transmission capacity during periods when important data is being sent and received, and are best-effort type during periods when general data is being sent, and the transmission load can approach 100% due to large amounts of data being sent.

[0012] At the boundary between these two networks, frames are discarded because the expected transmission state is not met. In addition, TSN handles multiple transmission periods, which makes the settings complicated, and it is a difficult task to configure it while taking into account conventional networks.

[0013] (3) The present invention has been made to solve such problems, and its problem to be solved is to automatically detect network devices that do not support TSN when conventional networks and TSN networks are mixed, and to appropriately handle the boundary between the two. [Means for solving the problem]

[0014] (1) One aspect of the present invention is a method for detecting network devices in a system using Time Sensitive Networking (TSN), comprising: A step of obtaining information on the transmission and reception time from time stamps when large and small UDP frames of different frame sizes are sent back and forth between the TSN-compatible network devices, and calculating a transmission time of each of the UDP frames based on the obtained information; detecting the presence of N network devices that do not support TSN if the transmission time difference between the UDP frames is N times the frame size difference; The present invention is characterized in that it has the following features.

[0015] (2) Another aspect of the present invention is a method for controlling communication of a TSN-compatible network device located at a boundary between a TSN-compatible network and a TSN-non-compatible network in a system using TSN (Time Sensitive Networking), comprising: A step of discarding frames of general data other than important data among the frames transmitted from the TSN-compatible network side, and transmitting only the frames of the important data to the TSN-incompatible network side; Transmitting the frames transmitted from the non-TSN network side to the TSN network side during a time-shared period of important data; The present invention is characterized in that it has the following features.

[0016] (3) Yet another aspect of the present invention is a method for controlling communication of a TSN-compatible network device located at a boundary between a TSN-compatible network and a TSN-non-compatible network in a system using TSN (Time Sensitive Networking), comprising: A step of applying a bandwidth limit to frames of general data other than important data among the frames transmitted from the TSN-compatible network side and transmitting the frames to the TSN-incompatible network side; Transmitting the frames transmitted from the non-TSN network side to the TSN network side during a time-shared period of important data; A communication control method comprising:

[0017] (4) Yet another aspect of the present invention is a time synchronization method for a system using TSN (Time Sensitive Networking) in which a network device that does not support TSN exists between the TSN-compatible network and network devices, comprising: If there is a response to the PTP (Precision Time Protocol) time synchronization frame transmitted by the TSN-compatible network device, a PTP time synchronization frame is transmitted back and forth between the TSN-compatible network devices to perform time synchronization; If there is no response, a UDP time synchronization frame is sent back and forth between the TSN-compatible network devices to perform time synchronization; A time synchronization method comprising: Effect of the Invention

[0018] According to the present invention, when conventional networks and TSN networks coexist, network devices that do not support TSN can be automatically detected and appropriate handling can be provided at the boundary between the two networks. [Brief description of the drawings]

[0019] [Figure 1] FIG. 11 is a schematic diagram showing a transmission time when no conventional relay device is present between the TSN relay devices in the first embodiment. [Diagram 2] FIG. 13 is a schematic diagram showing transmission time when a conventional relay device is present. [Diagram 3] Schematic diagram of a system that combines TSN and traditional networks. [Figure 4] 1 is a graph showing a transmission load in a conventional network. [Diagram 5] Graph showing the transmission load on the TSN network. [Figure 6] A graph showing the transmission load when a conventional network and a TSN network are mixed. [Figure 7] FIG. 11 is a schematic diagram showing a communication control method A of the second embodiment. [Figure 8] FIG. 4 is a schematic diagram showing communication control method B of the same. [Figure 9] FIG. 11 is a schematic diagram showing a case where a conventional relay device can transfer a time synchronization frame in the third embodiment. [Figure 10] FIG. 13 is a schematic diagram showing a case in which the time synchronization frame cannot be transferred. [Figure 11] FIG. 1 is a schematic diagram showing an industrial application field of the present invention. [Figure 12] 12 is a schematic diagram showing the conversion process of the arrow Q in FIG. 11. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] The present invention relates to a technology related to a system using TSN, and relates to a detection method for a TSN-compatible network device (TSN-compatible device) to detect a TSN-incompatible network device (TSN-incompatible device), a communication control method for the TSN-compatible device, and a time synchronization method. Hereinafter, an embodiment of the present invention will be described based on Examples 1 to 3. EXAMPLES

[0021] The detection method will be described in Example 1. Here, the TSN-compatible device is a relay device (HUB: hereinafter, referred to as a TSN relay device) that supports TSN.

[0022] Devices that do not support TSN are considered to be relay devices (HUBs) that do not support TSN, but to distinguish them from HUBs with PTP functionality, the ones without PTP functionality are called conventional HUBs and the ones with PTP functionality are called PTP hubs.

[0023] <Basic Concept> If a conventional HUB / PTP hub exists between TSN relay devices, the TSN relay device detects the presence of the conventional HUB / PTP hub in order to perform operation processing according to its presence. Between TSN relay devices, the PTP time synchronization function sends and receives PTP time synchronization frames according to the event type.

[0024] If a conventional hub exists between TSN relay devices, the conventional hub will forward the frame without time correction. Since the time is not corrected, time synchronization will be unstable, but it is not possible to determine that a conventional hub exists. Even if a PTP hub exists between TSN relay devices, the PTP hub will correct the time and time synchronization will be stable, so it is not possible to determine that a PTP hub exists.

[0025] Therefore, we make it possible for TSN relay devices to perform time synchronization using normal UDP frames. UDP frames of different frame sizes are sent back and forth as time synchronization frames with time stamps attached.

[0026] In this case, if there is a conventional HUB / PTP hub between the TSN relay devices, it will be processed as a simple transfer, so a transmission time difference will occur depending on the size of the UDP frame. The presence of a conventional HUB / PTP hub is detected based on this transmission time difference.

[0027] If there is no adjacent TSN relay device, there will be no response to normal UDP frames, but this will be interpreted as meaning that a conventional HUB / PTP hub or the like is connected.

[0028] <Details of the detection method> The detection method will be described in detail with reference to Figures 1 and 2. In Figures 1 and 2, 1a and 1b indicate TSN relay devices 1. Also, 2 indicates a conventional HUB / PTP hub (hereinafter referred to as conventional HUB, etc. 2) that exists between the TSN relay devices 1a and 1b.

[0029] (1) Figure 1 shows the state in which a PTP time synchronization frame is sent back and forth between TSN relay devices 1a and 1b. Specifically, the TSN relay device 1a sends a "Pdelay_Req" message to the TSN relay device 1b. Upon receiving this message, the TSN relay device 1b responds by sending back a "Pdelay_Resp" message.

[0030] Based on the timestamps when such a PTP time synchronization frame travels back and forth, the sending and receiving times "T1" to "T4" for the outbound and return journeys are obtained, and the transmission time between the TSN relay devices 1a and 1b is calculated. Note that since the calculated transmission time uses a timestamp mechanism, it is the timing when the first part of the frame is sent and received, and is not affected by the frame size.

[0031] (2) Figure 2 shows a state where UDP frames of different frame sizes are sent back and forth between TSN relay devices 1a and 1b as time synchronization frames. Here, the conventional HUB 2 transfers each UDP frame without time correction. However, the transfer time of the conventional HUB 2 differs depending on the size of each UDP frame.

[0032] For example, when a 100-byte UDP frame and a 1,000-byte UDP frame are sent back and forth, if there is a conventional HUB or similar device 2 in between, the store-and-forward mechanism adds the frame size to the sending and receiving time, affecting the transmission time of each.

[0033] The transmission time is calculated on the TSN relay device 1a side in the same way as in the case of the PTP time synchronization frame. That is, the sending and receiving times "T1" to "T4" of the outbound and return routes are obtained based on the timestamps of the round trip of each UDP frame, and the transmission time of each UDP frame is calculated using formula (1).

[0034] Equation 1: Transmission time = (T2-T1)+(T4-T3) / 2 T1 = UDP frame transmission time on the outbound route T2 = Time when the outgoing UDP frame was received T3 = UDP frame transmission time on the return journey T4 = UDP frame reception time on the return journey The TSN relay device 1a detects the number of conventional hubs, etc. 2 according to the transmission time difference (delay time) between the outbound and inbound routes calculated by formula 1. In other words, if the "transmission time difference = N times the frame size difference", it determines that there are N conventional hubs, etc. 2 between the TSN relay device 1b. For example, in the case of the aforementioned UDP frames (100 bytes / 1000 bytes), the frame size difference is "900 bytes".

[0035] If the transmission time difference is "900 bytes", it is 1x the frame difference, so it is determined that there is one conventional HUB 2. If the transmission time difference is "1800 bytes", it is 2x the frame difference, so it is determined that there are two conventional HUBs 2.

[0036] If the transmission time difference is not an integer multiple of the frame difference, a fractional processing method (such as rounding off) may be used. Also, if the "transmission time difference ≒ 0", it is determined that the conventional HUB etc. 2 does not exist.

[0037] In this way, according to the first embodiment, it is possible to determine whether or not a conventional HUB or the like 2 exists between the TSN devices 1a and 1b. In other words, since the presence of a conventional HUB or the like 2 can be detected, even if the network configuration is changed, it can be automatically adapted. In this respect, setting errors are reduced and the stability of the system is improved. In addition, it is possible to distinguish a PTP hub as a device that does not support TSN, and it is also possible to detect devices that operate as bridges other than HUBs. EXAMPLES

[0038] A second embodiment will be described with reference to Fig. 3 to Fig. 8. In this embodiment, a communication control method in the case where a conventional network and a TSN network are mixed will be described.

[0039] In other words, if multiple conventional HUBs 2 can be detected by the detection method of the first embodiment, it can be recognized that a conventional network 20 and a TSN network 10 are mixed, as shown in Fig. 3. In Fig. 3, 1 indicates a TSN relay device that constitutes the TSN network 10, and 2 indicates a conventional HUB 2 that constitutes the conventional network 20.

[0040] Figure 4 shows the transmission load in a conventional network. Here, the transmission load is adjusted to the minimum necessary so that frames are not discarded due to momentary high load.

[0041] Figure 5 shows the transmission load of a TSN network, with important data period J and general data period I as time-division periods. This general data is subject to delivery confirmation by TCP and other methods, and frame discarding due to high load is permitted.

[0042] When the conventional network 20 and the TSN network 10 are connected, the transmission load in Fig. 4 and the transmission load in Fig. 5 are added together, resulting in a transmission load as shown in Fig. 6, which may result in the discarding of some of the important data transmitted over the conventional network 20. The probability that a frame will be discarded is a fixed probability for each frame, but since the number of frames of important data is small, the impact is relatively large.

[0043] Therefore, in this embodiment, when a conventional network 20 and a TSN network 10 are mixed, the following communication control methods A and B are implemented to adjust the transmission timing and bandwidth at the boundary between the two networks 10, 20.

[0044] (1) Communication control method A First, a description will be given of the communication control method A. At the boundary between the two networks 10, 20, there is a risk that the conventional network 20 will be overwhelmed by a large amount of general data transmitted from the TSN network 10 side.

[0045] Therefore, among the frames transmitted from the TSN network side, frames containing general data are discarded at the boundary and are not transmitted to the conventional network 20 side. On the other hand, the frames transmitted from the conventional network 20 side are transmitted to the TSN network side during the period of important data. There are two methods: either discarding all general data transmitted from the conventional network 20 side, or preparing a dedicated transmission period in the TSN network and collecting it there.

[0046] The details will be explained with reference to Figure 7. In Figure 7, 1c indicates a TSN relay device 1 located at the boundary between two networks 10, 20. 1d and 1e indicate TSN relay devices 1 on the TSN network side of TSN relay device 1c. 2a and 2b are conventional HUBs, etc. 2 on the conventional network side, adjacent to TSN relay device 1c.

[0047] Here, general data frames transmitted and received in the order of TSN relay devices "1e → 1d → 1c" on the TSN network 10 side are discarded by TSN relay device 1c and are not forwarded to the conventional HUB etc. 2a on the conventional network 20 side.

[0048] On the other hand, frames transmitted and received in the order of "conventional hub 2b → 2a" on the conventional network 20 side are sent from conventional hub 2a to TSN relay device 1c. Upon receiving this, TSN relay device 1c stores the received frame as important data and transmits it to TSN relay device 1d during the period of important TSN data.

[0049] At this time, the TSN relay device 1c sets the transmission band low so that stable transmission can be performed during the period of important TSN data, or adjusts the schedule so that transmission is performed evenly.

[0050] In addition, in FIG. 7, data transmitted from the conventional network 20 arrives at the TSN network 10 with a slight delay, and high-load transmission of general TSN data is limited to only the section of the TSN network 10.

[0051] (2) Communication control method B The communication control method B will be described with reference to Fig. 8. Among frames transmitted and received in the order of TSN relay devices "1e -> 1d -> 1c" on the TSN network 10 side, frames of general data are band-limited by TSN relay device 1c and then transmitted to the conventional network 20 side (conventional HUBs 2a, 2b, etc.).

[0052] That is, while a large amount of general data can be transmitted in the TSN network 10, the amount of general data is limited to a small amount in the conventional network 20. In this case, the width of the communication path changes at the boundary (TSN relay device 1c), and the communication with a narrow bandwidth is easily affected by bandwidth adjustment by TCP.

[0053] Therefore, the bandwidth of general data on the networks 10 and 20 sides is adjusted so that frame discarding does not occur even if TSN general data is sent to the conventional network 20. This reduces the impact on the conventional network 10 and enables communication throughout the system. Note that frames from the conventional network 20 side are processed in the same manner as in communication control method A.

[0054] According to the second embodiment, in an environment where a conventional network 20 and a TSN network 10 coexist, communication via the TSN relay device 1 is possible, albeit with restrictions, while communication via the conventional network 20 is maintained.

[0055] In addition, when the conventional HUB etc. 2 is detected by the embodiment 1, the communication control methods A and B are executed at the boundary, and when all the conventional HUB etc. 2 are removed, the normal TSN operation is restored. This normal TSN operation can be used without any bandwidth restrictions. EXAMPLES

[0056] A third embodiment will be described with reference to Fig. 9 and Fig. 10. This embodiment mainly relates to a PTP time synchronization method in the case where a conventional HUB or the like 2 is detected between TSN relay devices 1a and 1b by the detection method of the first embodiment.

[0057] PTP time synchronization between the TSN relay devices 1a and 1b is performed by exchanging "Pdelay_Req" and "Pdelay_Resp" messages, as shown in Fig. 9. However, although the standard for PTP time synchronization is multicast by L2 (layer 2), there are cases where the conventional HUB 2 between the TSN relay devices 1a and 1b is a device that does not forward the above messages, as shown in Fig. 10.

[0058] Therefore, the TSN relay device 1a will time out if there is no "Pdelay_Resp" message response to the "Pdelay_Req" message (PTP time synchronization frame) within a predetermined time.

[0059] Furthermore, in the event of a timeout, the TSN relay device 1a changes the frame to a predetermined UDP frame and transmits a time-synchronized "Pdelay_Req" message to the TSN relay device 1b.

[0060] At this time, if the TSN relay device 1a receives a "Pdelay_Resp" message (UDP frame) response from the TSN relay device 1b, it performs time synchronization using a UDP frame. If there is no "Pdelay_Resp" message (UDP frame) response, it determines that the adjacent TSN relay device 1b does not exist, and does not perform time synchronization.

[0061] Specifically, the third embodiment is carried out in the following manner. (1) The TSN relay device 1a transmits time synchronization frames using normal UDP in large and small frame sizes. (2) If there is no response to the transmission, the TSN relay device 1a determines that there is no TSN relay device 1 at the destination, and does not perform time synchronization. (3) If there is a response from the TSN relay device 1b, it is determined by the detection method of the first embodiment whether or not a conventional HUB or the like 2 is present therebetween. (4) If the result of the above determination is that no conventional HUB or the like 2 exists, time synchronization is performed between the TSN relay devices 1a and 1b using a regular PTP time synchronization frame. (5) If the result of the above determination is that a conventional HUB or the like 2 exists, the TSN relay device 1a transmits a regular PTP time synchronization frame (a "Pdelay_Req" message) to the TSN relay device 1b.

[0062] If there is a response of a PTP time synchronization frame ("Pdelay_Resp" message) from the TSN relay device 1b, time synchronization is performed between the regular PTP time frames. On the other hand, if there is no response of the PTP time synchronization frame, time synchronization is performed using a normal UDP time synchronization frame. Therefore, according to the third embodiment, time synchronization is possible when the conventional HUB etc. 2 does not transfer the PTP time synchronization frame. [Industrial Applicability]

[0063] In Patent Document 1, as shown by an arrow Q in FIGS. 11 and 12, a TSN relay device 1f performs time-division transmission on behalf of a TSN-incompatible device 12 as a conversion process for making the TSN-incompatible device 12 compatible with TSN.

[0064] In contrast, according to the present invention, in an environment where both networks 10 and 20 coexist, a TSN relay device 1c located at the boundary of arrow P in Figure 11 detects conventional HUBs etc. 2, and further enables frame communication control and time synchronization.

[0065] Therefore, the present invention can appropriately handle an environment in which a TSN network 10 and a conventional network 20 coexist, and is industrially beneficial. [Explanation of symbols]

[0066] 1, 1b, 1c, 1d, 1e, 1f...TSN repeater 2, 2a, 2b, 2c... Conventional HUB, etc. 11. TSN-compatible devices 12…Conventional equipment 10. TSN networks 20…Traditional Network

Claims

1. A method for controlling communication of a time sensitive network device located at a boundary between a time sensitive network and a non-time sensitive network in a system using the time sensitive network, comprising: A step of discarding frames of general data other than important data among the frames transmitted from the TSN-compatible network side, and transmitting only the frames of the important data to the TSN-incompatible network side; transmitting the frames transmitted from the TSN non-compliant network side to the TSN compliant network side during a time-shared period of important data; A communication control method comprising:

2. A method for controlling communication of a time sensitive network device located at a boundary between a time sensitive network and a non-time sensitive network in a system using the time sensitive network, comprising: a step of applying a bandwidth restriction to frames of general data other than important data among the frames transmitted from the TSN-compatible network side and transmitting the frames to the TSN-incompatible network side; transmitting the frames transmitted from the TSN non-compliant network side to the TSN compliant network side during a time-shared period of important data; A communication control method comprising:

Citation Information

Patent Citations

  • Inter network connection system and communications system using same

    JP1995095245A

  • Network apparatus

    JP2020017877A

  • Interface apparatus between TSN-devices and non-TSN-devices

    US20210258264A1