Redundant path resource reservation method, network device and storage medium
The method extends the SRP protocol with a redundancy field and spanning tree identifier to establish redundant paths for TSN traffic, addressing the limitation of unicast paths and enhancing network reliability.
Patent Information
- Application Number
- JP2023501186
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-07-08
- Filing Date
- 2021-07-07
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2041-07-07
AI Technical Summary
The existing Stream Reservation Protocol (SRP) in IEEE 802.1Qat standard can only establish a unicast forwarding path between a source and a destination, failing to provide redundant path resource reservation for Time Sensitive Networking (TSN) traffic streams, which is crucial for network reliability in the presence of single node or link failures.
A method for reserving resources for redundant paths by extending the SRP protocol with a redundancy field and a spanning tree identifier, allowing attribute statement messages to propagate through at least two spanning tree instances, ensuring redundant path establishment for TSN traffic.
This approach enhances network reliability by providing redundant paths for TSN traffic, ensuring continuity and reducing the impact of failures, while maintaining low packet loss and jitter.
Smart Images

Figure 0007540071000016 
Figure 0007540071000013 
Figure 0007540071000011
Abstract
Description
[Technical field]
[0001] The present application relates to the field of communication technology, and in particular to a redundant path resource reservation method, a network device and a storage medium. [Background technology]
[0002] The Time Sensitive Networking (TSN) Working Group of IEEE 802.1Q proposes methods and mechanisms to provide TSN traffic streams with bounded delay and jitter, and extremely low packet loss rates. The TSN Working Group's standards require redundant traffic paths that meet the bandwidth and delay requirements of the TSN traffic stream plan, while improving network reliability by implementing packet copy and deletion mechanisms.
[0003] In the currently proposed draft of the TSN standard, the Stream Reservation Protocol (SRP) proposed by the IEEE802.1Qat standard is for reserving resources and establishing transmission paths between TSN traffic sources (Talkers) and corresponding destinations (Listeners). However, the conventional SRP standard can only establish unicast transmission paths that meet the traffic requirements between the source and destination, and cannot provide redundant path resource reservation for TSN traffic streams. Summary of the Invention [Means for solving the problem]
[0004] The present application provides a method for reserving resources for a redundant path, a network device, and a storage medium.
[0005] An embodiment of the present application provides a method for reserving resources for a redundant path applied to a bridge device, the method including: obtaining, from a received attribute statement message of a source device, time-sensitive network (TSN) traffic targeted by the attribute statement message and an indication of whether redundant propagation needs to be provided for the attribute statement message; copying the attribute statement message in response to the indication that redundant propagation needs to be provided for the attribute statement message and the number of spanning tree instances maintained in the bridge device being at least two; propagating the received attribute statement message and the copied attribute statement message by at least two spanning tree instances to establish a redundant path for TSN traffic between the source device and a destination device; and reserving resources for the redundant path for TSN traffic in response to receiving a resource reservation request message targeted for TSN traffic from the destination device.
[0006] An embodiment of the present application is a method for reserving resources for a redundant path applied to a source device, comprising: in response to determining that a resource reservation for a redundant path is required for TSN traffic, generating a first attribute statement message for the TSN traffic, and an indication that a redundant propagation needs to be provided in the attribute statement message is attached to the first attribute statement message; and sending the first attribute statement message to a bridge device connected to the source device; The step of generating a first attribute statement message for the TSN traffic and associating with the first attribute statement message an indication that redundant propagation should be provided for the attribute statement message includes generating a first attribute statement message for the TSN traffic and associating with the first attribute statement message a stream identifier for the TSN traffic, redundancy information for marking a value as a first redundancy information value, and a spanning tree identifier, the value of which is an arbitrary identifier value, where the first redundancy information value is used to indicate that redundant propagation should be provided for the first attribute statement message, and the arbitrary identifier value is used to indicate a spanning tree instance on which propagation of the first attribute statement message is based. A method for reserving resources for a redundant path is further provided.
[0007] In an embodiment of the present application, in a method for reserving resources for a redundant path applied to a destination device, the destination device: receiving at least two Attribute Statement messages for the same TSN traffic by a bridge device connected to the destination device; obtaining a stream identifier for identifying the TSN traffic, the stream identifier being attached to the attribute statement message;TSN traffic , determined by the stream identifier; In response to TSN traffic of interest to the destination device and each received attribute statement message being propagated by a different spanning tree instance, generating a resource reservation request message for the TSN traffic and corresponding to a different spanning tree instance for each received attribute statement message, the different spanning tree instance being one of at least two spanning tree instances maintained in a bridge device connected to the destination device, and the at least two spanning tree instances being used to establish a redundant path for the TSN traffic between a source device and the destination device; and transmitting each resource reservation request message to a bridge device connected to the destination device via the different spanning tree instance to which each generated resource reservation request message corresponds.
[0008] An embodiment of the present application provides a network device comprising one or more processors and a memory having one or more programs stored therein, the one or more programs being executed by the one or more processors to cause the one or more processors to realize a redundant path resource reservation method applied to a bridge device of the present application.
[0009] An embodiment of the present application provides a storage medium on which a computer program is stored, the computer program causing a processor to implement the redundant path resource reservation method of the present application when the computer program is executed by the processor.
[0010] Further explanations of the above embodiments and other aspects of the present application and their implementation methods are provided in the description of the drawings, specific embodiments, and claims. [Brief description of the drawings]
[0011] [Figure 1] FIG. 2 is a conceptual flow diagram of a method for reserving resources for a redundant path provided by the present application; [Diagram 2] 1 is a conceptual diagram of an exemplary encoding format of an attribute statement message based on the SRP protocol. [Diagram 3] FIG. 1 is a conceptual diagram of an encoding format of an attribute statement message based on the SRP protocol after the extension provided by the present application. [Figure 4] 1 is a conceptual flow diagram of the initialization setup performed by a source device provided in the present application for an Attribute Statement message. [Diagram 5] FIG. 2 is another conceptual flow diagram of a method for reserving resources for a redundant path provided by the present application; [Figure 6] FIG. 13 is a processing flow diagram for an attribute statement message of a bridge device provided by the present application. [Figure 7] 13 is a conceptual diagram of a processing flow when a bridge device provided by the present application receives an attribute statement message. [Figure 8] FIG. 13 is a conceptual diagram of a processing flow when a bridge device provided by the present application receives a resource reservation cancellation message. [Figure 9] FIG. 2 is another conceptual flow diagram of a method for reserving resources for a redundant path provided by the present application; [Figure 10] FIG. 1 is a conceptual diagram of a conventional encoding format of a destination-side message based on the SRP protocol. [Figure 11] FIG. 2 is a conceptual diagram of an encoding format for a destination message provided by the present application. [Figure 12] FIG. 13 is a conceptual diagram of a process flow when a destination device provided by the present application receives an Attribute Statement message. [Figure 13] FIG. 2 is a conceptual diagram of a process flow for reserving resources for a redundant path based on the SRP protocol provided by the present application. [Figure 14] FIG. 2 is a conceptual diagram of a process flow for canceling resource reservation for a redundant path based on the SRP protocol provided by the present application. [Figure 15]FIG. 1 is a structural conceptual diagram of a redundant path resource reservation device provided by the present application; [Figure 16] FIG. 1 is a structural conceptual diagram of a redundant path resource reservation device provided by the present application; [Figure 17] FIG. 1 is a structural conceptual diagram of a redundant path resource reservation device provided by the present application; [Figure 18] 1 is a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the redundant path resource reservation method and apparatus of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application are described in detail below in conjunction with the drawings, wherein the embodiments and features of the embodiments of the present application may be arbitrarily combined with each other unless there is a contradiction.
[0013] In the TSN Working Group standard, the two quality of service requirements of bounded delay and jitter are met by standards such as 802.1Qbv, 802.1Qch, and 802.1Qav, and extremely low packet loss is required to ensure that the network has high reliability and availability, and is able to cope as much as possible with single node failures and single link failures that may occur in the network.
[0014] In the TSN Working Group standard, IEEE802.1CB employs a packet copy and deletion mechanism to improve network reliability. Specifically, for messages with corresponding stream handles, a copy operation is performed at a specified port to achieve message redundant transmission, and deletion and sorting operations are performed at the traffic gathering or receiving point to avoid message duplication and out-of-order, which requires redundant traffic paths that meet the bandwidth and latency requirements of the TSN traffic stream plan.
[0015] In the currently proposed draft TSN standard, the Stream Reservation Protocol (SRP) proposed by the IEEE 802.1Qat standard is used to reserve resources and establish forwarding paths between TSN traffic sources (Talkers) and corresponding destinations (Listeners). SRP protocol messages can propagate in a specified spanning tree.
[0016] For example, the spanning tree can be generated by the Rapid Spanning Tree protocol, and can also be established by the Path Control and Reservation (PCR) protocol proposed by, for example, IEEE 802.1Qca. When using the PCR protocol, it is possible to display all links included in a specified spanning tree.
[0017] For example, in the Multiple Registration Protocol (MRP), a spanning tree instance can be specified by a spanning tree identifier. Specifically, SRP protocol messages can be executed in a basic spanning tree instance specified by a default identifier. Since SRP protocol messages propagate in a spanning tree instance, there can be only one forwarding path between a source and one destination, so they can only establish a unicast forwarding path between a source and one destination that matches the traffic requirements. Therefore, the traditional SRP standard cannot provide redundant path resource reservation for TSN traffic streams.
[0018] In addition, other draft standards related to TSN, such as IEEE802.1Qcc, currently only realize the configuration for traffic shaping and traffic stream characteristics, and the configuration extension of the basic SRP protocol, for example, it can support up to seven stream reservation categories, but does not propose the extension method of resource collection, calculation, and path issuance for redundant paths. Other draft standards and proposals also do not provide clear solutions.
[0019] The present application provides a method for reserving resources for a redundant path, which is provided by attaching a redundant field and a spanning tree identifier to an attribute statement message based on an extended SRP protocol, and using a value of the redundant field to indicate that the network needs to establish a redundant path, and using the spanning tree identifier to indicate the spanning tree instance on which the transmission of the attribute statement message in the bridge device is based, so that the bridge device to which the source is connected is a proxy for the redundant path function, and an analysis is performed on the redundant field. When it is determined that the value of the redundant field indicates that the network needs to establish a redundant path, the source side attribute statement message is copied and modified so that the message propagates in two different spanning tree instances, thereby establishing a redundant traffic protection path for TSN traffic.
[0020] 1 is a conceptual flow diagram of a method for reserving resources for a redundant path provided by the present application. As shown in FIG 1, the method for reserving resources for a redundant path provided by the present application can be applied to a source device, and the method may include the following steps S110 to S120.
[0021] In step S110, in response to determining that a redundant path resource reservation is required for the TSN traffic, a first attribute statement message is generated for the TSN traffic, and an indication that redundant propagation is required to be provided for the first attribute statement message is attached to the first attribute statement message.
[0022] In step S120, a first attribute statement message is sent to a bridge device connected to the source device, where at least two spanning tree instances are maintained in the bridge device, and the at least two spanning tree instances are used for instructions based on the first attribute statement message to establish a redundant path for TSN traffic between the source device and a specified destination device.
[0023] In the present application, a source device (i.e., a TSN traffic source Talker) sends an Attribute Statement message to a connected bridge device indicating that redundant propagation should be provided for the Attribute Statement message, and the bridge device provides redundant propagation for the Attribute Statement message using at least two spanning tree instances that it maintains, thereby establishing a redundant path for TSN traffic between the source device and a specified destination device.
[0024] In one implementation, step S110 may include generating a first attribute statement message for the TSN traffic, and attaching to the first attribute statement message a stream identifier of the TSN traffic, redundancy information for marking a value as a first redundancy information value, and a spanning tree identifier whose value is an any identifier value, where the first redundancy information value is used to indicate that redundant propagation needs to be provided for the first attribute statement message, and the any identifier value is used to indicate a spanning tree instance on which propagation of the first attribute statement message is based.
[0025] In one implementation, in response to determining that there is no need to perform redundant path resource reservation for the TSN traffic, the method may further include generating a second attribute statement message for the TSN traffic, in which a stream identifier of the TSN traffic, redundancy information for marking a value as a second redundancy information value, and a spanning tree identifier whose value is a predetermined identifier value are attached to the second attribute statement message, wherein the second redundancy information value is used to indicate that there is no need to provide redundant propagation for the second attribute statement message, and the predetermined identifier value is used to indicate a spanning tree instance on which propagation of the second attribute statement message is based.
[0026] In the present application, the source device can extend a source side message based on the SRP protocol to include a stream identifier, a redundancy field, and a spanning tree identifier field, where the stream identifier is for uniquely identifying the TSN traffic, the redundancy information in the redundancy field is for indicating a redundancy propagation request for the attribute statement message, and the spanning tree identifier in the spanning tree identifier field is for indicating a spanning tree instance on which the propagation of the attribute statement message in the bridge device is based, and an attribute statement message for the TSN traffic is sent according to the spanning tree instance indicated by the spanning tree identifier to reserve resources of a redundant path for the TSN traffic marked by the stream identifier.
[0027] In the present application, at least two spanning tree instances may be established in advance in a TSN network, one of which may be a main spanning tree instance, and the other spanning tree instances may be sub-spanning tree instances. In order to establish a redundant path, the main spanning tree instance and the sub-spanning tree instance may include as few overlapping links as possible in the link sets of the main and sub-spanning tree instances corresponding to the main spanning tree instance and the sub-spanning tree instance. For example, a spanning tree instance that meets the requirements may be established by establishing a spanning tree link set using a method called PCR. It should be understood that the process of establishing the main spanning tree instance and the sub-spanning tree instance may also be implemented using other methods, and the present application does not specifically limit the method.
[0028] In one implementation, for the main spanning tree instance and the sub spanning tree instance that have already been established, the spanning tree identifier corresponding to the spanning tree instance may be maintained in the bridge device through MRP. For example, when the spanning tree instance corresponds to a spanning tree identifier whose value is set to 0, it is used to indicate forwarding through the default or predetermined spanning tree instance.
[0029] In the present application, one main spanning tree instance and at least one sub-spanning tree instance may be established. For ease of explanation, this specification takes one main spanning tree instance and one sub-spanning tree instance established by PCR as an example to describe the process of providing redundant propagation for attribute statement messages and the process of making resource reservation for redundant paths. However, this description should not be construed as limiting the scope or feasibility of the technical solution of the present application, and the processing method of the embodiment of one main spanning tree instance and more than one sub-spanning tree instance is substantially the same as the processing method of the embodiment of one main spanning tree instance and one sub-spanning tree instance.
[0030] Fig. 2 is a conceptual diagram of an exemplary encoding format of an attribute statement message based on the SRP protocol. As shown in Fig. 2, a conventional attribute statement message based on the SRP protocol may include fields such as a physical address (MAC Address), a unique ID, a destination address (Destination Address), a virtual LAN identifier (VLAN_ID), a maximum frame size (Max Frame Size), a maximum interval frame (Max Interval Frame), a data frame priority (Data Frame Priority), a rank (Rank), a reserved field (Reserved), and an accumulated latency (Accumulated Latency).
[0031] The MAC Address and Unique ID can be the stream identifier (Stream ID) of the Attribute Statement message, the Destination Address and VLAN_ID can be the Data Frame Parameters of the Attribute Statement message, the Max Frame Size and Max Interval Frame can be the traffic volume specification (TSprc) of the Attribute Statement message, and the Data Frame Priority, Rank, and Reserved can be the priority and ranking of the Attribute Statement message.
[0032] 3 is a conceptual diagram of an encoding format of an attribute statement message based on the SRP protocol after the extension provided by the present application. As shown in FIG. 3, the extended attribute statement message based on the SRP protocol is accompanied by a redundancy field and a spanning tree (Identifier) field.
[0033] 3, in an example of the encoding format of an attribute statement message based on the SRP protocol generated in a source device, the redundancy field may occupy, for example, 1 bit, and a redundancy field value of 1 indicates that redundancy protection is required, and conversely, a redundancy field value of 0 indicates that redundancy protection is not required. The spanning tree identifier field occupies, for example, 7 bits, and the maximum number of spanning tree instances supported is 128.
[0034] It should be understood that the present application may flexibly specify the lengths of the redundancy field and spanning tree identifier field according to the requirements of actual application scenarios, and the examples shown in this embodiment are only for the purpose of interpretation and explanation, and do not limit the content of the present application.
[0035] In one implementation, before step S120, the method may further include: in response to determining that redundancy propagation is required for the attribute statement message, setting the redundancy information to a first redundancy information value and the spanning tree identifier to an arbitrary identifier value; and in response to determining that redundancy propagation is not required for the attribute statement message, setting the redundancy information to a second redundancy information value and the spanning tree identifier to a predetermined identifier value, where the second redundancy information value is different from the first redundancy information value.
[0036] As an example, the first redundancy information value may be TRUE, the second redundancy information value may be FALSE, and the predetermined identifier value of the spanning tree identifier may be 0 by default.
[0037] In this application, after the Attribute Statement message generated by the source device is extended, two fields, respectively called a Redundancy field and a Spanning Tree Identifier field, may be added. The Redundancy field is for indicating a redundant propagation request for the Attribute Statement message, that is, whether the redundant propagation needs to be provided for the Attribute Statement message. For example, a TRUE value of the Redundancy field indicates that the redundant propagation is required, and a FALSE value of the Redundancy field indicates that the redundant propagation is not required. The Spanning Tree Identifier field is for indicating which spanning tree instance the Attribute Statement message is propagated by in the bridge.
[0038] In the present application, there may be multiple trigger mechanisms for the resource reservation process of the redundant path of the TSN traffic stream. For example, as described above, the source device sends an SRP protocol message to trigger the resource reservation process of the redundant path of the TSN traffic stream, where the source device has SRP protocol capability. In some other implementation modes, a configuration mode can be configured to trigger the sending of an SRP protocol message by the bridge, or a designated traffic message can trigger the bridge port directly connected to the source device to initiate the resource reservation process, where the bridge port needs to be pre-configured to be in redundant mode or not.
[0039] 4 is a flow diagram of an initialization process performed by a source device for an Attribute Statement message provided in the present application. As shown in FIG. 4, the initialization process performed by a source device for an Attribute Statement message may include the following steps S11 to S13.
[0040] In step S11, the source device determines whether to perform redundant propagation for the attribute statement message.
[0041] If it is determined in step S12 that redundant propagation is required, the redundant field of the source side attribute statement message is set to TRUE, and the spanning tree identifier value is set to an arbitrary value.
[0042] If it is determined in step S13 that it is not necessary to establish a redundant path, the redundant field is set to FALSE and the spanning tree identifier field is set to 0, indicating that the message is to be propagated by a specified spanning tree instance.
[0043] Through the above steps S11 to S13, the source device completes the initialization of the contents attached to the Attribute Statement message depending on whether or not to perform redundant propagation of the Attribute Statement message.
[0044] According to the redundant path resource reservation method provided by the present application, in order to attach a redundancy field and a spanning tree identifier, the source device extends a source side message based on the SRP protocol, and in order to trigger redundant path resource reservation for the TSN traffic marked by the stream identifier, the redundancy field indicates whether to perform redundant propagation for the attribute statement message, and the spanning tree instance indicated by the spanning tree identifier can be used to send the attribute statement message of the TSN traffic to the bridge port directly connected to the source device.
[0045] 5 is another conceptual flow diagram of the method for reserving resources for a redundant path provided by the present application. As shown in FIG. 5, the method for reserving resources for a redundant path provided by the present application can be applied to a bridge device, and the method may include the following steps S210 to S240.
[0046] In step S210, from the received source device Attribute Statement message, obtain the TSN traffic targeted by the Attribute Statement message and an indication of whether redundant propagation needs to be provided for the Attribute Statement message.
[0047] In step S220, in response to the indication being that redundant propagation needs to be provided for the attribute statement message and the number of spanning tree instances maintained in the bridge device is at least two, copy the attribute statement message.
[0048] In step S230, propagate the received attribute statement message and the copied attribute statement message through at least two spanning tree instances to establish a redundant path for TSN traffic between the source device and the destination device.
[0049] In step S240, in response to receiving a resource reservation request message for TSN traffic from the destination device, resource reservation of a redundant path is performed for the TSN traffic.
[0050] According to the redundant path resource reservation method provided in the present application, a bridge device obtains redundant information and spanning tree instances from a received attribute statement message based on an SRP protocol, and when the redundant information indicates that redundant propagation is required for the attribute statement message, and the number of corresponding spanning tree instances in the bridge device exceeds a predetermined number, copies the attribute statement message and modifies the attribute statement message according to the corresponding spanning tree instance, so that the received attribute statement message and the copied attribute statement message are propagated in different spanning tree instances, thereby establishing a redundant traffic protection path for TSN traffic.
[0051] In step S210, the spanning tree identifier may be used to mark a spanning tree instance, and the spanning tree instance can determine spanning tree topology information, thereby determining a bridge forwarding link corresponding to the spanning tree topology information.
[0052] In one implementation, a stream identifier and redundancy information are attached to the received attribute statement message, and step S210 may include determining that the TSN traffic indicated by the stream identifier attached to the received attribute statement message is the TSN traffic targeted by the attribute statement message, determining that redundancy propagation needs to be provided for the attribute statement message in response to the value of the redundancy information being a first redundancy information value, and determining that redundancy propagation does not need to be provided for the attribute statement message in response to the value of the redundancy information being a second redundancy information value, where the second redundancy information value is different from the first redundancy information value.
[0053] In one implementation, in response to determining that it is necessary to provide redundant propagation for the attribute statement message, step S230 may include: modifying the spanning tree identifier in the received attribute statement message and the spanning tree identifier in the copied attribute statement message to different spanning tree identifiers based on the spanning tree identifiers of the obtained at least two spanning tree instances; modifying both the redundant information in the received attribute statement message and the redundant information in the copied attribute statement message to a second redundant information value; and propagating the received attribute statement message and the copied attribute statement message in different spanning tree instances according to the modified different spanning tree identifiers to establish a redundant path for the TSN traffic.
[0054] In one implementation, when the redundancy information is a first redundancy information value, it is used to indicate that redundancy propagation needs to be provided, and when the redundancy information is a second redundancy information value, it is used to indicate that the redundancy propagation does not need to be provided.
[0055] For example, in a bridge device, the corresponding spanning tree identifiers of the main spanning tree instance and the sub spanning tree instance established by PCR can be a and b, respectively. For example, the spanning tree identifier in the received attribute statement message can be a, and the spanning tree identifier in the copied attribute statement message can be b.
[0056] In one implementation, if the indication is that redundant propagation should be provided for the attribute statement message and the number of spanning tree instances maintained in the bridge device is less than two, the method may further include propagating the received attribute statement message over a given spanning tree instance in the spanning tree instances maintained in the bridge device with an indication that redundant propagation should not be provided for the received attribute statement message.
[0057] In one implementation, the above steps may include: setting a spanning tree identifier attached to the received attribute statement message to a predetermined identifier value used to indicate a predetermined spanning tree instance; setting redundancy information attached to the received attribute statement message to a second redundancy information value used to indicate that no redundancy propagation needs to be provided for the attribute statement message; and propagating the attribute statement message with the second redundancy information value and the predetermined identifier value by the predetermined spanning tree instance.
[0058] Through the above steps, the redundancy information in the attribute statement message received by the bridge device indicates that redundant propagation needs to be provided for the attribute statement message, but if the number of corresponding spanning tree instances in the bridge device is insufficient to provide redundant propagation, the redundancy information in the attribute statement message can be modified to a second redundancy information value to indicate that redundant propagation does not need to be provided for the attribute statement message, and to forward the attribute statement message via the spanning tree instance indicated by the specified identifier value (default spanning tree instance).
[0059] In one implementation, if the received attribute statement message indicates that no redundant propagation needs to be provided for the attribute statement message, the method may further include forwarding the received attribute statement message over a spanning tree instance indicated by a spanning tree identifier associated with the received attribute statement message.
[0060] If the redundancy information is the second redundancy information value, it indicates that there is no need to provide redundancy propagation for the attribute statement message, ie, there is no need to perform copying and modification on the attribute statement message.
[0061] In one implementation, after obtaining the redundancy information and the spanning tree identifier attached to the attribute statement message, the method may further include registering the attribute information included in the received attribute statement message on the port through which the bridge device receives the attribute statement message.
[0062] By registering the message attributes of the attribute statement message, the message attributes are dynamically transferred and attribute-transferred between bridge devices, thereby achieving the purpose of reducing the amount of manual configuration by the network administrator and ensuring the accuracy of network attribute configuration.
[0063] 6 is a process flow diagram of the bridge device Attribute Statement message provided in the present application. As shown in FIG. 6, the process of the bridge device Attribute Statement message may include the following steps S21 to S28.
[0064] In step S21, a port of the bridge device receives an attribute statement message.
[0065] In step S22, the redundant field of the source side attribute statement message is analyzed to determine whether the redundant field of the message is TRUE. If it is TRUE, the process proceeds to step S23; if not, the process proceeds to step S27.
[0066] In step S23, the number of spanning tree instances currently maintained in the bridge is judged, and if it is 2 or more, the process proceeds to step S25, otherwise the process proceeds to step S24.
[0067] In step S24, the spanning tree identifier in the attribute statement message is set to 0.
[0068] In step S25, the source side attribute statement message is copied, the original message is treated as the main message, the copied message is treated as the sub-message, and the spanning tree identifier of the main message and the spanning tree identifier of the sub-message are set.
[0069] For example, the spanning tree identifier field of the main message is set to a, and the spanning tree identifier of the sub-message is set to b.
[0070] In step S26, the redundant field value of the source side attribute statement message is set to FALSE.
[0071] In step S27, the attributes of the source side attribute statement message are registered in the port.
[0072] In step S28, the Attribute Statement message is transmitted in a corresponding spanning tree according to a spanning tree identifier field value attached to the Source Side Attribute Statement message.
[0073] Through the above steps S21 to S28, a certain port of the bridge device receives the source side attribute statement message, and realizes the registration of the attribute statement message and the modification of the propagation flow.
[0074] In one implementation, step S240 may include receiving a resource reservation request message from a destination device by a first port, the resource reservation request message being accompanied by a stream identifier and a spanning tree identifier, the first port being any one of a plurality of ports of the bridge device, and in response to the bandwidth of the first port meeting a predetermined bandwidth requirement and the first resource reservation request count being zero, making a bandwidth resource reservation for the TSN traffic indicated by the stream identifier accompanied by the resource reservation request message and establishing a forwarding entry, where the first resource reservation request count is a resource reservation request count for the TSN traffic received by the first port that is pre-recorded in the bridge device.
[0075] Through the above steps, if the same port meets the predetermined bandwidth requirement in bandwidth, and the recorded resource reservation request count of the resource reservation request message for a certain stream identifier of the port is 0, a forwarding entry is established by making a bandwidth resource reservation for the TSN traffic indicated by the stream identifier, that is, when the same port receives a resource reservation for the same stream identifier, multiple resource reservations are not made, and the duplicate message deletion function is realized.
[0076] Table 1 below shows an example of the resource reservation request message counts corresponding to the traffic streams of each port recorded by the bridge device according to the present application.
[0077] [Table 1]
[0078] As can be seen from Table 1, the bridge device maintains a resource reservation request count for each traffic stream received on each port, so that it can update or cancel resource reservations for the same stream identifier (S-ID) on the same port. Note that when the same port receives a resource reservation for the same stream identifier, it records the corresponding resource reservation request count, but does not make multiple resource reservations, and thus performs a duplicate message elimination function.
[0079] In one implementation, after step S240, or when the bandwidth of the first port meets the predetermined bandwidth requirement and the first resource reservation request number is greater than or equal to 1, the method may further include: incrementing the record of the first resource reservation request number by 1 to obtain an updated first resource reservation request number; and forwarding the resource reservation request message through a spanning tree instance indicated by a spanning tree identifier carried in the resource reservation request message.
[0080] When the first resource reservation request count is 1 or more, this indicates that the port has already made resource reservation and forwarding entry establishment for the currently received traffic stream, so after updating the corresponding first resource reservation request count, no resource reservation or forwarding entry establishment operations are performed.
[0081] In one implementation, if the bandwidth of the first port does not meet the predetermined bandwidth requirement, the method may further include forwarding the resource reservation request message through a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation request message.
[0082] 7 is a conceptual diagram of a processing flow when a bridge device provided in the present application receives an Attribute Statement message. As shown in FIG. 7, the processing flow when a bridge device receives an Attribute Statement message may include the following steps S31 to S37.
[0083] In step S31, a port of a bridge device receives a resource reservation request message from a destination device.
[0084] In step S32, calculate the desired bandwidth based on the source side attribute statement of the corresponding stream identifier on the port, and determine whether the bandwidth resource on the port meets the bandwidth requirement, if so, go to step S33, otherwise go to step S37.
[0085] In step S33, the bridge device queries the resource reservation request counts corresponding to the traffic streams on each port it maintains.
[0086] In step S34, if there is no hit in the query result or the number of correspondences is 0, the process proceeds to step S35, and if not, the process proceeds to step S36.
[0087] In step S35, bandwidth resources are reserved at the port and a forwarding entry is established.
[0088] In step S36, the resource reservation request count corresponding to the traffic stream at each port is updated, and one is added to the value of the destination side resource reservation request count corresponding to the stream identifier.
[0089] In step S37, the spanning tree identifier field attached to the message is analyzed, and the destination side message is propagated further in the corresponding spanning tree.
[0090] Through the above steps S31 to S37, when a port of a bridge device receives a destination side resource reservation request message, the port can execute the above processing flow of reserving bandwidth and establishing a forwarding entry.
[0091] In one implementation, the resource reservation method for the redundant path further includes receiving a resource reservation cancellation message from a destination device by a first port, the resource reservation cancellation message carrying a stream identifier and a spanning tree identifier of the TSN traffic, decrementing a first resource reservation request count by one to obtain an updated first resource reservation request count, in response to the updated first resource reservation request count being zero, deleting a forwarding entry for the TSN traffic to release reserved bandwidth resources for the TSN traffic and forwarding the resource reservation cancellation message through a spanning tree instance indicated by the spanning tree identifier attached to the resource reservation cancellation message, and in response to the updated first resource reservation request count being equal to or greater than one, forwarding the resource reservation cancellation message through a spanning tree instance indicated by the spanning tree identifier attached to the resource reservation cancellation message.
[0092] 8 is a conceptual diagram of a processing flow when a bridge device provided in the present application receives a resource reservation cancellation message. As shown in FIG. 8, the processing flow when a bridge device receives a resource reservation cancellation message may include the following steps S41 to S46.
[0093] In step S41, a port of the bridge device receives a resource reservation cancellation message from a destination device.
[0094] In step S42, the number of resource reservation requests corresponding to the traffic stream on the port maintained by the bridge device is decremented by one.
[0095] In step S43, it is determined whether the number of resource reservation requests corresponding to the traffic stream in the port of the bridge device is 0. If it is 0, the process proceeds to step S44; if not, the process proceeds to step S45.
[0096] In step S44, the forwarding entry is deleted to free up bandwidth resources.
[0097] In step S45, the number of resource reservation messages corresponding to the traffic stream maintained by the port of the bridge device is updated.
[0098] In step S46, the resource reservation cancellation message is propagated in the corresponding spanning tree according to the spanning tree instance indicated by the spanning tree identifier in the resource reservation cancellation message.
[0099] Through the above steps S41 to S46, when a certain port of the bridge device receives a resource reservation cancellation message sent by the destination side, it needs to inquire about the resource reservation request count corresponding to the traffic stream at each port, and decrement the destination side resource reservation request count corresponding to the stream identifier attached to the message in the entry by 1; and only when the destination side attribute registration count corresponding to the stream identifier in the table is 0, delete the forwarding entry and release the corresponding bandwidth resource.
[0100] 9 is another conceptual flow diagram of a method for reserving resources for a redundant path provided by the present application. As shown in FIG. 9, the method for reserving resources for a redundant path can be applied to a destination device, and the method may include the following steps S510 to S530.
[0101] In step S510, at least two Attribute Statement messages targeted to the same TSN traffic are received by a bridge device connected to the destination device.
[0102] After step S510, the method may further include obtaining a stream identifier used to mark TSN traffic and a spanning tree identifier used to indicate a spanning tree instance on which propagation of the attribute statement message in the bridge device is based, the stream identifier being attached to each attribute statement message.
[0103] The Attribute Statement message further includes redundancy information that is used to indicate a redundant propagation request for the Attribute Statement message when the Attribute Statement message is propagated in a bridge device.
[0104] In step S520, in response to the TSN traffic being TSN traffic of interest to the destination device and each of the received attribute statement messages being propagated by a different spanning tree instance, generate a resource reservation request message for each of the received attribute statement messages, the resource reservation request message being for the TSN traffic and corresponding to a different spanning tree instance, the different spanning tree instance being one of at least two spanning tree instances maintained in a bridge device connected to the destination device, the at least two spanning tree instances being used to establish a redundant path for the TSN traffic between the source device and the destination device.
[0105] In one implementation, the step of generating a resource reservation request message targeting the TSN traffic and corresponding to a different spanning tree instance may include attaching to the resource reservation request message a stream identifier used to mark the TSN traffic and a spanning tree identifier corresponding to the different spanning tree instance.
[0106] In step S530, each generated resource reservation request message is sent to a bridge device connected to the destination device according to a different spanning tree instance to which each generated resource reservation request message corresponds.
[0107] According to the resource reservation method for redundant paths provided by the present application, the resource reservation request message of the destination device based on the SRP protocol also needs to be extended to include a spanning tree identifier field to indicate which spanning tree instance the destination message is propagated by in the bridge. When the destination device receives an attribute statement message of the corresponding stream identifier, it first extracts the value of the spanning tree identifier field included in the attribute statement message, writes the value of the spanning tree identifier field into the spanning tree identifier field of the destination message, and then makes a resource reservation request.
[0108] Fig. 10 is a conceptual diagram of the encoding format of a conventional destination message based on the SRP protocol. As shown in Fig. 10, in the conventional destination message based on the SRP protocol, a physical address (MAC address) and a unique ID form a stream ID of an attribute revocation message, which is used to uniquely identify one TSN traffic stream.
[0109] In one implementation, after step S530, the method may further include recording a stream identifier and a corresponding spanning tree identifier attached to each received attribute statement message, where the spanning tree identifier is used to indicate a spanning tree instance on which propagation of the attribute statement message in the bridge device is based.
[0110] Figure 11 is a conceptual diagram of the encoding format of a destination message provided by the present application. As shown in Figure 11, the destination message can be accompanied by a spanning tree identifier field. That is, one new bit is added to the existing destination message, and the bit content includes a spanning tree identifier field. The length of the spanning tree identifier field in the destination message is consistent with the length of the spanning tree identifier field in the attribute statement message generated by the source. For example, in the newly added one bit, the length of the spanning tree identifier field can be 7 bits, and the other bit can be a reserved field.
[0111] According to the requirements of an actual application scenario, the length of the spanning tree identifier field attached to the destination message can be flexibly specified, and it should be understood that the examples in this application are only for the purpose of interpretation and explanation, and are not intended to limit the present application.
[0112] 12 is a conceptual diagram of a processing flow when a destination device provided in the present application receives an Attribute Statement message. As shown in FIG. 12, the processing flow of the Attribute Statement message may include the following steps S61 to S63.
[0113] In step S61, the destination device receives the attribute statement message.
[0114] In step S62, a resource reservation request is made by constructing and transmitting a destination side resource reservation request message using the spanning tree identifier information extracted from the Attribute Statement message.
[0115] In step S63, the stream identifier and the spanning tree identifier in the resource reservation request are recorded.
[0116] Through the above steps S61-S63, the message generated by the destination device can be a resource reservation request message or a resource reservation cancellation message. The destination device sends a resource reservation request message accompanied by a stream identifier and a spanning tree identifier to request the deployment of resource reservation for a specified TSN traffic.
[0117] When the destination side message is a resource reservation cancellation message, a resource reservation cancellation message carrying spanning tree identifier information can be generated by extending the code format of the resource reservation cancellation message based on the SRP protocol at the destination device to request the cancellation of resources allocated to the redundant path.
[0118] Table 2 below shows an example of the mapping relationship between stream identifiers and spanning tree identifiers in a destination device according to the present application.
[0119] [Table 2]
[0120] As can be seen from Table 2, in order to facilitate the release of redundant path resources when the destination side spontaneously cancels resource reservation, a stream identifier and corresponding spanning tree identifier information table can be maintained in the destination device.
[0121] In one implementation, the resource reservation method for the redundant path may further include, in response to determining that resource cancellation is required for the TSN traffic, obtaining a stream identifier and a corresponding spanning tree identifier of the TSN traffic from among pre-recorded stream identifiers and corresponding spanning tree identifiers; generating a corresponding resource reservation cancellation message for each spanning tree identifier corresponding to the TSN traffic, wherein the stream identifier of the TSN traffic and the spanning tree identifier corresponding to the TSN traffic are attached to the resource reservation cancellation message; transmitting each resource reservation cancellation message according to a spanning tree instance indicated by the spanning tree identifier attached to each generated resource reservation cancellation message; and deleting predetermined information from the pre-recorded stream identifiers and corresponding spanning tree identifiers, wherein the predetermined information is the stream identifier and the corresponding spanning tree identifier attached to the resource reservation cancellation message already transmitted.
[0122] Through the above steps, when the destination device cancels a resource reservation, it needs to inquire about the mapping relationship between the stream identifier and the spanning tree identifier to obtain a set of spanning tree identifier values corresponding to a certain traffic stream at the destination side, and then construct and send a resource reservation cancellation message for each spanning tree identifier value.
[0123] According to the redundant path resource reservation method provided by the present application, when a destination device receives an attribute statement message based on the SRP protocol for TSN traffic, the destination device extracts a stream identifier and a spanning tree identifier attached to the attribute statement message to generate a resource reservation request message, and attaches the stream identifier and the spanning tree identifier to the resource reservation request message to make a resource reservation request, thereby realizing the establishment of a redundant traffic protection path for the TSN traffic.
[0124] For a better understanding of the present application, detailed flow diagrams of the redundant path resource reservation method according to the present application will be described below with reference to Figures 13 and 14. Figure 13 is a conceptual diagram of the process flow of reserving redundant path resources based on the SRP protocol provided by the present application, and Figure 14 is a conceptual diagram of the process flow of canceling redundant path resource reservation based on the SRP protocol provided by the present application.
[0125] 13, an example of a TSN network may include five bridge devices (hereinafter also referred to as bridges), such as TSN bridge 1, TSN bridge 2, TSN bridge 3, TSN bridge 4, and TSN bridge 5. Assuming that a spanning tree corresponding to a main spanning tree and a spanning tree corresponding to a sub-spanning tree have already been established in the TSN network, they are represented by lines 1 and 2, respectively, and the corresponding spanning tree identifiers are 1 and 2, respectively.
[0126] In Figure 13, Table 1 at the top of the source (Talker) device shows the main fields of the source side attribute statement message, where the stream identifier is 1, indicating that resources are reserved for the traffic stream with traffic stream identifier 1, for example, the TSN traffic stream ID is {01:00:5e:01:01:01,2}, the redundancy field value is TRUE, indicating that the network needs to provide redundant propagation for this, and the spanning tree identifier field takes a value of any.
[0127] The source side attribute statement message issued by the Talker reaches TSN Bridge 1, which receives the source side attribute statement message, extracts the message redundancy field TRUE, copies the message, sets the spanning tree identifier field of the original message to 1, the spanning tree identifier field of the copied message to 2, and sets the redundancy fields of the two messages to FALSE, registers the attribute statement information attached to the source side attribute statement message in the port, and then propagates the original message in the spanning tree shown along line 1 and propagates the copied message in the spanning tree shown along line 2.
[0128] When TSN bridge 2, TSN bridge 3, TSN bridge 4, and TSN bridge 5 receive the extended source side attribute statement message, they analyze the message field content, and if they find that the redundant field value is FALSE, they continue to extract the spanning tree identifier field, and query the spanning tree instance shown in Table 2 based on the spanning tree identifier field, and then propagate the message in the corresponding spanning tree.
[0129] A destination device (Listener) is interested in a traffic stream with stream identifier 1, and successively receives two source side attribute statement messages with stream identifier 1, extracts the spanning tree identifier fields of the messages, respectively constructs corresponding destination side resource reservation request messages, the contents of which are shown in Table 3 and Table 4, and then sends them.
[0130] In this example, the destination device needs to store the spanning tree identifier value of the received corresponding stream identifier in a table it maintains, resulting in a spanning tree identifier set of the corresponding stream identifiers it maintains, as shown in Table 5 near the destination device.
[0131] After each port of the bridge device receives a destination-side resource reservation request message, it starts to reserve bandwidth and establish a forwarding entry along the path, and when the same port receives two or more destination-side resource reservation request messages, it is necessary to avoid overlapping resource reservations and the establishment of forwarding entries.
[0132] For example, TSN network 4 and TSN network 5 both receive two destination side resource reservation request messages, each accompanied by a spanning tree identifier 1 and a spanning tree identifier 2. Take port 2 of TSN network 4 as an example. When the first destination side message is received, the stream identifier in the message is extracted and table 2 is consulted. If no entry is hit, {01:00:5e:01:01:01,2} is established as a forwarding entry for the key value, and after resource reservation, an entry for the corresponding port 2 and stream identifier is established in table 2, and the destination side resource reservation request count is 1. When the second destination side resource reservation request message is received, the stream identifier in the message is extracted. If it is found that the destination side attribute registration count of the corresponding port 2 and the stream identifier is greater than 0, no resource overlap reservation and forwarding entry is established, and only 1 is added to the corresponding destination side resource reservation request count, and it is obtained that the resource reservation request count is 2.
[0133] In the present application, when a source device performs a resource reservation cancellation operation, a redundancy field and a spanning tree identifier field must be attached to the attribute statement message, and the processing flow when a bridge receives a source side attribute cancellation message is similar to the processing flow for the redundancy field and the spanning tree identifier field when a source side attribute statement message is received, and will not be repeated here.
[0134] In FIG. 14, for example, the destination device maintains the value of the spanning tree identifier corresponding to stream identifier 1, and maintains the number of resource reservation requests corresponding to the stream identifier received at each bridge port in each TSN bridge.
[0135] When a resource reservation cancellation corresponding to stream identifier 1 is issued by the destination device, the destination device consults the table of the mapping relationship between stream identifiers and spanning tree identifiers, and obtains spanning tree identifier 1 and spanning tree identifier 2 from the spanning tree identifier value set (see FIG. 13). The destination device constructs a destination side resource reservation cancellation message in sequence according to spanning tree identifier 1 and spanning tree identifier 2, and the contents of the two destination side resource reservation request messages are as shown in Table 1 and Table 2 in FIG. 14.
[0136] When each bridge port receives a destination resource reservation cancellation message, it releases the bandwidth resources and deletes the corresponding forwarding entry. In particular, when the destination resource reservation request count of a port is 2 or more, it releases the reserved resources only when it receives the last resource reservation cancellation message.
[0137] For example, when port 2 of TSN bridge 4 receives a destination side resource reservation cancellation message with a spanning tree identifier field value of 1, only table 3 in the figure is updated and the number of destination side resource reservation requests for the corresponding stream identifier is decremented by 1, and when a destination side message with a spanning tree identifier field value of 2 is received, table 3 in the figure is updated and the number of destination side resource reservation requests for the corresponding stream identifier is decremented by 1; at this time, the number of destination side resource reservation requests for the corresponding stream identifier (S-ID) is 0, so the resources are released and the forwarding entry is deleted.
[0138] After the reserved resources are successfully cancelled, what is maintained at the destination device is a stream identifier 1 and a spanning tree identifier value set NULL, as shown in Table 1 beside the destination device in FIG.
[0139] According to the redundant path resource reservation method provided in the present application, a source side attribute statement message is extended, and a redundancy field and a spanning tree identifier field are attached to the extended attribute statement message. The bridge port to which the source is connected is used as a proxy for the redundant path function. The redundant field is analyzed. When it is determined that the value of the redundant field indicates that the network needs to establish a redundant path, the source side attribute statement message is copied and modified, and the message is propagated in two different spanning tree instances according to the spanning tree identifiers attached thereto, thereby establishing a redundant traffic protection path for TSN traffic.
[0140] The following will be described in detail with reference to FIG. 15. FIG. 15 is a structural conceptual diagram of the redundant path resource reservation device provided by the present application. As shown in FIG. 15, the redundant path resource reservation device can be applied to a source device, and may include an attribute statement message generating module 610 and an attribute statement message sending module 620.
[0141] The attribute statement message generation module 610 is used to generate a first attribute statement message for the TSN traffic in response to determining that a redundant path resource reservation is required for the TSN traffic, and an indication that redundant propagation is required to be provided for the attribute statement message is attached to the first attribute statement message.
[0142] The attribute statement message sending module 620 is used to send a first attribute statement message to a bridge device connected to the source device, where at least two spanning tree instances are maintained in the bridge device, and the at least two spanning tree instances are used for instructions based on the first attribute statement message to establish a redundant path for TSN traffic between the source device and a specified destination device.
[0143] In one implementation, the attribute statement message generation module 610 is further used to generate a first attribute statement message targeted at TSN traffic, in which an identifier of the TSN traffic, redundancy information for marking a value as a first redundancy information value, and a spanning tree identifier whose value is an any identifier value are attached to the first attribute statement message, in which the first redundancy information value is used to indicate that redundant propagation needs to be provided for the first attribute statement message, and the any identifier value is used to indicate a spanning tree instance on which propagation of the first attribute statement message is based.
[0144] In one implementation, in response to determining that there is no need to perform redundant path resource reservation for the TSN traffic, the attribute statement message generation module 610 is further used to generate a second attribute statement message targeted at the TSN traffic, in which an identifier of the TSN traffic, redundancy information for marking a value as a second redundancy information value, and a spanning tree identifier whose value is a predetermined identifier value are attached to the second attribute statement message, in which the second redundancy information value is used to indicate that there is no need to provide redundant propagation for the second attribute statement message, and the predetermined identifier value is used to indicate a spanning tree instance on which the propagation of the second attribute statement message is based.
[0145] According to the redundant path resource reservation device provided by the present application, the source device can extend a source side message based on the SRP protocol to include a redundancy field and a spanning tree identifier field, and can send an attribute statement message of the TSN traffic marked by the stream identifier to a bridge port directly connected to the source device via a spanning tree instance indicated by the spanning tree identifier, where the redundancy field indicates whether or not redundant propagation is required for the attribute statement message in order to trigger resource reservation of a redundant path for the TSN traffic marked by the stream identifier.
[0146] 16 is a structural conceptual diagram of a redundant path resource reservation device provided by the present application. As shown in FIG. 16, the redundant path resource reservation device can be applied to a bridge device, and may include an attribute statement message receiving module 710, an attribute statement message copying module 720, an attribute statement message propagation module 730, and a redundant path resource reservation module 740.
[0147] The attribute statement message receiving module 710 is used to obtain, from the received attribute statement message of the source device, the TSN traffic targeted by the attribute statement message and an indication of whether redundant propagation needs to be provided for the attribute statement message.
[0148] The attribute statement message copying module 720 is used to copy the attribute statement message in response to an indication that there is a need to provide redundant propagation for the attribute statement message and the number of spanning tree instances maintained in the bridge device is at least two.
[0149] The attribute statement message propagation module 730 is used to propagate the received attribute statement message and the copied attribute statement message through at least two spanning tree instances to establish a redundant path for TSN traffic between the source device and the destination device.
[0150] The redundant path resource reservation module 740 is used to make a resource reservation of a redundant path for the TSN traffic in response to receiving a resource reservation request message for the TSN traffic from a destination device.
[0151] In one implementation, a stream identifier and redundancy information are attached to the received attribute statement message, and the attribute statement message receiving module 710 may be used to determine that the TSN traffic indicated by the stream identifier attached to the received attribute statement message is the TSN traffic targeted by the attribute statement message, and in response to the value of the redundancy information being a first redundancy information value, determine that it is necessary to provide redundancy propagation for the attribute statement message, and in response to the value of the redundancy information being a second redundancy information value, determine that it is not necessary to provide redundancy propagation for the attribute statement message, and the second redundancy information value is different from the first redundancy information value.
[0152] In one implementation, in response to determining that there is a need to provide redundant propagation for the attribute statement message, the attribute statement message propagation module 730 may be used to modify the spanning tree identifier in the received attribute statement message and the spanning tree identifier in the copied attribute statement message to different spanning tree identifiers based on the obtained spanning tree identifiers of the at least two spanning tree instances; modify both the redundant information in the received attribute statement message and the redundant information in the copied attribute statement message to a second redundant information value; and propagate the received attribute statement message and the copied attribute statement message in different spanning tree instances according to the modified different spanning tree identifiers to establish a redundant path for the TSN traffic.
[0153] In one implementation, if the indication is that redundant propagation needs to be provided for the attribute statement message and the number of spanning tree instances maintained in the bridge device is less than two, the attribute statement message sending module 740 may provide an indication that redundant propagation does not need to be provided for the received attribute statement message and use it to propagate the received attribute statement message through a certain spanning tree instance in the spanning tree instances maintained in the bridge device.
[0154] In one implementation, the attribute statement message transmitting module 740 may further use the spanning tree identifier attached to the received attribute statement message as a predetermined identifier value used to indicate a predetermined spanning tree instance, the redundancy information attached to the received attribute statement message as a second redundancy information value used to indicate that no redundancy propagation needs to be provided for the attribute statement message, and propagate the attribute statement message attached with the second redundancy information value and the predetermined identifier value by the predetermined spanning tree instance.
[0155] In one implementation, if the received attribute statement message indicates that no redundant propagation needs to be provided for the attribute statement message, the attribute statement message sending module 740 may be used to forward the received attribute statement message through a spanning tree instance indicated by a spanning tree identifier attached to the received attribute statement message.
[0156] In one implementation, the resource reservation device of the redundant path may further include an attribute registration module, which is used to register attribute information contained in the received attribute statement message at the port through which the bridge device receives the attribute statement message.
[0157] In one implementation, the redundant path resource reservation module 740 may be used to receive a resource reservation request message from a destination device via a first port, the resource reservation request message being accompanied by a stream identifier and a spanning tree identifier, the first port being any one of a plurality of ports of the bridge device, and in response to the bandwidth of the first port meeting a predetermined bandwidth requirement and the first resource reservation request count being zero, make a bandwidth resource reservation for the TSN traffic indicated by the stream identifier accompanied by the resource reservation request message and establish a forwarding entry, where the first resource reservation request count is a resource reservation request count for the TSN traffic received by the first port that is pre-recorded in the bridge device.
[0158] In one implementation method, the resource reservation device of the redundant path may further include a resource reservation request count update module used to add 1 to the record of the first resource reservation request count to obtain an updated first resource reservation request count after reserving bandwidth resources for the TSN traffic indicated by the stream identifier and establishing a forwarding entry, or when the bandwidth of the first port meets a predetermined bandwidth requirement and the first resource reservation request count is greater than or equal to 1, and a resource reservation request message forwarding module used to forward the resource reservation request message through a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation request message.
[0159] In one implementation, if the bandwidth of the first port does not meet the predetermined bandwidth requirement, the resource reservation request message forwarding module may further be used to forward the resource reservation request message through a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation request message.
[0160] In one implementation, the resource reservation device of the redundant path may further include a resource reservation cancellation message receiving module and a resource reservation cancellation message forwarding module. The resource reservation cancellation message receiving module is used for receiving a resource reservation cancellation message from a destination device by a first port, and a stream identifier and a spanning tree identifier of the TSN traffic are attached to the resource reservation cancellation message. The resource reservation request count updating module may further be used for decrementing the first resource reservation request count by 1 to obtain an updated first resource reservation request count. The resource reservation cancellation message forwarding module is used for deleting a forwarding entry of the TSN traffic to release the reserved bandwidth resource of the TSN traffic in response to the updated first resource reservation request count being zero, and forwarding the resource reservation cancellation message by a spanning tree instance indicated by the spanning tree identifier attached to the resource reservation cancellation message, and for forwarding the resource reservation cancellation message by a spanning tree instance indicated by the spanning tree identifier attached to the resource reservation cancellation message in response to the updated first resource reservation request count being equal to or greater than 1.
[0161] According to the redundant path resource reservation device provided by the present application, a bridge device analyzes the redundant information attached to a received attribute statement message based on the SRP protocol, and if the redundant information indicates that redundant propagation is required for the attribute statement message, and the number of corresponding spanning tree instances in the bridge device exceeds a predetermined number, the bridge device can copy the attribute statement message and modify the attribute statement message according to the corresponding spanning tree instance, so that the received attribute statement message and the copied attribute statement message are propagated in the spanning tree instance indicated by the spanning tree identifiers attached thereto, thereby establishing a redundant traffic protection path for TSN traffic.
[0162] 17 is a structural conceptual diagram of a redundant path resource reservation device provided in the present application. As shown in FIG. 17, the redundant path resource reservation device can be applied to a destination device, and may include: an attribute statement message receiving module 810, a resource reservation request generating module 820, and a resource reservation request sending module 830.
[0163] The attribute statement message receiving module 810 is used to receive at least two attribute statement messages for the same TSN traffic by a bridge device connected to the destination device.
[0164] The resource reservation request generation module 820 is used to generate, for each received attribute statement message, a resource reservation request message that targets the TSN traffic and corresponds to a different spanning tree instance, in response to the TSN traffic being TSN traffic of interest to the destination device and each received attribute statement message being propagated by a different spanning tree instance.
[0165] The different spanning tree instances are spanning tree instances among at least two spanning tree instances maintained in a bridge device connected to the destination device, and the at least two spanning tree instances are used to establish a redundant path for TSN traffic between the source device and the destination device.
[0166] The resource reservation request sending module 830 is used for sending each generated resource reservation request message to a bridge device connected to the destination device according to a different spanning tree instance to which each generated resource reservation request message corresponds.
[0167] In one implementation, the resource reservation device of the redundant path may further include an identifier information acquisition module, which is used to acquire, after receiving at least two attribute statement messages targeting the same TSN traffic, a stream identifier used to mark the TSN traffic attached to each attribute statement message and a spanning tree identifier used to indicate a spanning tree instance on which the propagation of the attribute statement message in the bridge device is based, the spanning tree identifier being used to indicate a spanning tree instance on which the propagation of the attribute statement message in the bridge device is based.
[0168] In one implementation, the resource reservation device for the redundant path may further include an identifier information addition module used when generating a resource reservation request message for TSN traffic and corresponding to different spanning tree instances, in which a stream identifier used to mark the TSN traffic and a spanning tree identifier corresponding to the different spanning tree instances are attached to the resource reservation request message.
[0169] In one implementation, the redundant path resource reservation device may further include an identifier information recording module used for recording a stream identifier and a corresponding spanning tree identifier attached to each received attribute statement message, and the spanning tree identifier is used to indicate a spanning tree instance on which the propagation of the attribute statement message in the bridge device is based.
[0170] In one implementation, the identifier information adding module may further be used to obtain a stream identifier and a corresponding spanning tree identifier of the TSN traffic from among the pre-recorded stream identifiers and the corresponding spanning tree identifiers in response to determining that a resource cancellation needs to be performed for the TSN traffic. The resource reservation device for the redundant path may further include a resource reservation cancellation message generating module, a resource reservation cancellation message sending module, and an information record updating module. The resource reservation cancellation message generating module is used to generate a corresponding resource reservation cancellation message for each spanning tree identifier corresponding to the TSN traffic, and the stream identifier of the TSN traffic and the spanning tree identifier corresponding to the TSN traffic are attached to the resource reservation cancellation message. The resource reservation cancellation message sending module is used to transmit each resource reservation cancellation message according to a spanning tree instance indicated by the spanning tree identifier attached to each generated resource reservation cancellation message. The information record updating module is used to delete predetermined information from the pre-recorded stream identifiers and the corresponding spanning tree identifiers, and the predetermined information is a stream identifier and a corresponding spanning tree identifier attached to a resource reservation cancellation message that has already been sent.
[0171] According to the redundant path resource reservation device provided by the present application, when a destination device receives an attribute statement message based on the SRP protocol for TSN traffic, it extracts a stream identifier and a spanning tree identifier attached to the attribute statement message to generate a resource reservation request message, and the resource reservation request message can be attached with the stream identifier and the spanning tree identifier to execute the resource reservation request, thereby realizing the establishment of a redundant traffic protection path for TSN traffic.
[0172] It should be noted that the present application is not limited to the specific configurations and processes described in the above embodiments and illustrated in the drawings. For convenience of explanation, detailed descriptions of existing methods are omitted here. In addition, the specific operation processes of the above-described systems, modules, and units can be referred to the corresponding processes in the above-described method embodiments, and will not be described again here.
[0173] FIG. 18 is a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the redundant path resource reservation method and apparatus according to the present application.
[0174] 18, the computing device 900 includes an input device 901, an input port 902, a central processing unit 903, a memory 904, an output port 905, and an output device 906. The input port 902, the central processing unit 903, the memory 904, and the output port 905 are interconnected by a bus 910, and the input device 901 and the output device 906 are connected to the bus 901 by the input port 902 and the output port 905, respectively, and are further connected to other components of the computing device 900.
[0175] The input device 901 can accept input information from the outside and transmits the input information to the central processor 903 via the input port 902. The central processor 903 processes the input information based on computer-executable instructions stored in the memory 904 to generate output information, stores the output information temporarily or permanently in the memory 904, and then transmits the output information to the output device 906 via the output port 905. The output device 906 outputs the output information outside the computing device 900 for use by a user.
[0176] The computing device shown in FIG. 18 can be realized as a source device, and in order to execute the redundant path resource reservation method applied to the source device of the present application, the source device may include a memory in which a stored program is arranged, and a processor arranged to execute the program stored in the memory.
[0177] The computing device illustrated in FIG. 18 may be implemented as a bridge device, and in order to perform the redundant path resource reservation method applied to the bridge device of the present application, the bridge device may include a memory in which a stored program is arranged, and a processor arranged to execute the program stored in the memory.
[0178] The computing device shown in FIG. 18 can be realized as a destination device, and in order to execute the redundant path resource reservation method applied to the destination device of the present application, the destination device may include a memory in which a stored program is arranged, and a processor arranged to execute the program stored in the memory.
[0179] According to the redundant path resource reservation method provided in the present application, a bridge device can provide redundant propagation between a source device and a destination device for an attribute statement message of a source device by using at least two spanning tree instances maintained by the bridge device, thereby establishing a redundant path for TSN traffic, and reserving resources for the redundant path for TSN traffic based on a resource reservation request message of the destination device.
[0180] According to the method for reserving resources for a redundant path provided by the present application, a source device indicates through an attribute statement message that redundant propagation is required for the attribute statement message, and sends the attribute statement message to a connected bridge device, and the bridge device provides redundant propagation for the attribute statement message through at least two spanning tree instances maintained by the bridge device, thereby establishing a redundant path for TSN traffic between the source device and a specified destination device.
[0181] According to the resource reservation method for a redundant path provided by the present application, when a destination device receives at least two attribute statement messages for TSN traffic and propagated by different spanning tree instances, if the TSN traffic is of interest to the destination device, the destination device can construct a resource reservation request message for each received attribute statement message and initiate a resource reservation request for the redundant path of the TSN traffic, where the different spanning tree instances are spanning tree instances among at least two spanning tree instances maintained in a bridge device connected to the destination device, and the at least two spanning tree instances are used to establish a redundant path of the TSN traffic between a source device and the destination device.
[0182] The above is merely an exemplary embodiment of the present application, and is not intended to limit the scope of the claims of the present application. In general, the embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic circuits, or any combination thereof. For example, one embodiment can be implemented in hardware, and another embodiment can be implemented in firmware or software executed on a controller, microprocessor, or other computing device, and the present application is not limited thereto.
[0183] The embodiments of the present application may be implemented by computer program instructions executed by a data processor of a mobile device, for example executed in a processor core, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or target code written in any combination of one or more programming languages.
[0184] Any logic flow block diagrams in the drawings of this application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions. Computer programs may be stored in memory. The memory may have any type suitable for the local technology environment and may be implemented using any suitable data storage technology, such as, but not limited to, read-only memory (ROM), random access memory (RAM), optical disk memory devices and systems (digital versatile disks DVD or CD disks), etc. Computer-readable media may include non-transitory storage media. Data processors may be any type suitable for the local technology environment, such as, but not limited to, general purpose computers, special purpose computers, microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), programmable logic controllers (FPGAs), and processors of multi-core processor architectures.
[0185] The detailed description of the exemplary embodiments of the present application has been presented by way of illustrative and non-limiting example. However, when considered in conjunction with the drawings and the claims, various modifications and adaptations of the above embodiments will be apparent to those skilled in the art, but do not depart from the scope of the present application. Thus, the appropriate scope of the present application is determined by the claims.
Claims
1. A method for reserving resources for a redundant path applied to a bridge device, comprising: obtaining from the received source device Attribute Statement message a time-sensitive network TSN traffic targeted by the Attribute Statement message and an indication of whether redundant propagation needs to be provided for the Attribute Statement message; copying the attribute statement message in response to the indication that redundant propagation should be provided for the attribute statement message and the number of spanning tree instances maintained at the bridge device is at least two; propagating the received attribute statement message and the copied attribute statement message by the at least two spanning tree instances to establish a redundant path for the TSN traffic between the source device and the destination device; and in response to receiving a resource reservation request message from the destination device for the TSN traffic, performing resource reservation of a redundant path for the TSN traffic. A method for reserving resources for redundant paths.
2. The step of obtaining, from the received attribute statement message of the source device, a TSN traffic targeted by the attribute statement message and an indication of whether it is necessary to provide redundant propagation for the attribute statement message, includes: A TSN traffic indicated by a stream identifier attached to the received attribute statement message is determined as a TSN traffic targeted by the attribute statement message; determining that redundancy propagation needs to be provided for the attribute statement message in response to the redundancy information value being a first redundancy information value; determining that no redundancy propagation needs to be provided for the attribute statement message in response to the redundancy information value being a second redundancy information value; The second redundant information value and the first redundant information value are different. The method of claim 1.
3. In response to determining that there is a need to provide redundant propagation for the attribute statement message, propagating the received attribute statement message and the copied attribute statement message by the at least two spanning tree instances to establish a redundant path for the TSN traffic between the source device and the destination device, According to the acquired spanning tree identifiers of the at least two spanning tree instances, modifying the spanning tree identifiers in the received attribute statement message and the spanning tree identifiers in the copied attribute statement message to different spanning tree identifiers; modifying both the redundancy information in the received attribute statement message and the redundancy information in the copied attribute statement message to the second redundancy information value; and propagating the received attribute statement message and the copied attribute statement message in different spanning tree instances according to different modified spanning tree identifiers to establish a redundant path for the TSN traffic. The method of claim 2.
4. the indication is that redundant propagation should be provided for the attribute statement message, and a number of spanning tree instances maintained in the bridge device is less than two; and propagating the received attribute statement message through a given spanning tree instance in the spanning tree instances maintained at the bridge device with an indication that no redundant propagation needs to be provided for the received attribute statement message. The method of claim 1.
5. Propagating the received attribute statement message through a given spanning tree instance in the spanning tree instances maintained at the bridge device with an indication that no redundant propagation needs to be provided for the received attribute statement message, comprising: setting a spanning tree identifier attached to the received attribute statement message to a predetermined identifier value used to indicate the predetermined spanning tree instance; determining a redundancy information value associated with the received attribute statement message as a second redundancy information value used to indicate that no redundancy propagation needs to be provided for the attribute statement message; and propagating, through the given spanning tree instance, an attribute statement message carrying the second redundancy information value and the given identifier value. The method according to claim 4.
6. The indication is such that there is no need to provide redundant propagation for the attribute statement message, The method further includes forwarding the received Attribute Statement message through a spanning tree instance indicated by a spanning tree identifier attached to the received Attribute Statement message. The method of claim 1.
7. prior to the step of propagating the received Attribute Statement message and the copied Attribute Statement message; The method further includes registering attribute information included in the received Attribute Statement message at a port where the bridge device receives the Attribute Statement message. The method according to any one of claims 1 to 6.
8. In response to receiving a resource reservation request message from the destination device for the TSN traffic, reserving resources for the redundant path for the TSN traffic includes: receiving a resource reservation request message from the destination device by a first port, the resource reservation request message being accompanied by a stream identifier and a spanning tree identifier, the first port being any one of a plurality of ports of the bridge device; In response to the bandwidth of the first port satisfying a predetermined bandwidth requirement and the first resource reservation request count being zero, making a bandwidth resource reservation for a TSN traffic indicated by a stream identifier attached to the resource reservation request message and establishing a forwarding entry; The first resource reservation request count is a resource reservation request count for the TSN traffic received by the first port, which is pre-recorded in the bridge device. The method of claim 1.
9. After the step of reserving bandwidth resources for the TSN traffic indicated by the stream identifier attached to the resource reservation request message and establishing a forwarding entry, or when the bandwidth of the first port meets a predetermined bandwidth requirement and the first resource reservation request count is equal to or greater than one, incrementing the record of the first resource reservation request count by one to obtain an updated first resource reservation request count; forwarding the resource reservation request message through a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation request message; forwarding the resource reservation request message according to a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation request message; The method according to claim 8.
10. the bandwidth of the first port does not meet a predetermined bandwidth requirement; The method further includes forwarding the resource reservation request message according to a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation request message. The method according to claim 8.
11. receiving a resource reservation cancellation message from the destination device by the first port, the resource reservation cancellation message being accompanied by a stream identifier and a spanning tree identifier of the TSN traffic; decrementing the first resource reservation request count by one to obtain an updated first resource reservation request count; in response to the updated first resource reservation request count being zero, deleting a forwarding entry for the TSN traffic to release reserved bandwidth resources for the TSN traffic, and forwarding the resource reservation cancellation message through a spanning tree instance indicated by a spanning tree identifier attached to the resource reservation cancellation message; and in response to the updated first resource reservation request count being equal to or greater than one, forwarding the resource reservation cancellation message through a spanning tree instance indicated by a spanning tree identifier included in the resource reservation cancellation message. The method according to any one of claims 8 to 10.
12. A method for reserving resources for a redundant path applied to a source device, comprising: in response to determining that a redundant path resource reservation is required for time-sensitive network TSN traffic, generating a first attribute statement message for the TSN traffic, the first attribute statement message being accompanied by an indication that redundant propagation is required to be provided for the attribute statement message; sending the first attribute statement message to a bridge device connected to the source device; generating a first Attribute Statement message for the TSN traffic, the first Attribute Statement message being accompanied by an indication that redundant propagation should be provided for the Attribute Statement message; generating a first attribute statement message for the TSN traffic, the first attribute statement message including a stream identifier of the TSN traffic, redundancy information for marking a value as a first redundancy information value, and a spanning tree identifier, the value of which is an arbitrary identifier value; The first redundancy information value is used to indicate that redundant propagation needs to be provided for the first attribute statement message, and the arbitrary identifier value is used to indicate a spanning tree instance on which propagation of the first attribute statement message is based. A method for reserving resources for redundant paths.
13. In response to determining that no resource reservation is required for the TSN traffic on the redundant path, generating a second attribute statement message for the TSN traffic, the second attribute statement message including a stream identifier of the TSN traffic, redundancy information for marking a value as a second redundancy information value, and a spanning tree identifier, the value of which is a predetermined identifier value; The second redundancy information value is used to indicate that no redundant propagation needs to be provided for the second attribute statement message, and the predetermined identifier value is used to indicate a spanning tree instance on which propagation of the second attribute statement message is based. The method of claim 12.
14. A method for reserving resources for a redundant path applied to a destination device, comprising: receiving, by the destination device, at least two Attribute Statement messages directed to the same time-sensitive network TSN traffic by a bridge device connected to the destination device; obtaining a stream identifier for identifying the TSN traffic, the stream identifier being attached to the attribute statement message; In response to the TSN traffic being TSN traffic of interest to the destination device as determined by the stream identifier and each received attribute statement message being propagated by a different spanning tree instance, generate a resource reservation request message for each received attribute statement message, the resource reservation request message being directed to the TSN traffic and corresponding to the different spanning tree instance; the different spanning tree instances are spanning tree instances among at least two spanning tree instances maintained in a bridge device connected to the destination device, and the at least two spanning tree instances are used to establish a redundant path for the TSN traffic between a source device and the destination device; sending each of the generated resource reservation request messages to a bridge device connected to the destination device according to a different spanning tree instance to which each of the generated resource reservation request messages corresponds. A method for reserving resources for redundant paths.
15. After the step of receiving the at least two Attribute Statement messages for the same TSN traffic, The method further includes obtaining a spanning tree identifier, which is attached to each attribute statement message and is used to indicate a spanning tree instance on which the propagation of the attribute statement message in the bridge device is based; The step of generating resource reservation request messages for the TSN traffic and corresponding to the different spanning tree instances includes: A stream identifier used to mark the TSN traffic and a spanning tree identifier corresponding to the different spanning tree instances are attached to the resource reservation request message. The method of claim 14.
16. After the step of transmitting each resource reservation request message to a bridge device connected to the destination device, The method further includes recording the stream identifier and a corresponding spanning tree identifier attached to each received attribute statement message, the spanning tree identifier being used to indicate a spanning tree instance on which propagation of the attribute statement message in the bridge device is based. The method of claim 14.
17. in response to determining that resource revocation is required for the TSN traffic, obtaining a stream identifier and a corresponding spanning tree identifier of the TSN traffic from among pre-recorded stream identifiers and corresponding spanning tree identifiers; respectively generating a resource reservation cancellation message for each spanning tree identifier corresponding to the TSN traffic, and a stream identifier of the TSN traffic and a spanning tree identifier corresponding to the TSN traffic are attached to the resource reservation cancellation message; Transmitting each of the generated resource reservation cancellation messages through a spanning tree instance indicated by a spanning tree identifier attached to each of the generated resource reservation cancellation messages; and deleting predetermined information from among pre-recorded stream identifiers and corresponding spanning tree identifiers, the predetermined information being stream identifiers and corresponding spanning tree identifiers attached to a previously transmitted resource reservation cancellation message. The method according to any one of claims 14 to 16.
18. one or more processors; a memory having one or more programs stored therein; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method according to any one of claims 1 to 17. Network devices.
19. A computer program is stored, the computer program causing the processor to implement the method according to any one of claims 1 to 17 when the computer program is executed by the processor. storage medium.
Citation Information
Patent Citations
Enhanced stream reservation protocol for audio video networks
US20120314597A1
Method of transmitting data based on priorities in network
US20170214606A1
