CN112866143B - A device and chip that implements the 802.1CB protocol - Google Patents
A device and chip that implements the 802.1CB protocol Download PDFInfo
- 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
- mark
- flow
- flag
- 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
Links
- 230000008030 elimination Effects 0.000 claims abstract description 57
- 238000003379 elimination reaction Methods 0.000 claims abstract description 57
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 claims description 49
- 230000006978 adaptation Effects 0.000 claims description 41
- 238000005538 encapsulation Methods 0.000 claims description 22
- 230000005540 biological transmission Effects 0.000 claims description 15
- 230000010076 replication Effects 0.000 claims description 12
- 238000012423 maintenance Methods 0.000 abstract description 15
- 238000012217 deletion Methods 0.000 abstract description 2
- 230000037430 deletion Effects 0.000 abstract description 2
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2483—Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet 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
本发明提供了一种实现802.1CB协议的装置及芯片,所述装置包括:报文转发子系统,用于确定所接收的第一802.1帧的流ID和802.1CB帧标记;还用于基于所述802.1CB帧标记使能冗余帧的消除;队列管理子系统,用于基于所述流ID对所述第一802.1帧进行流控;还用于基于所述流ID向多个转发端口复制所述第一802.1帧;还用于基于所述802.1CB帧标记使能并控制生成所述第一802.1帧的802.1CB协议的标记;报文编辑子系统,用于基于所述802.1CB帧标记使能并控制对所述第一802.1帧添加或删除802.1CB协议的标记;还用于对所述第一802.1帧基于转发端口进行适配,以向外发送。本发明所述装置及芯片灵活的实现802.1CB协议的流识别、流复制和帧消除功能,以降低实现的复杂度、灵活应对多样的应用场景、减低维护复杂度。
The invention provides a device and a chip for implementing the 802.1CB protocol. The device includes: a message forwarding subsystem for determining the stream ID and 802.1CB frame mark of the received first 802.1 frame; The 802.1CB frame marking enables the elimination of redundant frames; the queue management subsystem is used to perform flow control on the first 802.1 frame based on the flow ID; and is also used to copy to multiple forwarding ports based on the flow ID The first 802.1 frame; is also used to enable and control the generation of a mark of the 802.1CB protocol of the first 802.1 frame based on the 802.1CB frame mark; a message editing subsystem, used to mark based on the 802.1CB frame Enable and control the addition or deletion of the mark of the 802.1CB protocol to the first 802.1 frame; and also be used to adapt the first 802.1 frame based on the forwarding port to send it out. The device and chip of the present invention can flexibly realize the flow identification, flow copy and frame elimination functions of the 802.1CB protocol, so as to reduce the complexity of implementation, flexibly cope with various application scenarios, and reduce the complexity of maintenance.
Description
技术领域Technical field
本发明涉及数字通信领域,尤其涉及实现802.1CB协议的装置及芯片领域。The present invention relates to the field of digital communications, and in particular to the field of devices and chips that implement the 802.1CB protocol.
背景技术Background technique
当前数字通信中,在用交换机实现802.1CB协议时,一般采用由专门模块集中实现的方式。即将802.1CB规定的流识别、流复制和流消除等功能集成在一起实现。这种方式虽然代码集中度高,但会大大增加实现的复杂度,并且由于代码耦合性过强,在应对多样的应用场景时不够灵活。此外,该模块与整个交换机各个模块之间都要有交互,由于功能的集成,导致该模块接口信号数量巨大,维护复杂度高。In current digital communications, when using switches to implement the 802.1CB protocol, it is generally implemented centrally by specialized modules. That is, the functions of flow identification, flow duplication, and flow elimination specified by 802.1CB are integrated and implemented. Although this method has high code concentration, it will greatly increase the complexity of the implementation, and because the code coupling is too strong, it is not flexible enough to deal with various application scenarios. In addition, this module must interact with each module of the entire switch. Due to the integration of functions, the number of interface signals of this module is huge and the maintenance complexity is high.
因此,如何能够更灵活的实现802.1CB规定的流识别、流复制和帧消除等功能,以降低实现的复杂度、灵活应对多样的应用场景、减低维护复杂度,是有待解决的技术问题。Therefore, how to more flexibly implement the functions of flow identification, flow duplication, and frame elimination specified by 802.1CB, so as to reduce the complexity of implementation, flexibly respond to various application scenarios, and reduce maintenance complexity, is a technical problem that needs to be solved.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种实现802.1CB协议的装置及芯片,基于一种灵活配置的多模块方式,以降低实现的复杂度、灵活应对多样的应用场景、减低维护复杂度。In view of this, embodiments of the present invention provide a device and a chip for implementing the 802.1CB protocol, which are based on a flexible configuration of multi-module methods to reduce implementation complexity, flexibly respond to diverse application scenarios, and reduce maintenance complexity.
第一方面,本发明实施例提供了一种实现802.1CB协议的装置,其特征在于,包括:In a first aspect, an embodiment of the present invention provides a device for implementing the 802.1CB protocol, which is characterized by including:
报文转发子系统,用于确定所接收的第一802.1帧的流ID和802.1CB帧标记;还用于基于所述802.1CB帧标记使能冗余帧的消除;队列管理子系统,用于基于所述流ID对所述第一802.1帧进行流控;还用于基于所述流ID向多个转发端口复制所述第一802.1帧;还用于基于所述802.1CB帧标记使能并控制生成所述第一802.1帧的802.1CB协议的标记;报文编辑子系统,用于基于所述802.1CB帧标记使能并控制对所述第一802.1帧添加或删除802.1CB协议的标记;还用于对所述第一802.1帧基于转发端口进行适配,以向外发送。The message forwarding subsystem is used to determine the flow ID and 802.1CB frame mark of the received first 802.1 frame; it is also used to enable the elimination of redundant frames based on the 802.1CB frame mark; the queue management subsystem is used to Perform flow control on the first 802.1 frame based on the flow ID; also be configured to copy the first 802.1 frame to multiple forwarding ports based on the flow ID; and be further configured to enable and Control the generation of the mark of the 802.1CB protocol of the first 802.1 frame; the message editing subsystem is used to enable and control the addition or deletion of the mark of the 802.1CB protocol to the first 802.1 frame based on the mark of the 802.1CB frame; It is also used to adapt the first 802.1 frame based on the forwarding port to send it out.
由上,通过上述装置在单个装置实现802.1CB无缝冗余传输和流控,二者共用所述流ID,两个功能间接口简单,实现方便。From the above, the above device realizes 802.1CB seamless redundant transmission and flow control in a single device. The two share the flow ID, and the interface between the two functions is simple and easy to implement.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述装置还包括表项配置子系统,用于基于所述装置在802.1CB网络中的位置,在所述装置的转发控制表中配置以所述第一802.1帧的Key为索引的表项,所述表项包括所述流ID和所述802.1CB帧标记,所述802.1CB帧标记包括以下标记中的一个或多个:起点标记、终点标记、帧消除使能标记和协议标记启动标记;所述第一802.1帧的Key中至少包括所述第一802.1帧的VLANID与源MAC或目的MAC的组合。In a possible implementation of the device for implementing the 802.1CB protocol in the first aspect, the device further includes an entry configuration subsystem for determining the location of the device based on the location of the device in the 802.1CB network. The forwarding control table is configured with an entry indexed by the Key of the first 802.1 frame. The entry includes the flow ID and the 802.1CB frame tag. The 802.1CB frame tag includes one of the following tags. or more: a start tag, an end tag, a frame elimination enable tag and a protocol tag start tag; the Key of the first 802.1 frame at least includes a combination of the VLANID of the first 802.1 frame and the source MAC or destination MAC.
由上,使用上述装置,通过基于所述装置在802.1CB网络中的位置设置的各标记,控制所述装置的各个子系统工作,从而灵活适配多种场景,相对于一种配置方式的装置,降低了所述装置的实现和维护的复杂度。From the above, the above device is used to control the operation of each subsystem of the device through each tag set based on the position of the device in the 802.1CB network, thereby flexibly adapting to multiple scenarios. Compared with a device with one configuration mode , reducing the complexity of implementation and maintenance of the device.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述报文转发子系统包括:流识别模块,用于基于所述第一802.1帧的Key确定所述第一802.1帧的流ID帧标记确定模块,用于基于所述第一802.1帧的Key从所述转发控制表中查询所述流ID对应的表项,确定为所述第一802.1帧的802.1CB帧标记中的相关标记;帧消除模块,用于当所述802.1CB帧标记中的帧消除使能标记有效时,删除所述第一802.1帧中的第二802.1帧;所述第二802.1帧为具有相同的所述流ID和相同802.1CB帧序号的所述第一802.1帧中非最先达到的帧。In a possible implementation of a device for implementing the 802.1CB protocol in the first aspect, the message forwarding subsystem includes: a flow identification module configured to determine the first 802.1 frame based on the Key of the first 802.1 frame. The flow ID frame mark determination module of the 802.1 frame is configured to query the entry corresponding to the flow ID from the forwarding control table based on the Key of the first 802.1 frame, and determine it to be the 802.1CB frame of the first 802.1 frame. a relevant tag in the tag; a frame elimination module, configured to delete the second 802.1 frame in the first 802.1 frame when the frame elimination enable tag in the 802.1CB frame tag is valid; the second 802.1 frame is A frame that is not the first to arrive among the first 802.1 frames with the same flow ID and the same 802.1CB frame sequence number.
由上,使用上述装置,通过基于所述装置在802.1CB网络中的位置设置的各标记,控制所述装置的所述报文转发子系统的各个模块工作,从而灵活适配多种场景,相对于一种配置方式的装置,降低了所述装置的实现和维护的复杂度。From the above, the above device is used to control the work of each module of the message forwarding subsystem of the device through each tag set based on the position of the device in the 802.1CB network, thereby flexibly adapting to various scenarios, relatively The device is configured in one configuration, which reduces the complexity of implementation and maintenance of the device.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述队列管理子系统包括:流控模块,用于基于所述第一802.1帧的流ID确定其流控信息,并据此实施流控;流复制模块,用于基于所述第一802.1帧的流ID确定其转发端口和转发端口的控制信息,并向各所述转发端口复制所述第一802.1帧,向所述报文编辑系统发送所述端口控制信息;生成模块,用于当所述802.1CB帧标记中的起点标记有效时,基于所述协议标记启动标记生成所述第一802.1帧的所述802.1CB协议的标记;所述802.1CB帧的标记包括802.1CB帧序号。In a possible implementation of the device for implementing the 802.1CB protocol of the first aspect, the queue management subsystem includes: a flow control module configured to determine its flow control information based on the flow ID of the first 802.1 frame. , and implement flow control accordingly; a flow copy module, configured to determine its forwarding port and the control information of the forwarding port based on the flow ID of the first 802.1 frame, and copy the first 802.1 frame to each of the forwarding ports, Send the port control information to the message editing system; a generating module configured to generate the first 802.1 frame based on the protocol mark start mark when the starting point mark in the 802.1CB frame mark is valid. The mark of the 802.1CB protocol; the mark of the 802.1CB frame includes the 802.1CB frame sequence number.
由上,使用上述装置,通过基于所述装置在802.1CB网络中的位置设置的各标记,控制所述装置的所述队列管理子系统的各个模块工作,从而灵活适配多种场景,相对于一种配置方式的装置,降低了所述装置的实现和维护的复杂度。From the above, the above device is used to control the work of each module of the queue management subsystem of the device through each tag set based on the position of the device in the 802.1CB network, thereby flexibly adapting to various scenarios. A configuration mode device reduces the complexity of implementation and maintenance of the device.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述报文编辑子系统包括:帧编辑模块,用于当所述802.1CB帧标记中的起点标记有效时,为所述第一802.1帧插入所述802.1CB协议的标记;或用于当所述终点标记有效时,从所述第一802.1帧中删除所述802.1CB协议的标记;端口适配模块,用于对所述第一802.1帧基于其转发端口进行传输适配,以向外发送。In a possible implementation of the device for implementing the 802.1CB protocol in the first aspect, the message editing subsystem includes: a frame editing module, configured to when the starting point mark in the 802.1CB frame mark is valid, Insert the mark of the 802.1CB protocol into the first 802.1 frame; or be used to delete the mark of the 802.1CB protocol from the first 802.1 frame when the end point mark is valid; a port adaptation module, used Transmission adaptation is performed on the first 802.1 frame based on its forwarding port for sending out.
由上,使用上述装置,通过基于所述装置在802.1CB网络中的位置设置的各标记,控制所述装置的所述报文编辑子系统的各个模块工作,从而灵活适配多种场景,相对于一种配置方式的装置,降低了所述装置的实现和维护的复杂度。From the above, the above device is used to control the work of each module of the message editing subsystem of the device through each mark set based on the position of the device in the 802.1CB network, thereby flexibly adapting to various scenarios, relatively The device is configured in one configuration, which reduces the complexity of implementation and maintenance of the device.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述报文转发子系统还包括帧标记第一封装模块,用于把所述第一802.1帧的流ID及802.1CB帧标记中的起点标记、终点标记和帧序号启动标记封装在帧标记第一控制块中,以向所述队列管理子系统发送。In a possible implementation of the device for implementing the 802.1CB protocol of the first aspect, the message forwarding subsystem further includes a frame marking first encapsulation module for converting the stream ID of the first 802.1 frame and The start tag, end tag and frame sequence number start tag in the 802.1CB frame tag are encapsulated in the first control block of the frame tag to be sent to the queue management subsystem.
由上,所述帧标记封装在所述帧标记第一控制块中,便于在多种场景下使用相同的控制块传递,接口简单。From the above, the frame mark is encapsulated in the first control block of the frame mark, which facilitates transmission using the same control block in multiple scenarios and has a simple interface.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述队列管理子系统还包括帧标记第二封装模块,用于当所述802.1CB帧标记中的起点标记有效时,把所述第一802.1帧的802.1CB协议的标记、所述流ID及所述802.1CB帧标记中的起点标记和终点标记封装在帧标记第二控制块中,以向所述报文编辑子系统发送。In a possible implementation of the device for implementing the 802.1CB protocol in the first aspect, the queue management subsystem further includes a frame mark second encapsulation module, which is used when the start mark in the 802.1CB frame mark is valid. When the mark of the 802.1CB protocol of the first 802.1 frame, the flow ID and the start mark and the end mark in the 802.1CB frame mark are encapsulated in the second control block of the frame mark, so as to forward the message to the message. Edit subsystem sends.
由上,当所述802.1CB帧标记中的起点标记有效时,在帧标记第二控制块中增加802.1CB帧协议标记,便于在模块之间传递,接口简单。From the above, when the starting point mark in the 802.1CB frame mark is valid, the 802.1CB frame protocol mark is added to the second control block of the frame mark to facilitate transmission between modules and to simplify the interface.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述装置所在的802.1CB网络的终点节点为外部第二目的节点的802.1CB协议代理节点、且所述终点节点不具有MAC替换功能时,所述表项配置子系统还用于在所述装置的转发控制表的表项中配置MAC替换使能标记;所述帧标记确定模块还用于基于所述第一802.1帧的Key从所述转发控制表中查询所述流ID对应的表项中的MAC替换使能标记,确定为所述第一802.1帧的MAC替换使能标记;所述队列管理子系统还包括DMAC信息确定模块,用于当所述MAC替换使能标记有效时,基于所述第一802.1帧的流ID确定所述第二目的节点的DMAC信息;所述DMAC信息至少包括所述第二目的节点的MAC地址、传输报文的流优先级和到达所述第二目的节点的VLAN;所述报文编辑子系统还包括DMAC信息替换模块,用于当所述MAC替换使能标记有效时,用所述DMAC信息替换第一802.1帧中相应的信息。In a possible implementation of a device for implementing the 802.1CB protocol in the first aspect, the end node of the 802.1CB network where the device is located is an 802.1CB protocol proxy node of an external second destination node, and the end node When the MAC replacement function is not provided, the entry configuration subsystem is also configured to configure a MAC replacement enable flag in the entry of the forwarding control table of the device; the frame mark determination module is also configured to configure the MAC replacement enable flag based on the first The Key of the 802.1 frame queries the MAC replacement enable flag in the entry corresponding to the flow ID from the forwarding control table and determines it to be the MAC replacement enable flag of the first 802.1 frame; the queue management subsystem also A DMAC information determination module is included, configured to determine the DMAC information of the second destination node based on the flow ID of the first 802.1 frame when the MAC replacement enable flag is valid; the DMAC information at least includes the second The MAC address of the destination node, the flow priority of the transmitted message and the VLAN arriving at the second destination node; the message editing subsystem also includes a DMAC information replacement module, used when the MAC replacement enable flag is valid , replacing the corresponding information in the first 802.1 frame with the DMAC information.
由上,使用上述装置,通过基于所述装置在802.1CB网络中的位置设置的MAC替换标记,从而灵活适配802.1CB协议代理的多种场景,相对于一种配置方式的装置,降低了所述装置的实现和维护的复杂度。From the above, using the above device, the MAC replacement tag is set based on the position of the device in the 802.1CB network, thereby flexibly adapting to various scenarios of the 802.1CB protocol proxy. Compared with a device with one configuration mode, all costs are reduced. The complexity of implementation and maintenance of the described device.
在第一方面的一种实现802.1CB协议的装置的一种可能实施方式中,所述队列管理子系统还包括帧标记第三封装模块,用于当所述MAC替换使能标记有效时,把所述第二目的节点的DMAC信息、所述流ID及所述802.1CB帧标记中的起点标记和终点标记封装在帧标记第二控制块中,以向所述报文编辑子系统发送。In a possible implementation of the device for implementing the 802.1CB protocol of the first aspect, the queue management subsystem further includes a third frame mark encapsulation module, configured to encapsulate the frame when the MAC replacement enable mark is valid. The DMAC information of the second destination node, the flow ID, and the start tag and end tag in the 802.1CB frame mark are encapsulated in the second control block of the frame mark to be sent to the message editing subsystem.
由上,当所述MAC替换使能标记有效时,在帧标记第二控制块中增加所述第二目的节点的DMAC信息,便于在模块之间传递,接口简单。From the above, when the MAC replacement enable flag is valid, the DMAC information of the second destination node is added to the second control block of the frame mark, which facilitates transmission between modules and has a simple interface.
第二方面,本发明实施例一种实现802.1CB协议的芯片,具有包括第一方面所述装置的任一模块。In the second aspect, an embodiment of the present invention is a chip that implements the 802.1CB protocol, having any module including the device described in the first aspect.
由上,在所述芯片上实现802.1CB的流识别、帧消除、流复制与流控及802.1CB功能代理的兼顾,支持基于实际所述装置的节点位置的灵活配置,降低芯片实现和维护复杂度。From the above, the chip realizes the flow identification, frame elimination, flow replication and flow control of 802.1CB as well as the 802.1CB function agent on the chip, supports flexible configuration based on the actual node location of the device, and reduces the complexity of chip implementation and maintenance. Spend.
附图说明Description of the drawings
图1为本发明的一种实现802.1CB协议的装置实施例一的结构示意图;Figure 1 is a schematic structural diagram of Embodiment 1 of a device for implementing the 802.1CB protocol of the present invention;
图2A为本发明的一种实现802.1CB协议的装置实施例二应用的网络结构示意图;Figure 2A is a schematic diagram of the network structure used in the second embodiment of a device for implementing the 802.1CB protocol of the present invention;
图2B为本发明的一种实现802.1CB协议的装置实施例二的结构示意图;Figure 2B is a schematic structural diagram of Embodiment 2 of a device for implementing the 802.1CB protocol of the present invention;
图3为本发明的一种实现802.1CB协议的装置实施例二的具体实施方式的结构示意图。Figure 3 is a schematic structural diagram of a specific implementation mode of Embodiment 2 of a device for implementing the 802.1CB protocol of the present invention.
具体实施方式Detailed ways
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.
在以下的描述中,所涉及的术语“第一\第二\第三等”或模块A、模块B、模块C等,仅用于区别类似的对象,或用于区别不同的实施例,不代表针对对象的特定排序,可以理解地,在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本发明实施例能够以除了在这里图示或描述的以外的顺序实施。In the following description, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects or to distinguish different embodiments. Representing a specific ordering of objects, it will be understood that the specific order or sequence may be interchanged where permitted so that the embodiments of the invention described herein can be practiced in other than as illustrated or described herein.
在以下的描述中,所涉及的表示步骤的标号,如S110、S120……等,并不表示一定会按此步骤执行,在允许的情况下可以互换前后步骤的顺序,或同时执行。In the following description, the labels indicating steps involved, such as S110, S120, etc., do not necessarily mean that this step will be executed. If permitted, the order of the preceding and following steps can be interchanged, or executed at the same time.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本发明实施例的目的,不是旨在限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which the invention belongs. The terminology used herein is for the purpose of describing embodiments of the present invention only and is not intended to limit the present invention.
本发明实施例主要用于时间敏感网络TSN,对相关术语进行简单介绍。The embodiment of the present invention is mainly used in time-sensitive network TSN, and related terms are briefly introduced.
TSN,TSN(Time Sensitive Networking,时间敏感网络)指的是在IEEE802.1标准框架下,基于特定应用需求制定的一组“子标准”,旨在为以太网协议建立“通用”的时间敏感机制,以确保网络数据传输的时间确定性。由于TSN为隶属于IEEE802.1下的协议标准,因此TSN是关于以太网通讯协议模型中的第二层,也就是数据链路层(更确切的说是MAC层)的协议标准。TSN标准所涉及到的主要技术内容包括:TSN (Time Sensitive Networking) refers to a set of "sub-standards" developed based on specific application requirements under the IEEE802.1 standard framework, aiming to establish a "universal" time-sensitive mechanism for the Ethernet protocol. , to ensure the time determinism of network data transmission. Since TSN is a protocol standard under IEEE802.1, TSN is a protocol standard for the second layer in the Ethernet communication protocol model, which is the data link layer (more specifically, the MAC layer). The main technical contents involved in the TSN standard include:
802.1CB,是可靠性的流复制和帧消除的标准,是针对流复制和帧消除,用来提升网络可靠性。该标准确保关键流的复本在网络中能以不相交集的路径进行传送,且只保留首先到达目的地的封包,从而实现无缝冗余。802.1CB is a standard for reliable flow replication and frame elimination. It is used to improve network reliability for flow replication and frame elimination. This standard ensures that copies of critical flows can be transmitted in disjoint sets of paths in the network, and only the packets that arrive at the destination first are retained, thereby achieving seamless redundancy.
802.1QCI,是流过滤与监控的标准,也称为流量控制标准,用于避免流量过载的情况(流量过载的情况可能由于端点或交换机上的软件错误导致)影响接收节点,流量控制也可用于阻挡恶意的网络攻击。802.1QCI is a standard for flow filtering and monitoring, also called a flow control standard. It is used to avoid traffic overload (which may be caused by software errors on endpoints or switches) affecting the receiving node. Flow control can also be used Block malicious cyber attacks.
ACL,ACL(Access Control Lists,访问控制列表)是一种基于包过滤的访问控制技术,它可以根据设定的条件对接口上的数据包进行过滤,允许其通过或丢弃。访问控制列表被广泛地应用于路由器和三层交换机,借助于访问控制列表,可以有效地控制用户对网络的访问,从而最大程度地保障网络安全。ACL, ACL (Access Control Lists, Access Control List) is an access control technology based on packet filtering. It can filter data packets on the interface according to set conditions, allowing them to pass or discard them. Access control lists are widely used in routers and Layer 3 switches. With the help of access control lists, users' access to the network can be effectively controlled, thus ensuring network security to the greatest extent.
802.1流和802.1帧,源MAC和目的MAC均相同的802.1帧则属于同一个802.1流,有共同的流ID。For 802.1 flows and 802.1 frames, 802.1 frames with the same source MAC and destination MAC belong to the same 802.1 flow and have a common flow ID.
802.1CB帧,是一种具有802.1CB协议标记的802.1帧,802.1CB协议标记为802.1CB帧序号,802.1CB帧序号相同非第一个到达的802.1CB帧是冗余的802.1CB帧。The 802.1CB frame is an 802.1 frame with an 802.1CB protocol mark. The 802.1CB protocol mark is the 802.1CB frame sequence number. The 802.1CB frame with the same 802.1CB frame sequence number but not the first to arrive is a redundant 802.1CB frame.
下面结合图1至图3介绍本发明的一种实现802.1CB协议的各装置实施例。The following is an introduction to each device embodiment of the present invention for implementing the 802.1CB protocol with reference to Figures 1 to 3.
【一种实现802.1CB协议的装置实施例一】[Embodiment 1 of a device for implementing the 802.1CB protocol]
图1示出了一种实现802.1CB协议的装置实施例一的结构,其包括报文转发子系统100、队列管理子系统200、报文编辑子系统300和表项配置子系统400。Figure 1 shows the structure of Embodiment 1 of a device for implementing the 802.1CB protocol, which includes a message forwarding subsystem 100, a queue management subsystem 200, a message editing subsystem 300 and an entry configuration subsystem 400.
其中,报文转发子系统100、队列管理子系统200和报文编辑子系统300是所述装置实现802.1CB协议的具体子系统,表项配置子系统400基于所述装置在802.1CB网络中各802.1帧的表项,所述表项用于控制报文转发子系统100、队列管理子系统200或报文编辑子系统300的工作,以实现802.1CB协议的功能。Among them, the message forwarding subsystem 100, the queue management subsystem 200 and the message editing subsystem 300 are specific subsystems for the device to implement the 802.1CB protocol. The table configuration subsystem 400 is based on the device's respective configuration in the 802.1CB network. The table entry of the 802.1 frame is used to control the work of the message forwarding subsystem 100, the queue management subsystem 200, or the message editing subsystem 300 to implement the functions of the 802.1CB protocol.
下面继续结合图1分别介绍各个子系统。Next, we will continue to introduce each subsystem separately in conjunction with Figure 1.
表项配置子系统400,用于基于所述装置在802.1CB网络中的位置,在所述装置的转发控制表中配置以802.1帧的Key为索引的表项,所述表项包括802.1帧的流ID和802.1CB帧标记,所述802.1CB帧标记包括以下标记中的一个或多个:起点标记、终点标记、帧消除使能标记和协议标记启动标记;所述Key中至少包括所述第一802.1帧的VLAN ID与源MAC或目的MAC的组合。The entry configuration subsystem 400 is configured to configure an entry indexed by the Key of the 802.1 frame in the forwarding control table of the device based on the location of the device in the 802.1CB network. The entry includes the Key of the 802.1 frame. Flow ID and 802.1CB frame mark, the 802.1CB frame mark includes one or more of the following marks: start mark, end mark, frame elimination enable mark and protocol mark start mark; the Key includes at least the first A combination of the VLAN ID and the source MAC or destination MAC of an 802.1 frame.
其中,当所述装置为所述802.1CB网络的起点节点时,所述表项的起点标记和终点标记分别设置为1和0。Wherein, when the device is the start node of the 802.1CB network, the start tag and end tag of the entry are set to 1 and 0 respectively.
当所述装置为所述802.1CB网络的中间节点时,所述表项的起点标记和终点标记均设置为0。When the device is an intermediate node of the 802.1CB network, both the start tag and the end tag of the entry are set to 0.
当所述装置为所述802.1CB网络的终点节点时,所述表项的起点标记和终点标记分别设置为0和1。When the device is the end node of the 802.1CB network, the start tag and end tag of the entry are set to 0 and 1 respectively.
当所述装置在所述802.1CB网络中有多个节点后序相邻节点时,且所述装置从所述802.1CB网络的收到多个节点的第一802.1帧时,所述表项的帧消除使能标记设置为1,其他情况设置为0。When the device has multiple adjacent nodes in the 802.1CB network, and the device receives the first 802.1 frames of multiple nodes from the 802.1CB network, the entry of the entry The frame elimination enable flag is set to 1, otherwise it is set to 0.
当所述装置启动时,所述表项的协议标记启动标记被设置为1,其他情况则设置为0。When the device is started, the protocol flag start flag of the entry is set to 1, and is set to 0 in other cases.
示例地,本实施例设置各标记设置为1,表示该标记有效;设置为0,表示该标记无效。For example, in this embodiment, each flag is set to 1, indicating that the flag is valid; set to 0, indicating that the flag is invalid.
报文转发子系统100包括流识别模块110、帧标记确定模块120、帧消除模块130、转发模块140。The message forwarding subsystem 100 includes a flow identification module 110, a frame mark determination module 120, a frame elimination module 130, and a forwarding module 140.
流识别模块110用于基于所述第一802.1帧的Key确定所述第一802.1帧的流ID。The flow identification module 110 is configured to determine the flow ID of the first 802.1 frame based on the Key of the first 802.1 frame.
其中,当所述装置为所述802.1CB网络的中间节点或终点节点时,各所述第一802.1帧已经包含所述802.1CB帧序号的802.1帧,可以表示为802.1CB帧;当所述装置为802.1CB网络的起点节点时,各所述第一802.1帧未包含所述802.1CB帧序号,为标准的802.1帧。无论接收的是标准的802.1帧还是802.1CB帧,这里都统称第一802.1帧。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 the 802.1CB frame sequence number, which can be expressed as an 802.1CB frame; when the device When it is the starting node of the 802.1CB network, each first 802.1 frame does not include the 802.1CB frame sequence number and is a standard 802.1 frame. Regardless of whether a standard 802.1 frame or an 802.1CB frame is received, it is collectively referred to as the first 802.1 frame here.
可选地,所述Key中至少包括所述第一802.1帧的VLAN ID与源MAC的组合或目标MAC的组合,还可以下列一个或多个:包括源IP、目的IP、源Port和目的PortOptionally, the Key includes at least a combination of the VLAN ID of the first 802.1 frame and a source MAC or a combination of the destination MAC, and may also include one or more of the following: source IP, destination IP, source Port, and destination Port.
示例地,流识别模块110基于所述第一802.1帧的Key查询预先配置的转发控制表,获得其流ID。For example, the flow identification module 110 queries the preconfigured forwarding control table based on the Key of the first 802.1 frame to obtain its flow ID.
由上,基于上述模块确定的所述流ID,不仅可以802.1CB协议相关的流程使用,也可以被802.1QCI协议相关的流程使用,从而使所述装置不仅能处理802.1CB协议的操作,也能执行802.1QCI的流控操作。From the above, the flow ID determined based on the above module can not only be used by processes related to the 802.1CB protocol, but also can be used by processes related to the 802.1QCI protocol, so that the device can not only handle the operations of the 802.1CB protocol, but also Perform 802.1QCI flow control operations.
帧标记确定模块120用于基于所述第一802.1帧的Key从所述转发控制表中查询所述第一802.1帧的Key对应的表项中相关标记,确定为所述第一802.1帧的802.1CB帧标记中的相关标记。帧标记确定模块120还用于设置所述802.1CB帧标记中的协议标记启动标记。The frame mark determination module 120 is configured to query the relevant mark in the entry corresponding to the Key of the first 802.1 frame from the forwarding control table based on the Key of the first 802.1 frame, and determine it to be the 802.1 of the first 802.1 frame. Related tags in CB frame tags. The frame mark determination module 120 is also configured to set the protocol mark start flag in the 802.1CB frame mark.
其中,所述表项中相关标记的起点标记、终点标记、帧消除使能标记和协议标记启动标记分别确定为所述第一802.1帧的802.1CB帧标记中的相应的标记。所述协议标记启动标记又被表示为序号启动标记,在本实施例中,协议标记启动标记和序号启动标记含义相同,为了便于理解后文使用序号启动标记。Wherein, the start tag, end tag, frame elimination enable tag and protocol tag start tag of the relevant tags in the entry are respectively determined to be corresponding tags among the 802.1CB frame tags of the first 802.1 frame. The protocol mark startup flag is also represented as a sequence number startup flag. In this embodiment, the protocol mark startup flag and the sequence number startup flag have the same meaning. To facilitate understanding, the sequence number startup flag is used in the following.
其中,所述流ID对应的表项中的起点标记、终点标记和帧消除使能标记基于所述装置在所述802.1CB网络中位置进行不同的配置,因此所述第一802.1帧的802.1CB帧标记的起点标记、终点标记、序号启动标记和帧消除使能标记也基于所述装置在所述802.1CB网络中位置而确定。Wherein, the start tag, end tag and frame elimination enable tag in the entry corresponding to the flow ID are configured differently based on the location of the device in the 802.1CB network. Therefore, the 802.1CB of the first 802.1 frame The start mark, end mark, sequence number start mark and frame elimination enable mark of the frame mark are also determined based on the location of the device in the 802.1CB network.
其中,当所述装置为所述802.1CB网络的起点节点时,所述第一802.1CB帧的起点标记为1、终点标记为0;所述装置启动时的序号启动标记为1,其他情况下所述序号启动标记为0。Wherein, when the device is the starting node of the 802.1CB network, the starting point mark of the first 802.1CB frame is 1 and the end point mark is 0; the serial number startup mark when the device is started is 1, and in other cases The serial number startup flag is 0.
其中,当所述装置为802.1CB网络的终点节点时,所述第一802.1CB帧的起点标记为0,终点标记为1。Wherein, when the device is the end node of the 802.1CB network, the starting point of the first 802.1CB frame is marked as 0 and the end point is marked as 1.
其中,当所述装置为802.1CB网络的中间节点时,所述第一802.1CB帧的起点标记为0,终点标记为0。Wherein, when the device is an intermediate node of the 802.1CB network, the starting point of the first 802.1CB frame is marked as 0 and the end point is marked as 0.
其中,当所述装置在所述802.1CB网络中有多个节点后序相邻节点时,且所述装置从所述802.1CB网络的收到多个节点的第一802.1帧时,所述第一802.1CB帧的帧消除使能标记设置为1,其他情况设置为0。Wherein, when the device has multiple adjacent nodes in the 802.1CB network, and the device receives the first 802.1 frames of multiple nodes from the 802.1CB network, the first The frame erasure enable flag of an 802.1CB frame is set to 1 and set to 0 otherwise.
当所述装置启动时,所述第一802.1CB帧的协议标记启动标记被设置为1,其他情况则设置为0。When the device is started, the protocol flag start flag of the first 802.1CB frame is set to 1, and is set to 0 in other cases.
帧消除模块130用于当帧消除使能标记为1时,删除所述第一802.1帧中的第二802.1帧,所述第二802.1帧为具有相同的所述流ID和相同帧序号的所述第一802.1帧中非最先达到的帧。The frame elimination module 130 is configured to delete the second 802.1 frame in the first 802.1 frame when the frame elimination enable flag is 1. The second 802.1 frame is all the frames with the same flow ID and the same frame sequence number. The first 802.1 frame is not the first to arrive.
其中,当所述装置为所述802.1CB网络的起点节点或所述装置只收到一个节点的第一802.1帧时,帧消除使能标记无效。所述装置从所述802.1CB网络的收到多个节点的第一802.1帧时,帧消除使能标记有效,此时所述第一802.1帧是802.1CB帧。Wherein, when the device is the starting node of the 802.1CB network or the device only receives the first 802.1 frame from one node, the frame erasure enable flag is invalid. When the device receives the first 802.1 frames from multiple nodes in the 802.1CB network, the frame elimination enable flag is valid. At this time, the first 802.1 frame is an 802.1CB frame.
其中,帧消除模块130保留了具有相同的所述流ID和相同802.1CB帧序号的所述第一802.1帧中最先达到的帧,删除非最先达到的具有相同的所述流ID和相同802.1CB帧序号的所述第一802.1帧。Among them, the frame elimination module 130 retains the first arriving frame among the first 802.1 frames with the same flow ID and the same 802.1CB frame sequence number, and deletes the first arriving frame with the same flow ID and the same 802.1CB frame number. 802.1CB frame sequence number of the first 802.1 frame.
转发模块140用于基于所述第一802.1帧的目的MAC地址确定其转发端口和端口控制信息,并向所述转发端口交换所述第一802.1帧和端口控制信息。The forwarding module 140 is configured to determine its forwarding port and port control information based on the destination MAC address of the first 802.1 frame, and exchange the first 802.1 frame and port control information to the forwarding port.
其中,转发模块140基于交换机的转发端口与目的MAC地址的关系表,确定所述第一802.1帧的转发端口,并把所述第一802.1帧交换至所述转发端口,向报文编辑子系统300发送所述转发端口的端口控制信息。因为在本模块基于交换机的转发端口与目的MAC地址的关系表选择转发端口,是普通L2交换机的转发端口确定方式,只能查询到一个转发端口。当所述装置只有一个前序相邻节点,本模块可以替代后续的流复制模块220。Among them, the forwarding module 140 determines the forwarding port of the first 802.1 frame based on the relationship table between the forwarding port and the destination MAC address of the switch, switches the first 802.1 frame to the forwarding port, and reports it to the message editing subsystem. 300 sends the port control information of the forwarding port. Because the forwarding port is selected in this module based on the relationship table between the forwarding port of the switch and the destination MAC address, which is the forwarding port determination method of ordinary L2 switches, only one forwarding port can be queried. When the device has only one preceding neighbor node, this module can replace the subsequent stream copy module 220.
本模块一个应用特例是还用于在多个所述装置堆叠时,从其中一个装置向另一个装置转发所述第一802.1帧。A special application example of this module is to forward the first 802.1 frame from one device to another device when multiple devices are stacked.
其中,转发模块140对802.1标准帧和802.1CB帧均可以起作用。Among them, the forwarding module 140 can work on both 802.1 standard frames and 802.1CB frames.
队列管理子系统200包括QCI流控模块210、流复制模块220和帧序号生成模块230。The queue management subsystem 200 includes a QCI flow control module 210, a flow replication module 220, and a frame sequence number generation module 230.
QCI流控模块210用于基于所述第一802.1帧的ID确定其流控信息,并对其实施流控。The QCI flow control module 210 is configured to determine the flow control information of the first 802.1 frame based on its ID, and implement flow control on it.
其中,基于所述第一802.1帧的ID查询提前配置的流索引表,确定所述第一802.1帧的QCI流控信息,包括在过载的情况是否允许排队、是否允许抢占其他流的资源、是允许被别的流抢占本身的资源等。所述流索引表记录所述流ID和其对应的QCI流控信息及转发端口。Among them, the flow index table configured in advance is queried based on the ID of the first 802.1 frame, and the QCI flow control information of the first 802.1 frame is determined, including whether queuing is allowed in the case of overload, whether resources of other flows are allowed to be preempted, and whether Allow other streams to preempt its own resources, etc. The flow index table records the flow ID and its corresponding QCI flow control information and forwarding port.
其中,QCI流控模块210对802.1标准帧和802.1CB帧均可以起作用。Among them, the QCI flow control module 210 can work on both 802.1 standard frames and 802.1CB frames.
由上,通过QCI流控模块210实现了在802.1CB协议的装置中同步实现了流控。From the above, the QCI flow control module 210 realizes flow control synchronously in the device of the 802.1CB protocol.
流复制模块220用于基于所述第一802.1帧的流ID确定其各转发端口和各转发端口的端口控制信息,并向各所述转发端口复制所述第一802.1帧,向报文编辑子系统300发送所述端口控制信息。The flow copy module 220 is configured to determine each forwarding port and the port control information of each forwarding port based on the flow ID of the first 802.1 frame, copy the first 802.1 frame to each forwarding port, and send the first 802.1 frame to the message editor. System 300 sends the port control information.
其中,当所述装置有多个前序相邻节点,本模块基于所述第一802.1CB帧的ID查询提前配置的所述流索引表,获取所述转发端口和所述端口控制信息,当存在多个所述转发端口,则进行相应数目的复制。Wherein, when the device has multiple pre-order neighboring nodes, this module queries the flow index table configured in advance based on the ID of the first 802.1CB frame to obtain the forwarding port and the port control information. If there are multiple forwarding ports, a corresponding number of copies will be made.
其中,所述终点标记为1或前序相邻节点只有1个节点时,流复制模块220不使能。Wherein, when the end point mark is 1 or there is only one preceding adjacent node, the stream copy module 220 is not enabled.
其中,流复制模块220对802.1标准帧和802.1CB帧均可以起作用。Among them, the stream copy module 220 can work on both 802.1 standard frames and 802.1CB frames.
帧序号生成模块230,用于基于所述802.1CB帧标记生成所述第一802.1帧的802.1CB协议的标记,802.1CB协议的标记包括802.1CB帧序号,在本实施例中802.1CB协议的标记只包括802.1CB帧序号,二者含义相同,为便于理解,本实施例使用802.1CB帧序号代替802.1CB协议的标记。The frame sequence number generation module 230 is configured to generate a mark of the 802.1CB protocol of the first 802.1 frame based on the 802.1CB frame mark. The mark of the 802.1CB protocol includes an 802.1CB frame sequence number. In this embodiment, the mark of the 802.1CB protocol Only the 802.1CB frame sequence number is included, and the two have the same meaning. To facilitate understanding, this embodiment uses the 802.1CB frame sequence number instead of the mark of the 802.1CB protocol.
其中,帧序号生成模块230对802.1标准帧进行802.1CB帧序号生成,此时所述第一802.B帧为802.1CB帧。The frame sequence number generation module 230 generates an 802.1CB frame sequence number for the 802.1 standard frame. At this time, the first 802.B frame is an 802.1CB frame.
其中,所述当所述第一802.B帧的所述起点标记为1时,即所述装置为起点节点,所述帧序号生成模块对于所述序号启动标记为1的所述第一802.1CB帧,设置其帧序号为0;对于所述序号启动标记为0的所述第一802.1CB帧,其帧序号加1递增。Wherein, when the starting point mark of the first 802.B frame is 1, that is, the device is a starting point node, and the frame sequence number generation module starts the first 802.1 with a mark of 1 for the sequence number. For a CB frame, its frame sequence number is set to 0; for the first 802.1CB frame whose sequence number start flag is 0, its frame sequence number is incremented by adding 1.
报文编辑子系统300包括帧编辑第一模块310、帧编辑第二模块320和端口适配模块330。The message editing subsystem 300 includes a first frame editing module 310 , a second frame editing module 320 and a port adaptation module 330 .
帧编辑第一模块310用于为所述第一802.1帧插入802.1CB帧序号,使第一802.1CB帧适合向其他802.1CB协议的节点发送。The first frame editing module 310 is used 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 other nodes of the 802.1CB protocol.
其中,当所述第一802.1帧的所述起点标记为1时,此时所述第一802.1帧为802.1标准帧,帧编辑第一模块310在该帧中插入802.1CB帧序号,作为为支持802.1CB协议的标记,此时所述第一802.1帧为802.1CB帧。Wherein, when the starting point mark of the first 802.1 frame is 1, the first 802.1 frame is an 802.1 standard frame, and the first frame editing module 310 inserts an 802.1CB frame sequence number into the frame as a support Mark of the 802.1CB protocol. At this time, the first 802.1 frame is an 802.1CB frame.
帧编辑第二模块320用于从第一802.1CB帧中删除802.1CB帧序号,使第一802.1CB帧适合向其他非802.1CB协议的节点发送。The second frame editing module 320 is used 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 non-802.1CB protocol nodes.
其中,当所述终点标记为1时,此时所述第一802.1帧为802.1CB帧,帧编辑第二模块320删除所述第一802.1帧的802.1CB协议标记,此时所述第一802.1帧为802.1CB标准帧,便于后续以802.1标准帧的格式向其他非802.1CB协议的节点发送。Wherein, when the end point mark is 1, the first 802.1 frame is an 802.1CB frame at this time, and the second frame editing module 320 deletes the 802.1CB protocol mark of the first 802.1 frame. At this time, the first 802.1 The frame is an 802.1CB standard frame, which facilitates subsequent transmission to other non-802.1CB protocol nodes in the format of the 802.1 standard frame.
其中,在实际网络中帧编辑第一模块310与帧编辑第二模块320是二选一关系,二者可以合在一起组成帧编辑模块。Among them, in an actual network, the first frame editing module 310 and the second frame editing module 320 have an alternative relationship, and the two can be combined to form a frame editing module.
端口适配模块330用于对所述第一802.1帧适配,适配后被转发端口向外发送。The port adaptation module 330 is configured to adapt the first 802.1 frame, and after adaptation, the forwarded port sends it out.
其中,所述端口适配至少包括VLAN ID、传输优先级等适配。Wherein, the port adaptation at least includes VLAN ID, transmission priority and other adaptations.
下面介绍基于实际使用的场景对所述装置实施例一对应的表项配置及各模块的工作情况。The table entry configuration corresponding to the first embodiment of the device and the working conditions of each module are introduced based on actual usage scenarios.
当所述装置为所述802.1CB网络的起点节点且有超过一个前序相邻节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为1,终点标记为0,帧消除使能标记为0。因为序号启动标记只在所述装置启动时设置为1,其他情况设置为0,在后续描述中也是同样设置,为了叙述简洁,后文都省去序号启动标记的设置描述。When the device is the start node of the 802.1CB network and there is more than one pre-order neighboring node, the entry of the flow ID of the first 802.1 frame is configured as: the start mark is 1 and the end mark is 0 , the frame elimination enable flag is 0. Because the serial number startup flag is only set to 1 when the device is started, and is set to 0 in other cases, it is also set in the same manner in subsequent descriptions. For the sake of simplicity, the description of the setting of the serial number startup flag will be omitted in the following.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110和帧标记确定模块120工作。·The flow identification module 110 and the frame mark determination module 120 of the message forwarding subsystem 100 work.
·队列管理子系统200的QCI流控模块210、流复制模块220和帧序号生成模块230工作。·The QCI flow control module 210, flow copy module 220 and frame sequence number generation module 230 of the queue management subsystem 200 work.
·报文编辑子系统300的帧编辑第一模块310和端口适配模块330工作。·The first frame editing module 310 and the port adaptation module 330 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→QCI流控模块210→流复制模块220→帧序号生成模块230→帧编辑第一模块310→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → QCI flow control module 210 → flow copy module 220 → frame sequence number generation module 230 → frame editing first module 310 → port adaptation module 330.
当所述装置为所述802.1CB网络的起点节点且只有一个前序相邻节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为1,终点标记为0,帧消除使能标记为0。When the device is the start node of the 802.1CB network and there is only one pre-order neighboring node, the entry of the flow ID of the first 802.1 frame is configured as follows: the start mark is 1, the end mark is 0, Frame erasure enable flag is 0.
基于所述流ID的表项确定所述第一802.1帧的相关帧标,从而使能各模块的工作情况如下:The relevant frame mark of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120和转发模块140工作。·The flow identification module 110, the frame mark determination module 120 and the forwarding module 140 of the message forwarding subsystem 100 work.
·队列管理子系统200的QCI流控模块210和帧序号生成模块230;·QCI flow control module 210 and frame sequence number generation module 230 of the queue management subsystem 200;
·报文编辑子系统300的帧编辑第一模块310和端口适配模块330工作。·The first frame editing module 310 and the port adaptation module 330 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→转发模块140→QCI流控模块210→帧序号生成模块230→帧编辑第一模块310→端口适配模块330。Flow identification module 110→frame mark determination module 120→forwarding module 140→QCI flow control module 210→frame sequence number generation module 230→frame editing first module 310→port adaptation module 330.
当所述装置为所述802.1CB网络的中间节点且有一个后序相邻节点和多个前序相邻节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为0。When the device is an intermediate node of the 802.1CB network and has one subsequent neighboring node and multiple preceding neighboring nodes, the entry of the flow ID of the first 802.1 frame is configured as: starting point mark is 0, the end mark is 0, and the frame elimination enable mark is 0.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110和帧标记确定模块120工作;·The flow identification module 110 and the frame mark determination module 120 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210、流复制模块220;·QCI flow control module 210 and flow replication module 220 of the queue management subsystem 200;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→QCI流控模块210→流复制模块220→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → QCI flow control module 210 → flow copy module 220 → port adaptation module 330.
当所述装置为所述802.1CB网络的中间起点且有多个相邻后序节点和多个相邻前序节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为1。When the device is the intermediate starting point of the 802.1CB network and there are multiple adjacent post-sequence nodes and multiple adjacent pre-sequence nodes, the entry of the flow ID of the first 802.1 frame is configured as: starting point The mark is 0, the end mark is 0, and the frame elimination enable mark is 1.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120和帧消除模块130工作·The flow identification module 110, the frame mark determination module 120 and the frame elimination module 130 of the message forwarding subsystem 100 work
·队列管理子系统200的QCI流控模块210、流复制模块220工作;·The QCI flow control module 210 and flow replication module 220 of the queue management subsystem 200 work;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→帧消除模块130→QCI流控模块210→流复制模块220→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → frame elimination module 130 → QCI flow control module 210 → flow copy module 220 → port adaptation module 330.
当所述装置为所述802.1CB网络的中间节点且有多个相邻后序节点和一个相邻前序节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为1。When the device is an intermediate node of the 802.1CB network and there are multiple adjacent post-sequence nodes and one adjacent pre-sequence node, the entry of the flow ID of the first 802.1 frame is configured as: starting point mark is 0, the end mark is 0, and the frame elimination enable mark is 1.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100流识别模块110、帧标记确定模块120、帧消除模块130和转发模块140工作;·The flow identification module 110, frame mark determination module 120, frame elimination module 130 and forwarding module 140 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→帧消除模块130→转发模块140→QCI流控模块210→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → frame elimination module 130 → forwarding module 140 → QCI flow control module 210 → port adaptation module 330.
当所述装置为所述802.1CB网络的终点节点且有多个相邻后序节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为1,帧消除使能标记为1。When the device is the end node of the 802.1CB network and there are multiple adjacent subsequent nodes, the entry of the flow ID of the first 802.1 frame is configured as follows: the starting point is marked as 0 and the end point is marked as 1 , the frame elimination enable flag is 1.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120、帧消除模块130和转发模块140工作;·The flow identification module 110, frame mark determination module 120, frame elimination module 130 and forwarding module 140 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的帧编辑第二模块320和端口适配模块330工作。·The second frame editing module 320 and the port adaptation module 330 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→帧消除模块130→转发模块140→QCI流控模块210→帧编辑第二模块320→端口适配模块330。Flow identification module 110→frame mark determination module 120→frame elimination module 130→forwarding module 140→QCI flow control module 210→frame editing second module 320→port adaptation module 330.
当所述装置为所述802.1CB网络的终点节点且有一个相邻后序节点时,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为1,帧消除使能标记为0。When the device is the end node of the 802.1CB network and there is an adjacent subsequent node, the entry of the flow ID of the first 802.1 frame is configured as follows: the start mark is 0, the end mark is 1, Frame erasure enable flag is 0.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120和转发模块140工作·The flow identification module 110, frame mark determination module 120 and forwarding module 140 of the message forwarding subsystem 100 work
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的帧编辑第二模块320和端口适配模块330工作。·The second frame editing module 320 and the port adaptation module 330 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→转发模块140→QCI流控模块210→帧编辑第二模块320→端口适配模块330。Flow identification module 110→frame mark determination module 120→forwarding module 140→QCI flow control module 210→frame editing second module 320→port adaptation module 330.
由上,基于实际所述装置对所述第一802.1帧的所述流ID的表项灵活配置,控制和使能所述装置的各模块的工作,降低所述装置实现和维护复杂度。From the above, based on the actual device, the entry of the flow ID of the first 802.1 frame is flexibly configured to control and enable the work of each module of the device, thereby reducing the complexity of implementation and maintenance of the device.
综上,一种实现802.1CB协议的装置实施例一基于模块化的功能设置,在一个装置上兼顾实现802.1CB的流识别、帧消除和流复制与802.1QCI流控;支持基于所述装置的节点位置的灵活配置表项,从而控制各模块的工作,相对于在一个装置里通过所有模块共同工作的方式,降低所述装置实现和维护复杂度。In summary, Embodiment 1 of a device that implements the 802.1CB protocol is based on modular functional settings and takes into account the flow identification, frame elimination and flow replication of 802.1CB and the 802.1QCI flow control in one device; supports the flow control based on the device Flexible configuration of table entries of node locations, thereby controlling the work of each module, reduces the complexity of implementation and maintenance of the device compared to the way in which all modules work together in a device.
【一种实现802.1CB协议的装置实施例二】[Embodiment 2 of a device for implementing the 802.1CB protocol]
一种实现802.1CB协议的装置实施例二继承了所述装置实施例一的所有结构,增加代理功能相关模块。The second embodiment of a device that implements the 802.1CB protocol inherits all the structures of the first device embodiment and adds proxy function-related modules.
图2A示出了一种实现802.1CB协议的装置实施例二应用的网络结构,其节点包括系统B(System B)、中继系统C(Relay System C)、中继系统D(Relay System D)、中继系统E(Relay System E)、中继系统F(Relay System F)和系统G(System G),其中,系统B由系统B1(End System B1)和中继系统B2(System B2)组成,系统G由中继系统G2(Relay SystemG2)和系统G1(End System G1)组成。Figure 2A shows a network structure applied in Embodiment 2 of a device that implements the 802.1CB protocol. Its nodes include System B, Relay System C, and Relay System D. , Relay System E (Relay System E), Relay System F (Relay System F) and System G (System G), among which System B consists of System B1 (End System B1) and Relay System B2 (System B2) , System G consists of relay system G2 (Relay SystemG2) and system G1 (End System G1).
其中,中继系统B2、中继系统C、中继系统D、中继系统E、中继系统F和中继系统G2为支持802.1CB协议的本实施例的装置。系统B1和系统G1不支持802.1CB协议。要实现从系统B1到系统G21无缝冗余传输数据,则要设置代理,中继系统B2则为系统B1的代理,中继G2为系统G1的代理。Among them, relay system B2, relay system C, relay system D, relay system E, relay system F and relay system G2 are devices supporting the 802.1CB protocol in this embodiment. System B1 and system G1 do not support the 802.1CB protocol. To achieve seamless and redundant data transmission from system B1 to system G21, an agent must be set up. Relay system B2 is the agent of system B1, and relay G2 is the agent of system G1.
图2B示出的一种实现802.1CB协议的装置实施例二的结构。相对于所述装置实施例一,有以下变化:Figure 2B shows the structure of Embodiment 2 of a device for implementing the 802.1CB protocol. Compared with the first embodiment of the device, there are the following changes:
在一些实际场景中增强了表项配置子系统400,在配置模块410中配置的表项里增加了MAC替换使能标记。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.
在一些实际场景中报文转发子系统100增加了DMAC替换模块150,并增强了帧标记确定模块120。In some actual scenarios, the message forwarding subsystem 100 adds a DMAC replacement module 150 and enhances the frame mark determination module 120.
在一些实际场景中队列管理子系统200增加了DMAC信息确定模块240。In some practical scenarios, the queue management subsystem 200 adds a DMAC information determination module 240.
在一些实际场景中报文编辑子系统300增加了DMAC信息替换模块340。In some actual scenarios, the message editing subsystem 300 adds a DMAC information replacement module 340.
其他模块的功能和优点同所述装置实施例一,这里重点阐述新增模块和增强模块。The functions and advantages of other modules are the same as those in the device embodiment 1. Here, the new modules and enhanced modules are focused on.
如图2A中G2作为G1的802.1CB协议的代理时,G2通常具有MAC地址替换功能,所述装置进行如下增强。As shown in Figure 2A, when G2 serves as a proxy for the 802.1CB protocol of G1, G2 usually has a MAC address replacement function, and the device is enhanced as follows.
报文转发子系统100增加DMAC替换模块150,用于当所述装置为所述802.1CB网络的终点节点且作为外部第二目的节点的802.1CB协议的代理节点时,把所述第一802.1帧的目的MAC地址替换为所述第二目的节点的MAC地址。The message forwarding subsystem 100 adds a DMAC replacement module 150, which is used to replace the first 802.1 frame when the device is the end node of the 802.1CB network and serves as the proxy node of the 802.1CB protocol of the external second destination node. Replace the destination MAC address with the MAC address of the second destination node.
示例地,图2A中继系统G 2为系统G1的代理节点,G1为所述第二目的节点。当中继系统G 2具有MAC替换功能,在中继系统G 2进行MAC地址替换,把所述第一802.1帧的目的MAC地址替换为系统G1的MAC地址,以继续进行数据转发。For example, relay system G 2 in Figure 2A is the agent node of system G1, and G1 is the second destination node. When the relay system G 2 has the MAC replacement function, the relay system G 2 performs MAC address replacement and replaces the destination MAC address of the first 802.1 frame with the MAC address of the system G1 to continue data forwarding.
如图2A中G2作为G1的802.1CB协议的代理时,G2不具有MAC地址替换功能,通常选择G2的后序节点如E和F进行MAC地址替换,所述装置进行如下增强。As shown in Figure 2A, when G2 serves as the agent of G1's 802.1CB protocol, G2 does not have the MAC address replacement function. The subsequent nodes of G2, such as E and F, are usually selected for MAC address replacement. The device is enhanced as follows.
配置模块410增加配置MAC替换使能标记,当所述装置为所述802.1CB网络的中间节点,所述802.1CB网络为外部第二目的节点的802.1CB协议的代理节点且不具有MAC替换功能时,在所述第一802.1帧的流ID对应的表项里增加配置MAC替换使能标记。The configuration module 410 adds a configuration MAC replacement enable flag when the device is an intermediate node of the 802.1CB network, and the 802.1CB network is the proxy node of the 802.1CB protocol of the external second destination node and does not have the MAC replacement function. , add a configuration MAC replacement enable flag to the entry corresponding to the flow ID of the first 802.1 frame.
示例地,图2A中继系统G 2为系统G1的代理节点,G1为所述第二目的节点,但是中继系统G 2不具有MAC替换功能,在中继系统E和F完成MAC替换,则在中继系统E和F的所述第一802.1帧的流ID对应的表项里增加配置MAC替换使能标记。For example, relay system G 2 in Figure 2A is the agent node of system G1, and G1 is the second destination node. However, relay system G 2 does not have the MAC replacement function. If MAC replacement is completed in relay systems E and F, then Add a configuration MAC replacement enable flag to the entry corresponding to the flow ID of the first 802.1 frame in relay systems E and F.
帧标记确定模块120还用于基于所述第一802.1帧的Key从所述转发控制表中查询所述第一802.1帧的Key对应的表项中的MAC替换使能标记,确定为所述第一802.1帧的MAC替换使能标记。The frame mark determination module 120 is further configured to query the forwarding control table for the MAC replacement enable mark in the entry corresponding to the Key of the first 802.1 frame based on the Key of the first 802.1 frame, and determine it to be the first 802.1 frame. A MAC replacement enable flag for an 802.1 frame.
示例地,图2A中继系统G 2为系统G1的代理节点,G1为所述第二目的节点,但是中继系统G 2不具有MAC替换功能,在中继系统E和F完成MAC替换,则中继系统E的帧标记确定模块120基于所述第一802.1帧的流ID从中继系统E的所述转发控制表中查询所述流ID对应的表项中的MAC替换使能标记,确定为所述第一802.1帧的MAC替换使能标记。中继系统F也执行同样的操作。For example, relay system G 2 in Figure 2A is the agent node of system G1, and G1 is the second destination node. However, relay system G 2 does not have the MAC replacement function. If MAC replacement is completed in relay systems E and F, then The frame mark determination module 120 of the relay system E queries the forwarding control table of the relay system E based on the flow ID of the first 802.1 frame for the MAC replacement enable flag in the entry corresponding to the flow ID, and determines as The MAC replacement enable flag of the first 802.1 frame. The relay system F also performs the same operation.
DMAC信息确定模块240用于当所述MAC替换使能标记为1时,基于所述第一802.1帧的流ID确定到达所述第二目的MAC的DMAC信息;所述DMAC信息至少包括所述第二目的MAC地址、传输报文优先级和到达所述第二目的MAC的VLAN。The DMAC information determination module 240 is configured to determine the DMAC information arriving at the second destination MAC based on the flow ID of the first 802.1 frame when the MAC replacement enable flag is 1; the DMAC information at least includes the first The second destination MAC address, the priority of the transmission packet and the VLAN to reach the second destination MAC.
示例地,图2A中继系统G 2为系统G1的代理节点,G1为所述第二目的节点,但是中继系统G 2不具有MAC替换功能,在中继系统E和F完成MAC替换,则在中继节点E在所述MAC替换使能标记为1,中继系统E的DMAC信息确定模块240基于所述第一802.1帧的流ID,查询DMAC表,确定到系统G1的所述DMAC信息。中继系统F也执行同样的操作。For example, relay system G 2 in Figure 2A is the agent node of system G1, and G1 is the second destination node. However, relay system G 2 does not have the MAC replacement function. If MAC replacement is completed in relay systems E and F, then When the MAC replacement enable flag of relay node E is 1, the DMAC information determination module 240 of relay system E queries the DMAC table based on the flow ID of the first 802.1 frame to determine the DMAC information to system G1. . The relay system F also performs the same operation.
DMAC信息替换模块340用于当所述MAC替换使能标记为1时,用所述DMAC信息替换第一802.1CB帧中相应的信息。The DMAC information replacement module 340 is configured to replace the corresponding information in the first 802.1CB frame with the DMAC information when the MAC replacement enable flag is 1.
示例地,图2A中继系统G2为系统G1的代理节点,G1为所述第二目的节点,但是中继系统G2不具有MAC替换功能,在中继系统E和F完成MAC替换,则在中继节点E在所述MAC替换使能标记为1时,DMAC信息替换模块320以替换所述第一802.1帧的所述DMAC信息。For example, the relay system G2 in Figure 2A is the agent node of the system G1, and G1 is the second destination node. However, the relay system G2 does not have the MAC replacement function. If the MAC replacement is completed in the relay systems E and F, then in When the MAC replacement enable flag of node E is 1, the DMAC information replacement module 320 replaces the DMAC information of the first 802.1 frame.
下面以图2A为例,介绍基于实际使用的场景的所述装置实施例二的各模块工作使能情况。因为中继系统B2、中继系统C、中继系统D、中继系统E、中继系统F和中继系统G2是802.1CB协议相关的模块,即802.1CB网络的节点,下面将介绍这些节点的模块配置。Taking FIG. 2A as an example, the following describes the work enabling status of each module of the second embodiment of the device based on actual usage scenarios. Because relay system B2, relay system C, relay system D, relay system E, relay system F and relay system G2 are modules related to the 802.1CB protocol, that is, nodes of the 802.1CB network. These nodes will be introduced below. module configuration.
中继系统B2为所述802.1CB网络的起点节点,且有2个相邻前序节点即中继系统C和D,所述第一802.1帧的所述流ID的表项配置为:起点标记为1,终点标记为0,帧消除使能标记为0。Relay system B2 is the start node of the 802.1CB network, and has two adjacent pre-sequence nodes, namely relay systems C and D. The entry of the flow ID of the first 802.1 frame is configured as: start mark is 1, the end mark is 0, and the frame elimination enable mark is 0.
基于所述流ID的表项确定所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110和帧标记确定模块120工作;·The flow identification module 110 and the frame mark determination module 120 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210、流复制模块220和帧序号生成模块230工作;·The QCI flow control module 210, flow copy module 220 and frame sequence number generation module 230 of the queue management subsystem 200 work;
·报文编辑子系统300的帧编辑第一模块310和端口适配模块330工作。·The first frame editing module 310 and the port adaptation module 330 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→QCI流控模块210→流复制模块220→帧序号生成模块230→帧编辑第一模块310→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → QCI flow control module 210 → flow copy module 220 → frame sequence number generation module 230 → frame editing first module 310 → port adaptation module 330.
中继系统C为所述802.1CB网络的中间节点,有一个相邻后序节点和2个相邻前序节点,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为0。Relay system C is an intermediate node of the 802.1CB network, with one adjacent post-sequence node and 2 adjacent pre-sequence nodes. The entry of the flow ID of the first 802.1 frame is configured as: the starting point is marked as 0, the end mark is 0, and the frame elimination enable mark is 0.
基于所述流ID的表项确定中继系统C的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame mark of the first 802.1 frame of relay system C is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110和帧标记确定模块120工作;·The flow identification module 110 and the frame mark determination module 120 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210和流复制模块220工作;·The QCI flow control module 210 and flow replication module 220 of the queue management subsystem 200 work;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→QCI流控模块210→流复制模块220→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → QCI flow control module 210 → flow copy module 220 → port adaptation module 330.
中继系统D为所述802.1CB网络的中间节点,有一个相邻后序节点和1个相邻前序节点,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为0。Relay system D is an intermediate node of the 802.1CB network, with one adjacent post-sequence node and 1 adjacent pre-sequence node. The entry of the flow ID of the first 802.1 frame is configured as: the starting point is marked as 0, the end mark is 0, and the frame elimination enable mark is 0.
基于所述流ID的表项确定中继系统D的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame mark of the first 802.1 frame of relay system D is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120转发模块140工作;·The flow identification module 110 and the frame mark determination module 120 of the message forwarding subsystem 100 and the forwarding module 140 work;
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→转发模块140→QCI流控模块210→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → forwarding module 140 → QCI flow control module 210 → port adaptation module 330.
中继系统E、中继系统F和中继系统G2分两种情况配置,即G2具有MAC替换功能和不具有MAC替换功能。Relay system E, relay system F and relay system G2 are configured in two situations, that is, G2 has the MAC replacement function and does not have the MAC replacement function.
中继系统E为所述802.1CB网络的中间节点,有一个相邻后序节点和1个相邻前序节点,且前序节点中继系统G2具有MAC替换功能,中继系统E为所述802.1CB网络的中间节点,有一个相邻后序节点和1个相邻前序节点,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为0。Relay system E is an intermediate node of the 802.1CB network. It has an adjacent post-sequence node and an adjacent pre-sequence node, and the pre-sequence node relay system G2 has a MAC replacement function. The relay system E is the above-mentioned The intermediate node of the 802.1CB network has an adjacent post-sequence node and an adjacent pre-sequence node. The entry of the flow ID of the first 802.1 frame is configured as follows: the starting point is marked as 0, the end point is marked as 0, Frame erasure enable flag is 0.
基于所述流ID的表项确定中继系统E的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame mark of the first 802.1 frame of relay system E is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120转发模块140工作;·The flow identification module 110 and the frame mark determination module 120 of the message forwarding subsystem 100 and the forwarding module 140 work;
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→转发模块140→QCI流控模块210→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → forwarding module 140 → QCI flow control module 210 → port adaptation module 330.
中继系统E为所述802.1CB网络的中间节点,有一个相邻后序节点和1个相邻前序节点,且前序节点中继系统G2不具有MAC替换功能,因为G2不具有MAC替换功能,中继系统E需要配置MAC替换功能,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为0,MAC替换使能标记为1。Relay system E is the intermediate node of the 802.1CB network, with one adjacent post-sequence node and 1 adjacent pre-sequence node, and the pre-sequence node relay system G2 does not have the MAC replacement function because G2 does not have MAC replacement. function, the relay system E needs to configure the MAC replacement function. The entry of the flow ID of the first 802.1 frame is configured as follows: the starting point is marked as 0, the end point is marked as 0, the frame elimination enable mark is 0, and the MAC replacement is enabled. can be marked as 1.
基于所述流ID的表项确定中继系统E的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame mark of the first 802.1 frame of relay system E is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
其模块配置如下:Its module configuration is as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120和转发模块140工作;·The flow identification module 110, frame mark determination module 120 and forwarding module 140 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210和DMAC信息确定模块240工作;·The QCI flow control module 210 and the DMAC information determination module 240 of the queue management subsystem 200 work;
·报文编辑子系统300的端口适配模块330和DMAC信息替换模块340工作。·The port adaptation module 330 and the DMAC information replacement module 340 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→转发模块140→QCI流控模块210→DMAC信息确定模块240→端口适配模块330→DMAC信息替换模块340。Flow identification module 110 → frame mark determination module 120 → forwarding module 140 → QCI flow control module 210 → DMAC information determination module 240 → port adaptation module 330 → DMAC information replacement module 340.
中继系统F为TSN的802.1CB网络的中间节点且有2个相邻后序节点和一个相邻前序节点,且前序节点中继系统G2具有MAC替换功能,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为1。Relay system F is an intermediate node of TSN's 802.1CB network and has two adjacent post-sequence nodes and one adjacent pre-sequence node, and the pre-sequence node relay system G2 has a MAC replacement function. The first 802.1 frame The entry of the flow ID is configured as follows: the start point is marked as 0, the end point is marked as 0, and the frame elimination enable mark is 1.
基于所述流ID的表项确定中继系统F的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame of relay system F is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100流识别模块110、帧标记确定模块120、帧消除模块130和转发模块140工作;·The flow identification module 110, frame mark determination module 120, frame elimination module 130 and forwarding module 140 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的端口适配模块330工作。·The port adaptation module 330 of the message editing subsystem 300 works.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→帧消除模块130→转发模块140→QCI流控模块210→端口适配模块330。Flow identification module 110 → frame mark determination module 120 → frame elimination module 130 → forwarding module 140 → QCI flow control module 210 → port adaptation module 330.
中继系统F为TSN的802.1CB网络的中间节点且有2个相邻后序节点和一个相邻前序节点,且前序节点中继系统G2不具有MAC替换功能,因为G2不具有MAC替换功能,中继系统E需要配置MAC替换功能,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为0,帧消除使能标记为1,MAC替换使能标记为1。Relay system F is the intermediate node of TSN's 802.1CB network and has two adjacent post-sequence nodes and one adjacent pre-sequence node, and the pre-sequence node relay system G2 does not have the MAC replacement function because G2 does not have MAC replacement. function, relay system E needs to configure the MAC replacement function. The entry of the flow ID of the first 802.1 frame is configured as follows: the starting point is marked as 0, the end point is marked as 0, the frame elimination enable mark is 1, and the MAC replacement enable can be marked as 1.
基于所述流ID的表项确定中继系统F的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame tag of the first 802.1 frame of relay system F is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120、帧消除模块130和转发模块140工作;·The flow identification module 110, frame mark determination module 120, frame elimination module 130 and forwarding module 140 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210和DMAC信息确定模块240工作;·The QCI flow control module 210 and the DMAC information determination module 240 of the queue management subsystem 200 work;
·报文编辑子系统300的端口适配模块330和DMAC信息替换模块340工作。·The port adaptation module 330 and the DMAC information replacement module 340 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→帧消除模块130→转发模块140→QCI流控模块210→DMAC信息确定模块240→端口适配模块330→DMAC信息替换模块340。Flow identification module 110→frame mark determination module 120→frame elimination module 130→forwarding module 140→QCI flow control module 210→DMAC information determination module 240→port adaptation module 330→DMAC information replacement module 340.
中继系统G2为TSN的802.1CB网络的终点节点,有2个相邻后序节点,且具有MAC替换功能时,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为1,帧消除使能标记为1。When the relay system G2 is the end node of TSN's 802.1CB network, has two adjacent subsequent nodes, and has the MAC replacement function, the entry of the flow ID of the first 802.1 frame is configured as: the starting point is marked as 0, the end mark is 1, and the frame elimination enable mark is 1.
基于所述流ID的表项确定中继系统G2的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下:The relevant 802.1CB frame mark of the first 802.1 frame of the relay system G2 is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120、帧消除模块130、转发模块140和DMAC替换模块150工作;·The flow identification module 110, frame mark determination module 120, frame elimination module 130, forwarding module 140 and DMAC replacement module 150 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210工作;·The QCI flow control module 210 of the queue management subsystem 200 works;
·报文编辑子系统300的帧编辑第二模块320和端口适配模块330工作。·The second frame editing module 320 and the port adaptation module 330 of the message editing subsystem 300 work.
上述各模块的工作顺序为:The working sequence of the above modules is:
流识别模块110→帧标记确定模块120→帧消除模块130→DMAC替换模块150→转发模块140→QCI流控模块210→帧编辑第二模块320→端口适配模块330。Flow identification module 110→frame mark determination module 120→frame elimination module 130→DMAC replacement module 150→forwarding module 140→QCI flow control module 210→frame editing second module 320→port adaptation module 330.
中继系统G2为TSN的802.1CB网络的终点节点,有2个相邻后序节点,且不具有MAC替换功能,MAC替换功能在中继系统E和F完成,所述第一802.1帧的所述流ID的表项配置为:起点标记为0,终点标记为1,帧消除使能标记为1,MAC替换使能标记为1。Relay system G2 is the terminal node of TSN's 802.1CB network. It has two adjacent subsequent nodes and does not have the MAC replacement function. The MAC replacement function is completed in relay systems E and F. All of the first 802.1 frames are The entry configuration of the flow ID is as follows: the start mark is 0, the end mark is 1, the frame elimination enable mark is 1, and the MAC replacement enable mark is 1.
基于所述流ID的表项确定中继系统G2的所述第一802.1帧的相关802.1CB帧标记,从而使能各模块的工作情况如下其模块配置如下:The relevant 802.1CB frame mark of the first 802.1 frame of the relay system G2 is determined based on the entry of the flow ID, thereby enabling the working conditions of each module to be as follows. Its module configuration is as follows:
·报文转发子系统100的流识别模块110、帧标记确定模块120、帧消除模块130和转发模块140工作;·The flow identification module 110, frame mark determination module 120, frame elimination module 130 and forwarding module 140 of the message forwarding subsystem 100 work;
·队列管理子系统200的QCI流控模块210和DMAC信息确定模块240工作;·The QCI flow control module 210 and the DMAC information determination module 240 of the queue management subsystem 200 work;
·报文编辑子系统300的帧编辑第二模块320、端口适配模块330和DMAC信息替换模块340工作。·The second frame editing module 320, port adaptation module 330 and DMAC information replacement module 340 of the message editing subsystem 300 work.
上述各模块的工作顺序为:流识别模块110→帧标记确定模块120→帧消除模块130→转发模块140→QCI流控模块210→DMAC信息确定模块240→帧编辑第二模块320→端口适配模块330→DMAC信息替换模块340。The working sequence of the above modules is: flow identification module 110 → frame mark determination module 120 → frame elimination module 130 → forwarding module 140 → QCI flow control module 210 → DMAC information determination module 240 → frame editing second module 320 → port adaptation Module 330→DMAC information replacement module 340.
本实施例的所述装置还可以堆叠使用,扩大802.1CB协议的交换能力,各堆叠的所述装置中各前端装置配置转发模块140,后端装置的各模块按照上述场景模块基于场景配置。The devices in this embodiment can also be stacked to expand the switching capabilities of the 802.1CB protocol. Each front-end device in each stack is configured with a forwarding module 140, and each module of the back-end device is configured based on the scenario according to the above scenario module.
综上,一种实现802.1CB协议的装置实施例二基于模块化的功能设置,在一个装置上兼顾实现802.1CB的流识别、帧消除、流复制、802.1QCI流控与802.1CB的代理功能;支持基于所述装置的节点位置的灵活配置表项,从而控制各模块的工作,相对于在一个装置里通过所有模块共同工作的方式,降低所述装置实现和维护复杂度。In summary, Embodiment 2 of a device that implements the 802.1CB protocol is based on modular functional settings and takes into account the flow identification, frame elimination, flow replication, 802.1QCI flow control and 802.1CB proxy functions of 802.1CB on one device; Supports flexible configuration entries based on the node locations of the device, thereby controlling the work of each module. Compared with the way in which all modules work together in a device, the complexity of implementation and maintenance of the device is reduced.
【一种实现802.1CB协议的装置实施例二具体实施方式】[Detailed implementation of the second embodiment of a device for implementing the 802.1CB protocol]
图3示出了一种实现802.1CB协议的装置实施例二的具体实施方式装置的结构。Figure 3 shows the structure of a specific implementation device of Embodiment 2 of a device that implements the 802.1CB protocol.
其中,所述具体实施方式同样包括表项配置系统400,因为在所述具体实施方式上,重点对各子系统间的控制信号进行详细介绍,图3中未画出配置系统400。The specific implementation also includes the table configuration system 400, because in the specific implementation, the control signals between each subsystem are introduced in detail, and the configuration system 400 is not shown in Figure 3.
所述具体实施方式基于控制信号的交换,把报文转发子系统100分为ACL模块100A、转发模块100B和控制封装模块100C,把队列管理子系统200分为入队管理模块200A和出队管理模块200B。The specific implementation is based on the exchange of control signals. The message forwarding subsystem 100 is divided into an ACL module 100A, a forwarding module 100B and a control encapsulation module 100C. The queue management subsystem 200 is divided into a queue management module 200A and a queue management module. Module 200B.
ACL模块100A包括流识别模块110、帧标记确定模块120、帧消除模块130、DMAC替换模块150,转发模块100B包括转发模块140,控制封装模块100C包括新增加的帧标记第一封装模块160。除了新增帧标记第一封装模块160,其他模块说明参照所述装置实施例一或所述装置实施例二。The ACL module 100A includes a flow identification module 110, a frame mark determination module 120, a frame elimination module 130, and a DMAC replacement module 150. The forwarding module 100B includes a forwarding module 140. The control encapsulation module 100C includes a newly added frame mark first encapsulation module 160. Except for the new frame mark first encapsulation module 160, for descriptions of other modules, refer to the first device embodiment or the second device embodiment.
帧标记第一封装模块160用于把stream_hdl、frm_repl_ori、frm_elim_term、seq_strt和alt_en封装于帧标记第一控制块中,传递给队列管理子系统200。The first frame mark encapsulation module 160 is used to encapsulate stream_hdl, frm_repl_ori, frm_elim_term, seq_strt, and alt_en in the first frame mark control block, and pass it to the queue management subsystem 200.
其中,帧标记第一控制块与上文所述第一802.1帧一一对应,stream_hdl为所述流ID,frm_repl_ori为所述起始点标记,frm_elim_term为所述终点标记,seq_strt为所述序号启动标记,alt_en为所述MAC替换使能标记为alt_en。Among them, the first control block of the frame mark corresponds to the first 802.1 frame mentioned above, stream_hdl is the stream ID, frm_repl_ori is the starting point mark, frm_elim_term is the end mark, and seq_strt is the sequence number start mark. , alt_en is the MAC replacement enable tag as alt_en.
其中,帧标记第一封装模块160是任何实际场景的必选模块,工作本发明装置实施例中报文转发子系统100所列其他模块之后。Among them, the frame marking first encapsulation module 160 is a must-select module in any actual scenario, working after other modules listed in the message forwarding subsystem 100 in the device embodiment of the present invention.
入队管理模块200A包括QCI流控模块210、流复制模块220和帧标记第一解封模块250,出队管理模块200B包括帧序号生成模块230、DMAC信息确定模块240、帧标记第二封装模块260和帧标记第三封装模块270。The enqueue management module 200A includes a QCI flow control module 210, a flow copy module 220, and a first frame mark decapsulation module 250. The dequeue management module 200B includes a frame sequence number generation module 230, a DMAC information determination module 240, and a second frame mark encapsulation module. 260 and frame marking third encapsulation module 270.
帧标记第一解封模块250用于从帧标记第一控制块中解封出stream_hdl、frm_repl_ori和seq_strt,传递给出队管理模块200B,用于帧序号生成模块230和DMAC信息确定模块240。The first frame mark decapsulation module 250 is used to decapsulate stream_hdl, frm_repl_ori and seq_strt from the frame mark first control block, and pass them to the queue management module 200B for use in the frame sequence number generation module 230 and the DMAC information determination module 240.
其中,帧标记第一解封模块250是任何实际场景的必选模块,工作本发明装置实施例队列管理子系统模块200所列其他模块之前。Among them, the frame mark first decapsulation module 250 is a must-select module in any actual scenario, working before other modules listed in the queue management subsystem module 200 of the device embodiment of the present invention.
帧标记第二封装模块260用于所述第一802.1帧的frm_repl_ori为1时,把所述第一802.1帧的802.1CB帧序号与stream_hdl及所述802.1CB帧标记中的frm_repl_ori和frm_elim_term封装在帧标记第二控制块中,以向报文编辑子系统300传递。The frame mark second encapsulation module 260 is used to encapsulate the 802.1CB frame sequence number of the first 802.1 frame with stream_hdl and the frm_repl_ori and frm_elim_term in the 802.1CB frame mark in the frame when the frm_repl_ori of the first 802.1 frame is 1. Mark the second control block to pass to the message editing subsystem 300.
帧标记第三封装模块270用于所述第一802.1帧的alt_en为1时,把所述DMAC信息与stream_hdl及所述802.1CB帧标记中的frm_repl_ori和frm_elim_term封装在帧标记第二控制块中,以向报文编辑子系统300传递。The third frame mark encapsulation module 270 is used to encapsulate the DMAC information, stream_hdl and frm_repl_ori and frm_elim_term in the 802.1CB frame mark in the second control block of the frame mark when alt_en of the first 802.1 frame is 1, to pass it to the message editing subsystem 300.
其中,在实际场景中,frm_repl_ori和alt_en不会同时设置为1,帧标记第二封装模块260和帧标记第三封装模块270为二选一模块。Among them, in actual scenarios, frm_repl_ori and alt_en are not set to 1 at the same time, and the frame mark second encapsulation module 260 and the frame mark third encapsulation module 270 are two modules to choose from.
其中,帧标记第二封装模块260或帧标记第三封装模块270工作在本发明装置实施例队列管理子系统模块200所列其他模块之后。帧标记第二封装模块260与帧序号生成模块230一起被使能工作,帧标记第三封装模块270与DMAC信息确定模块240一起被使能工作。Among them, the second frame mark encapsulation module 260 or the third frame mark encapsulation module 270 works after other modules listed in the queue management subsystem module 200 of the device embodiment of the present invention. The second frame mark encapsulation module 260 is enabled to work together with the frame sequence number generation module 230, and the third frame mark encapsulation module 270 is enabled to work together with the DMAC information determination module 240.
报文编辑子系统300增加了帧标记第二解封模块350。The message editing subsystem 300 adds a second decapsulation module 350 for frame marking.
帧标记第二解封模块350用于从接收到帧标记第二控制块中解析出所述第一802.1帧的stream_hdl、frm_repl_ori、frm_elim_term和alt_en;还用于当frm_repl_ori为1时,从帧标记第二控制块解析出802.1CB帧序号,把所述802.1CB帧序号与frm_repl_ori和stream_hdl发送给帧编辑第一模块310;还用于当frm_elim_term为1时,把frm_elim_term和stream_hdl发送给帧编辑第二模块320;还用于当alt_en为1时,从帧标记第二控制块解析出所述DMAC信息,并把所述DMAC信息和alt_en发送给DMAC信息替换模块340。The second frame mark decapsulation module 350 is used to parse out the stream_hdl, frm_repl_ori, frm_elim_term and alt_en of the first 802.1 frame from the received frame mark second control block; and is also used to extract the stream_hdl, frm_repl_ori, frm_elim_term and alt_en from the frame mark when frm_repl_ori is 1. The second control block parses out the 802.1CB frame sequence number, and sends the 802.1CB frame sequence number, frm_repl_ori and stream_hdl to the first frame editing module 310; it is also used to send frm_elim_term and stream_hdl to the second frame editing module when frm_elim_term is 1. 320; Also used to parse the DMAC information from the second control block of the frame mark when alt_en is 1, and send the DMAC information and alt_en to the DMAC information replacement module 340.
其中,帧标记第二解封模块350是任何实际场景的必选模块,工作本发明装置实施例报文编辑子系统模块300所列其他模块之前。Among them, the frame mark second decapsulation module 350 is a necessary module in any actual scenario, and works before other modules listed in the message editing subsystem module 300 of the device embodiment of the present invention.
本具体实施方式中各模块的工作场景参考所述装置实施例二,这里不在详述。The working scenarios of each module in this specific implementation mode refer to the second embodiment of the device, and will not be described in detail here.
另外,图3只是示出所述装置的802.1CB协议功能、流控和代理功能的处理部分,在实际使用场景本实施例所述装置还包括帧接收接口和帧发送接口。In addition, Figure 3 only shows the processing part of the 802.1CB protocol function, flow control and proxy function of the device. In actual usage scenarios, the device in this embodiment also includes a frame receiving interface and a frame sending interface.
所述帧接收接口用于从相邻的后序节点接收所述第一802.1帧,当所述后序节点为所述802.1CB网络一个节点时,所接收的第一802.1帧为802.1CB帧,当所述后序节点为所述802.1CB网络的外部节点时,所接收的第一802.1帧为802.1标准帧。The frame receiving interface is used to receive the first 802.1 frame from an adjacent subsequent node. When the subsequent node is a node of the 802.1CB network, the first 802.1 frame received is an 802.1CB frame. When the subsequent node is an external node of the 802.1CB network, the first 802.1 frame received is an 802.1 standard frame.
所述帧发送接口用于向相邻的前序节点发送所述第一802.1帧,当所述前序节点为所述802.1CB网络一个节点时,所发送的为802.1CB帧,当所述前序节点为所述802.1CB网络的外部节点时,所发送的为802.1标准帧。The frame sending interface is used to send the first 802.1 frame to an adjacent pre-sequence node. When the pre-sequence node is a node of the 802.1CB network, what is sent is an 802.1CB frame. When the pre-sequence node When the sequence node is an external node of the 802.1CB network, what is sent is an 802.1 standard frame.
综上,一种实现802.1CB协议的装置实施例二的具体实施方式基于模块化的功能设置和基于统一的控制块传递各种控制信息,兼顾实现802.1CB的流识别、帧消除、流复制、QCI流控及802.1CB代理的功能,各子系统间接口更简单,进一步降低所述装置实现和维护复杂度。In summary, the specific implementation method of the second embodiment of a device for implementing the 802.1CB protocol is based on modular function settings and a unified control block to transmit various control information, taking into account the flow identification, frame elimination, flow replication, etc. of 802.1CB. With the functions of QCI flow control and 802.1CB proxy, the interfaces between subsystems are simpler, further reducing the complexity of implementation and maintenance of the device.
【一种实现802.1CB协议的芯片实施例】[A chip implementation implementing the 802.1CB protocol]
本发明还提供了一种实现802.1CB协议的芯片实施例,其具有一种实现802.1CB协议的装置实施例二所述的各模块。在一个芯片上兼顾实现802.1CB的流识别、帧消除、流复制与QCI流控及802.1CB代理的功能,支持基于实际所述装置的节点位置的灵活配置的表项,适配各种实际使用场景,降低芯片实现和维护复杂度。The present invention also provides a chip embodiment for implementing the 802.1CB protocol, which has the modules described in the second embodiment of a device for implementing the 802.1CB protocol. It implements the functions of 802.1CB flow identification, frame elimination, flow replication, QCI flow control and 802.1CB proxy on one chip, supports flexible configuration of entries based on the actual node location of the device, and adapts to various actual uses. scenarios to reduce the complexity of chip implementation and maintenance.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,均属于本发明保护范畴。Note that the above are only the preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, it can also include more other equivalent embodiments, all of which belong to the present invention. Scope of invention protection.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110185268.7A CN112866143B (en) | 2021-02-10 | 2021-02-10 | A device and chip that implements the 802.1CB protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110185268.7A CN112866143B (en) | 2021-02-10 | 2021-02-10 | A device and chip that implements the 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 | A device and chip that implements the 802.1CB protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112866143B (en) |
Families Citing this family (1)
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)
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)
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 |
-
2021
- 2021-02-10 CN CN202110185268.7A patent/CN112866143B/en active Active
Patent Citations (5)
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)
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 |
---|---|---|
US20210051045A1 (en) | Communication switching apparatus for switching data in multiple protocol data frame formats | |
EP2533475B1 (en) | Method and system for host route reachability in packet transport network access ring | |
CN100502335C (en) | Communication system, wireless LAN base station control device, and wireless LAN base station device | |
EP1351438B1 (en) | IP multicast replication process and apparatus therefore | |
US7428219B2 (en) | System and method to exchange information between a control element and forwarding elements in a network element architecture | |
US5946308A (en) | Method for establishing restricted broadcast groups in a switched network | |
EP1942617B1 (en) | Method, device and system for Ethernet-supported Source Specific Multicast forwarding | |
EP2725749B1 (en) | Method, apparatus and system for processing service flow | |
CN101741742B (en) | Message processing method, access equipment and communication system | |
US7782856B1 (en) | Forwarding data packets having tags conforming to different formats | |
CN106936777A (en) | Cloud computing distributed network implementation method based on OpenFlow, system | |
EP3069471B1 (en) | Optimized multicast routing in a clos-like network | |
WO2004075485A1 (en) | Network system, spanning tree configuration method, configuration program, and spanning tree configuration node | |
CN104468384A (en) | System and method for achieving multi-service priorities | |
US20190319871A1 (en) | Multi-VRF Universal Device Internet Protocol Address for Fabric Edge Devices | |
CN101692646A (en) | Method for handling layer-2 forwarding and distributed device | |
US7835367B2 (en) | Network connection method, network connection system, and, layer 2 switch and management server forming the network connection system | |
CN107566237A (en) | A kind of data message processing method and device | |
WO2011160517A1 (en) | Tunnel switching method and system for multi-protocol label switching services | |
CN116633585A (en) | Message processing method, UP device and CP device | |
US20070217438A1 (en) | Ring node device and method of connecting terminal to ring node device | |
CN101009618A (en) | Communication device and implementation method with the LAN/WAN port switching function | |
WO2021093463A1 (en) | Packet forwarding method, first network device, and first device group | |
CN112866143B (en) | A device and chip that implements the 802.1CB protocol | |
CN113285878A (en) | Load sharing method and first network equipment |
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 |