Method and device for implementing port aggregation in TSN network

By dividing the stream into TSN streams and non-TSN streams in the TSN network and dividing the queues, combining static configuration and load balancing algorithms, the problems of slot planning complexity and link redundancy protection are solved, and bandwidth utilization is improved. The number of streams enables fast switching protection.

CN116192747BActive Publication Date: 2024-12-17KUNGAO XINXIN MICROELECTRONICS (JIANGSU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211088088.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2024-12-17
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

In TSN networks, existing port aggregation technology is prone to problems such as time slot overlap, time slot fragmentation and time-sensitive stream allocation, resulting in bandwidth waste and stream interruption, and a single load balancing algorithm cannot effectively protect link redundancy. .

Method used

The stream sent to the aggregation port is divided into TSN streams and non-TSN streams, which are divided into TSN queues and non-TSN queues respectively, and the time slots are reasonably arranged through static configuration and load balancing algorithms, and a physical port is retained as the TSN redundant port. Migrates the TSN stream to the redundant port when it fails.

Benefits of technology

Reduces the time slot planning complexity of aggregation ports in TSN networks, improves bandwidth utilization and the number of TSN streams that can be accommodated, and implements fast handover protection when ports or links fail, reducing the impact on other TSN streams and downstream devices. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192747B_ABST
    Figure CN116192747B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for realizing port aggregation in a TSN network. The method includes: dividing all flows sent to the aggregation port into TSN flows and non-TSN flows; dividing the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues; statically configuring the TSN flows into the TSN queues according to the time slots, and distributing the non-TSN flows into the non-TSN queues according to the current load balancing algorithm. The present invention can greatly reduce the complexity of TSN time slot planning of the aggregation port in the TSN network, and can reasonably arrange the time slots to improve the bandwidth utilization and the number of TSN flows that can be accommodated by the aggregation link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of implementation of network chips and network systems, and in particular to a method and device for implementing port aggregation in a TSN network. Background Art

[0002] Ethernet port aggregation is to bind multiple physical ports into a logical channel so that they work like one channel. Bundling multiple physical links together can increase the bandwidth of the entire network, and data can also be transmitted through multiple bound physical links at the same time. The load is evenly distributed on each physical link through the load balancing algorithm. When one or more links are disconnected due to network failure or other reasons, the remaining links can still work, so it has the function of link redundancy and provides higher connection reliability.

[0003] TSN (Time-Sensitive Network) is a time-sensitive network, which is a general term for a series of data link layer protocol specifications developed by the IEEE 802.1TSN working group. It is used to guide and develop low-latency, low-jitter Ethernet local area networks with deterministic transmission time. It is an enhanced function implementation of traditional Ethernet in specific application environments such as automobiles and industries. The technical core of TSN's enhanced function is to achieve the transmission of time-sensitive streams (data) and non-time-sensitive streams in the same network through a combination of time division multiplexing and statistical multiplexing on the basis of achieving network clock synchronization. The data link is divided into several time slots through gated switches, and different service quality Qos data streams are transmitted in their respective time slots. The specific protocols involve 802.1Qbv, etc. TSN also supports port aggregation.

[0004] For a given data stream, if it is transmitted through an aggregation port, it is necessary to select a member physical link for transmission according to the existing given link load balancing allocation algorithm, and then plan and allocate the time slots of the physical link. It is easy to have time slot overlap, time slot fragmentation (multiple time slots of time-sensitive streams are not adjacent and distributed in the same transmission cycle, but the time slots between time-sensitive stream time slots are too small to transmit other non-time-sensitive stream data), or time-sensitive streams are unevenly distributed on each member physical link, resulting in bandwidth waste and a small number of time-sensitive streams accommodated.

[0005] At the same time, according to the current single load balancing algorithm, link redundancy protection cannot be performed well. When each physical link of the aggregation port is assigned a time-sensitive flow (TSN flow), after a member physical link of the aggregation port fails, the load of the failed link needs to be distributed to other physical links. Without affecting the time-sensitive flow planning of upstream and downstream devices, for the time-sensitive flow that needs to determine the time slot, it is very likely that all other working physical links cannot plan and arrange the time slot required by the time-sensitive flow of the failed link, thereby causing flow interruption. Summary of the invention

[0006] In order to solve the above technical problems, the present invention discloses a method and device for implementing port aggregation in a TSN network. The present invention can greatly reduce the complexity of TSN time slot planning of the aggregation port in the TSN network, and can reasonably arrange the time slots to improve the bandwidth utilization and the number of TSN flows that the aggregation link can accommodate.

[0007] In addition, when a port or a link fails, the present invention can quickly switch protection without affecting or having little impact on other TSN flow configurations of the current device and the TSN configuration of the downstream device.

[0008] To achieve the above-mentioned purpose, the technical solution of the present invention provides a method for implementing port aggregation in a TSN network, which includes: dividing all flows sent to the aggregation port into TSN flows and non-TSN flows; dividing the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues; statically configuring the TSN flows into the TSN queues according to time slots, and allocating the non-TSN flows to the non-TSN queues according to the current load balancing algorithm.

[0009] In a further technical solution, when the queues of the member physical ports of the aggregation port are divided into TSN queues and non-TSN queues, at least one member physical port of the aggregation port is reserved as a TSN redundant port, which is not allocated a TSN queue but is all allocated as a non-TSN queue.

[0010] In a further technical solution, when a member physical port having a TSN stream fails, the TSN stream on the physical port is migrated as a whole to a TSN redundant port.

[0011] In a further technical solution, the TSN stream and the non-TSN stream are respectively mapped to their respective queues through Cos, and then data is transmitted according to the time slots planned for the respective queues.

[0012] An embodiment of the present invention further provides an implementation device for port aggregation in a TSN network, which includes: a flow identification module, used to divide all flows sent to the aggregation port into TSN flows and non-TSN flows; a queue division module, used to divide the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues; a flow allocation module, used to statically configure TSN flows into TSN queues according to time slots, and allocate non-TSN flows to non-TSN queues according to the current load balancing algorithm.

[0013] In a further technical solution, when the queue division module divides the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues, it reserves at least one member physical port of the aggregation port as a TSN redundant port, and the redundant port is not assigned a TSN queue, but is all assigned as a non-TSN queue.

[0014] In a further technical solution, the device further includes: a TSN flow migration module, which is used to migrate the entire TSN flow on the physical port to the TSN redundant port when a member physical port with the TSN flow fails.

[0015] In a further technical solution, the flow allocation module maps the TSN flow and the non-TSN flow to their respective queues through Cos, and then performs data transmission according to the time slots planned for the respective queues. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of the TSN port aggregation system model of the present invention. DETAILED DESCRIPTION

[0017] The technical solution of the present invention is further described below in conjunction with specific embodiments, but the present invention is not limited to these embodiments.

[0018] The design points of the present invention include:

[0019] (1) All flows sent to the aggregation port are divided into TSN flows (time-sensitive flows) and non-TSN flows (non-time-sensitive flows);

[0020] (2) The queues of the member physical ports of the aggregation port are divided into TSN queues (sending time-sensitive flows) and non-TSN queues (sending non-time-sensitive flows);

[0021] (3) TSN flows are statically configured into TSN queues according to time slots, and non-TSN flows are allocated into non-TSN queues according to the current load balancing algorithm;

[0022] (4) If TSN flow redundancy protection is required, at least one member physical port of the aggregation port is reserved without being assigned a TSN queue, that is, all queues of the member physical port (TSN redundant port) are non-TSN queues, and non-TSN flows are sent;

[0023] (5) Based on (4), if a member physical port with a TSN flow fails, the TSN flow on the physical port is switched to a TSN redundant port.

[0024] In an embodiment of the present invention, a method for implementing port aggregation in a TSN network includes: dividing all flows sent to the aggregation port into TSN flows and non-TSN flows; dividing the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues; statically configuring the TSN flows into the TSN queues according to time slots, and allocating the non-TSN flows to the non-TSN queues according to the current load balancing algorithm.

[0025] In a further technical solution, when the queues of the member physical ports of the aggregation port are divided into TSN queues and non-TSN queues, at least one member physical port of the aggregation port is reserved as a TSN redundant port, which is not allocated a TSN queue but is all allocated as a non-TSN queue.

[0026] In a further technical solution, when a member physical port having a TSN stream fails, the TSN stream on the physical port is migrated as a whole to a TSN redundant port.

[0027] In a further technical solution, the TSN stream and the non-TSN stream are respectively mapped to their respective queues through Cos, and then data is transmitted according to the time slots planned for the respective queues.

[0028] An embodiment of the present invention further provides an implementation device for port aggregation in a TSN network, which includes: a flow identification module, used to divide all flows sent to the aggregation port into TSN flows and non-TSN flows; a queue division module, used to divide the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues; a flow allocation module, used to statically configure TSN flows into TSN queues according to time slots, and allocate non-TSN flows to non-TSN queues according to the current load balancing algorithm.

[0029] In a further technical solution, when the queue division module divides the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues, it reserves at least one member physical port of the aggregation port as a TSN redundant port, and the redundant port is not assigned a TSN queue, but is all assigned as a non-TSN queue.

[0030] In a further technical solution, the device further includes: a TSN flow migration module, which is used to migrate the entire TSN flow on the physical port to the TSN redundant port when a member physical port with the TSN flow fails.

[0031] In a further technical solution, the flow allocation module maps the TSN flow and the non-TSN flow to their respective queues through Cos, and then performs data transmission according to the time slots planned for the respective queues.

[0032] like Figure 1 As shown in the figure, two switching devices A and B are connected through four 2.5Gbps physical links in a port aggregation mode to form a 10Gbps logical link. Among them, the queues of member physical ports P0~P2 are divided into TSN queues and non-TSN queues. Member physical port P3 is a TSN redundant port, which is only assigned to non-TSN queues, but not TSN queues. When data is sent from device A to B, the flow identification module identifies TSN flows and non-TSN flows. TSN flows are reasonably allocated to member physical ports P0~P2 of the aggregation port of device A using a static configuration method. Port P3 is a TSN flow redundant port and does not allocate time-sensitive flows. Non-TSN flows are allocated to ports P0~P3 through the current load balancing distribution algorithm. Time-sensitive flows and non-time-sensitive flows are mapped to their respective queues through Cos (Class of service) and data is transmitted according to the time slots planned by their respective queues.

[0033] When ports P0-P2 or the links where they are located fail, the TSN flows on the failed ports are migrated as a whole to the link where the TSN redundant port P3 is located.

[0034] Compared with the previous single port aggregation load balancing algorithm, the present invention aims at the problem of how to plan time-sensitive flows on the aggregation port in the TSN network, and proposes a method that combines static allocation with the current load balancing algorithm to solve the problem that a single load balancing algorithm under port aggregation is difficult to plan time-sensitive flows and redundant protection of time-sensitive flows.

[0035] The above is only a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A method for implementing port aggregation in a TSN network. It is characterized in that include: Divide all flows sent to the aggregation port into TSN flows and non-TSN flows; The queues of the member physical ports of the aggregation port are divided into TSN queues and non-TSN queues; TSN flows are statically configured into TSN queues according to time slots, and non-TSN flows are allocated to non-TSN queues according to the current load balancing algorithm; When the queues of the member physical ports of the aggregation port are divided into TSN queues and non-TSN queues, at least one member physical port of the aggregation port is reserved as a TSN redundant port, which is not allocated a TSN queue but is allocated as a non-TSN queue.

2. The method according to claim 1, It is characterized in that When a member physical port with a TSN flow fails, the TSN flow on the physical port is migrated as a whole to the TSN redundant port.

3. The method according to claim 2, It is characterized in that TSN flows and non-TSN flows are mapped to their respective queues through Cos, and then data is transmitted according to the time slots planned for their respective queues.

4. A device for realizing port aggregation in a TSN network, It is characterized in that include: A flow identification module, used to divide all flows sent to the aggregation port into TSN flows and non-TSN flows; A queue division module, used for dividing the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues; The flow distribution module is used to statically configure TSN flows into TSN queues according to time slots, and to distribute non-TSN flows into non-TSN queues according to the current load balancing algorithm; wherein, When the queue division module divides the queues of the member physical ports of the aggregation port into TSN queues and non-TSN queues, it reserves at least one member physical port of the aggregation port as a TSN redundant port, which is not allocated with a TSN queue but is allocated with all non-TSN queues.

5. The device according to claim 4, It is characterized in that Also includes: The TSN flow migration module is used to migrate the TSN flow on the physical port as a whole to the TSN redundant port when a member physical port with the TSN flow fails.

6. The device according to claim 5, It is characterized in that The flow distribution module maps the TSN flow and the non-TSN flow to their respective queues through Cos, and then performs data transmission according to the time slots planned by the respective queues.