A method for automatic dual-path planning and transmission implementation in time-sensitive network devices

By automatically planning and configuring the identity information of the sender, relay, and receiver in a time-sensitive network, and creating two independent data transmission paths with different VLAN ID values, the problem of broadcast storms and data link layer collapse caused by ring topology is solved, achieving redundant transmission of critical data and network stability.

CN120378356BActive Publication Date: 2026-01-30THE 34TH RES INST OF CHINA ELECTRONICS TECH CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510711294.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2026-01-30
Estimated Expiration
2045-05-29

AI Technical Summary

Technical Problem

In time-sensitive networks, ring topologies can cause broadcast storms and data link layer failures, especially when network administrators misconfigure the network, causing redundant links to malfunction.

Method used

By automatically planning the identity information of the sender, relay, and receiver, assigning unique ID identifiers, and creating two independent data transmission paths on the TSN device, different VLAN ID values ​​are used for path planning and data frame copying. The relay device configures the VLAN channel according to the ID information, and the receiver selects the valid data and restores the original VLAN tag.

Benefits of technology

It enables dual-path redundant transmission of critical data in a ring network without manual configuration, avoiding broadcast storms, reducing the possibility of network crashes, and improving network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378356B_ABST
    Figure CN120378356B_ABST
Patent Text Reader

Abstract

This invention discloses a method for automatic dual-path planning and transmission implementation of time-sensitive network devices, comprising the following steps: (1) determining the identity information of the redundant path transmission devices of the current TSN device, wherein the identity information includes the sender, receiver, and relay transmission end; (2) assigning a unique ID identifier to all TSN devices in the network; (3) planning two independent data paths 1 and 2, and determining the input and output ports of the two paths; (4) automatically planning the VLAN information on the current path 1 and Path 2. This invention only requires the network administrator to determine the identity information of the sender, relay, and receiver devices and plan the path of critical packets, thereby automatically constructing the device configuration under each path in the TSN ring network; the redundant path of critical transmission is automatically generated by the TSN device itself according to the transmission node and path, without the need for network administrator configuration, reducing the configuration workload, thereby reducing the possibility of network crashes caused by configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer network technology, specifically relating to a method for automatic dual-path planning and transmission implementation of time-sensitive network devices. Background Technology

[0002] In the field of vehicular communication, considering the complex environment during vehicle operation, there may be electromagnetic interference or communication link disconnection leading to communication malfunctions. The IEEE 802.1CB protocol in Time-Sensitive Networking (TSN) defines a scheme for redundant transmission in vehicular Ethernet. This scheme uses two independent transmission paths to transmit critical data and requires the topology of devices in the TSN network to be ring-shaped. However, a ring-shaped physical topology may experience broadcast storms at the data link layer, leading to data link layer collapse.

[0003] When a ring exists in the data link layer of a TSN network, and relevant ring-breaking protocols such as STP, MSTP, and ERPS are not running, a single broadcast message can create an L2 layer broadcast storm within the ring. The 802.1CB protocol defines that TSN networks must use at least two redundant links to transmit critical data. If the network administrator makes an anomaly in the configuration (omission or misconfiguration), the two independent redundant links will fail. Therefore, it is necessary to investigate this issue to resolve the data link layer collapse problem caused by ring broadcast storms that may occur during transmission through redundant links in a TSN network. Summary of the Invention

[0004] This invention provides a method for automatic dual-path planning and transmission implementation in time-sensitive network (TSN) devices, solving the problem of data link layer collapse caused by ring network broadcast storms in redundant links in TSN networks. This method only requires the network administrator to determine the identity information of the sending, relaying, and receiving devices and plan the transmission paths of critical messages to automatically construct the device configurations for each path in the TSN ring network. The redundant paths for critical transmissions are automatically generated by the TSN devices themselves based on the transmission nodes and paths, eliminating the need for network administrator configuration and reducing the workload of network administrators, thereby lowering the possibility of network collapses due to configuration issues.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0006] A method for automatic dual-path planning and transmission implementation in time-sensitive network devices includes the following steps:

[0007] (1) Determine the identity information of the redundant path transmission device of the current TSN device, including the three types of identity information: sender, receiver, and relay transmission device;

[0008] (2) Assign a unique ID identifier to all TSN devices in the entire network;

[0009] (3) Plan two independent data transmission paths 1 and 2, and determine the input and output ports of these two transmission paths;

[0010] (4) Automatically plan VLAN information on the current transmission path 1 and transmission path 2.

[0011] Preferably, step (4) includes the following steps:

[0012] (4.1) Automatically create transmission path 1 and transmission path 2, and the TSN device automatically creates VLAN ID values ​​on the path based on the sender ID and receiver ID of the key data;

[0013] (4.2) At the sending end, the TSN device performs frame copying operation on the critical data, replaces the VLAN ID value in the original critical data packet with the VLAN ID value of transmission path 1 and transmission path 2 respectively, and distributes the critical data after replacing the VLAN ID value to transmission path 1 and transmission path 2.

[0014] (4.3) When the critical data is replaced with a VLAN tag, it is simultaneously propagated in different transmission paths 1 and 2. When the critical data passes through the relay transmission device, the relay transmission device automatically configures the corresponding VLAN channel on the port of the relay transmission device according to the ID information and path information of the sending end and receiving end to be transmitted, and relays the critical data.

[0015] (4.4) When critical data arrives at the receiving end, the receiving end will receive and cache the data packets of the current critical link, and extract the critical link data in the two transmission paths. The receiving end selects the legal and valid data according to the Seq value of R-Tag in the critical data of each link, removes the data packets on one of the paths, replaces the original VLAN ID value of the critical data, and outputs the critical data packets to the downstream port.

[0016] Preferably, in step (2), a network-wide unique identifier is assigned to the TSN device, and the valid range of its ID is 0 to 31, which is converted to a binary valid range of 2`b00000 to 2`b11111.

[0017] Preferably, in step (4), the TSN devices complete the configuration and forwarding functions of the device ports according to their respective identities.

[0018] Preferably, in step (4), the TSN device constructs a protocol for frame copying, frame transmission, and frame elimination of key data based on the current identity information.

[0019] Compared with the prior art, the present invention has the following advantages:

[0020] 1. This invention only requires the network administrator to determine the identity information of the sending end, relay end, and receiving end devices, and plan the transmission path of critical messages, so as to automatically construct the device configuration under each path in the TSN ring network; the redundant path of critical transmission is automatically generated by the TSN device itself according to the transmission node and path, without the need for network administrator configuration, reducing the configuration workload of the network administrator, thereby reducing the possibility of network crashes caused by configuration.

[0021] 2. This invention is based on the division of transmission paths into independent VLANs. The network management controller issues VLAN configurations for different paths to TSN devices (all configured path VLANs are generated by a unique identifier ID in the entire TSN network. When different TSN devices have different IDs, the VLANs on their transmission paths are also different). Ultimately, it can achieve dual-path redundant transmission of critical data even when there are physical topology loops between TSN devices. Moreover, when no loop-breaking protocols such as STP, MSTP, and ERPS are running, there will be no broadcast storm problem at the data link layer.

[0022] 3. By creating different VLANs under different paths in the loop, key data can be transmitted through a single link in the message transmission logic, thus realizing the function of breaking the L2 physical loop. Attached Figure Description

[0023] Figure 1 This is a schematic diagram illustrating the identification of key data transmission devices in TSN equipment.

[0024] Figure 2 A schematic diagram illustrating the allocation of device IDs for critical data transmission in TSN devices;

[0025] Figure 3 A schematic diagram illustrating the key data transmission device path confirmation and port allocation for TSN devices;

[0026] Figure 4 A schematic diagram showing the critical data ring network topology segmented by VLANs;

[0027] Figure 5 A diagram illustrating the requirements for transmitting critical data in a TSN network;

[0028] Figure 6 A diagram illustrating device identity and ID allocation in a TSN network;

[0029] Figure 7 This is a schematic diagram of the planning for path 1 and path 2 in the TSN network;

[0030] Figure 8This diagram illustrates the dual-path transmission of critical data within the TSN network. Detailed Implementation

[0031] To make the objectives and advantages of the present invention clearer, the present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0032] This invention provides a method for automatic dual-path planning and transmission in Time-Sensitive Network (TSN) devices. This method enables the transmission of critical data along two independent paths in a ring network composed of TSN devices, and each TSN device can automatically complete path planning and distribute related configurations. Specifically, it includes the following steps:

[0033] (1) Based on the current TSN network topology, determine the sender, relay, and receiver of critical data transmission. At the sender, critical data undergoes frame copying, adding an R-Tag header to the original data frame. At the relay, the critical data is stored and forwarded. At the receiver, the device waits for critical data packets from both paths, removes the R-Tag header according to the frame cancellation protocol, restores the original critical data, and outputs one of the valid data frames. The identification process for each TSN device during critical data transmission is as follows: Figure 1 As shown.

[0034] (2) Based on the current TSN network topology, configure each TSN device with a unique ID information that exists in the current network. The value of this ID information ranges from 0 to 31, which is between 2`b00000 and 2`b11111 in binary. This ID is mainly configured on the sending and receiving TSN devices that need to transmit critical data; it is not necessary to configure this ID information on intermediate transmission devices. During critical data transmission, the ID allocation of the sending and receiving TSN devices is as follows: Figure 2 As shown.

[0035] (3) Based on the current network topology, the network administrator or TSN network management configuration software (TSN-NSM) manually plans or TSN-NSM plans two independent transmission paths to determine the input and output port information of critical data transmission on each device in the current TSN transmission network. A diagram illustrating the confirmation of input and output ports of critical data transmission on each device in the TSN network is shown below. Figure 3 As shown.

[0036] (4) Each TSN device constructs a frame copying and transmission protocol for key data and a frame elimination protocol for key data based on the current identity information.

[0037] (4.1) Automatic creation of transmission path 1 and transmission path 2. The TSN device automatically creates VLAN ID values ​​for transmission path 1 and transmission path 2 based on the sender ID and receiver ID of the critical data. The automatic construction structure of VLAN ID values ​​is shown in Table 1:

[0038] Table 1

[0039]

[0040] Forced bit 11 to be 1 indicates that the range of VLANs used is between 2048 and 4095.

[0041] Bits 10 to 6 are the ID values ​​of the key data sending end, totaling 5 bits, with a value range of 0 to 31.

[0042] Bits 5 through 1 are the ID values ​​of the critical data receiving end, totaling 5 bits, with a value range of 0 to 31.

[0043] Bit 0 is the path ID bit, where 0 indicates the VLAN used for transmission path 1 and 1 indicates the VLAN used for transmission path 2.

[0044] When a VLAN segmentation is created for transmission path 1 from sender 1 to receiver 4, the VLAN ID allocation is as shown in Table 2: the corresponding decimal VLAN ID value is 2120.

[0045] Table 2

[0046]

[0047] When a VLAN segmentation is created for transmission path 2 from sender 1 to receiver 4, the VLAN ID allocation is shown in Table 3: the corresponding decimal VLAN ID value is 2121.

[0048]

[0049] By creating different paths in different VLANs within the loop, key data can be transmitted via a single link in the message transmission logic, thus achieving the function of breaking the L2 layer physical loop.

[0050] (4.2) When critical data is at the sending end, the TSN device performs a frame copying operation on the critical data, replacing the VLAN ID value in the original critical data packet with the VLAN ID values ​​of transmission path 1 and transmission path 2 respectively, and then distributing the critical data with the replaced VLAN ID values ​​to transmission path 1 and transmission path 2, such as... Figure 4 As shown.

[0051] (4.3) After the critical data is replaced with a VLAN tag, it is simultaneously propagated in different transmission paths 1 and 2. When the critical data passes through the relay transmission device, the relay transmission device automatically configures the corresponding VLAN channel on the port of the relay transmission device according to the ID information and path information of the sending and receiving ends to be transmitted, and relays the critical data.

[0052] (4.4) When critical data arrives at the receiving end, the receiving end receives and buffers the data packets of the current critical link, and extracts the critical link data from the two paths. Based on the Seq value of the R-Tag in the critical data of each link, the receiving end selects the valid data, removes the data packets on one of the paths, replaces the original VLANID value of the critical data, and outputs the critical data packets to the downstream port.

[0053] Here, a specific embodiment is given for further explanation:

[0054] This invention relates to a method for automatic dual-path planning and transmission implementation in time-sensitive network devices, the specific implementation process of which is as follows:

[0055] like Figure 5 As shown in the diagram, a network topology is constructed. It is assumed that a set of critical data needs to be transmitted from TSN1 to TSN4, where TSN2, TSN3, and TSN5 provide two independent transmission paths.

[0056] (1) Determine the current network topology, identifying TSN1 as the sender, TSN2, TSN3, and TSN5 as relay transmitters, and TSN4 as the receiver. The allocation result is as follows: Figure 6 As shown.

[0057] (2) Assign unique ID information to the transmitters and receivers in the TSN network. In this example, the transmitter ID is configured as 1, and the receiver ID is configured as 4. The ID range is 0 to 31, and the ID must be unique within this range. Relay terminals do not need to be assigned IDs. The allocation result is as follows: Figure 6 As shown.

[0058] (3) The network administrator or TSN-NSM controller plans two independent transmission paths based on the current TSN network topology. For example... Figure 7 As shown, path 1 is TSN1->TSN5->TSM4, and path 2 is TSN1->TSN2->TSN3->TSM4.

[0059] (4) Each TSN device constructs two independently operating VLAN paths within the ring network based on its own identity and path information. For example... Figure 8 As shown.

[0060] (4.1) The VLAN ID constructed by path 1 is 2`b100001001000, which is 2120 in decimal; the VLAN ID constructed by path 2 is 2`b100001001001, which is 2121 in decimal.

[0061] (4.2) At the sending end, the TSN device activates the VLAN tag replacement function, modifies the input VLAN tag 10 of the critical data to VLAN ID=2120 on path 1 and then transmits it to path 1; modifies the input tag of the critical data to VLAN ID=2121 on path 2 and then transmits it to path 2. An R-Tag header is added after the critical data VLAN tag.

[0062] (4.3) At the trunk end, the TSN5 device is configured with the corresponding port of connection configured according to the topology information and path 1 as Trunk mode, and VLAN 2120 data packets are allowed to pass through the TSN5 port. At the trunk ends TSN2 and TSN3, the corresponding port of connection is configured with Trunk mode according to the topology information and path 2, and VLAN 2121 data packets are allowed to pass through the TSN2 and TSN3 ports.

[0063] (4.4) At the receiving end, the TSN4 device waits to receive data packets from both paths and extracts the R-Tag headers. Based on the Seq sequence number carried in the R-Tag header, it buffers and waits for data packets from both paths. The receiving end sequentially verifies the validity of packets from both paths and discards invalid data packets. Finally, it selects one data packet from the valid data packets for output; in this example, it is the VLAN 2120 data packet. The R-Tag value is deleted, and the original VLAN tag value of the critical data packet, i.e., VLAN 10, is restored. The critical data packet is output through the TSN4 device as VLAN 10.

[0064] Through the above process, critical data can be transmitted within the TSN ring network along two automatically planned independent paths between devices. Since the configured path VLANs are all generated by unique identifiers across the entire TSN network, different TSN devices with different IDs will have different VLANs on their transmission paths. This method enables redundant transmission of critical data along two independent logical paths even when a loop exists.

[0065] The above embodiments are merely specific examples to further illustrate the purpose, technical solution, and beneficial effects of the present invention, and the present invention is not limited thereto. Any modifications, equivalent substitutions, improvements, etc., made within the scope of the disclosure of the present invention are included within the protection scope of the present invention.

Claims

1. A method for implementing dual-path automatic planning and transmission in time-sensitive network devices, characterized in that: Comprise the following steps: (1) Determine the identity information of the redundant path transmission device of the current TSN device, wherein the identity information comprises three types of sending end, receiving end and relay transmission end; (2) All TSN devices in the network are allocated a unique ID identifier; (3) Plan two independent data transmission paths 1 and transmission path 2, and determine the input and output ports of the two transmission paths; (4) Automatically plan the VLAN information on the current transmission path 1 and transmission path 2; Step (4) comprises the following steps, (4.1) Automatically create transmission path 1 and transmission path 2, and the TSN device automatically creates the VLAN ID value on the path according to the sending end ID and receiving end ID of the key data; (4.2) At the sending end, the TSN device performs frame duplication operation on the key data, replaces the original VLAN ID value in the key data packet with the VLAN ID value of transmission path 1 and transmission path 2 respectively, and distributes the key data after replacing the VLAN ID value to transmission path 1 and transmission path 2; (4.3) When the key data is replaced with VLAN tag, it is propagated in different transmission path 1 and transmission path 2 at the same time; when the key data passes through the relay transmission device, the relay transmission device automatically configures the corresponding VLAN channel on the relay transmission device port according to the ID information and path information of the sending end and receiving end required for transmission, and relays the key data; (4.4) When the key data reaches the receiving end, the receiving end receives and caches the data packet of the current key link, and extracts the key link data in the two transmission paths; the receiving end selects the valid data according to the Seq value of R-Tag in the key data in each link, and eliminates the data packet on one path, replaces the original VLAN ID value of the key data and outputs the key data packet to the rear port.

2. The method of claim 1, wherein the method further comprises: In step (2), the unique identifier of the TSN device in the network is allocated, and the effective range of the ID is 0~31, which is converted into binary effective range 2`b00000 to 2`b11111.

3. The method of claim 1, wherein: In step (4), the TSN device completes the configuration of the device port and the implementation of the forwarding function according to its own identity.

4. The method of claim 1, wherein: In step (4), the TSN device constructs the protocol of frame duplication, frame transmission and frame elimination of key data according to the current identity information.

Citation Information

Patent Citations

  • Route bridging method, network bridge equipment and bridging network

    CN101494583A

  • Flow protection method and device for shortest path bridging network

    CN104283778A