CN112866143B - Device and chip for realizing 802.1CB protocol - Google Patents

Device and chip for realizing 802.1CB protocol Download PDF

Info

Publication number
CN112866143B
CN112866143B CN202110185268.7A CN202110185268A CN112866143B CN 112866143 B CN112866143 B CN 112866143B CN 202110185268 A CN202110185268 A CN 202110185268A CN 112866143 B CN112866143 B CN 112866143B
Authority
CN
China
Prior art keywords
frame
module
flag
flow
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110185268.7A
Other languages
Chinese (zh)
Other versions
CN112866143A (en
Inventor
刘多一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wuxin Technology Co ltd
Original Assignee
Beijing Wuxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wuxin Technology Co ltd filed Critical Beijing Wuxin Technology Co ltd
Priority to CN202110185268.7A priority Critical patent/CN112866143B/en
Publication of CN112866143A publication Critical patent/CN112866143A/en
Application granted granted Critical
Publication of CN112866143B publication Critical patent/CN112866143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction

Landscapes

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

Abstract

The invention provides a device and a chip for realizing an 802.1CB protocol, wherein the device comprises: a message forwarding subsystem for determining a stream ID and an 802.1CB frame flag of the received first 802.1 frame; and further for enabling elimination of redundant frames based on the 802.1CB frame flag; a queue management subsystem for performing flow control on the first 802.1 frame based on the flow ID; further for replicating the first 802.1 frame to a plurality of forwarding ports based on the flow ID; further for enabling and controlling the generation of a flag of an 802.1CB protocol for said first 802.1 frame based on said 802.1CB frame flag; the message editing subsystem is used for enabling and controlling the addition or deletion of the mark of the 802.1CB protocol to the first 802.1 frame based on the 802.1CB frame mark; and the first 802.1 frame is further used for adapting based on a forwarding port so as to be sent outwards. The device and the chip flexibly realize the functions of stream identification, stream copying and frame elimination of the 802.1CB protocol, so as to reduce the complexity of realization, flexibly cope with various application scenes and reduce the maintenance complexity.

Description

Device and chip for realizing 802.1CB protocol
Technical Field
The present invention relates to the field of digital communications, and in particular, to the field of devices and chips for implementing 802.1CB protocols.
Background
In current digital communication, when implementing the 802.1CB protocol with a switch, a mode of centralized implementation by a special module is generally adopted. I.e., the functions of stream identification, stream duplication, stream elimination, etc. specified by the 802.1CB are integrated together. This approach, although highly concentrated in code, greatly increases implementation complexity and is not flexible enough to cope with diverse application scenarios due to the too strong code coupling. In addition, the modules are interacted with each module of the whole switch, and the number of interface signals of the modules is huge due to the integration of functions, so that the maintenance complexity is high.
Therefore, how to more flexibly implement the functions of flow identification, flow replication, frame elimination and the like specified by the 802.1CB, so as to reduce the implementation complexity, flexibly cope with various application scenes, and reduce the maintenance complexity is a technical problem to be solved.
Disclosure of Invention
In view of this, the embodiment of the invention provides a device and a chip for implementing 802.1CB protocol, based on a multi-module mode with flexible configuration, so as to reduce implementation complexity, flexibly cope with various application scenarios, and reduce maintenance complexity.
In a first aspect, an embodiment of the present invention provides an apparatus for implementing an 802.1CB protocol, which is characterized in that the apparatus includes:
A message forwarding subsystem for determining a stream ID and an 802.1CB frame flag of the received first 802.1 frame; and further for enabling elimination of redundant frames based on the 802.1CB frame flag; a queue management subsystem for performing flow control on the first 802.1 frame based on the flow ID; further for replicating the first 802.1 frame to a plurality of forwarding ports based on the flow ID; further for enabling and controlling the generation of a flag of an 802.1CB protocol for said first 802.1 frame based on said 802.1CB frame flag; the message editing subsystem is used for enabling and controlling the addition or deletion of the mark of the 802.1CB protocol to the first 802.1 frame based on the 802.1CB frame mark; and the first 802.1 frame is further used for adapting based on a forwarding port so as to be sent outwards.
By the device, the 802.1CB seamless redundant transmission and the flow control are realized in a single device, the device and the device share the flow ID, and the interface between the two functions is simple and convenient to realize.
In a possible implementation manner of the apparatus implementing the 802.1CB protocol according to the first aspect, the apparatus further includes an entry configuration subsystem configured to configure an entry indexed by a Key of the first 802.1 frame in a forwarding control table of the apparatus based on a location of the apparatus in an 802.1CB network, the entry including the flow ID and the 802.1CB frame flag, the 802.1CB frame flag including one or more of the following flags: a start point marker, an end point marker, a frame erasure enabling marker, and a protocol marker initiation marker; the Key of the first 802.1 frame at least comprises a combination of the VLAN ID of the first 802.1 frame and a source MAC or a destination MAC.
By using the device, the operation of each subsystem of the device is controlled by each mark based on the position of the device in the 802.1CB network, so that a plurality of scenes can be flexibly adapted, and the complexity of realizing and maintaining the device is reduced relative to a device with a configuration mode.
In a possible implementation manner of the apparatus implementing the 802.1CB protocol according to the first aspect, the packet forwarding subsystem includes: the flow identification module is used for determining a flow ID frame mark of the first 802.1 frame based on the Key of the first 802.1 frame, and the flow identification module is used for inquiring an item corresponding to the flow ID from the forwarding control table based on the Key of the first 802.1 frame and determining the item as a relevant mark in the 802.1CB frame mark of the first 802.1 frame; a frame elimination module, configured to delete a second 802.1 frame in the first 802.1 frame when a frame elimination enable flag in the 802.1CB frame flag is valid; the second 802.1 frame is a non-first arriving frame of the first 802.1 frames having the same stream ID and the same 802.1CB frame number.
By using the device, each module of the message forwarding subsystem of the device is controlled to work based on each mark set by the position of the device in the 802.1CB network, so that various scenes are flexibly adapted, and the complexity of realizing and maintaining the device is reduced relative to a device with one configuration mode.
In a possible implementation manner of the apparatus implementing the 802.1CB protocol according to the first aspect, the queue management subsystem includes: the flow control module is used for determining flow control information of the first 802.1 frame based on the flow ID of the first 802.1 frame and implementing flow control according to the flow control information; the stream copying module is used for determining a forwarding port and control information of the forwarding port based on the stream ID of the first 802.1 frame, copying the first 802.1 frame to each forwarding port and sending the port control information to the message editing system; a generating module, configured to generate a flag of the 802.1CB protocol of the first 802.1 frame based on the protocol flag start flag when a start flag in the 802.1CB frame flag is valid; the flag of the 802.1CB frame includes an 802.1CB frame number.
By using the device, each module of the queue management subsystem of the device is controlled to work based on each mark set by the position of the device in the 802.1CB network, so that a plurality of scenes are flexibly adapted, and the complexity of realizing and maintaining the device is reduced relative to a device with one configuration mode.
In a possible implementation manner of the apparatus implementing the 802.1CB protocol according to the first aspect, the message editing subsystem includes: a frame editing module, configured to insert a flag of the 802.1CB protocol for the first 802.1 frame when a start flag in the 802.1CB frame flag is valid; or a flag for deleting the 802.1CB protocol from the first 802.1 frame when the end point flag is valid; and the port adaptation module is used for carrying out transmission adaptation on the first 802.1 frame based on the forwarding port thereof so as to send the first 802.1 frame outwards.
By using the device, each module of the message editing subsystem of the device is controlled to work based on each mark set by the position of the device in the 802.1CB network, so that a plurality of scenes are flexibly adapted, and the complexity of realizing and maintaining the device is reduced relative to a device with a configuration mode.
In a possible implementation manner of the apparatus for implementing the 802.1CB protocol according to the first aspect, the packet forwarding subsystem further includes a frame tag first encapsulation module configured to encapsulate a start tag, an end tag, and a frame sequence number start tag in a stream ID of the first 802.1 frame and an 802.1CB frame tag in a frame tag first control block for sending to the queue management subsystem.
From the above, the frame mark is encapsulated in the frame mark first control block, so that the same control block is convenient to transfer under various scenes, and the interface is simple.
In a possible implementation manner of the apparatus for implementing the 802.1CB protocol according to the first aspect, the queue management subsystem further includes a frame tag second encapsulation module configured to encapsulate, when a start tag in the 802.1CB frame tag is valid, the tag of the 802.1CB protocol of the first 802.1 frame, the stream ID, and the start and end tags in the 802.1CB frame tag in a frame tag second control block for sending to the message editing subsystem.
By the above, when the start point mark in the 802.1CB frame mark is valid, the 802.1CB frame protocol mark is added in the frame mark second control block, so that the transfer between modules is facilitated, and the interface is simple.
In a possible implementation manner of the apparatus for implementing the 802.1CB protocol according to the first aspect, when a destination node of the 802.1CB network where the apparatus is located is an 802.1CB protocol proxy node of an external second destination node and the destination node does not have a MAC replacement function, the entry configuration subsystem is further configured to configure a MAC replacement enable flag in an entry of a forwarding control table of the apparatus; the frame mark determining module is further configured to query, based on the Key of the first 802.1 frame, a MAC replacement enable mark in an entry corresponding to the flow ID from the forwarding control table, and determine the MAC replacement enable mark as the MAC replacement enable mark of the first 802.1 frame; the queue management subsystem further includes a DMAC information determination module for determining DMAC information for the second destination node based on a stream ID of the first 802.1 frame when the MAC replacement enable flag is valid; the DMAC information at least comprises the MAC address of the second destination node, the flow priority of the transmission message and the VLAN reaching the second destination node; the message editing subsystem further comprises a DMAC information replacing module, which is used for replacing corresponding information in the first 802.1 frame with the DMAC information when the MAC replacement enabling mark is valid.
By using the device, the MAC replacement mark set on the basis of the position of the device in the 802.1CB network is used, so that multiple scenes of the 802.1CB protocol agent are flexibly adapted, and the complexity of realizing and maintaining the device is reduced relative to a device with a configuration mode.
In a possible implementation manner of the apparatus for implementing the 802.1CB protocol according to the first aspect, the queue management subsystem further includes a frame tag third encapsulation module configured to encapsulate, when the MAC replacement enable flag is valid, DMAC information of the second destination node, the stream ID, and a start tag and an end tag in the 802.1CB frame tag in a frame tag second control block for sending to the message editing subsystem.
When the MAC replacement enabling mark is valid, DMAC information of the second destination node is added in a frame mark second control block, so that transfer between modules is facilitated, and an interface is simple.
In a second aspect, an embodiment of the present invention provides a chip implementing the 802.1CB protocol, with any module including the apparatus of the first aspect.
By the method, the stream identification, frame elimination, stream replication and flow control of the 802.1CB and the function proxy of the 802.1CB are realized on the chip, flexible configuration based on the node position of the device is supported, and the complexity of chip realization and maintenance is reduced.
Drawings
Fig. 1 is a schematic structural diagram of a first embodiment of an apparatus for implementing an 802.1CB protocol according to the present invention;
fig. 2A is a schematic diagram of a network structure of a second application of an embodiment of a device implementing an 802.1CB protocol according to the present invention;
fig. 2B is a schematic structural diagram of a second embodiment of a device implementing the 802.1CB protocol according to the present invention;
fig. 3 is a schematic structural diagram of a second embodiment of an apparatus for implementing the 802.1CB protocol according to the present invention.
Detailed Description
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, references to the terms "first/second/third, etc." or module a, module B, module C, etc. are used merely to distinguish between similar objects or between different embodiments, and do not represent a particular ordering of the objects, it being understood that particular orders or precedence may be interchanged as permitted so that embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.
In the following description, reference numerals indicating steps such as S110, S120, … …, etc. do not necessarily indicate that the steps are performed in this order, and the order of the steps may be interchanged or performed simultaneously as allowed.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
The embodiment of the invention is mainly used for the time sensitive network TSN and is used for simply introducing related terms.
TSN, TSN (Time Sensitive Networking, time sensitive network) refers to a set of "sub-standards" formulated under the IEEE802.1 standard framework based on specific application requirements, intended to establish a "generic" time sensitive mechanism for ethernet protocols to ensure the time certainty of network data transmission. Since the TSN is a protocol standard under IEEE802.1, the TSN is a protocol standard with respect to a second layer, that is, a data link layer (more precisely, a MAC layer) in an ethernet communication protocol model. The main technical content related to the TSN standard comprises:
802.1CB is a standard for reliable stream duplication and frame erasure, which is aimed at stream duplication and frame erasure to improve network reliability. The standard ensures that copies of critical flows can be transmitted in non-intersecting paths in the network and that only packets arriving first at the destination remain, thereby achieving seamless redundancy.
802.1QCI is a standard for flow filtering and monitoring, also known as a flow control standard, to avoid the situation of traffic overload (which may be caused by software errors on endpoints or switches) affecting receiving nodes, and flow control can also be used to block malicious network attacks.
ACL, ACL (Access Control Lists, access control list) is a packet filtering-based access control technique that filters data packets on an interface according to set conditions, allowing them to pass or drop. The access control list is widely applied to routers and three-layer switches, and by means of the access control list, access of a user to a network can be effectively controlled, so that network security is guaranteed to the greatest extent.
The 802.1 stream and the 802.1 frame, the 802.1 frame with the same source MAC and destination MAC belong to the same 802.1 stream and have a common stream ID.
The 802.1CB frame is an 802.1 frame with an 802.1CB protocol mark, the 802.1CB protocol mark is an 802.1CB frame sequence number, and the 802.1CB frame with the same 802.1CB frame sequence number and the 802.1CB frame which does not arrive first is a redundant 802.1CB frame.
Embodiments of an apparatus implementing the 802.1CB protocol according to the present invention are described below with reference to fig. 1 to 3.
An embodiment of a device implementing the 802.1CB protocol
Fig. 1 shows a structure of an embodiment one of a device implementing the 802.1CB protocol, which includes a packet forwarding subsystem 100, a queue management subsystem 200, a packet editing subsystem 300, and an entry configuration subsystem 400.
The message forwarding subsystem 100, the queue management subsystem 200 and the message editing subsystem 300 are specific subsystems for implementing the 802.1CB protocol, and the table configuration subsystem 400 is based on table entries of each 802.1 frame of the device in the 802.1CB network, where the table entries are used for controlling the working of the message forwarding subsystem 100, the queue management subsystem 200 or the message editing subsystem 300 to implement the function of the 802.1CB protocol.
The respective subsystems are described below with continued reference to fig. 1.
An entry configuration subsystem 400 configured to configure an entry indexed by a Key of an 802.1 frame in a forwarding control table of the device based on a location of the device in an 802.1CB network, the entry including a flow ID of the 802.1 frame and an 802.1CB frame flag, the 802.1CB frame flag including one or more of: a start point marker, an end point marker, a frame erasure enabling marker, and a protocol marker initiation marker; the Key at least comprises the combination of the VLAN ID of the first 802.1 frame and a source MAC or a destination MAC.
When the device is a starting node of the 802.1CB network, the starting point mark and the ending point mark of the table entry are respectively set to 1 and 0.
When the device is an intermediate node of the 802.1CB network, the start and end flags of the entry are set to 0.
When the device is an end node of the 802.1CB network, the start and end flags of the entry are set to 0 and 1, respectively.
When the device has a plurality of nodes next to each other in the 802.1CB network, and the device receives a first 802.1 frame of the plurality of nodes from the 802.1CB network, the frame erasure enable flag of the entry is set to 1 and the other cases are set to 0.
When the device is started, the protocol flag start flag of the entry is set to 1, and the other cases are set to 0.
Illustratively, the present embodiment sets each flag to 1, indicating that the flag is valid; set to 0, indicating that the flag is invalid.
Message forwarding subsystem 100 includes a flow identification module 110, a frame marker determination module 120, a frame elimination module 130, and a forwarding module 140.
The flow identification module 110 is configured to determine a flow ID of the first 802.1 frame based on a Key of the first 802.1 frame.
Wherein, when the device is an intermediate node or an end node of the 802.1CB network, each of the first 802.1 frames already contains an 802.1 frame with the 802.1CB frame sequence number, which may be expressed as an 802.1CB frame; when the device is a starting node of an 802.1CB network, each first 802.1 frame does not include the 802.1CB frame number and is a standard 802.1 frame. Whether a standard 802.1 frame or an 802.1CB frame is received, the first 802.1 frame is collectively referred to herein.
Optionally, the Key includes at least a combination of the VLAN ID and the source MAC or a combination of the destination MAC of the first 802.1 frame, and one or more of the following may be further included: including source IP, destination IP, source Port and destination Port
Illustratively, the flow identification module 110 queries a pre-configured forwarding control table based on the Key of the first 802.1 frame to obtain its flow ID.
Based on the above, the flow ID determined by the above module may be used not only by the flow related to the 802.1CB protocol but also by the flow related to the 802.1QCI protocol, so that the device may not only process the operation of the 802.1CB protocol, but also perform the flow control operation of the 802.1 QCI.
The frame flag determining module 120 is configured to query, from the forwarding control table, a related flag in an entry corresponding to the Key of the first 802.1 frame based on the Key of the first 802.1 frame, and determine the related flag as a related flag in an 802.1CB frame flag of the first 802.1 frame. The frame flag determining module 120 is further configured to set a protocol flag start flag in the 802.1CB frame flag.
Wherein, the start point mark, the end point mark, the frame elimination enabling mark and the protocol mark starting mark of the related mark in the table entry are respectively determined as corresponding marks in the 802.1CB frame marks of the first 802.1 frame. The protocol flag start-up flag is also denoted as a sequence number start-up flag, and in this embodiment, the protocol flag start-up flag and the sequence number start-up flag have the same meaning, and the sequence number start-up flag is used later for easy understanding.
Wherein the start tag, end tag, and frame erasure enabling tag in the entry corresponding to the flow ID are configured differently based on the location of the device in the 802.1CB network, and therefore the start tag, end tag, sequence number start tag, and frame erasure enabling tag of the 802.1CB frame of the first 802.1 frame are also determined based on the location of the device in the 802.1CB network.
When the device is a starting node of the 802.1CB network, the starting point of the first 802.1CB frame is marked as 1 and the ending point is marked as 0; the serial number start-up flag is 1 when the device is started, and the serial number start-up flag is 0 in other cases.
When the device is an end node of the 802.1CB network, the start point of the first 802.1CB frame is marked as 0 and the end point is marked as 1.
Wherein when the device is an intermediate node of an 802.1CB network, the start point of the first 802.1CB frame is marked as 0 and the end point is marked as 0.
When the device has a plurality of nodes in the 802.1CB network and is in a next adjacent node, and the device receives a first 802.1 frame of the plurality of nodes from the 802.1CB network, a frame elimination enabling mark of the first 802.1CB frame is set to be 1, and other cases are set to be 0.
When the device is started, the protocol flag start flag of the first 802.1CB frame is set to 1, and the other cases are set to 0.
The frame elimination module 130 is configured to delete a second 802.1 frame in the first 802.1 frames when a frame elimination enable flag is 1, where the second 802.1 frame is a frame that is not the first to arrive in the first 802.1 frames with the same stream ID and the same frame number.
When the device is the starting node of the 802.1CB network or the device receives the first 802.1 frame of only one node, the frame elimination enabling mark is invalid. The apparatus receives a first 802.1 frame of a plurality of nodes from the 802.1CB network, when a frame erasure enable flag is valid, the first 802.1 frame being an 802.1CB frame.
Wherein the frame elimination module 130 retains the first-reached frame in the first 802.1 frame having the same stream ID and the same 802.1CB frame number, and deletes the first 802.1 frame having the same stream ID and the same 802.1CB frame number that is not the first-reached frame.
The forwarding module 140 is configured to determine a forwarding port and port control information of the first 802.1 frame based on a destination MAC address of the first 802.1 frame, and exchange the first 802.1 frame and the port control information with the forwarding port.
The forwarding module 140 determines a forwarding port of the first 802.1 frame based on a relation table of a forwarding port of the switch and a destination MAC address, and switches the first 802.1 frame to the forwarding port, and sends port control information of the forwarding port to the packet editing subsystem 300. Because the present module selects a forwarding port based on the relation table of the forwarding port of the switch and the destination MAC address, the present module is a forwarding port determination method of a common L2 switch, and only one forwarding port can be queried. When the device has only one preamble neighbor, the module may replace the subsequent stream duplication module 220.
One application specific example of the module is also for forwarding the first 802.1 frame from one device to another device when a plurality of the devices are stacked.
Wherein the forwarding module 140 may work for both 802.1 standard frames and 802.1CB frames.
The queue management subsystem 200 includes a QCI flow control module 210, a flow duplication module 220, and a frame sequence number generation module 230.
The QCI flow control module 210 is configured to determine flow control information of the first 802.1 frame based on the ID of the first frame, and perform flow control on the first frame.
The method comprises the steps of inquiring a flow index table configured in advance based on the ID of the first 802.1 frame, and determining QCI flow control information of the first 802.1 frame, wherein the QCI flow control information comprises whether queuing is allowed, whether resources of other flows are allowed to be preempted, and the like in the overload condition. The flow index table records the flow ID, the QCI flow control information corresponding to the flow ID and the forwarding port.
Wherein the QCI flow control module 210 may work for both 802.1 standard frames and 802.1CB frames.
From the above, the QCI flow control module 210 realizes that flow control is synchronously realized in the device of the 802.1CB protocol.
The flow replication module 220 is configured to determine each forwarding port and port control information of each forwarding port based on the flow ID of the first 802.1 frame, replicate the first 802.1 frame to each forwarding port, and send the port control information to the packet editing subsystem 300.
And when the device has a plurality of preamble adjacent nodes, the module inquires the flow index table configured in advance based on the ID of the first 802.1CB frame, acquires the forwarding ports and the port control information, and copies the corresponding number when the forwarding ports are in a plurality.
Where the endpoint flag is 1 or there are only 1 node in the preamble neighbors, the flow replication module 220 is not enabled.
Wherein the flow duplication module 220 may work for both 802.1 standard frames and 802.1CB frames.
The frame number generating module 230 is configured to generate, based on the 802.1CB frame flag, a flag of the 802.1CB protocol of the first 802.1 frame, where the flag of the 802.1CB protocol includes an 802.1CB frame number, and in this embodiment, the flag of the 802.1CB protocol includes only an 802.1CB frame number, which have the same meaning, and in this embodiment, the flag of the 802.1CB protocol is replaced with the 802.1CB frame number for easy understanding.
The frame sequence number generating module 230 generates an 802.1CB frame sequence number for an 802.1 standard frame, where the first 802.b frame is an 802.1CB frame.
When the starting point of the first 802.b frame is marked as 1, that is, the device is a starting point node, the frame sequence number generating module sets a frame sequence number of the first 802.1CB frame with the sequence number starting mark as 1 as 0; for the first 802.1CB frame with the sequence number start flag of 0, its frame sequence number is incremented by 1.
The message editing subsystem 300 includes a frame editing first module 310, a frame editing second module 320, and a port adaptation module 330.
The frame editing first module 310 is configured to insert an 802.1CB frame sequence number into the first 802.1 frame, so that the first 802.1CB frame is suitable for sending to nodes of other 802.1CB protocols.
When the starting point of the first 802.1 frame is marked as 1, the first 802.1 frame is an 802.1 standard frame, and the frame editing first module 310 inserts an 802.1CB frame number in the frame as a mark for supporting the 802.1CB protocol, where the first 802.1 frame is an 802.1CB frame.
The second frame editing module 320 is configured to delete the 802.1CB frame sequence number from the first 802.1CB frame, so that the first 802.1CB frame is suitable for sending to other nodes that are not in the 802.1CB protocol.
When the end point flag is 1, the first 802.1 frame is an 802.1CB frame at this time, and the frame editing second module 320 deletes the 802.1CB protocol flag of the first 802.1 frame, and at this time, the first 802.1 frame is an 802.1CB standard frame, so that it is convenient for the subsequent transmission to other nodes that are not in the 802.1CB protocol in the format of the 802.1 standard frame.
In the actual network, the frame editing first module 310 and the frame editing second module 320 are in a two-out-of-one relationship, and can be combined together to form a frame editing module.
The port adaptation module 330 is configured to adapt the first 802.1 frame, and after adapting, the port is sent out by the forwarding port.
The port adaptation at least comprises VLAN ID, transmission priority and other adaptations.
The following describes the configuration of a corresponding table entry for the embodiment of the device based on the actual usage scenario and the working condition of each module.
When the apparatus is a starting node of the 802.1CB network and there is more than one preamble neighbor, an entry of the flow ID of the first 802.1 frame is configured to: the start point is marked 1, the end point is marked 0, and the frame erasure enabling flag is marked 0. Since the sequence number start flag is set to 1 only when the device is started, and is set to 0 in other cases, the same will be set in the following description, and the setting description of the sequence number start flag is omitted in the following description for brevity of description.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
flow identification module 110 and frame marker determination module 120 of packet forwarding subsystem 100 operate.
The QCI flow control module 210, the flow duplication module 220, and the frame sequence number generation module 230 of the queue management subsystem 200 operate.
The frame editing first module 310 and the port adaptation module 330 of the message editing subsystem 300 work.
The working sequence of the modules is as follows:
the flow identification module 110, the frame mark determination module 120, the QCI flow control module 210, the flow duplication module 220, the frame sequence number generation module 230, the frame editing first module 310 and the port adaptation module 330.
When the apparatus is a starting node of the 802.1CB network and there is only one preamble neighbor, the entry of the flow ID of the first 802.1 frame is configured to: the start point is marked 1, the end point is marked 0, and the frame erasure enabling flag is marked 0.
Determining a relevant frame label of the first 802.1 frame based on the table entry of the flow ID, so as to enable the working conditions of each module to be as follows:
flow identification module 110, frame marker determination module 120, and forwarding module 140 of packet forwarding subsystem 100 operate.
The QCI flow control module 210 and the frame sequence number generation module 230 of the queue management subsystem 200;
the frame editing first module 310 and the port adaptation module 330 of the message editing subsystem 300 work.
The working sequence of the modules is as follows:
the flow identification module 110, the frame mark determination module 120, the forwarding module 140, the QCI flow control module 210, the frame sequence number generation module 230, the frame editing first module 310 and the port adaptation module 330.
When the apparatus is an intermediate node of the 802.1CB network and has a subsequent neighbor node and a plurality of preceding neighbors, the entry for the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enabling flag is marked with 0.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
flow identification module 110 and frame marker determination module 120 of packet forwarding subsystem 100 operate;
QCI flow control module 210, flow replication module 220 of queue management subsystem 200;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
the flow identification module 110→the frame mark determination module 120→the QCI flow control module 210→the flow duplication module 220→the port adaptation module 330.
When the apparatus is an intermediate origin of the 802.1CB network and has a plurality of adjacent successor nodes and a plurality of adjacent predecessor nodes, an entry for the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enable is marked with 1.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
Flow identification module 110, frame marker determination module 120 and frame elimination module 130 of packet forwarding subsystem 100 operate
The QCI flow control module 210, the flow replication module 220 of the queue management subsystem 200 operate;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
the flow identification module 110→the frame mark determination module 120→the frame elimination module 130→the QCI flow control module 210→the flow duplication module 220→the port adaptation module 330.
When the apparatus is an intermediate node of the 802.1CB network and has a plurality of adjacent successor nodes and an adjacent predecessor node, the entry for the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enable is marked with 1.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
message forwarding subsystem 100 operates with flow identification module 110, frame marker determination module 120, frame elimination module 130, and forwarding module 140;
the QCI flow control module 210 of the queue management subsystem 200 works;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
Flow identification module 110→frame marker determination module 120→frame elimination module 130→forwarding module 140→qci flow control module 210→port adaptation module 330.
When the device is an end node of the 802.1CB network and there are a plurality of adjacent successor nodes, the entry for the flow ID of the first 802.1 frame is configured to: the start point is marked 0, the end point is marked 1, and the frame erasure enable is marked 1.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
flow identification module 110, frame marker determination module 120, frame elimination module 130, and forwarding module 140 of packet forwarding subsystem 100 operate;
the QCI flow control module 210 of the queue management subsystem 200 works;
the frame editing second module 320 and the port adaptation module 330 of the message editing subsystem 300 work.
The working sequence of the modules is as follows:
the flow identification module 110→the frame mark determination module 120→the frame elimination module 130→the forwarding module 140→the QCI flow control module 210→the frame editing second module 320→the port adaptation module 330.
When the device is an end node of the 802.1CB network and there is one adjacent successor node, the entry for the flow ID of the first 802.1 frame is configured to: the start point is marked as 0, the end point is marked as 1, and the frame erasure enabling flag is marked as 0.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
flow identification module 110, frame marker determination module 120 and forwarding module 140 of packet forwarding subsystem 100 operate
The QCI flow control module 210 of the queue management subsystem 200 works;
the frame editing second module 320 and the port adaptation module 330 of the message editing subsystem 300 work.
The working sequence of the modules is as follows:
the flow identification module 110→the frame mark determination module 120→the forwarding module 140→the QCI flow control module 210→the frame editing second module 320→the port adaptation module 330.
By the above, based on the flexible configuration of the table item of the flow ID of the first 802.1 frame by the device, the operation of each module of the device is controlled and enabled, and the implementation and maintenance complexity of the device is reduced.
In summary, an embodiment of a device for implementing 802.1CB protocol is based on modularized function setting, and the implementation of flow identification, frame elimination, flow replication and 802.1QCI flow control of 802.1CB are considered on one device; flexible configuration entries based on the node locations of the devices are supported to control the operation of the modules, reducing the implementation and maintenance complexity of the devices relative to a manner in which all modules work together in one device.
An apparatus embodiment two implementing the 802.1CB protocol
An apparatus embodiment II for implementing 802.1CB protocol inherits all the structures of the apparatus embodiment I and adds proxy function related modules.
Fig. 2A shows a network structure of a second application of an embodiment of a device implementing the 802.1CB protocol, where the nodes include a System B (System B), a Relay System C (Relay System C), a Relay System D (Relay System D), a Relay System E (Relay System E), a Relay System F (Relay System F), and a System G (System G), where the System B is composed of a System B1 (End System B1) and a Relay System B2 (System B2), and the System G is composed of a Relay System G2 (Relay System G2) and a System G1 (End System G1).
The relay systems B2, C, D, E, F, and G2 are devices supporting the 802.1CB protocol according to the present embodiment. System B1 and system G1 do not support the 802.1CB protocol. To realize seamless redundant data transmission from the system B1 to the system G21, an agent is set, the relay system B2 is an agent of the system B1, and the relay G2 is an agent of the system G1.
Fig. 2B shows a structure of a second embodiment of a device implementing the 802.1CB protocol. With respect to the first embodiment of the device, there are the following variations:
In some practical scenarios, the entry configuration subsystem 400 is enhanced, and a MAC replacement enable flag is added to the entries configured in the configuration module 410.
In some practical scenarios, the message forwarding subsystem 100 adds a DMAC substitution module 150 and enhances the frame marker determination module 120.
In some practical scenarios the queue management subsystem 200 adds a DMAC information determination module 240.
In some practical scenarios the message editing subsystem 300 adds a DMAC information substitution module 340.
The functions and advantages of the other modules are the same as in the first embodiment of the apparatus, and the additional modules and the enhancement modules are described with emphasis.
As in fig. 2A, G2 typically has a MAC address replacement function when G2 acts as a proxy for the 802.1CB protocol of G1, the apparatus proceeds as follows.
The packet forwarding subsystem 100 adds a DMAC replacing module 150, configured to replace, when the device is an end node of the 802.1CB network and is a proxy node of an 802.1CB protocol of an external second destination node, a destination MAC address of the first 802.1 frame with a MAC address of the second destination node.
Illustratively, the relay system G2 of fig. 2A is a proxy node of the system G1, and G1 is the second destination node. When the relay system G2 has the MAC replacing function, the MAC address of the relay system G2 is replaced, and the destination MAC address of the first 802.1 frame is replaced by the MAC address of the system G1, so as to continue data forwarding.
As in fig. 2A, where G2 acts as a proxy for the 802.1CB protocol of G1, G2 does not have MAC address replacement functionality, and subsequent nodes of G2, e.g., E and F, are typically selected for MAC address replacement, and the apparatus is enhanced as follows.
The configuration module 410 adds a configuration MAC replacement enabling flag, and adds the configuration MAC replacement enabling flag in an entry corresponding to the flow ID of the first 802.1 frame when the device is an intermediate node of the 802.1CB network, and the 802.1CB network is a proxy node of the 802.1CB protocol of the external second destination node and does not have a MAC replacement function.
For example, in fig. 2A, the relay system G2 is a proxy node of the system G1, and G1 is the second destination node, but the relay system G2 does not have a MAC replacement function, and if the relay systems E and F complete MAC replacement, a configuration MAC replacement enable flag is added to an entry corresponding to the flow ID of the first 802.1 frame of the relay systems E and F.
The frame tag determining module 120 is further configured to query, from the forwarding control table, a MAC replacement enable tag in an entry corresponding to the Key of the first 802.1 frame based on the Key of the first 802.1 frame, and determine the MAC replacement enable tag as the first 802.1 frame.
For example, in fig. 2A, the relay system G2 is a proxy node of the system G1, and G1 is the second destination node, but the relay system G2 does not have a MAC replacement function, and when the relay systems E and F complete MAC replacement, the frame flag determining module 120 of the relay system E queries, based on the flow ID of the first 802.1 frame, the MAC replacement enable flag in the table entry corresponding to the flow ID from the forwarding control table of the relay system E, and determines the MAC replacement enable flag as the MAC replacement enable flag of the first 802.1 frame. The relay system F also performs the same operation.
The DMAC information determination module 240 is configured to determine DMAC information to the second destination MAC based on the stream ID of the first 802.1 frame when the MAC replacement enable flag is 1; the DMAC information includes at least the second destination MAC address, a transmission packet priority, and a VLAN to the second destination MAC.
For example, in fig. 2A, the relay system G2 is a proxy node of the system G1, G1 is the second destination node, but the relay system G2 does not have a MAC replacement function, and after the MAC replacement is completed in the relay systems E and F, the DMAC information determining module 240 of the relay system E queries a DMAC table based on the stream ID of the first 802.1 frame and determines the DMAC information to the system G1 at the relay node E with the MAC replacement enabled flag of 1. The relay system F also performs the same operation.
The DMAC information replacement module 340 is configured to replace corresponding information in the first 802.1CB frame with the DMAC information when the MAC replacement enable flag is 1.
For example, the relay system G2 in fig. 2A is a proxy node of the system G1, G1 is the second destination node, but the relay system G2 does not have a MAC replacement function, and when the relay systems E and F complete MAC replacement, the DMAC information replacement module 320 replaces the DMAC information of the first 802.1 frame when the relay node E is marked with 1 in the MAC replacement enable.
The following describes, taking fig. 2A as an example, the operation enabling conditions of the respective modules of the second embodiment of the apparatus based on the actual usage scenario. Since the relay system B2, the relay system C, the relay system D, the relay system E, the relay system F, and the relay system G2 are modules related to the 802.1CB protocol, i.e., nodes of the 802.1CB network, the module configuration of these nodes will be described below.
The relay system B2 is a starting node of the 802.1CB network, and has 2 adjacent preamble nodes, i.e. relay systems C and D, and the entry of the flow ID of the first 802.1 frame is configured to: the start point is marked 1, the end point is marked 0, and the frame erasure enabling flag is marked 0.
Determining the relevant 802.1CB frame mark of the first 802.1 frame based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
flow identification module 110 and frame marker determination module 120 of packet forwarding subsystem 100 operate;
the QCI flow control module 210, the flow duplication module 220, and the frame sequence number generation module 230 of the queue management subsystem 200 operate;
the frame editing first module 310 and the port adaptation module 330 of the message editing subsystem 300 work.
The working sequence of the modules is as follows:
the flow identification module 110, the frame mark determination module 120, the QCI flow control module 210, the flow duplication module 220, the frame sequence number generation module 230, the frame editing first module 310 and the port adaptation module 330.
The relay system C is an intermediate node of the 802.1CB network, and has one adjacent successor node and 2 adjacent predecessor nodes, and the entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enabling flag is marked with 0.
Determining the relevant 802.1CB frame mark of the first 802.1 frame of the relay system C based on the list item of the flow ID, thereby enabling the working condition of each module to be as follows:
flow identification module 110 and frame marker determination module 120 of packet forwarding subsystem 100 operate;
the QCI flow control module 210 and the flow replication module 220 of the queue management subsystem 200 operate;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
the flow identification module 110→the frame mark determination module 120→the QCI flow control module 210→the flow duplication module 220→the port adaptation module 330.
The relay system D is an intermediate node of the 802.1CB network, and has one adjacent successor node and 1 adjacent predecessor node, and the entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enabling flag is marked with 0.
Determining the relevant 802.1CB frame mark of the first 802.1 frame of the relay system D based on the table entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
Flow identification module 110, frame marker determination module 120, forwarding module 140 of packet forwarding subsystem 100;
the QCI flow control module 210 of the queue management subsystem 200 works;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
flow identification module 110→frame marker determination module 120→forwarding module 140→qci flow control module 210→port adaptation module 330.
The relay system E, the relay system F, and the relay system G2 are configured in two cases, i.e., G2 has a MAC replacement function and does not have a MAC replacement function.
The relay system E is an intermediate node of the 802.1CB network, and has an adjacent successor node and 1 adjacent predecessor node, and the predecessor node relay system G2 has a MAC replacement function, the relay system E is an intermediate node of the 802.1CB network, and has an adjacent successor node and 1 adjacent predecessor node, and the table entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enabling flag is marked with 0.
Determining the relevant 802.1CB frame mark of the first 802.1 frame of the relay system E based on the list item of the flow ID, thereby enabling the working conditions of each module to be as follows:
Flow identification module 110, frame marker determination module 120, forwarding module 140 of packet forwarding subsystem 100;
the QCI flow control module 210 of the queue management subsystem 200 works;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
flow identification module 110→frame marker determination module 120→forwarding module 140→qci flow control module 210→port adaptation module 330.
The relay system E is an intermediate node of the 802.1CB network, and has one adjacent successor node and 1 adjacent predecessor node, and the predecessor node relay system G2 has no MAC replacement function, because G2 has no MAC replacement function, the relay system E needs to configure the MAC replacement function, and the table entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, the frame erasure enabling flag is marked with 0, and the mac replacement enabling flag is marked with 1.
Determining the relevant 802.1CB frame mark of the first 802.1 frame of the relay system E based on the list item of the flow ID, thereby enabling the working conditions of each module to be as follows:
the module configuration is as follows:
flow identification module 110, frame marker determination module 120 and forwarding module 140 of packet forwarding subsystem 100 operate;
The QCI flow control module 210 and DMAC information determination module 240 of the queue management subsystem 200 operate;
the port adaptation module 330 and DMAC information substitution module 340 of the message editing subsystem 300 operate.
The working sequence of the modules is as follows:
the flow identification module 110→the frame tag determination module 120→the forwarding module 140→the QCI flow control module 210→the DMAC information determination module 240→the port adaptation module 330→the DMAC information replacement module 340.
The relay system F is an intermediate node of the 802.1CB network of the TSN and has 2 adjacent successor nodes and one adjacent predecessor node, and the predecessor node relay system G2 has a MAC replacement function, and an entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, and the frame erasure enable is marked with 1.
Determining the relevant 802.1CB frame mark of the first 802.1 frame of the relay system F based on the table entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
message forwarding subsystem 100 operates with flow identification module 110, frame marker determination module 120, frame elimination module 130, and forwarding module 140;
the QCI flow control module 210 of the queue management subsystem 200 works;
the port adaptation module 330 of the message editing subsystem 300 works.
The working sequence of the modules is as follows:
flow identification module 110→frame marker determination module 120→frame elimination module 130→forwarding module 140→qci flow control module 210→port adaptation module 330.
Relay system F is an intermediate node of the 802.1CB network of the TSN and has 2 adjacent successor nodes and one adjacent predecessor node, and the predecessor node relay system G2 has no MAC replacement function, because G2 has no MAC replacement function, relay system E needs to configure the MAC replacement function, and the entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 0, the frame erasure enabling flag is marked with 1, and the mac replacement enabling flag is marked with 1.
Determining the relevant 802.1CB frame mark of the first 802.1 frame of the relay system F based on the table entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
flow identification module 110, frame marker determination module 120, frame elimination module 130, and forwarding module 140 of packet forwarding subsystem 100 operate;
the QCI flow control module 210 and DMAC information determination module 240 of the queue management subsystem 200 operate;
the port adaptation module 330 and DMAC information substitution module 340 of the message editing subsystem 300 operate.
The working sequence of the modules is as follows:
The flow identification module 110, the frame mark determination module 120, the frame elimination module 130, the forwarding module 140, the QCI flow control module 210, the DMAC information determination module 240, the port adaptation module 330, and the DMAC information replacement module 340.
The relay system G2 is an end node of the 802.1CB network of the TSN, and has 2 adjacent successor nodes, and when having the MAC replacement function, an entry of the flow ID of the first 802.1 frame is configured to: the start point is marked 0, the end point is marked 1, and the frame erasure enable is marked 1.
Determining a relevant 802.1CB frame mark of the first 802.1 frame of the relay system G2 based on the table entry of the flow ID, so that the working condition of each module is enabled as follows:
the flow identification module 110, the frame marker determination module 120, the frame elimination module 130, the forwarding module 140, and the DMAC substitution module 150 of the packet forwarding subsystem 100 operate;
the QCI flow control module 210 of the queue management subsystem 200 works;
the frame editing second module 320 and the port adaptation module 330 of the message editing subsystem 300 work.
The working sequence of the modules is as follows:
the flow identification module 110, the frame tag determination module 120, the frame elimination module 130, the DMAC replacement module 150, the forwarding module 140, the QCI flow control module 210, the frame editing second module 320, and the port adaptation module 330.
The relay system G2 is an end node of the 802.1CB network of the TSN, there are 2 adjacent successor nodes, and there is no MAC replacement function, the MAC replacement function is completed in the relay systems E and F, and the table entry of the flow ID of the first 802.1 frame is configured to: the start point is marked with 0, the end point is marked with 1, the frame erasure enabling flag is marked with 1, and the mac replacement enabling flag is marked with 1.
The relevant 802.1CB frame mark of the first 802.1 frame of the relay system G2 is determined based on the table entry of the flow ID, so that the working condition of each module is enabled as follows, and the module is configured as follows:
flow identification module 110, frame marker determination module 120, frame elimination module 130, and forwarding module 140 of packet forwarding subsystem 100 operate;
the QCI flow control module 210 and DMAC information determination module 240 of the queue management subsystem 200 operate;
the frame edit second module 320, port adaptation module 330, and DMAC information replacement module 340 of the message edit subsystem 300 operate.
The working sequence of the modules is as follows: the flow identification module 110, the frame mark determination module 120, the frame elimination module 130, the forwarding module 140, the QCI flow control module 210, the DMAC information determination module 240, the frame editing second module 320, the port adaptation module 330, and the DMAC information replacement module 340.
The devices in this embodiment may be stacked for use, so as to expand the exchange capability of the 802.1CB protocol, and each front-end device in each stacked device configures the forwarding module 140, and each module of the back-end device is configured based on a scene according to the scene module.
In summary, the second embodiment of a device for implementing the 802.1CB protocol is based on modularized function setting, and the proxy functions of 802.1CB, including flow identification, frame elimination, flow replication, 802.1QCI flow control and 802.1CB, are implemented on one device; flexible configuration entries based on the node locations of the devices are supported to control the operation of the modules, reducing the implementation and maintenance complexity of the devices relative to a manner in which all modules work together in one device.
[ two specific embodiments of an apparatus for implementing 802.1CB protocol ]
Fig. 3 shows the structure of a device according to a second embodiment of the device for implementing the 802.1CB protocol.
The embodiment also includes the table entry configuration system 400, and in this embodiment, the control signals between the subsystems are described in detail, so that the configuration system 400 is not shown in fig. 3.
The embodiment divides the message forwarding subsystem 100 into an ACL module 100A, a forwarding module 100B and a control encapsulation module 100C, and divides the queue management subsystem 200 into an enqueue management module 200A and a dequeue management module 200B based on the exchange of control signals.
ACL module 100A includes a flow identification module 110, a frame marker determination module 120, a frame elimination module 130, a DMAC substitution module 150, forwarding module 100B includes a forwarding module 140, and control encapsulation module 100C includes a newly added frame marker first encapsulation module 160. In addition to the newly added frame marking first encapsulation module 160, other module descriptions refer to either the device embodiment one or the device embodiment two.
The frame tag first encapsulation module 160 is configured to encapsulate stream_hdl, frm_reply_ori, frm_elim_term, seq_strt, and alt_en in a frame tag first control block for delivery to the queue management subsystem 200.
Wherein, the frame mark first control block corresponds to the first 802.1 frame one by one, stream_hdl is the stream ID, frm_reply_ori is the start point mark, frm_elim_term is the end point mark, seq_strt is the sequence number start mark, alt_en is the MAC replacement enable mark, and alt_en.
The frame marking first encapsulation module 160 is an optional module of any practical scenario, and works after other modules listed in the packet forwarding subsystem 100 in the embodiment of the apparatus of the present invention.
The enqueue management module 200A includes a QCI flow control module 210, a flow replication module 220, and a frame tag first decapsulation module 250, and the dequeue management module 200B includes a frame sequence number generation module 230, a DMAC information determination module 240, a frame tag second encapsulation module 260, and a frame tag third encapsulation module 270.
The frame tag first decapsulation module 250 is configured to decapsulate stream_hdl, frm_reply_ori, and seq_strt from the frame tag first control block, and deliver the stream_hdl, frm_reply_ori, and seq_strt to the queue management module 200B, for use by the frame sequence number generation module 230 and the DMAC information determination module 240.
The frame marking first decapsulation module 250 is an optional module of any practical scenario, and works before other modules listed in the queue management subsystem module 200 in the embodiment of the apparatus of the present invention.
The frame tag second encapsulation module 260 is configured to encapsulate the 802.1CB frame sequence number and stream_hdl of the first 802.1 frame and the frm_reply_ori and frm_elim_term in the 802.1CB frame tag in the frame tag second control block to transmit to the message editing subsystem 300 when the frm_reply_ori of the first 802.1 frame is 1.
The frame tag third encapsulation module 270 is configured to encapsulate the DMAC information, stream_hdl, and frm_reply_ori and frm_elim_term in the 802.1CB frame tag in the frame tag second control block for delivering to the message editing subsystem 300 when alt_en of the first 802.1 frame is 1.
In an actual scenario, frm_reply_ori and alt_en are not set to 1 at the same time, and the frame marking second encapsulation module 260 and the frame marking third encapsulation module 270 are alternative modules.
Wherein the second encapsulation module 260 or the third encapsulation module 270 of the frame tag operates after the other modules listed in the queue management subsystem module 200 of the device embodiment of the present invention. The frame tag second encapsulation module 260 is enabled with the frame number generation module 230 and the frame tag third encapsulation module 270 is enabled with the DMAC information determination module 240.
The message editing subsystem 300 adds a frame tag second decapsulation module 350.
The frame tag second decapsulation module 350 is configured to parse stream_hdl, frm_reply_ori, frm_elim_term, and alt_en of the first 802.1 frame from the received frame tag second control block; and is further configured to parse an 802.1CB frame number from the frame mark second control block when frm_reply_ori is 1, and send the 802.1CB frame number, frm_reply_ori, and stream_hdl to the frame editing first module 310; and is further configured to send frm_elim_term and stream_hdl to the frame editing second module 320 when frm_elim_term is 1; and is further configured to parse the DMAC information from the frame tag second control block and send the DMAC information and alt en to the DMAC information replacement module 340 when alt en is 1.
The second frame marking and deblocking module 350 is an optional module of any practical scenario, and works before other modules listed in the message editing subsystem module 300 in the embodiment of the present invention.
The working scenario of each module in this embodiment refers to the second embodiment of the apparatus, which is not described in detail here.
In addition, fig. 3 only shows the processing parts of the 802.1CB protocol function, the flow control and the proxy function of the apparatus, and the apparatus further includes a frame receiving interface and a frame transmitting interface in the actual usage scenario.
The frame receiving interface is configured to receive the first 802.1 frame from an adjacent subsequent node, where the received first 802.1 frame is an 802.1CB frame when the subsequent node is a node of the 802.1CB network, and where the received first 802.1 frame is an 802.1 standard frame when the subsequent node is an external node of the 802.1CB network.
The frame transmitting interface is configured to transmit the first 802.1 frame to an adjacent preamble node, where the preamble node is a node of the 802.1CB network, and when the preamble node is an external node of the 802.1CB network, the preamble node is an 802.1 standard frame.
In summary, the specific implementation manner of the second embodiment of the device for implementing the 802.1CB protocol is based on modularized function setting and based on unified control block to transfer various control information, and functions of implementing flow identification, frame elimination, flow duplication, QCI flow control and 802.1CB proxy of the 802.1CB are considered, so that interfaces among subsystems are simpler, and implementation and maintenance complexity of the device is further reduced.
[ one chip embodiment implementing the 802.1CB protocol ]
The invention also provides a chip embodiment for realizing the 802.1CB protocol, which is provided with the modules of the device embodiment II for realizing the 802.1CB protocol. The functions of realizing the flow identification, frame elimination, flow replication, QCI flow control and 802.1CB agent of the 802.1CB are realized on one chip, the table entry based on flexible configuration of the node position of the device is supported, various actual use scenes are adapted, and the complexity of chip realization and maintenance is reduced.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the invention, which fall within the scope of the invention.

Claims (10)

1. An apparatus for implementing an 802.1CB protocol, comprising:
A message forwarding subsystem for determining a stream ID and an 802.1CB frame flag of the received first 802.1 frame; and further for enabling elimination of redundant frames based on the 802.1CB frame flag; the 802.1CB frame flag is obtained from a forwarding control table of the device from the flow ID, the forwarding control table being configured based on a location of the device in an 802.1CB network, comprising one or more of the following flags: a start point mark, an end point mark, a frame elimination enabling mark and a protocol mark starting mark, wherein each table entry of the forwarding control table comprises a corresponding stream ID and an 802.1CB frame mark;
a queue management subsystem for performing flow control of 802.1QCI protocol on the first 802.1 frame based on the flow ID; further for the apparatus enabling replication of the first 802.1 frame to a plurality of forwarding ports based on the flow ID when there are a plurality of preamble neighbors in an 802.1CB network and the end point flag is not valid; further for enabling and controlling the generation of a flag of an 802.1CB protocol of the first 802.1 frame based on the 802.1CB frame flag for changing the first 802.1 frame to an 802.1CB frame;
a message editing subsystem, configured to enable and control adding a flag of an 802.1CB protocol to the first 802.1 frame based on the 802.1CB frame flag, so that the first 802.1 frame after the adding is identified as an 802.1CB frame, or configured to enable and control deleting a flag of an 802.1CB protocol from the first 802.1 frame based on the 802.1CB frame flag, so that the first 802.1 frame is changed from an 802.1CB frame to a standard frame of a first 802.1 after the deleting; and the first 802.1 frame is further used for adapting based on a forwarding port so as to be sent outwards.
2. The apparatus of claim 1, further comprising an entry configuration subsystem to configure an entry in a forwarding control table of the apparatus indexed by a Key of the first 802.1 frame based on a location of the apparatus in an 802.1CB network; the Key of the first 802.1 frame at least comprises a combination of the VLAN ID of the first 802.1 frame and a source MAC or a destination MAC.
3. The apparatus of claim 2, wherein the message forwarding subsystem comprises:
a flow identification module for determining a flow ID of the first 802.1 frame based on a Key of the first 802.1 frame;
a frame mark determining module, configured to query an entry corresponding to the flow ID from the forwarding control table based on the Key of the first 802.1 frame, and determine the Key as a relevant mark in an 802.1CB frame mark of the first 802.1 frame;
a frame elimination module, configured to delete a second 802.1 frame in the first 802.1 frame when a frame elimination enable flag in the 802.1CB frame flag is valid; the second 802.1 frame is a non-first arriving frame of the first 802.1 frames having the same stream ID and the same 802.1CB frame number.
4. The apparatus of claim 3, wherein the queue management subsystem comprises:
The flow control module is used for determining flow control information of the first 802.1 frame based on the flow ID of the first 802.1 frame and implementing flow control according to the flow control information;
the stream copying module is used for determining a forwarding port and control information of the forwarding port based on the stream ID of the first 802.1 frame, copying the first 802.1 frame to each forwarding port and sending the port control information to the message editing system;
a generating module, configured to generate a flag of the 802.1CB protocol of the first 802.1 frame based on the protocol flag start flag when a start flag in the 802.1CB frame flag is valid; the flag of the 802.1CB frame includes an 802.1CB frame number.
5. The apparatus of claim 4, wherein the message editing subsystem comprises:
a frame editing module, configured to insert a flag of the 802.1CB protocol for the first 802.1 frame when a start flag in the 802.1CB frame flag is valid; or a flag for deleting the 802.1CB protocol from the first 802.1 frame when the end point flag is valid;
and the port adaptation module is used for carrying out transmission adaptation on the first 802.1 frame based on the forwarding port thereof so as to send the first 802.1 frame outwards.
6. The apparatus of claim 3 wherein said message forwarding subsystem further comprises a frame tag first encapsulation module for encapsulating a flow ID of said first 802.1 frame and a start tag, an end tag, and a frame sequence number start tag in said 802.1CB frame tag in a frame tag first control block for transmission to said queue management subsystem.
7. The apparatus of claim 4, wherein the queue management subsystem further comprises a frame tag second encapsulation module for encapsulating the tag of the 802.1CB protocol of the first 802.1 frame, the stream ID, and the start and end tags of the 802.1CB frame tag in a frame tag second control block for transmission to the message editing subsystem when the start tag of the 802.1CB frame tag is valid.
8. The apparatus of any one of claims 3 to 5, wherein when the end node of the 802.1CB network in which the apparatus is located is an 802.1CB protocol proxy node of an external second destination node and the end node does not have a MAC replacement function,
the table item configuration subsystem is further used for configuring MAC replacement enabling marks in the table items of the forwarding control table of the device;
the frame mark determining module is further configured to query a MAC replacement enabling mark in a corresponding entry from the forwarding control table based on the Key of the first 802.1 frame, and determine the MAC replacement enabling mark as the MAC replacement enabling mark of the first 802.1 frame;
the queue management subsystem further includes a DMAC information determination module for determining DMAC information for the second destination node based on a stream ID of the first 802.1 frame when the MAC replacement enable flag is valid; the DMAC information at least comprises the MAC address of the second destination node, the flow priority of the transmission message and the VLAN reaching the second destination node;
The message editing subsystem further comprises a DMAC information replacing module, which is used for replacing corresponding information in the first 802.1 frame with the DMAC information when the MAC replacement enabling mark is valid.
9. The apparatus of claim 8, wherein the queue management subsystem further comprises a frame tag third encapsulation module for encapsulating DMAC information of the second destination node, the stream ID, and start and end tags in the 802.1CB frame tag in a frame tag second control block for transmission to the message editing subsystem when the MAC replacement enable flag is active.
10. A chip implementing the 802.1CB protocol, comprising the apparatus of any of claims 1 to 9.
CN202110185268.7A 2021-02-10 2021-02-10 Device and chip for realizing 802.1CB protocol Active CN112866143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110185268.7A CN112866143B (en) 2021-02-10 2021-02-10 Device and chip for realizing 802.1CB protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110185268.7A CN112866143B (en) 2021-02-10 2021-02-10 Device and chip for realizing 802.1CB protocol

Publications (2)

Publication Number Publication Date
CN112866143A CN112866143A (en) 2021-05-28
CN112866143B true CN112866143B (en) 2023-10-10

Family

ID=75989847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110185268.7A Active CN112866143B (en) 2021-02-10 2021-02-10 Device and chip for realizing 802.1CB protocol

Country Status (1)

Country Link
CN (1) CN112866143B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553789B (en) * 2022-02-24 2023-12-12 昆高新芯微电子(江苏)有限公司 Method and system for realizing TSN Qci flow filtering function in direct forwarding mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722370A (en) * 2012-05-24 2012-10-10 南京华设科技股份有限公司 Modular development method for Android
CN108965171A (en) * 2018-07-19 2018-12-07 重庆邮电大学 Industrial wireless WIA-PA network and time-sensitive network conversion method and device
CN109391531A (en) * 2017-08-04 2019-02-26 Tttech 电脑技术股份公司 The method and computer network of fault-tolerant message transmission in computer network
CN111651140A (en) * 2020-04-28 2020-09-11 平安医疗健康管理股份有限公司 Service method and device based on workflow
US10862802B1 (en) * 2018-04-09 2020-12-08 Xilinx, Inc. Systems and methods for frame lookup and forwarding in a network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10892972B2 (en) * 2017-04-26 2021-01-12 Microsemi Storage Solutions, Inc. Scheduled network setup test method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722370A (en) * 2012-05-24 2012-10-10 南京华设科技股份有限公司 Modular development method for Android
CN109391531A (en) * 2017-08-04 2019-02-26 Tttech 电脑技术股份公司 The method and computer network of fault-tolerant message transmission in computer network
US10862802B1 (en) * 2018-04-09 2020-12-08 Xilinx, Inc. Systems and methods for frame lookup and forwarding in a network
CN108965171A (en) * 2018-07-19 2018-12-07 重庆邮电大学 Industrial wireless WIA-PA network and time-sensitive network conversion method and device
CN111651140A (en) * 2020-04-28 2020-09-11 平安医疗健康管理股份有限公司 Service method and device based on workflow

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Challenges and Limitations of IEEE 802.1CB-2017;Robin Hofmann等;《IEEE EMBEDDED SYSTEMS LETTERS》;20201231;第12卷(第4期);第105-108页 *

Also Published As

Publication number Publication date
CN112866143A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN107005462B (en) Method, equipment and system for forwarding data in software defined network
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
CN101072162B (en) Forwarding table minimization in Ethernet switch
CN112615778B (en) Message forwarding method, device, router, storage medium and system
CN101692646B (en) Method for handling layer-2 forwarding and distributed device
EP2533475B1 (en) Method and system for host route reachability in packet transport network access ring
US7974192B2 (en) Multicast switching in a distributed communication system
US20040008694A1 (en) Method for implementing router interface backup with virtual router redundancy protocol
EP3069471B1 (en) Optimized multicast routing in a clos-like network
CN100417141C (en) Group broadcasting business realizing method
EP1841111B1 (en) RPR ring network, communication device and method.
JP2005073230A (en) Network switching apparatus and path management server, network interface apparatus, control method for them, computer program for path management server and computer readable storage medium
JP6627964B2 (en) SDN-based ARP implementation method and apparatus
CN103401773A (en) Method and network equipment realizing interboard communication
CN107911297A (en) A kind of SDN network band control Path Setup method and apparatus
CN107864099A (en) A kind of flow control methods and system of isomery FC networks
KR101786620B1 (en) Method, apparatus and computer program for subnetting of software defined network
CN112866143B (en) Device and chip for realizing 802.1CB protocol
CN112822097A (en) Message forwarding method, first network device and first device group
WO2005104449A1 (en) A method and system for transporting ethernet network services in the rpr network.
US20110222541A1 (en) Network System, Edge Node, and Relay Node
WO2024001701A1 (en) Data processing method, apparatus and system
CN113973020A (en) Method, device and system for sending multicast message
US20120250683A1 (en) Method and System for Avoiding Flooding of Packets in Switches
JP2005151025A (en) Extended relay system and relaying apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant