[go: up one dir, main page]

CN1997002B - multiple spanning tree protocol compatible method, system and related switch - Google Patents

multiple spanning tree protocol compatible method, system and related switch Download PDF

Info

Publication number
CN1997002B
CN1997002B CN200610000387A CN200610000387A CN1997002B CN 1997002 B CN1997002 B CN 1997002B CN 200610000387 A CN200610000387 A CN 200610000387A CN 200610000387 A CN200610000387 A CN 200610000387A CN 1997002 B CN1997002 B CN 1997002B
Authority
CN
China
Prior art keywords
spanning tree
multiple spanning
protocol
data unit
bridging
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.)
Expired - Fee Related
Application number
CN200610000387A
Other languages
Chinese (zh)
Other versions
CN1997002A (en
Inventor
康吉成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute for Information Industry
Original Assignee
Institute for Information Industry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute for Information Industry filed Critical Institute for Information Industry
Priority to CN200610000387A priority Critical patent/CN1997002B/en
Publication of CN1997002A publication Critical patent/CN1997002A/en
Application granted granted Critical
Publication of CN1997002B publication Critical patent/CN1997002B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a method, a system and a related exchanger compatible with a multiple spanning tree protocol.A checking module is provided between an IEEE standard multiple spanning tree module and an Ethernet driver module, and the checking module is used for executing a receiving checking program and a transmitting checking program. The checking module, the IEEE standard multiple spanning tree module and the Ethernet driver module are arranged in the exchanger. Receiving the bridge protocol data unit by the checking module, executing a receiving checking program to the bridge protocol data unit when the bridge protocol data unit is from the Ethernet driver module, and executing a transmitting checking program to the bridge protocol data unit when the bridge protocol data unit is from the IEEE standard multiple spanning tree module. The invention can ensure the compatible operation of the data packet among different switches.

Description

多生成树协议兼容的方法、系统以及相关交换器 Multiple spanning tree protocol compatible method, system and related switch

技术领域technical field

本发明是有关于一种多生成树协议(multiple spanning tree protocol,MSTP)运作的方法,特别是有关于一种适用于不同多生成树协议间运作的方法。The present invention relates to a method for operating multiple spanning tree protocols (multiple spanning tree protocol, MSTP), in particular to a method suitable for operation between different MSTPs.

背景技术Background technique

一般通称的扩张树协议(spanning tree protocol,STP),是指架构于IEEE802.1标准上的连结管理协议,其功能在于控管网络(network)中各个桥接(bridge)装置的状态。使用扩张树协议可减少网络路径(path)重复或赘行的情形,并有效地避免不必要的回路(loop)。在网络中所传输的数据是以封包(packet)的方式进行,而在网络中不同的局部局域网络(local area network,LAN)过滤及转出封包的装置即为交换器(switch)。The commonly known spanning tree protocol (STP) refers to a link management protocol based on the IEEE802.1 standard, and its function is to control the status of each bridge device in the network. The use of the expanded tree protocol can reduce the situation of repeated or redundant network paths (path), and effectively avoid unnecessary loops (loop). The data transmitted in the network is carried out in the form of packets, and the device for filtering and transferring packets in different local area networks (LAN) in the network is a switch.

由于网络技术的快速发展,当一个实体局域网络分割为多个虚拟局域网络(virtual LAN,VLAN)时,单一扩张树协议往往无法适切地计算出符合每个虚拟局域网络的网络拓扑(topology)需求,因此多生成树协议(MSTP)便应运而生,也就是说应用多生成树协议可计算出网络的多重拓扑(multipletopology)。多生成树协议是以区域(region)为单位进行运作,相同区域内的交换器具有相同的多生成树设定参数(parameter)。形成区域后,对一区域外的交换器而言,会将此区域视为整合式的大型交换器一般。Due to the rapid development of network technology, when a physical local area network is divided into multiple virtual local area networks (virtual LAN, VLAN), the single expansion tree protocol often cannot properly calculate the network topology (topology) that meets each virtual local area network. Therefore, the Multiple Spanning Tree Protocol (MSTP) came into being, that is to say, the multiple topology of the network can be calculated by using the MSTP. The Multiple Spanning Tree Protocol operates in units of regions, and switches in the same region have the same multiple spanning tree setting parameters. Once a zone is formed, the zone will be treated as an integrated large switch to switches outside the zone.

然而,由于多生成树协议可能基于不同的标准(standard)制定而成。例如,IEEE 802.1标准以及思科标准(Cisco standard)。因此,符合IEEE标准多生成树协议(IEEE 802.1 standard)的交换器与符合思科多生成树协议(Cisco standard)的交换器间,并未必能相容运作。请参照图1a-图1c,假设网络环境中存在交换器100、102及104,交换器102为思科交换器(符合思科标准多生成树协议),交换器104为标准交换器(符合IEEE标准多生成树协议)。若将思科交换器102及标准交换器104设定为同一区域时,理想状态应形成如108所示的一个区域,而思科交换器102及标准交换器104应会形成一虚拟交换器106,如图1b所示。然而,由于思科交换器102及标准交换器104并不兼容,因此实际运作后便形成如图1c所示,思科交换器102形成区域110,标准交换器104形成区域112,两者无法合成一区域。However, the Multiple Spanning Tree Protocol may be formulated based on different standards. For example, IEEE 802.1 standard and Cisco standard (Cisco standard). Therefore, switches conforming to the IEEE 802.1 standard and switches conforming to the Cisco standard may not be compatible with each other. Please refer to Fig. 1a-Fig. 1c, assume that there are switches 100, 102 and 104 in the network environment, switch 102 is a Cisco switch (conforming to Cisco standard multiple spanning tree protocol), and switch 104 is a standard switch (conforming to IEEE standard multiple spanning tree protocol). Spanning Tree Protocol). If the Cisco switch 102 and the standard switch 104 are set to the same area, the ideal state should form an area as shown in 108, and the Cisco switch 102 and the standard switch 104 should form a virtual switch 106, such as Figure 1b shows. However, because the Cisco switch 102 and the standard switch 104 are not compatible, after actual operation, as shown in FIG. 1c, the Cisco switch 102 forms an area 110, and the standard switch 104 forms an area 112. .

因此,使符合不同多生成树协议的交换器可兼容运作的方法或系统,是未来网络应用技术中的一重要课题。Therefore, a method or system for compatible operation of switches conforming to different MSTPs is an important subject in future network application technologies.

发明内容Contents of the invention

有鉴于此,本发明是以不同多生成树协议的差异为主,对于所接收的桥接协议数据单元(bridge protocol data unit,BPDU)进行检验,使得数据封包在交换器的以太网络驱动程序模块(LLC layer&Ethernet driver module)及IEEE标准多生成树模块(MST module)间进行检验,以确保数据封包可在不同交换器间兼容运作。In view of this, the present invention is based on the difference of different multiple spanning tree protocols, and checks the received bridge protocol data unit (bridge protocol data unit, BPDU), so that the data packet is transmitted in the Ethernet driver module ( LLC layer&Ethernet driver module) and IEEE standard multiple spanning tree module (MST module) are checked to ensure that data packets can be compatible between different switches.

为达成上述目的,本发明提供一种多生成树协议兼容的方法,首先提供检验模块于标准多生成树模块以及以太网络驱动程序模块间,避免更动到现有的多生成树模块.检验模块用以执行接收检验程序以及传送检验程序.检验模块、标准多生成树模块以及以太网络驱动程序模块设置于一交换器中.In order to achieve the above object, the present invention provides a method compatible with multiple spanning tree protocols. First, a verification module is provided between the standard multi-spanning tree module and the Ethernet driver module, so as to avoid changing to the existing multi-spanning tree module. Verification module It is used to execute the receiving inspection program and the transmission inspection program. The inspection module, standard multiple spanning tree module and Ethernet driver module are set in a switch.

检验模块用以接收桥接协议数据单元并检验调整。当桥接协议数据单元来自以太网络驱动程序模块时,对于桥接协议数据单元执行接收检验程序,及当桥接协议数据单元来自标准多生成树模块时,对于桥接协议数据单元执行传送检验程序。The verification module is used for receiving the bridging PDU and verifying the adjustment. A receipt check is performed on the bridging PDU when it is from the Ethernet driver module, and a delivery check is performed on the bridging PDU when it is from a standard MPDU.

接收检验程序包括下列步骤,首先判别桥接协议数据单元的种类,即依照桥接协议数据单元格式的差异辨别该桥接协议数据单元是否符合交换器本身多生成树格式或已知可兼容的多生成树格式。交换器本身多生成树可为IEEE标准多生成树协议,已知可兼容的多生成树可为思科标准多生成树协议。The receiving inspection procedure includes the following steps. Firstly, the type of bridging protocol data unit is judged, that is, it is judged whether the bridging protocol data unit conforms to the multi-spanning tree format of the switch itself or a known compatible multi-spanning tree format according to the difference in the format of the bridging protocol data unit. . The multiple spanning tree of the switch itself may be an IEEE standard multiple spanning tree protocol, and the known compatible multiple spanning tree may be a Cisco standard multiple spanning tree protocol.

如桥接协议数据单元符合交换器本身多生成树格式或为未知的格式。确认交换器接收该桥接协议数据单元的通信端口的多生成树协议记录是否符合。如不符合,则调整该通信端口的协议记录并更新该通信端口已记录识别码信息(MST设定识别码字段)。其中该识别码信息是用来记录多生成树协议的重要设定核对信息,可由桥接协议数据单元中取得。For example, the bridge protocol data unit conforms to the multiple spanning tree format of the switch itself or is an unknown format. Confirm whether the multiple spanning tree protocol record of the communication port where the switch receives the bridging protocol data unit complies. If not, adjust the protocol record of the communication port and update the recorded identification code information of the communication port (MST setting identification code field). The identification code information is used to record important setting check information of the MST protocol, and can be obtained from the bridging protocol data unit.

如桥接协议数据单元符合已知可兼容的多生成树格式。验证该桥接协议数据单元的区域组态设定与交换器本身多生成树的组态设定是否一致,如确认桥接协议数据单元中的组态名称字段(Configuration Name)及MSTI信息(MSTI message)数量与交换器本身多生成树的组态名称及符合条件的扩张树数量是否相同。当确定桥接协议数据单元与交换器本身多生成树的区域组态设定一致时,更新该通信端口的识别码信息为桥接协议数据单元中的识别码信息(MST设定识别码字段)并确认交换器接收该桥接协议数据单元的通信端口的多生成树协议记录是否符合。如不符合,则调整该通信端口的协议记录。For example, the bridging protocol data unit conforms to the known compatible multiple spanning tree format. Verify that the regional configuration settings of the bridge protocol data unit are consistent with the configuration settings of the multi-spanning tree of the switch itself, such as confirming the configuration name field (Configuration Name) and MSTI information (MSTI message) in the bridge protocol data unit Whether the quantity is the same as the configuration name of the multi-spanning tree of the switch itself and the quantity of eligible expansion trees. When it is determined that the bridge protocol data unit is consistent with the area configuration setting of the multiple spanning tree of the switch itself, update the identification code information of the communication port to the identification code information (MST setting identification code field) in the bridge protocol data unit and confirm Whether the multiple spanning tree protocol record of the communication port that the switch receives the bridging protocol data unit complies with. If not, adjust the protocol record of the communication port.

当判定桥接协议数据单元与交换器本身多生成树格式不同,但符合已知可兼容的多生成树格式时,将桥接协议数据单元格式重新封装转换为交换器本身多生成树的格式。交由交换器的多生成树模块进行协议运作。When it is determined that the bridging protocol data unit is different from the switch's mspanning tree format but conforms to a known compatible mspanning tree format, the bridging protocol data unit format is recapsulated and converted into the switch's own mspanning tree format. The protocol operation is performed by the multiple spanning tree module of the switch.

传送检验程序包括下列步骤,首先判别交换器传送该桥接协议数据单元的通信端口的多生成树协议记录是否为已知可兼容的多生成树协议。The transmission checking procedure includes the following steps. Firstly, it is judged whether the MSTP record of the communication port where the switch transmits the bridging PDU is a known compatible MSTP.

如该通信端口的协议记录符合已知可兼容的多生成树协议,将桥接协议数据单元格式重新封装转换为已知可兼容的多生成树格式。交由交换器的以太网络驱动程序模块进行封包传送。If the protocol record of the communication port conforms to the known and compatible multiple spanning tree protocol, the bridging protocol data unit format is re-encapsulated and converted into the known and compatible multiple spanning tree format. Hand over to the Ethernet driver module of the switch for packet transmission.

此外,本发明还提出一种多生成树协议兼容的系统,包括检验模块,此检验模块包括协议识别模块、区域验证模块以及封包转换模块。检验模块设置于交换器的标准多生成树模块以及以太网络驱动程序模块间,其用以执行前述的接收检验程序以及传送检验程序。协议识别模块、区域验证模块及封包转换模块用以提供进行接收检验程序及传送检验程序时所需的检验功能及数据记录。检验模块、标准多生成树模块以及以太网络驱动程序模块设置于一交换器中。In addition, the present invention also proposes a multiple spanning tree protocol compatible system, which includes a verification module, and the verification module includes a protocol identification module, an area verification module and a packet conversion module. The verification module is arranged between the standard MST module and the Ethernet driver module of the switch, and is used for executing the aforementioned reception verification program and transmission verification program. The protocol identification module, area verification module and packet conversion module are used to provide inspection functions and data records required for receiving inspection procedures and transmission inspection procedures. The verification module, the standard multiple spanning tree module and the Ethernet driver module are arranged in a switch.

协议识别模块包含桥接协议数据单元种类判别功能以及通信端口多生成树协议记录,供进行接收检验程序及传送检验程序时使用.区域验证模块包含桥接协议数据单元区域验证功能以及通信端口识别码信息记录,供进行接收检验程序时使用.封包转换模块包含桥接协议数据单元重新封装功能,供进行接收检验程序及传送检验程序时使用,转换封包为已知的多生成树格式.The protocol identification module includes the bridge protocol data unit type discrimination function and the multiple spanning tree protocol record of the communication port, which is used for the receiving inspection program and the transmission inspection program. The area verification module includes the bridge protocol data unit area verification function and the communication port identification code information record , for use in the receiving inspection program. The packet conversion module includes the bridging protocol data unit re-encapsulation function, which is used in the receiving inspection program and the transmission inspection program, and converts the packet into a known multiple spanning tree format.

另外,本发明还提出一种交换器,该交换器包括上述多生成树协议兼容的系统。In addition, the present invention also proposes a switch, which includes the above-mentioned multiple spanning tree protocol compatible system.

通过本发明,可确保数据封包在不同交换器间兼容运作。Through the invention, it can ensure the compatible operation of the data package among different switches.

本发明的详细特征及优点将在实施方式中详细叙述,其内容足以使任何熟习相关技艺者了解本发明的技术并据以实施,且任何与本发明相关的优点及目的可轻易地从本说明书所揭露的内容、申请专利范围及图式中理解。The detailed features and advantages of the present invention will be described in detail in the implementation manner, and its content is enough to make any person familiar with the related art understand the technology of the present invention and implement it accordingly, and any advantages and objectives related to the present invention can be easily read from this description The content disclosed, the scope of the patent application and the drawings are understood.

以上的关于本发明内容的说明及以下的实施方式的说明是用以示范与解释本发明的原理,并且提供本发明的专利申请范围更进一步的解释。The above description about the content of the present invention and the following description of the implementation are used to demonstrate and explain the principle of the present invention, and provide further explanation of the patent application scope of the present invention.

附图说明Description of drawings

图1a-图1c显示现行符合不同多生成树协议标准的交换器的运作方式。Figures 1a-1c show how current switches that comply with different MSP standards operate.

图2显示本发明所揭示的交换器的示意图。Fig. 2 shows a schematic diagram of the exchanger disclosed in the present invention.

图3a显示本发明所揭示的方法中接收检验程序的执行流程图。Fig. 3a shows a flow chart of the execution of the acceptance verification procedure in the method disclosed in the present invention.

图3b显示本发明所揭示的方法中传送检验程序的执行流程图。FIG. 3b shows a flow chart of the execution of the transmission verification program in the method disclosed in the present invention.

图4a显示符合IEEE标准多生成树协议的桥接协议数据单元的字段格式。Fig. 4a shows the field format of the bridging PDU conforming to the IEEE standard multiple spanning tree protocol.

图4b显示符合思科标准多生成树协议的桥接协议数据单元的字段格式。Figure 4b shows the field format of the bridging PDU according to the Cisco standard multiple spanning tree protocol.

图4c显示符合IEEE标准多生成树协议的桥接协议数据单元的设定识别码字段格式。FIG. 4c shows the format of the set identifier field of the bridging PDU conforming to the IEEE standard MSTP.

图4d显示符合思科标准多生成树协议的桥接协议数据单元的设定识别码字段格式。FIG. 4d shows the format of the setting identifier field of the bridging PDU conforming to the Cisco standard MSTP.

图4e显示符合IEEE标准多生成树协议的桥接协议数据单元的MSTI信息字段格式。Fig. 4e shows the format of the MSTI information field of the bridging PDU conforming to the IEEE standard multiple spanning tree protocol.

图4f显示符合思科标准多生成树协议的桥接协议数据单元的MSTI信息字段格式。Figure 4f shows the format of the MSTI information field of a bridging PDU conforming to the Cisco standard Multiple Spanning Tree Protocol.

图5a显示本发明所揭示的方法的一实施例的示意图。Figure 5a shows a schematic diagram of an embodiment of the method disclosed in the present invention.

图5b显示本发明所揭示的方法的另一实施例的示意图。Figure 5b shows a schematic diagram of another embodiment of the method disclosed in the present invention.

符号说明:Symbol Description:

100-交换器;100-exchange;

102-思科交换器;102-Cisco switch;

104-IEEE标准交换器;104-IEEE standard switch;

106-多生成树所形成的虚拟交换器;106-a virtual switch formed by multiple spanning trees;

108、110、112-多生成树所形成的区域;108, 110, 112-areas formed by multiple spanning trees;

20-交换器;20 - exchanger;

200-检验模块;200-inspection module;

202-IEEE标准多生成树模块;202-IEEE standard multiple spanning tree module;

204-以太网络驱动程序模块;204-Ethernet driver module;

210-接收检验程序;210 - acceptance inspection procedure;

212-传送检验程序;212-transmit inspection procedure;

230-协议辨识模块;230-protocol identification module;

240-区域验证模块;240-area verification module;

250-封包转换模块;250-packet conversion module;

400、402-第三版长度(Version 3 Length)字段;400, 402-the third version length (Version 3 Length) field;

410-MST延伸信息长度字段;410-MST extended information length field;

412、420-MST设定识别码;412, 420-MST setting identification code;

414、422-CIST桥接器辨识码;414, 422-CIST bridge identification code;

404、406-MSTI信息;404, 406-MSTI information;

430、440-多生成树设定识别码的组态设定名称(Configuration Name);430, 440-the configuration setting name (Configuration Name) of the multi-spanning tree setting identification code;

450-MSTI扩张树编号;450-MSTI expansion tree number;

452、460-区域根识别码;452, 460-area root identification code;

454-MSTI桥接器识别码;454-MSTI bridge identification code;

456-MSTI通信端口识别码;456-MSTI communication port identification code;

462-MSTI桥接器优先权;462-MSTI bridge priority;

464-MSTI通信端口优先权;464-MSTI communication port priority;

500、510-加强型交换器(符合本发明所提的方法);500, 510-reinforced type exchanger (according to the method proposed by the present invention);

502-其它交换器(支持其它多生成树);502-other switches (supporting other multiple spanning trees);

504-思科交换器(支持思科标准多生成树);504-Cisco switch (support Cisco standard multiple spanning tree);

506、516-多生成树所形成的区域;506, 516-areas formed by multiple spanning trees;

512-思科标准多生成树所形成的区域;512-Area formed by Cisco standard multiple spanning tree;

514-IEEE标准多生成树所形成的区域。514-IEEE standard multiple spanning tree formed area.

具体实施方式Detailed ways

有关本发明的特征与实作,将配合图式作最佳实施例详细说明如下,请参照图2。图2是显示本发明所揭示的交换器的示意图。在一实施例中,本发明提供一种交换器20,其是以多生成树协议兼容的方法所制成。交换器本身的多生成树协议以IEEE标准多生成树模块为例,交换器已知可兼容的多生成树协议以思科标准多生成树模块为例。Regarding the characteristics and implementation of the present invention, the best embodiment will be described in detail as follows with reference to the drawings, please refer to FIG. 2 . FIG. 2 is a schematic diagram showing the exchanger disclosed in the present invention. In one embodiment, the present invention provides a switch 20, which is manufactured in a method compatible with Multiple Spanning Tree Protocol. The multiple spanning tree protocol of the switch itself takes the IEEE standard multiple spanning tree module as an example, and the known compatible multiple spanning tree protocol of the switch takes the Cisco standard multiple spanning tree module as an example.

首先,提供检验模块200于IEEE标准多生成树模块(MST module)202及以太网络驱动程序模块(LLC Layer&Ethernet Driver Module)204间,检验模块200用以执行接收检验程序210以及传送检验程序212。检验模块200包括协议识别模块230、区域验证模块240以及封包转换模块250。检验模块200、IEEE标准多生成树模块202以及以太网络驱动程序模块204设置于交换器20中。First, a verification module 200 is provided between the IEEE standard multiple spanning tree module (MST module) 202 and the Ethernet driver module (LLC Layer & Ethernet Driver Module) 204, and the verification module 200 is used to execute the receiving verification program 210 and the transmission verification program 212. The verification module 200 includes a protocol identification module 230 , an area verification module 240 and a packet conversion module 250 . The verification module 200 , the IEEE standard multiple spanning tree module 202 and the Ethernet driver module 204 are disposed in the switch 20 .

检验模块200用以接收桥接协议数据单元并检验调整之。当桥接协议数据单元来自以太网络驱动程序模块204时,对于桥接协议数据单元执行接收检验程序210,及当桥接协议数据单元来自IEEE标准多生成树模块202时,对于桥接协议数据单元执行传送检验程序212。The checking module 200 is used for receiving the bridging PDU and checking and adjusting it. The receipt check procedure 210 is performed on the bridging PDU when it comes from the Ethernet driver module 204, and the delivery check procedure is performed on the bridging PDU when it comes from the IEEE standard multiple spanning tree module 202 212.

接收检验程序210细部流程示意图,如图3a所示。首先,当以太网络驱动程序模块204收到桥接协议数据单元(步骤S300),通过协议识别模块230的桥接协议数据单元种类判别功能进行种类判定(步骤S302)。A schematic flow chart of the details of the receiving inspection program 210 is shown in FIG. 3a. Firstly, when the Ethernet driver module 204 receives the bridging PDU (step S300 ), the bridging PDU type judgment function of the protocol identification module 230 is used to determine the type (step S302 ).

当判定桥接协议数据单元符合IEEE标准多生成树格式时,检查交换器收到该桥接协议数据单元的通信端口的多生成树协议记录是否设为思科标准多生成树(步骤S304).如该协议记录为思科标准多生成树,则将该协议记录设定为IEEE标准多生成树(步骤S306)并清除该通信端口的识别码信息记录(步骤S308).When judging that the bridging protocol data unit conforms to the IEEE standard multiple spanning tree format, check whether the switch receives the multiple spanning tree protocol record of the communication port of the bridging protocol data unit and is set to Cisco standard multiple spanning tree (step S304). The record is the Cisco standard MST, then the protocol record is set to the IEEE standard MST (step S306) and clears the identification code information record of the communication port (step S308).

当判定桥接协议数据单元符合思科标准多生成树格式时,通过区域验证模块240的桥接协议数据单元区域验证功能进行区域识别(步骤S310)。验证桥接协议数据单元与交换器的多生成树具有相同区域组态时,记录该桥接协议数据单元中的设定识别码412(请参见图4b)于收到该桥接协议数据单元的通信端口的识别码信息记录中(步骤S312),并将该通信端口的协议记录设定为思科标准多生成树(步骤S314)。When it is judged that the bridge protocol data unit conforms to the Cisco standard multiple spanning tree format, the region identification is performed through the region verification function of the bridge protocol data unit of the region verification module 240 (step S310 ). When verifying that the bridge PDU has the same area configuration as the multiple spanning tree of the switch, record the setting identification code 412 (see FIG. 4b) in the bridging PDU in the communication port receiving the bridging PDU The identification code information is being recorded (step S312), and the protocol record of the communication port is set as the Cisco standard multiple spanning tree (step S314).

最后,如桥接协议数据单元为思科标准多生成树格式,通过封包转换模块250的桥接协议数据单元重新封装功能将该桥接协议数据单元转换为IEEE标准多生成树格式(步骤S316)。然后,通知IEEE标准多生成树模块202收到桥接协议数据单元(步骤S318)。Finally, if the bridging PDU is in the Cisco standard MST format, the bridging PDU is converted into the IEEE standard MST format through the bridging PDU re-encapsulation function of the packet conversion module 250 (step S316). Then, the IEEE standard multiple spanning tree module 202 is notified of the receipt of the bridging protocol data unit (step S318).

其中,协议识别模块230的桥接协议数据单元种类判别功能,请参照图4a-图4b。图4a是显示符合IEEE标准多生成树协议的桥接协议数据单元格式字段,图4b是显示符合思科标准多生成树协议的桥接协议数据单元格式字段。可以下列条件判定为思科多生成树格式,即桥接协议数据单元中的第三版长度(Version 3 Length)字段400数值为0,桥接协议数据单元中的多生成树延伸信息长度(MST Extended Length)字段410数值大于或等于64,桥接协议数据单元的总长度减38需大于或等于多生成树延伸信息长度字段410的数值,桥接协议数据单元的总长度减103需为26的倍数,以及多生成树延伸信息长度字段410数值减64需为26的倍数。For the bridging PDU type discrimination function of the protocol identification module 230 , please refer to FIG. 4 a - FIG. 4 b . Fig. 4a shows the format field of the bridging PDU conforming to the IEEE standard MSP, and Fig. 4b shows the format field of the bridging PDU conforming to the Cisco standard MTP. It can be determined as the Cisco MST format under the following conditions, that is, the value of the Version 3 Length field 400 in the bridging protocol data unit is 0, and the MST Extended Length in the bridging protocol data unit The value of field 410 is greater than or equal to 64, the total length of the bridge protocol data unit minus 38 must be greater than or equal to the value of the length field 410 of the multiple spanning tree extension information, the total length of the bridge protocol data unit minus 103 must be a multiple of 26, and the multi-generation The value of the length field 410 of the tree extension information minus 64 must be a multiple of 26.

区域验证模块240的桥接协议数据单元区域验证功能,请一并参照图4c-图4d。图4c是显示符合IEEE标准多生成树协议的设定识别码字段420的格式,图4d是显示符合思科标准多生成树协议的设定识别码字段412的格式。可以下列条件判定IEEE标准与思科标准多生成树的区域组态设定相同,即桥接协议数据单元中设定识别码字段412的组态名称(ConfigurationName)字段430及包含的MSTI信息(MSTI message)数量与交换器本身多生成树的组态名称及符合条件的扩张树数量相符。Please also refer to FIG. 4 c - FIG. 4 d for the bridging PDU area verification function of the area verification module 240 . FIG. 4 c shows the format of the configuration identifier field 420 conforming to the IEEE standard MSTP, and FIG. 4 d shows the format of the configuration identifier field 412 conforming to the Cisco standard MSTP. It can be judged that the regional configuration setting of the IEEE standard and the Cisco standard MST is the same under the following conditions, that is, the configuration name (ConfigurationName) field 430 of the identification code field 412 and the MSTI information (MSTI message) included in the bridging protocol data unit The quantity is consistent with the configuration name of the multi-spanning tree of the switch itself and the quantity of eligible expansion trees.

封包转换模块250的桥接协议数据单元重新封装功能,请参照图4a-图4b、图4e-图4f。图4a是显示符合IEEE标准多生成树协议的桥接协议数据单元格式字段,图4b是显示符合思科标准多生成树协议的桥接协议数据单元格式字段,图4e是显示符合IEEE标准多生成树协议的MSTI信息字段(Message)406的格式,图4d是显示符合思科标准多生成树协议的MSTI信息字段404的格式。思科标准多生成树封包格式(图4b)转为IEEE标准多生成树封包格式(图4a),即将延伸信息长度字段410数值(64+26*N)转换成为第三版长度字段402数值(64+16*N),复制交换器本身多生成树协议的区域组态识别码数据成为设定识别码字段420数据,其余字段直接设定对应字段数据。思科MSTI信息字段格式(图4f)转为IEEE标准MSTI信息字段格式(图4e),即将区域根识别码(Regional Root Identity)452的第二个字节替换成MSTI扩张树编号450后设成区域根识别码(Regional RootIdentity)460字段数据,MSTI桥接器识别码(Bridge Identity)454的第一个字节设成MSTI桥接器优先权(Bridge Priority)462字段数据,MSTI通信端口识别码(Port Identity)456的第一个字节设成MSTI通信端口优先权(Port Priority)464字段数据,其余字段直接设定对应字段数据。For the bridging PDU re-encapsulation function of the packet conversion module 250, please refer to FIGS. 4a-4b, 4e-4f. Figure 4a shows the bridge protocol data unit format field conforming to the IEEE standard multiple spanning tree protocol, Figure 4b shows the bridge protocol data unit format field conforming to the Cisco standard multiple spanning tree protocol, and Figure 4e shows the bridge protocol data unit format field conforming to the IEEE standard multiple spanning tree protocol The format of the MSTI information field (Message) 406, FIG. 4d shows the format of the MSTI information field 404 conforming to the Cisco standard MSTP. The Cisco standard multiple spanning tree packet format (Figure 4b) is converted to the IEEE standard multiple spanning tree packet format (Figure 4a), that is, the value of the extended information length field 410 (64+26*N) is converted into the third version of the length field 402 value (64 +16*N), copy the area configuration identification code data of the multi-spanning tree protocol of the switch itself to become the data in the setting identification code field 420, and directly set the corresponding field data in the other fields. The Cisco MSTI information field format (Figure 4f) is converted to the IEEE standard MSTI information field format (Figure 4e), that is, the second byte of the Regional Root Identity (Regional Root Identity) 452 is replaced with the MSTI expansion tree number 450 and then set as a region Root identification code (Regional RootIdentity) 460 field data, the first byte of MSTI bridge identification code (Bridge Identity) 454 is set to MSTI bridge priority (Bridge Priority) 462 field data, MSTI communication port identification code (Port Identity) ) The first byte of 456 is set to MSTI communication port priority (Port Priority) 464 field data, and the remaining fields are directly set to corresponding field data.

传送检验程序212细部流程示意图,如图3b所示。首先,当IEEE标准多生成树模块202发送桥接协议数据单元(步骤S320)。通过协议识别模块230的通信端口多生成树协议记录数据进行格式判定(步骤S322)。A schematic diagram of the detailed flow of the transmission inspection program 212 is shown in FIG. 3b. First, when the IEEE standard multiple spanning tree module 202 sends a bridging protocol data unit (step S320). The format is determined by the communication port MSTP record data of the protocol identification module 230 (step S322).

当判定欲发送桥接协议数据单元的通信端口的协议记录为思科标准多生成树时,通过封包转换模块250的桥接协议数据单元重新封装功能将该桥接协议数据单元转换为思科标准多生成树格式(步骤S324)。最后,通知以太网络驱动程序模块204传送桥接协议数据单元(步骤S318)。When it is determined that the protocol record of the communication port to send the bridging PDU is a Cisco standard MST, the bridging PDU is converted into the Cisco standard MST format ( Step S324). Finally, notify the Ethernet driver module 204 to transmit the bridging PDU (step S318).

其中,封包转换模块250的桥接协议数据单元重新封装功能,请参照图4a-图4b、图4e-图4f。图4a是显示符合IEEE标准多生成树协议的桥接协议数据单元格式字段,图4b是显示符合思科标准多生成树协议的桥接协议数据单元格式字段,图4e是显示符合IEEE标准多生成树协议的MSTI信息字段406的格式,图4f是显示符合思科标准多生成树协议的MSTI信息字段404的格式。IEEE标准多生成树封包格式(图4a)转为思科标准多生成树封包格式(图4b),即将第三版长度字段402数值(64+16*N)转换成延伸信息长度字段410数值(64+26*N),而第三版长度字段400数值设为0,复制交换器欲发送封包的通信端口的识别码信息记录成为设定识别码字段412数据,其余字段直接设定对应字段数据。IEEE标准MSTI信息字段格式(图4e)转为思科MSTI信息字段格式(图4f),即将区域根识别码460转换成为区域根识别码452字段数据,区域根识别码460的第二个字节设成MSTI扩张树编号450字段数值,CIST桥接器辨识码(Bridge Identity)422的第一个字节替换成MSTI桥接器优先权462后成为MSTI桥接器识别码454数据,MSTI通信端口优先权464与交换器欲发送封包的通信端口的通信端口编号组成MSTI通信端口识别码456,其余字段直接设定对应字段数据。For the bridging PDU re-encapsulation function of the packet conversion module 250, please refer to FIGS. 4a-4b, 4e-4f. Figure 4a shows the bridge protocol data unit format field conforming to the IEEE standard multiple spanning tree protocol, Figure 4b shows the bridge protocol data unit format field conforming to the Cisco standard multiple spanning tree protocol, and Figure 4e shows the bridge protocol data unit format field conforming to the IEEE standard multiple spanning tree protocol The format of the MSTI information field 406, FIG. 4f shows the format of the MSTI information field 404 conforming to the Cisco standard Multiple Spanning Tree Protocol. The IEEE standard multiple spanning tree packet format (Figure 4a) is converted to the Cisco standard multiple spanning tree packet format (Figure 4b), that is, the value of the length field 402 of the third version (64+16*N) is converted into the value of the extended information length field 410 (64 +26*N), and the value of the length field 400 of the third version is set to 0, and the identification code information record of the communication port that the copy switch intends to send the packet becomes the data set in the identification code field 412, and the remaining fields directly set the corresponding field data. The IEEE standard MSTI information field format (Fig. 4e) is converted into the Cisco MSTI information field format (Fig. 4f). into the value of the MSTI expansion tree number 450 field, the first byte of the CIST bridge identification code (Bridge Identity) 422 is replaced with the MSTI bridge priority 462 and then becomes the data of the MSTI bridge identification code 454, and the MSTI communication port priority 464 and The communication port number of the communication port to which the switch wants to send the packet constitutes the MSTI communication port identification code 456, and the other fields are directly set with corresponding field data.

请再参照图2,图2是显示本发明所揭示的交换器的示意图。在一实施例中,本发明提出一种多生成树协议兼容的系统,包括检验模块200,检验模块200包括协议识别模块230、区域验证模决240及封包转换模块250。检验模块200设置于标准多生成树模块202以及以太网络驱动程序模块204间,其用以执行接收检验程序210以及传送检验程序212。检验模块200、标准多生成树模块202以及以太网络驱动程序模块204设置于交换器20中。Please refer to FIG. 2 again. FIG. 2 is a schematic diagram showing the switch disclosed by the present invention. In one embodiment, the present invention proposes a system compatible with multiple spanning tree protocols, including a verification module 200 , and the verification module 200 includes a protocol identification module 230 , an area verification module 240 and a packet conversion module 250 . The verification module 200 is disposed between the standard MST module 202 and the Ethernet driver module 204 , and is used for executing the reception verification program 210 and the transmission verification program 212 . The verification module 200 , the standard MST module 202 and the Ethernet driver module 204 are disposed in the switch 20 .

协议识别模块230包含桥接协议数据单元种类判别功能以及通信端口多生成树协议记录,供进行接收检验程序及传送检验程序时使用。协议识别模块230的桥接协议数据单元种类判别功能如前所述的方法步骤,在此不予赘述。The protocol identification module 230 includes a bridging PDU type discrimination function and a communication port MSTP record for use in receiving and transmitting verification procedures. The bridging PDU type discrimination function of the protocol identification module 230 is the same as the above-mentioned method steps, which will not be repeated here.

区域验证模块240的桥接协议数据单元区域验证功能以及通信端口识别码信息记录,供进行接收检验程序时使用。区域验证模块240包含桥接协议数据单元区域验证功能如前所述的方法步骤,在此不予赘述。The area verification function of the bridge protocol data unit and the information record of the communication port identification code of the area verification module 240 are used for receiving and checking procedures. The area verification module 240 includes the method steps of the bridging PDU area verification function described above, which will not be repeated here.

封包转换模块250包含桥接协议数据单元重新封装功能,供进行接收检验程序及传送检验程序时使用。封包转换模块250的桥接协议数据单元重新封装功能,包含转换IEEE标准多生成树格式成为思科标准多生成树格式以及转换思科标准多生成树格式成为IEEE标准多生成树格式两部分,如前所述的方法步骤,在此不予赘述。The packet conversion module 250 includes a bridging PDU re-encapsulation function, which is used for receiving and transmitting verification procedures. The bridging protocol data unit re-encapsulation function of the packet conversion module 250 includes converting the IEEE standard multiple spanning tree format into the Cisco standard multiple spanning tree format and converting the Cisco standard multiple spanning tree format into the IEEE standard multiple spanning tree format, as described above The method steps are not repeated here.

请参照图5a-图5b,假设网络中具有三个交换器500、502及504,交换器500为应用本发明所提出的方法所制成的交换器(以下称加强型交换器),交换器502为一般或符合其它多生成树协议的交换器(以下称其它交换器),交换器504为符合思科标准多生成树协议的交换器(以下称思科交换器).当思科交换器504与加强型交换器500设定为同一区域时,则加强型交换器500与思科交换器504可形成一区域506,与理想状况相符.Please refer to Fig. 5a-Fig. 5b, assuming that there are three switches 500, 502 and 504 in the network, the switch 500 is a switch (hereinafter referred to as an enhanced switch) made by applying the method proposed by the present invention, the switch 502 is a switch (hereinafter referred to as other switches) that is general or conforms to other multiple spanning tree protocols, and switch 504 is a switch (hereinafter referred to as a Cisco switch) that conforms to the Cisco standard multiple spanning tree protocol. When the enhanced switch 500 is set to the same area, the enhanced switch 500 and the Cisco switch 504 can form an area 506, which is consistent with the ideal situation.

当网络系统较复杂时,如图5b所示,交换器510为加强型交换器,区域514由多台思科交换器所形成,区域516由多台标准交换器(符合IEEE标准多生成树协议)所形成,由于中间以加强型交换器510相耦接,因此便可形成新的多生成树区域516。When the network system is more complex, as shown in Figure 5b, the switch 510 is an enhanced switch, the area 514 is formed by multiple Cisco switches, and the area 516 is formed by multiple standard switches (conforming to the IEEE standard multiple spanning tree protocol) As a result, a new multiple spanning tree area 516 can be formed because the enhanced switches 510 are connected in the middle.

虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何熟习此技艺者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的保护范围当视申请专利范围所界定的为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, this The scope of protection of an invention shall be determined by the scope of the patent application.

Claims (19)

1.一种多生成树协议兼容的方法,其特征在于包括下列步骤:1. A method compatible with Multiple Spanning Tree Protocol, characterized in that comprising the following steps: 提供一检验模块于一标准多生成树模块以及一以太网络驱动程序模块间,上述检验模块用以执行一接收检验程序以及一传送检验程序,上述检验模块、上述标准多生成树模块以及上述以太网络驱动程序模块设置于一交换器中;Provide a verification module between a standard multiple spanning tree module and an Ethernet driver module, the verification module is used to execute a reception verification program and a transmission verification program, the verification module, the standard multi-spanning tree module and the Ethernet network The driver module is set in a switch; 接收一桥接协议数据单元;以及receiving a bridging protocol data unit; and 当上述桥接协议数据单元来自上述以太网络驱动程序模块时,对于上述桥接协议数据单元执行上述接收检验程序,当上述桥接协议数据单元来自上述标准多生成树模块时,对于上述桥接协议数据单元执行上述传送检验程序。When the bridging protocol data unit comes from the above-mentioned Ethernet driver module, execute the above-mentioned receiving inspection program for the bridging protocol data unit; when the bridging protocol data unit comes from the above-mentioned standard multiple spanning tree module, execute the above-mentioned Send inspection program. 2.如权利要求1所述的多生成树协议兼容的方法,其特征在于,上述接收检验程序包括下列步骤:2. the method compatible with Multiple Spanning Tree Protocol as claimed in claim 1, is characterized in that, above-mentioned acceptance inspection program comprises the following steps: 判别上述桥接协议数据单元的种类;Discriminate the type of the bridging protocol data unit; 当判定上述桥接协议数据单元符合一第一多生成树协议时,判别上述交换器中的一通信端口是否记录为一第二多生成树协议;When it is determined that the bridging protocol data unit complies with a first multiple spanning tree protocol, it is determined whether a communication port in the switch is recorded as a second multiple spanning tree protocol; 当上述通信端口记录为上述第二多生成树协议时,将上述通信端口设定为符合上述第一多生成树协议;When the above-mentioned communication port is recorded as the above-mentioned second multiple spanning tree protocol, setting the above-mentioned communication port to conform to the above-mentioned first multiple spanning tree protocol; 当判定上述桥接协议数据单元符合上述第二多生成树协议时,识别上述桥接协议数据单元与上述交换器的多生成树区域组态是否相同;When determining that the bridging protocol data unit conforms to the second multiple spanning tree protocol, identifying whether the bridging protocol data unit is the same as the multiple spanning tree area configuration of the switch; 当上述桥接协议数据单元与上述交换器的多生成树区域组态相同时,将上述通信端口记录设定为符合上述第二多生成树协议;以及When the bridging protocol data unit is the same as the multiple spanning tree area configuration of the switch, setting the communication port record to conform to the second multiple spanning tree protocol; and 当判定上述桥接协议数据单元符合上述第二多生成树协议时,封装上述桥接协议数据单元为符合上述第一多生成树协议格式。When it is determined that the bridging protocol data unit conforms to the second multiple spanning tree protocol, encapsulating the bridging protocol data unit to conform to the format of the first multiple spanning tree protocol. 3.如权利要求2所述的多生成树协议兼容的方法,其特征在于,上述判别上述桥接协议数据单元的种类是通过下列任意一个步骤完成:3. the method compatible with Multiple Spanning Tree Protocol as claimed in claim 2, is characterized in that, the kind of above-mentioned discriminating above-mentioned bridging protocol data unit is to finish by following any one of steps: 判别上述桥接协议数据单元中的一第三版长度字段数值是否为0;Judging whether the value of a third version length field in the bridging PDU is 0; 判别上述桥接协议数据单元中的一多生成树延伸信息长度字段数值是否大于或等于64;Determine whether the value of the multi-spanning tree extension information length field in the bridging protocol data unit is greater than or equal to 64; 上述桥接协议数据单元总长度减38是否大于或等于上述多生成树延伸信息长度字段数值;Whether the total length of the bridge protocol data unit minus 38 is greater than or equal to the value of the length field of the multiple spanning tree extension information; 上述桥接协议数据单元总长度减103是否为26的倍数;以及Whether the total length of the bridging PDU minus 103 is a multiple of 26; and 上述多生成树延伸信息长度字段数值减64是否为26的倍数。Whether the value of the above-mentioned multiple spanning tree extension information length field minus 64 is a multiple of 26. 4.如权利要求2所述的多生成树协议兼容的方法,其特征在于,在上述将上述通信端口设定为符合上述第一多生成树协议的步骤后,还包括清除一识别码信息,上述识别码信息用以表示与上述第一多生成树协议传输数据的相关信息,上述识别码信息记录于上述接收桥接协议数据单元的通信端口中。4. The method compatible with multiple spanning tree protocols as claimed in claim 2 is characterized in that, after the above-mentioned communication port is set to conform to the step of the first multiple spanning tree protocol, it also includes clearing an identification code information, The identification code information is used to represent information related to the first multiple spanning tree protocol transmission data, and the identification code information is recorded in the communication port of the receiving bridge protocol data unit. 5.如权利要求2所述的多生成树协议兼容的方法,其特征在于,在上述将上述通信端口设定为符合上述第二多生成树协议的步骤前,还包括记录一识别码信息,上述识别码信息用以表示与上述第二多生成树协议传输数据的相关信息,上述识别码信息记录于上述接收桥接协议数据单元的通信端口中。5. The method compatible with multiple spanning tree protocols as claimed in claim 2, characterized in that, before the above-mentioned communication port is set to conform to the step of the second multiple spanning tree protocol, it also includes recording an identification code information, The identification code information is used to represent information related to the second MSTP transmission data, and the identification code information is recorded in the communication port of the receiving bridge PDU. 6.如权利要求2所述的多生成树协议兼容的方法,其特征在于,上述识别上述桥接协议数据单元与上述交换器的多生成树区域是否相同的步骤,是通过下列任意一个步骤完成:6. the multiple spanning tree protocol compatible method as claimed in claim 2, is characterized in that, whether above-mentioned identification above-mentioned bridging protocol data unit and the multiple spanning tree area of above-mentioned switch are identical step, is to finish by following any one of steps: 识别上述桥接协议数据单元中的组态名称字段与上述交换器的组态名称字段是否相同;以及identifying whether the configuration name field in said bridge PDU is identical to the configuration name field of said switch; and 识别上述桥接协议数据单元中的MSTI信息数量与上述交换器建立符合条件的扩张树数量是否相同。It is identified whether the number of MSTI information in the bridging PDU is the same as the number of qualified expansion trees established by the switch. 7.如权利要求2所述的多生成树协议兼容的方法,其特征在于,上述第一多生成树协议为IEEE标准多生成树协议,其为交换器本身的多生成树协议。7. The multiple spanning tree protocol compatible method according to claim 2, wherein the first multiple spanning tree protocol is IEEE standard multiple spanning tree protocol, which is the multiple spanning tree protocol of the switch itself. 8.如权利要求2所述的多生成树协议兼容的方法,其特征在于,上述第二多生成树协议为思科标准多生成树协议,其为交换器已知可兼容的多生成树协议。8. The method for compatibility with multiple spanning tree protocols according to claim 2, wherein the second multiple spanning tree protocol is a Cisco standard multiple spanning tree protocol, which is a known compatible multiple spanning tree protocol for switches. 9.如权利要求1所述的多生成树协议兼容的方法,其特征在于,上述传送检验程序包括下列步骤:9. the multiple spanning tree protocol compatible method as claimed in claim 1 is characterized in that, above-mentioned transmission checking program comprises the following steps: 判别上述交换器中的一通信端口记录是否符合上述第二多生成树协议;以及judging whether a communication port record in the switch conforms to the second multiple spanning tree protocol; and 当上述通信端口符合上述第二多生成树协议时,封装上述桥接协议数据单元符合上述第二多生成树协议。When the communication port conforms to the second multiple spanning tree protocol, encapsulating the bridging protocol data unit conforms to the second multiple spanning tree protocol. 10.一种多生成树协议兼容的系统,其特征在于包括:10. A multiple spanning tree protocol compatible system, characterized in that it comprises: 一检验模块,其设置于一标准多生成树模块以及一以太网络驱动程序模块间,上述检验模块用以执行一接收检验程序以及一传送检验程序,上述检验模块、上述标准多生成树模块以及上述以太网络驱动程序模块设置于一交换器中;An inspection module, which is arranged between a standard multiple spanning tree module and an Ethernet driver module, the above inspection module is used to execute a receiving inspection program and a transmission inspection program, the above inspection module, the above standard multiple spanning tree module and the above The Ethernet driver module is set in a switch; 其中,上述检验模块包括:Among them, the above-mentioned inspection modules include: 一协议识别模块,用以提供桥接协议数据单元种类判别功能及通信端口的多生成树协议记录;A protocol identification module, which is used to provide the bridge protocol data unit type discrimination function and the multiple spanning tree protocol record of the communication port; 一区域验证模块,用以提供桥接协议数据单元区域验证功能以及通信端口的识别码信息记录;以及An area verification module, which is used to provide the bridge protocol data unit area verification function and the identification code information record of the communication port; and 一封包转换模块,用以提供不同格式的桥接协议数据单元重新封装功能;A packet conversion module, which is used to provide the re-encapsulation function of bridging protocol data units in different formats; 其中,当检验模块执行接收检验程序以及传送检验程序时,所需的功能及参数由上述协议识别模块、上述区域验证模块以及上述封包转换模块所提供。Wherein, when the verification module executes the receiving verification program and the transmitting verification program, the required functions and parameters are provided by the above-mentioned protocol identification module, the above-mentioned area verification module and the above-mentioned packet conversion module. 11.如权利要求10所述的多生成树协议兼容的系统,其特征在于,上述检验模块在执行上述接收检验程序时,还用以:11. The system compatible with Multiple Spanning Tree Protocol as claimed in claim 10, characterized in that, when the above-mentioned verification module is executing the above-mentioned reception verification program, it is also used to: 判别上述桥接协议数据单元的种类;Discriminate the type of the bridging protocol data unit; 当判定上述桥接协议数据单元符合一第一多生成树协议时,判别上述交换器中的一通信端口是否记录为一第二多生成树协议;When it is determined that the bridging protocol data unit complies with a first multiple spanning tree protocol, it is determined whether a communication port in the switch is recorded as a second multiple spanning tree protocol; 当上述通信端口记录符合上述第二多生成树协议时,将上述通信端口设定为符合上述第一多生成树协议;When the above-mentioned communication port record conforms to the above-mentioned second multiple spanning tree protocol, setting the above-mentioned communication port to conform to the above-mentioned first multiple spanning tree protocol; 当判定上述桥接协议数据单元符合上述第二多生成树协议时,识别上述桥接协议数据单元与上述交换器的多生成树区域组态是否相同;When determining that the bridging protocol data unit conforms to the second multiple spanning tree protocol, identifying whether the bridging protocol data unit is the same as the multiple spanning tree area configuration of the switch; 当上述桥接协议数据单元与上述交换器的多生成树区域组态相同时,将上述通信端口记录设定为符合上述第二多生成树协议;以及When the bridging protocol data unit is the same as the multiple spanning tree area configuration of the switch, setting the communication port record to conform to the second multiple spanning tree protocol; and 当判定上述桥接协议数据单元符合上述第二多生成树协议时,封装上述桥接协议数据单元为符合上述第一多生成树协议格式.When it is determined that the bridging protocol data unit conforms to the second multiple spanning tree protocol, encapsulating the bridging protocol data unit to conform to the first multiple spanning tree protocol format. 12.如权利要求11所述的多生成树协议兼容的系统,其特征在于,上述判别上述桥接协议数据单元的种类是由协议识别模块所提供的功能,是通过下列任意一个条件完成:12. The system compatible with Multiple Spanning Tree Protocol as claimed in claim 11, characterized in that, the above-mentioned discrimination of the type of the above-mentioned bridging protocol data unit is a function provided by the protocol identification module, and is completed by any one of the following conditions: 上述桥接协议数据单元中的一第三版长度字段数值是否为0;Whether the value of a third version length field in the bridging PDU is 0; 上述桥接协议数据单元中的一多生成树延伸信息长度字段数值是否大于或等于64;Whether the value of the multi-spanning tree extension information length field in the bridge protocol data unit is greater than or equal to 64; 上述桥接协议数据单元长度减38是否大于或等于上述多生成树延伸信息长度字段数值;Whether the length of the bridge protocol data unit minus 38 is greater than or equal to the value of the length field of the multiple spanning tree extension information; 上述桥接协议数据单元长度减103是否为26的倍数;以及Whether the above bridging PDU length minus 103 is a multiple of 26; and 上述多生成树延伸信息长度字段数值减64是否为26的倍数。Whether the value of the above-mentioned multiple spanning tree extension information length field minus 64 is a multiple of 26. 13.如权利要求11所述的多生成树协议兼容的系统,其特征在于,将上述协议识别模块所提供的通信端口记录设定为符合上述第一多生成树协议后,还用以清除一识别码信息,上述识别码信息用以表示与上述第一多生成树协议传输数据的相关信息,上述识别码信息记录于上述接收桥接协议数据单元的通信端口中。13. the multiple spanning tree protocol compatible system as claimed in claim 11, is characterized in that, after the communication port record provided by the above-mentioned protocol identification module is set to meet the above-mentioned first multiple spanning tree protocol, it is also used to clear a Identification code information, where the identification code information is used to represent information related to the first multiple spanning tree protocol transmission data, and the identification code information is recorded in the communication port of the receiving bridge protocol data unit. 14.如权利要求11所述的多生成树协议兼容的系统,其特征在于,将上述协议识别模块所提供的通信端口记录设定为符合上述第二多生成树协议前,还用以记录一识别码信息,上述识别码信息用以表示与上述第二多生成树协议传输数据的相关信息,上述识别码信息记录于上述接收桥接协议数据单元的通信端口中。14. the multiple spanning tree protocol compatible system as claimed in claim 11, is characterized in that, before the communication port record provided by the above-mentioned protocol identification module is set to meet the above-mentioned second multiple spanning tree protocol, it is also used to record a Identification code information, where the identification code information is used to represent information related to the second MSTP transmission data, and the identification code information is recorded in the communication port of the receiving bridging protocol data unit. 15.如权利要求11所述的多生成树协议兼容的系统,其特征在于,上述识别上述桥接协议数据单元与上述交换器的多生成树区域组态是否相同是由区域检验模块所提供的功能,是通过下列任意一个条件完成:15. The system compatible with Multiple Spanning Tree Protocol as claimed in claim 11, characterized in that, the above-mentioned identifying whether the multiple spanning tree area configurations of the above-mentioned bridging protocol data unit and the above-mentioned switch are the same is the function provided by the area inspection module , is fulfilled by any of the following conditions: 上述桥接协议数据单元中的组态名称字段与上述交换器的组态名称字段是否相同;以及whether the configuration name field in said bridging PDU is the same as the configuration name field of said switch; and 上述桥接协议数据单元中的MSTI信息数量与上述交换器建立符合条件的扩张树数量是否相同。Whether the quantity of MSTI information in the bridging PDU is the same as the quantity of eligible expansion trees established by the switch. 16.如权利要求11所述的多生成树协议兼容的系统,其特征在于,上述第一多生成树协议为IEEE标准多生成树协议,为交换器本身的多生成树协议。16. The system compatible with multiple spanning tree protocols according to claim 11, wherein the first multiple spanning tree protocol is IEEE standard multiple spanning tree protocol, which is the multiple spanning tree protocol of the switch itself. 17.如权利要求11所述的多生成树协议兼容的系统,其特征在于,上述第二多生成树协议为思科标准多生成树协议,为交换器已知可兼容的多生成树协议。17. The system compatible with multiple spanning tree protocols according to claim 11, wherein the second multiple spanning tree protocol is a Cisco standard multiple spanning tree protocol, which is a known compatible multiple spanning tree protocol for switches. 18.如权利要求10所述的多生成树协议兼容的系统,其特征在于,上述检验模块在执行上述传送检验程序时,还用以:18. The system compatible with Multiple Spanning Tree Protocol as claimed in claim 10, characterized in that, when the above-mentioned inspection module is executing the above-mentioned transmission inspection program, it is also used to: 判别上述交换器中的一通信端口记录是否符合上述第二多生成树协议;以及judging whether a communication port record in the switch conforms to the second multiple spanning tree protocol; and 当上述通信端口符合上述第二多生成树协议时,封装上述桥接协议数据单元符合上述第二多生成树协议。When the communication port conforms to the second multiple spanning tree protocol, encapsulating the bridging protocol data unit conforms to the second multiple spanning tree protocol. 19.一种交换器,其特征在于,所述交换器包括权利要求10至18任一所述的多生成树协议兼容的系统。19. A switch, characterized in that the switch comprises the Multiple Spanning Tree Protocol compatible system according to any one of claims 10 to 18.
CN200610000387A 2006-01-06 2006-01-06 multiple spanning tree protocol compatible method, system and related switch Expired - Fee Related CN1997002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610000387A CN1997002B (en) 2006-01-06 2006-01-06 multiple spanning tree protocol compatible method, system and related switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610000387A CN1997002B (en) 2006-01-06 2006-01-06 multiple spanning tree protocol compatible method, system and related switch

Publications (2)

Publication Number Publication Date
CN1997002A CN1997002A (en) 2007-07-11
CN1997002B true CN1997002B (en) 2010-05-12

Family

ID=38251932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610000387A Expired - Fee Related CN1997002B (en) 2006-01-06 2006-01-06 multiple spanning tree protocol compatible method, system and related switch

Country Status (1)

Country Link
CN (1) CN1997002B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1353902A (en) * 1999-12-06 2002-06-12 阿尔卡塔尔公司 Telecommunication gateway between private network and mobile network
US20030152085A1 (en) * 1996-12-25 2003-08-14 Tetsuro Yoshimoto IP switch, interface circuit and ATM switch used for IP switch, and IP switch network system
US6667985B1 (en) * 1998-10-28 2003-12-23 3Com Technologies Communication switch including input bandwidth throttling to reduce output congestion
WO2004039015A2 (en) * 2002-10-24 2004-05-06 Cisco Technology, Inc. Modified spanning tree protocol for metropolitan area network
CN1620056A (en) * 2003-11-21 2005-05-25 诠盛科技股份有限公司 Bridge protocol data unit verification method using bridge address permission table

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030152085A1 (en) * 1996-12-25 2003-08-14 Tetsuro Yoshimoto IP switch, interface circuit and ATM switch used for IP switch, and IP switch network system
US6667985B1 (en) * 1998-10-28 2003-12-23 3Com Technologies Communication switch including input bandwidth throttling to reduce output congestion
CN1353902A (en) * 1999-12-06 2002-06-12 阿尔卡塔尔公司 Telecommunication gateway between private network and mobile network
WO2004039015A2 (en) * 2002-10-24 2004-05-06 Cisco Technology, Inc. Modified spanning tree protocol for metropolitan area network
CN1620056A (en) * 2003-11-21 2005-05-25 诠盛科技股份有限公司 Bridge protocol data unit verification method using bridge address permission table

Also Published As

Publication number Publication date
CN1997002A (en) 2007-07-11

Similar Documents

Publication Publication Date Title
CA2535134C (en) Compatible methods and systems for multiple spanning tree protocols
US7991351B2 (en) Extension of wired controller area networks to wireless personal area networks
US8705502B2 (en) Using encapsulation to enable 802.1 bridging across 802.11 links
JP5345942B2 (en) Ethernet OAM in intermediate nodes of PBT network
EP1890518B1 (en) Communication system, wireless-communication device, and control method therefor
US8576727B2 (en) System and method for unique identifier exchange during auto-negotiation
JP2011515057A5 (en)
CN102821050A (en) Processing method for applying rapid spanning tree protocol to monocyclic network topology
US6741566B1 (en) Remote management ethernet network and device
EP1327328B1 (en) Method for linking several communication busses using wireless links
CN113892247A (en) Relay device, vehicle, communication method, and communication program
KR20020025847A (en) Internal communication protocol for data switching equipment
CN104283746A (en) System and method for realizing integration of three networks of digital transformer substation by using FPGA
KR101016234B1 (en) Device for connecting the wireless network to at least one other network
CN1997002B (en) multiple spanning tree protocol compatible method, system and related switch
CN113194494A (en) Air interface resource control method, device, network side equipment and terminal
JP4076160B2 (en) Method for managing a communication network including a wireless link having more than two wireless devices
CN1825832B (en) Fast Ring Spanning Tree Protocol
JP5089363B2 (en) Communication system and ring node device
KR101538348B1 (en) Method and system for setting detection frame timeout duration of ethernet node
JP3908667B2 (en) Mechanism to extract LARQ header and regenerate FCS to support return to sleep mode
CN104079485A (en) Method and device of transmitting appointed forwarder information
JP4467500B2 (en) Network relay device
US20030206543A1 (en) Partitioned medium access control
WO2013185535A1 (en) Apparatus, method, and system for convergence and compatibility of protocol stack

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100512

Termination date: 20210106

CF01 Termination of patent right due to non-payment of annual fee