CN100461743C - A method and switch for rapid migration - Google Patents
A method and switch for rapid migration Download PDFInfo
- Publication number
- CN100461743C CN100461743C CNB2007100869125A CN200710086912A CN100461743C CN 100461743 C CN100461743 C CN 100461743C CN B2007100869125 A CNB2007100869125 A CN B2007100869125A CN 200710086912 A CN200710086912 A CN 200710086912A CN 100461743 C CN100461743 C CN 100461743C
- Authority
- CN
- China
- Prior art keywords
- mst
- spanning tree
- handshake
- multiple spanning
- request message
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 230000005012 migration Effects 0.000 title claims abstract description 23
- 238000013508 migration Methods 0.000 title claims abstract description 23
- 230000004044 response Effects 0.000 claims abstract description 73
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 49
- 101001042190 Medicago scutellata Bowman-Birk type proteinase inhibitor Proteins 0.000 claims description 92
- 230000008569 process Effects 0.000 claims description 50
- DWSYCUKCNSVBRA-UHFFFAOYSA-N 4-(5-methylsulfonyltetrazol-1-yl)phenol Chemical compound CS(=O)(=O)C1=NN=NN1C1=CC=C(C=C1)O DWSYCUKCNSVBRA-UHFFFAOYSA-N 0.000 claims description 43
- 101710167643 Serine/threonine protein phosphatase PstP Proteins 0.000 claims description 43
- 238000012545 processing Methods 0.000 claims description 36
- 238000003672 processing method Methods 0.000 claims description 24
- 230000004913 activation Effects 0.000 claims description 9
- 230000003068 static effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 230000000903 blocking effect Effects 0.000 description 4
- 230000007704 transition Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000004148 unit process Methods 0.000 description 2
- 101710093674 Cyclic nucleotide-gated cation channel beta-1 Proteins 0.000 description 1
- 102100025946 Transforming growth factor beta activator LRRC32 Human genes 0.000 description 1
- 101710169732 Transforming growth factor beta activator LRRC32 Proteins 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003881 globally optimized alternating phase rectangular pulse Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035755 proliferation Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明提供一种快速迁移的方法和交换机,具体为:当新激活多生成树实例(MSTI)时,在MST域间,下游多生成树(MST)域边界交换机接收来自上游MST域边界交换机针对新激活的MSTI的握手请求报文,再返回握手响应报文;上游MST域边界交换机接收到握手响应报文后将新激活的MSTI迁移为转发状态。应用本发明方案,由于上游MST域边界交换机可以将新激活的MSTI快速迁移到转发状态,而无需等待一定的延时,从而可以快速地将虚拟局域网(VLAN)迁移到转发状态,提高VLAN连通的整体性能。
The present invention provides a method and a switch for fast migration, specifically: when a multiple spanning tree instance (MSTI) is newly activated, between MST domains, a downstream multiple spanning tree (MST) domain boundary switch receives a target from an upstream MST domain boundary switch. The handshake request message of the newly activated MSTI returns a handshake response message; after receiving the handshake response message, the upstream MST domain border switch transfers the newly activated MSTI to the forwarding state. Applying the scheme of the present invention, since the upstream MST domain border switch can quickly migrate the newly activated MSTI to the forwarding state without waiting for a certain delay, so that the virtual local area network (VLAN) can be quickly migrated to the forwarding state, and the reliability of VLAN connectivity is improved. overall performance.
Description
技术领域 technical field
本发明涉及虚拟局域网领域技术,特别是涉及一种快速迁移的方法和交换机。The invention relates to the technology in the field of virtual local area network, in particular to a fast migration method and a switch.
背景技术 Background technique
虚拟局域网(VLAN,Virtual Local Area Network)是一种通过将局域网内的设备逻辑地划分为一个个网段,实现虚拟工作组的技术。虚拟局域网组网时,由于二层网络中交换机并不能象路由器一样明确报文可以经过多少次转发,一旦网络存在环路,就会造成报文在环路内不断循环和增生而产生广播风暴。Virtual Local Area Network (VLAN, Virtual Local Area Network) is a technology that realizes a virtual workgroup by logically dividing devices in a local area network into network segments. In virtual local area network networking, because the switch in the layer 2 network cannot specify how many times the message can be forwarded like the router, once there is a loop in the network, it will cause the message to circulate and proliferate continuously in the loop, resulting in a broadcast storm.
在这种情况下,生成树协议(STP,Spanning Tree Protocol)便应运而生了。STP协议是一种二层管理协议,运行该协议的设备可以通过彼此交互信息而发现网络中的环路,并适当地对某些端口进行阻塞以消除环路,最终将环路网络修剪成无环路的树型网络,从而避免报文在环路网络中不断增生和无限循环。In this case, Spanning Tree Protocol (STP, Spanning Tree Protocol) came into being. The STP protocol is a layer-2 management protocol. Devices running this protocol can discover loops in the network by exchanging information with each other, and properly block some ports to eliminate loops, and finally prune the loop network into a network without loops. Loop tree network, so as to avoid the continuous proliferation and infinite loop of packets in the loop network.
在生成树型网络的过程中,为了不产生暂时性的环路,STP采用一种状态迁移机制,并规定在生成树过程中指定的根端口和指定端口需要经过一定的延时之后才能进入转发状态,才能真正转发数据。但STP无法实现快速迁移,即使在点对点链路或边缘端口,也必须经过一定的延时才能迁移到转发状态。快速生成树协议(RSTP,Rapid Spanning Tree Protocol)就是为了克服STP协议无法快速迁移的缺点而提出来的,但与STP协议一样,RSTP也只能使局域网内所有交换机共享一个生成树,不能按照VLAN本身来阻塞冗余链路,所有VLAN的报文都必须沿着一个生成树进行转发。In the process of spanning a tree network, in order not to generate temporary loops, STP adopts a state transition mechanism, and stipulates that the root port and designated port specified in the spanning tree process need to go through a certain delay before entering forwarding. state, in order to actually forward the data. However, STP cannot implement fast migration. Even on a point-to-point link or an edge port, a certain delay must pass before migrating to the forwarding state. Rapid Spanning Tree Protocol (RSTP, Rapid Spanning Tree Protocol) was proposed to overcome the shortcomings of the STP protocol that cannot be quickly migrated, but like the STP protocol, RSTP can only enable all switches in the LAN to share a spanning tree, and cannot By itself to block redundant links, all VLAN packets must be forwarded along a spanning tree.
为此,目前提出一种多生成树协议(MSTP,Multiple Spanning TreeProtocol)来弥补STP和RSTP的缺陷,既可以快速迁移,又可以使不同VLAN报文按照各自的路径转发。MSTP将整个交换网络划分为若干个多生成树域(MST,Multiple Spanning Tree),各个MST域之间通过计算生成公共生成树(CST,Common Spanning Tree)。而每一个MST域内则可以计算生成多个独立的生成树,每一个独立的生成树又被称为一个多生成树实例。相同拓扑结构的VLAN可以映射到同一个实例上,VLAN在端口上的转发状态就取决于对应实例在MSTP中的状态。另外,域内的实例分为内部生成树(IST,Internal Spanning Tree)实例和多生成树实例(MSTI,Multiple Spanning TreeInstance),其中,IST又称为0实例,可以与域间的CST共同构成整个交换网络的生成树,即公共和内部生成树(CIST,Common and Internal SpanningTree),其它的多生成树实例则无此功能。For this reason, a Multiple Spanning Tree Protocol (MSTP, Multiple Spanning Tree Protocol) is currently proposed to make up for the defects of STP and RSTP, which can not only quickly migrate, but also make different VLAN packets forward according to their respective paths. MSTP divides the entire switching network into several multiple spanning tree domains (MST, Multiple Spanning Tree), and each MST domain generates a common spanning tree (CST, Common Spanning Tree) through calculation. In each MST domain, multiple independent spanning trees can be calculated and generated, and each independent spanning tree is called a multiple spanning tree instance. VLANs with the same topology can be mapped to the same instance, and the forwarding state of the VLAN on the port depends on the state of the corresponding instance in MSTP. In addition, the instances in the domain are divided into Internal Spanning Tree (IST, Internal Spanning Tree) instances and Multiple Spanning Tree Instances (MSTI, Multiple Spanning TreeInstance). Among them, IST is also called 0 instance, which can form the whole exchange together with the CST between domains. The spanning tree of the network, that is, the common and internal spanning tree (CIST, Common and Internal SpanningTree), other multiple spanning tree instances do not have this function.
MSTP还规定,MST域内的各个实例可以采用与RSTP中相似的方法快速进入转发状态,而MST域间则只有CIST实例才采用该方法快速进入转发。在这种情况下,如果新创建了某个VLAN,并为此新激活某个对应的多生成树实例MSTI,那么该多生成树实例只能在域内进行快速迁移,在域间则必须按照MSTP协议的规定,经过30秒的延时后才能进入转发状态,从而影响VLAN连通的整体性能。MSTP also stipulates that each instance in the MST domain can quickly enter the forwarding state using a method similar to that in RSTP, while only CIST instances between MST domains can quickly enter the forwarding state using this method. In this case, if a new VLAN is newly created and a corresponding multiple spanning tree instance MSTI is newly activated for this purpose, then the multiple spanning tree instance can only be quickly migrated within the domain, and must follow the MSTP protocol between domains. According to the protocol, the forwarding state can only be entered after a delay of 30 seconds, thus affecting the overall performance of VLAN connectivity.
由此可见,现有技术还无法在域间将多生成树实例进行快速迁移。It can be seen that the prior art cannot quickly migrate multiple spanning tree instances between domains.
发明内容 Contents of the invention
有鉴于此,本发明的第一个目的在于提供一种实现快速迁移的方法,可以在将新激活的多生成树实例在域间进行快速迁移。In view of this, the first object of the present invention is to provide a method for implementing fast migration, which can perform fast migration of newly activated multiple spanning tree instances between domains.
本发明的第二个目的在于提供一种交换机,可以将新激活的多生成树实例在域间进行快速迁移。The second object of the present invention is to provide a switch that can quickly migrate newly activated multiple spanning tree instances between domains.
针对上述第一个发明目的,本发明提出的技术方案为:For above-mentioned first invention object, the technical scheme that the present invention proposes is:
一种快速迁移的方法,下游多生成树MST域边界交换机与上游MST域边界交换机处于不同的MST域,当新激活多生成树实例MSTI时,在MST域间,该方法为:A fast migration method. The downstream MST domain border switch and the upstream MST domain border switch are in different MST domains. When the multiple spanning tree instance MSTI is newly activated, between MST domains, the method is as follows:
a、下游多生成树MST域边界交换机接收来自上游MST域边界交换机针对新激活的MSTI的握手请求报文,再返回握手响应报文;a. The downstream multi-spanning tree MST domain border switch receives the handshake request message from the upstream MST domain border switch for the newly activated MSTI, and then returns the handshake response message;
b、上游MST域边界交换机接收到握手响应报文后将新激活的MSTI迁移为转发状态。b. After receiving the handshake response message, the upstream MST domain border switch transitions the newly activated MSTI to the forwarding state.
上述方案中,步骤a所述下游MST域边界交换机接收到握手请求报文和返回握手响应报文之间进一步包括:In the above scheme, the step a further includes between the downstream MST domain border switch receiving the handshake request message and returning the handshake response message:
X、下游MST域边界交换机根据接收到的握手请求报文判断自身是否需要向上游MST域边界交换机返回握手响应报文,如果需要,则继续执行;否则,按照MSTP协议的处理方法来处理所述握手请求报文,再退出本流程。X, the downstream MST domain border switch judges whether it needs to return a handshake response message to the upstream MST domain border switch according to the received handshake request message, if necessary, then continue to execute; otherwise, process the above according to the processing method of the MSTP protocol Handshake request message, and then exit this process.
上述方案中,所述步骤X的方法具体为:In the above scheme, the method of the step X is specifically:
X1、下游MST域边界交换机先判断接收到的握手请求报文中是否携带有新激活的MSTI的配置信息,如果有,则执行步骤X2;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程;X1, the downstream MST domain border switch first judges whether the received handshake request message carries the configuration information of the newly activated MSTI, if so, then executes step X2; otherwise, processes the above according to the inter-domain processing method of the MSTP protocol Handshake request message, and then exit this process;
X2、再判断所述新激活的MSTI的配置信息中的握手标志是否置位,如果置位,则执行步骤X3;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程;X2, then judge whether the handshake flag in the configuration information of the newly activated MSTI is set, if set, then perform step X3; otherwise, process the handshake request message according to the inter-domain processing method of the MSTP protocol, and then exit this process;
X3、然后判断所述握手请求报文中公共和内部生成树CIST实例的转发状态标志位是否置位,如果置位,则确定出CIST实例处于转发状态,自身需要向上游MST域边界交换机返回握手响应报文;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程。X3, then judge whether the forwarding state flag bit of the public and internal spanning tree CIST instance in the handshake request message is set, if set, then determine that the CIST instance is in the forwarding state, and itself needs to return the handshake to the upstream MST domain boundary switch Response message; otherwise, process the handshake request message according to the inter-domain processing method of the MSTP protocol, and then exit this process.
上述方案中,当下游MST域边界交换机接收到握手请求报文时,在所述步骤X1之前进一步包括:In the above scheme, when the downstream MST domain border switch receives the handshake request message, it further includes before the step X1:
下游MST域边界交换机判断握手请求报文中MST域配置标识的内容是否与自身已有的MST域配置标识的内容相同,如果不相同,则继续执行步骤X1;否则,按照MSTP协议的域内处理方法来处理所述握手请求报文,再退出本流程。The downstream MST domain border switch judges whether the content of the MST domain configuration identifier in the handshake request message is the same as the content of its existing MST domain configuration identifier, if not, proceed to step X1; otherwise, follow the intra-domain processing method of the MSTP protocol to process the handshake request message, and then exit this process.
上述方案中,所述下游MST域边界交换机返回的握手响应报文为:将报文中CIST实例同意握手标志置位的握手响应报文。In the above solution, the handshake response message returned by the downstream MST domain border switch is: a handshake response message in which the CIST instance agrees with the handshake flag in the message is set.
上述方案中,所述步骤b具体为:In the above scheme, the step b is specifically:
b1、上游MST域边界交换机接收握手响应报文,根据握手响应报文MST域配置标识的内容判断出所述握手响应报文来自下游MST域边界交换机;b1. The upstream MST domain border switch receives the handshake response message, and judges that the handshake response message comes from the downstream MST domain border switch according to the content of the MST domain configuration identifier in the handshake response message;
b2、上游MST域边界交换机再判断报文中CIST实例同意握手标志是否置位,如果置位,则将新激活的MSTI从原来的阻塞状态迁移为转发状态。b2. The upstream MST domain border switch then judges whether the CIST instance agrees with the handshake flag in the message is set, and if it is set, the newly activated MSTI is transferred from the original blocking state to the forwarding state.
上述方案中,所述新激活MSTI之前,该方法进一步包括:创建与MSTI对应的虚拟局域网VLAN,所述创建的VLAN为通过静态配置来创建的VLAN,或者为通过动态学习来创建的VLAN。In the above solution, before the new activation of the MSTI, the method further includes: creating a virtual local area network VLAN corresponding to the MSTI, and the created VLAN is a VLAN created through static configuration, or a VLAN created through dynamic learning.
针对第二个发明目的,本发明提出的技术方案为:For the second purpose of the invention, the technical solution proposed by the present invention is:
一种交换机,至少包括收发单元、将报文按照多生成树协议MSTP协议处理的协议报文处理单元,A switch, at least including a transceiver unit, a protocol message processing unit for processing messages according to the Multiple Spanning Tree Protocol MSTP protocol,
所述收发单元进一步用于:在接收到来自不同多生成树MST域的上游MST域边界交换机针对新激活的多生成树实例MSTI的握手请求报文时,返回握手响应报文,使得上游MST域边界交换机在接收到握手响应报文后将新激活的MSTI迁移为转发状态。The transceiver unit is further configured to: when receiving a handshake request message from an upstream MST domain boundary switch of a different multiple spanning tree MST domain for a newly activated multiple spanning tree instance MSTI, return a handshake response message, so that the upstream MST domain After receiving the handshake response message, the border switch transitions the newly activated MSTI to the forwarding state.
上述方案中,该交换机进一步包括:In the above solution, the switch further includes:
回应判别单元,用于根据收发单元接收到的握手请求报文判断是否需要向上游MST域边界交换机返回握手响应报文,如果需要,则通过收发单元返回握手响应报文;如果不需要,则由协议报文处理单元来处理所述握手请求报文。The response judging unit is used to judge whether it is necessary to return a handshake response message to the upstream MST domain border switch according to the handshake request message received by the transceiver unit, and if necessary, return the handshake response message through the transceiver unit; The protocol message processing unit processes the handshake request message.
上述方案中,所述回应判别模块包括:In the above scheme, the response discrimination module includes:
配置信息判别模块,用于判断收发单元接收到的握手请求报文是否携带有新激活的MSTI的配置信息,如果有,则将报文发送给握手判别模块;如果没有携带,则由协议报文处理单元来处理所述握手请求报文;The configuration information discrimination module is used to judge whether the handshake request message received by the transceiver unit carries the configuration information of the newly activated MSTI, and if so, sends the message to the handshake discrimination module; if not carried, the protocol message a processing unit to process the handshake request message;
握手判别模块,用于判断新激活的MSTI的配置信息中的握手标志是否置位,如果置位,则将报文发送给CIST转发状态判别模块;如果没有置位,则由协议报文处理单元来处理所述握手请求报文;The handshake discrimination module is used to judge whether the handshake flag in the configuration information of the newly activated MSTI is set, if it is set, the message is sent to the CIST forwarding state discrimination module; if it is not set, the protocol message processing unit to process the handshake request message;
CIST转发状态判别模块,判断握手请求报文中CIST实例的转发状态标志位是否置位,如果置位,则通过收发单元向上游MST域边界交换机返回握手响应报文;如果没有置位,则由协议报文处理单元来处理所述握手请求报文。The CIST forwarding state discrimination module judges whether the forwarding state flag bit of the CIST instance in the handshake request message is set, if set, then returns the handshake response message to the upstream MST domain border switch through the transceiver unit; if not set, then by The protocol message processing unit processes the handshake request message.
上述方案中,所述回应判别单元进一步包括:In the above solution, the response judging unit further includes:
报文类型判别模块,用于判断收发单元接收到握手请求报文中MST域配置标识的内容是否与交换机自身已有的MST域配置标识的内容相同,如果不相同,则将报文发送给配置信息判别模块;如果相同,则直接由协议报文处理单元来处理所述握手请求报文。The message type discrimination module is used to judge whether the content of the MST domain configuration identification in the handshake request message received by the transceiver unit is the same as the content of the existing MST domain configuration identification of the switch itself, if not, the message is sent to the configuration An information discriminating module; if they are the same, the protocol message processing unit directly processes the handshake request message.
综上所述,本发明提出的一种实现快速迁移的方法和交换机,在新激活对应的MSTI时,由于下游MST域边界交换机接收到上游MST域边界交换机发来的握手请求报文时,可以返回握手响应报文,上游MST域边界交换机就可以将新激活的MSTI快速迁移到转发状态,而无需等待一定的延时,从而可以快速地将VLAN迁移到转发状态,提高VLAN连通的整体性能。To sum up, a method and a switch for realizing fast migration proposed by the present invention, when the corresponding MSTI is newly activated, when the downstream MST domain boundary switch receives the handshake request message sent by the upstream MST domain boundary switch, it can After returning the handshake response message, the upstream MST domain border switch can quickly migrate the newly activated MSTI to the forwarding state without waiting for a certain delay, so that it can quickly migrate the VLAN to the forwarding state and improve the overall performance of VLAN connectivity.
附图说明 Description of drawings
图1是本发明的流程图;Fig. 1 is a flow chart of the present invention;
图2是本发明方法实施例的组网示意图;Fig. 2 is a schematic diagram of networking of a method embodiment of the present invention;
图3是本发明方法实施例中报文结构示意图;Fig. 3 is a schematic diagram of a message structure in a method embodiment of the present invention;
图4是本发明方法实施例的流程图;Fig. 4 is the flowchart of the method embodiment of the present invention;
图5是本发明交换机内部结构示意图;Fig. 5 is a schematic diagram of the internal structure of the switch of the present invention;
图6是本发明交换机实施例的内部结构示意图。Fig. 6 is a schematic diagram of the internal structure of the switch embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
本发明的基本思想是:在新激活MSTI时,接收握手请求报文的下游MST域边界交换机将向上游MST域边界交换机返回握手响应报文。这样,上游MST域边界交换机就可以将新激活的MSTI迁移为转发状态,从而达到快速迁移的目的。The basic idea of the present invention is: when the MSTI is newly activated, the downstream MST domain border switch that receives the handshake request message will return the handshake response message to the upstream MST domain border switch. In this way, the upstream MST domain border switch can migrate the newly activated MSTI to the forwarding state, so as to achieve the purpose of fast migration.
图1是本发明在域间实现快速迁移的流程图。如图1所示,当新激活对应的MSTI时,在域间实现快速迁移的方法可以包括以下步骤:Fig. 1 is a flow chart of implementing fast migration between domains in the present invention. As shown in Figure 1, when the corresponding MSTI is newly activated, the method for implementing fast migration between domains may include the following steps:
步骤101:下游MST域边界交换机接收来自上游MST域边界交换机针对新激活的MSTI的握手请求报文,再返回握手响应报文。Step 101: The downstream MST domain border switch receives a handshake request message for the newly activated MSTI from the upstream MST domain border switch, and returns a handshake response message.
本步骤中,当下游MST域边界交换机接收到来自上游MST域边界交换机的握手请求报文时,并不象MSTP协议中规定的一样忽略报文中MSTI部分,不返回握手响应报文,而是向上游多生成树MST域边界交换机返回握手响应报文。In this step, when the downstream MST domain border switch receives the handshake request message from the upstream MST domain border switch, it does not ignore the MSTI part in the message as stipulated in the MSTP protocol, and does not return the handshake response message, but Returns the handshake response message to the upstream multiple spanning tree MST domain border switch.
为了确保正确返回握手响应报文,下游MST域边界交换机可以在返回握手响应报文之前,还可以进一步包括:In order to ensure that the handshake response message is returned correctly, the downstream MST domain border switch may further include the following before returning the handshake response message:
步骤X:下游MST域边界交换机根据接收到的握手请求报文判断自身是否需要向上游MST域边界交换机返回握手响应报文,如果需要,则继续执行;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程。Step X: The downstream MST domain border switch judges whether it needs to return a handshake response message to the upstream MST domain border switch according to the received handshake request message, if necessary, continue to execute; otherwise, follow the inter-domain processing method of the MSTP protocol Process the handshake request message, and then exit this process.
这里,所述的步骤X可以具体为:Here, the step X may specifically be:
X1、下游MST域边界交换机先判断接收到的握手请求报文中是否携带有新激活的MSTI的配置信息,如果有,则执行步骤X2;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程;X1, the downstream MST domain border switch first judges whether the received handshake request message carries the configuration information of the newly activated MSTI, if so, then executes step X2; otherwise, processes the above according to the inter-domain processing method of the MSTP protocol Handshake request message, and then exit this process;
实际应用中,每激活一个MSTI,交换机都会将新激活的MSTI的配置信息累加到原来的报文中。这样,下游MST域边界交换机可以从握手请求报文中获取所有的MSTI配置信息,如果检查到其中有新增加的MSTI配置信息,就可以判断出当前创建某个VLAN,并且新激活了某个MSTI,报文中新增加的MSTI配置信息就是所述新激活的MSTI的配置信息。In practical applications, each time an MSTI is activated, the switch will add the configuration information of the newly activated MSTI to the original message. In this way, the downstream MST domain border switch can obtain all MSTI configuration information from the handshake request message. If it detects that there is newly added MSTI configuration information, it can determine that a certain VLAN is currently created and a certain MSTI is newly activated. , the newly added MSTI configuration information in the message is the configuration information of the newly activated MSTI.
所述MSTP协议的域间处理方法的特点是交换机只处理报文中CIST实例部分,而忽略所有MSTI部分,至于具体如何处理,可以参见MSTP协议,此处不再赘述。The characteristic of the inter-domain processing method of the MSTP protocol is that the switch only processes the CIST instance part in the message, and ignores all MSTI parts. As for how to deal with it, please refer to the MSTP protocol, and will not repeat it here.
X2、下游MST域边界交换机判断新激活的MSTI的配置信息中握手标志是否置位,如果置位,则执行步骤X3;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程;X2, the downstream MST domain boundary switch judges whether the handshake flag is set in the configuration information of the newly activated MSTI, if set, then perform step X3; otherwise, process the handshake request message according to the inter-domain processing method of the MSTP protocol, Then exit this process;
由于发送的握手请求报文是针对新激活的MSTI,上游MST域边界交换机需要将报文中相应的MSTI配置信息中握手标志置位。当下游MST域边界交换机接收到该握手请求报文时,就可以通过MSTI配置信息的握手标志明确当前已经新激活了某个MSTI,并且要求快速迁移。Since the handshake request message sent is for the newly activated MSTI, the upstream MST domain border switch needs to set the handshake flag in the corresponding MSTI configuration information in the message. When the downstream MST domain border switch receives the handshake request message, it can confirm through the handshake flag of the MSTI configuration information that a certain MSTI has been newly activated and requires fast migration.
当然,如果握手标志并没有置位,比如不要求进行快速迁移,那么下游MST域边界交换机就可以不返回握手响应报文,而是按照MSTP协议的域间处理方法来处理握手请求报文。Of course, if the handshake flag is not set, for example, fast migration is not required, then the downstream MST domain border switch may not return the handshake response message, but process the handshake request message according to the inter-domain processing method of the MSTP protocol.
X3、下游MST域边界交换机判断握手请求报文中CIST实例的转发状态标志位是否置位,如果置位,则确定CIST实例处于转发状态,自身需要向上游MST域边界交换机返回握手响应报文;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程。X3, the downstream MST domain border switch judges whether the forwarding state flag bit of the CIST instance in the handshake request message is set, if set, then it is determined that the CIST instance is in the forwarding state, and itself needs to return a handshake response message to the upstream MST domain border switch; Otherwise, process the handshake request message according to the inter-domain processing method of the MSTP protocol, and then exit this procedure.
实际应用中,当下游MST域边界交换机接收到握手请求报文时,整个网络生成树的计算可能还不稳定,CIST实例也不是处于转发状态,比如处于阻塞状态或学习状态。在这种情况下,如果直接向上游MST域边界交换机返回握手响应报文,可能会因此造成环路,造成广播风暴。为了避免环路,下游MST域边界交换机可以如步骤X3一样进一步明确CIST实例是否处于转发状态,在CIST实例处于转发状态的情况下,下游MST域边界交换机就可以确定自身需要返回握手响应报文。In practical applications, when the downstream MST domain border switch receives the handshake request message, the calculation of the entire network spanning tree may not be stable, and the CIST instance is not in the forwarding state, such as in the blocking state or learning state. In this case, if the handshake response message is directly returned to the upstream MST domain border switch, a loop may be caused, resulting in a broadcast storm. In order to avoid loops, the downstream MST domain border switch can further clarify whether the CIST instance is in the forwarding state as in step X3. When the CIST instance is in the forwarding state, the downstream MST domain border switch can determine that it needs to return a handshake response message.
本发明只涉及MST域间处理报文的情况,但实际上,网络中的任何一个交换机都会不断地向自身下游交换机发送报文,而不管下游交换机是域内的交换机,还是域外的交换机。也就是说,交换机接收到的握手请求报文可能来自域内,也可能来自域外。那么,当接收到握手请求报文,在执行步骤X1之前,还可以进一步包括:The present invention only relates to the case of message processing between MST domains, but in fact, any switch in the network will continuously send messages to its own downstream switch, regardless of whether the downstream switch is a switch in the domain or a switch outside the domain. That is to say, the handshake request message received by the switch may come from within the domain or from outside the domain. Then, when the handshake request message is received, before performing step X1, it may further include:
下游域边界交换机判断握手请求报文中MST域配置标识的内容是否与自身已有的MST域配置标识的内容相同,如果不相同,则继续执行步骤X1;否则,按照MSTP协议的域内处理方法来处理所述握手请求报文,再退出本流程。The downstream domain border switch judges whether the content of the MST domain configuration identifier in the handshake request message is the same as the content of its own existing MST domain configuration identifier, and if not, proceed to step X1; otherwise, follow the intra-domain processing method of the MSTP protocol. Process the handshake request message, and then exit this process.
这里所述MST域配置标识包括域名、修订级别以及VLAN与实例的映射关系,只有MST域配置标识内容相同的交换机才处于同一个MST域中。如果判断出MST域配置标识的内容不相同,则发送该握手请求报文的交换机和接收该握手请求报文的交换机属于两个不同域的交换机,对报文的处理属于域间处理的情况,可以采用本发明的方法实现;而如果判断出MST域配置标识的内容相同,则两个交换机属于同一个MST域内的交换机,直接采用MSTP协议的域内处理方法处理即可。至于MSTP协议的域内处理方法如何处理则属于现有技术,此处不再赘述。The MST domain configuration identifier described here includes a domain name, a revision level, and a mapping relationship between a VLAN and an instance, and only switches with the same content of the MST domain configuration identifier are in the same MST domain. If it is determined that the content of the MST domain configuration identifier is different, the switch that sends the handshake request message and the switch that receives the handshake request message belong to switches in two different domains, and the processing of the message belongs to the situation of inter-domain processing. It can be realized by using the method of the present invention; and if it is judged that the content of the MST domain configuration identifier is the same, then the two switches belong to switches in the same MST domain, and they can be processed directly by using the intra-domain processing method of the MSTP protocol. How to deal with the intra-domain processing method of the MSTP protocol belongs to the prior art, and will not be repeated here.
步骤:102:上游MST域边界交换机接收到握手响应报文后将新激活的MSTI迁移为转发状态。Step: 102: After receiving the handshake response message, the upstream MST domain border switch transitions the newly activated MSTI to the forwarding state.
本步骤中,上游MST域边界交换机无需经过一定的时延,可以直接将新激活的MSTI迁移为转发状态,从而加快将VLAN迁移到转发状态的速度,或者说提高VLAN连通的整体性能。In this step, the upstream MST domain border switch can directly migrate the newly activated MSTI to the forwarding state without going through a certain delay, thereby speeding up the speed of migrating the VLAN to the forwarding state, or improving the overall performance of VLAN connectivity.
另外,需要说明的是,按照MSTP协议的规定,实例仅是一个逻辑上的概念,多个独立的不同的实例可以对应同一个物理上各个交换机组成的网络,而某个实例是否处于转发状态则取决于各个交换机上对应的端口是否处于转发状态。所以,所述某交换机将某个实例迁移为转发状态实际上就是将某个端口迁移为转发状态,允许该实例中的数据从该端口转发。当然,某个物理上的端口在不同的实例中所处的状态可能不同。比如:某交换机A端口对于实例1来说是阻塞的,但同时对于实例2来说则可能是转发的。In addition, it should be noted that according to the provisions of the MSTP protocol, an instance is only a logical concept. Multiple independent and different instances can correspond to the same network composed of physical switches, and whether an instance is in the forwarding state depends on the It depends on whether the corresponding port on each switch is in the forwarding state. Therefore, the above-mentioned switch that migrates a certain instance to the forwarding state is actually to migrate a certain port to the forwarding state, allowing data in the instance to be forwarded through the port. Of course, the state of a certain physical port may be different in different instances. For example: A port of a certain switch is blocked for instance 1, but it may be forwarded for instance 2 at the same time.
为了更好地说明本发明方案,下面用一个较佳实施例进行详细描述。In order to better illustrate the solution of the present invention, a preferred embodiment is used for a detailed description below.
图2是本实施例中MSTP组网示意图。如图2所示,本实施例有两个MST域,交换机A1~A4属于域A,交换机B1~B3属于域B。其中,交换机A1为CIST总根以及域A的域根,所述CIST总根为整个交换网络生成的CIST这个生成树的根,而域根则是域内多生成树的根;交换机B2为域B的域根;各个交换机相连的端口类型为TRUNK类型,允许所有VLAN通过;各个交换机都可以运行属性注册协议(GVRP,GARP VLAN RegistrationProtocol),交换机A1和B1为GVRP注册属性源,配置了相同的静态VLAN。这里所述GVRP协议为一种VLAN动态学习协议,可以用来在网络中传播VLAN信息,从而创建VLAN。至于如何利用GVRP注册属性源传播VLAN信息则属于现有技术,此处不再赘述。FIG. 2 is a schematic diagram of MSTP networking in this embodiment. As shown in FIG. 2 , there are two MST domains in this embodiment, switches A1-A4 belong to domain A, and switches B1-B3 belong to domain B. Among them, switch A1 is the general CIST root and the regional root of domain A, the CIST general root is the root of the CIST spanning tree generated by the entire switching network, and the domain root is the root of multiple spanning trees in the domain; switch B2 is domain B The domain root of each switch; the port type connected to each switch is TRUNK type, allowing all VLANs to pass through; each switch can run the attribute registration protocol (GVRP, GARP VLAN Registration Protocol), switches A1 and B1 are GVRP registration attribute sources, configured with the same static VLAN. The GVRP protocol described here is a VLAN dynamic learning protocol, which can be used to propagate VLAN information in the network, thereby creating a VLAN. As for how to use the GVRP registration attribute source to propagate the VLAN information, it belongs to the prior art and will not be repeated here.
当网络中MSTP计算稳定,GVRP学习稳定后,交换机A1和B1上的VLAN信息已经传播到了整个网络,创建了一个VLAN,该VLAN的路径为A1-A2-A4-B3-B2-B1。When the MSTP calculation and GVRP learning in the network are stable, the VLAN information on switches A1 and B1 has been propagated to the entire network, and a VLAN is created with the path A1-A2-A4-B3-B2-B1.
本实施例中,假设创建的VLAN对应某个MSTI,MSTP将激活该MSTI,每一个交换机都将向自身的下游交换机发送要求快速迁移的握手请求报文。In this embodiment, assuming that the created VLAN corresponds to a certain MSTI, MSTP will activate the MSTI, and each switch will send a handshake request message requiring fast migration to its downstream switch.
图3是MSTP中交换机发送的报文格式的示意图。如图3所示,该报文包括含CIST实例的部分以及MSTI实例部分。其中,含CIST实例的部分为报文第1字节~102字节,是报文的基本部分,通常包括协议标识(ProtocolIdentifier)、协议版本标识(Protocol Version Identifier)、CIST标志(CISTFlags)、MST配置标识(MST Configuration Identifier)等;一个MSTI实例部分占16个字节,包括MSTI标志(MSTI Flags)等部分,每个新激活的MSTI都将累加在原来的报文后。比如:原来交换机向下游交换机发送的报文中已经有一个MSTI实例部分,占用103~118字节。如果又激活另外一个实例,则该交换机会将新激活的MSTI实例部分累加到原来的报文后,占用119~135字节,并依此类推。Fig. 3 is a schematic diagram of the message format sent by the switch in MSTP. As shown in Figure 3, the message includes a part containing a CIST instance and an MSTI instance part. Among them, the part containing the CIST instance is the first byte to 102 bytes of the message, which is the basic part of the message, usually including the protocol identifier (ProtocolIdentifier), protocol version identifier (Protocol Version Identifier), CIST flag (CISTFlags), MST Configuration identifier (MST Configuration Identifier), etc.; an MSTI instance part occupies 16 bytes, including MSTI flags (MSTI Flags) and other parts, and each newly activated MSTI will be accumulated after the original message. For example: the message sent by the original switch to the downstream switch already has an MSTI instance part, which occupies 103-118 bytes. If another instance is activated, the switch will add the newly activated MSTI instance part to the original message, occupying 119-135 bytes, and so on.
本实施例中,交换机对握手请求报文的处理将分为两种情况:一种是域内处理,另外一种是域间处理。对于域内来说,各个实例是独立的,可以按照MSTP协议进行快速迁移,即A1-A2-A4可以快速连通,B3-B2-B1也可以快速连通。但对于域间来说,则需要采用图4所示流程图的方法实现快速迁移。In this embodiment, the switch processes the handshake request message in two cases: one is intra-domain processing, and the other is inter-domain processing. For the domain, each instance is independent and can be quickly migrated according to the MSTP protocol, that is, A1-A2-A4 can be quickly connected, and B3-B2-B1 can also be quickly connected. But for inter-domain, it is necessary to use the method shown in the flow chart in Figure 4 to realize fast migration.
如图4所示,本实施例在域间对MSTI快速迁移的方法可以包括:As shown in Figure 4, the method for fast MSTI migration between domains in this embodiment may include:
步骤401:交换机A4将新激活的MSTI设置为阻塞状态,并向下游交换机B3发送针对新激活的MSTI的握手请求报文;Step 401: switch A4 sets the newly activated MSTI to a blocking state, and sends a handshake request message for the newly activated MSTI to the downstream switch B3;
步骤402:交换机B3接收来自上游交换机A4的握手请求报文,并记录MST域配置标识;Step 402: The switch B3 receives the handshake request message from the upstream switch A4, and records the MST domain configuration identifier;
步骤403~步骤404:交换机B3判断MST域配置标识的内容是否与自身原来的MST域配置标识的内容相同,如果不相同,则执行步骤405;否则,按照MSTP协议的域内处理方法来处理所述握手请求报文,再退出本流程。
步骤405~步骤406:交换机B3判断接收到的握手请求报文中是否携带有新激活的MSTI的配置信息,如果有,则执行步骤407;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程;
这里所述步骤405中,交换机B3可以先记录下报文中所有MSTI配置信息,并且将其与自身原来记录的MSTI配置信息比较,如果有新增加的MSTI配置信息,就可以确定该新增加的MSTI为当前新激活的MSTI配置信息,即握手请求报文中携带有新激活的MSTI的配置信息。In
步骤407~步骤408:交换机B3判断所述新激活的MSTI的配置信息中的握手标志是否置位,如果置位,则执行步骤409;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程;
所述MSTI配置信息中包括MSTI标志部分,该MSTI标志占8个比特,其中的第7个比特表示握手标志位。如果握手标志位为“1”,则表示置位,即上游交换机针对该MSTI可以快速迁移而要求下游交换机回应;如果握手标志位为“0”,则不要求下游交换机回应。The MSTI configuration information includes an MSTI flag part, and the MSTI flag occupies 8 bits, the seventh bit of which represents the handshake flag bit. If the handshake flag is "1", it means set, that is, the upstream switch requires the downstream switch to respond to the fast migration of the MSTI; if the handshake flag is "0", it does not require the downstream switch to respond.
步骤409~410:交换机B3判断握手请求报文中CIST实例的转发状态标志位是否置位,如果置位,则确定CIST实例处于转发状态,自身需要向上游MST域边界交换机返回握手响应报文,并执行步骤411;否则,按照MSTP协议的域间处理方法来处理所述握手请求报文,再退出本流程。Steps 409-410: Switch B3 judges whether the forwarding state flag of the CIST instance in the handshake request message is set, and if it is set, it determines that the CIST instance is in the forwarding state, and it needs to return a handshake response message to the upstream MST domain border switch, And execute
所述CIST标志也占8个比特,其中第3个比特表示CIST实例的转发状态标志位,如果该标志位为“1”,则表示CIST实例处于转发状态;否则,表示CIST实例未处于转发状态。这样,交换机B3就可以通过CIST标志的第3个比特位判断出CIST实例是否处于转发状态。只有在CIST实例处于转发状态的情况下将新激活的MSTI迁移为转发状态,才可以避免产生环路,使MSTI的迁移更加可靠。The CIST flag also occupies 8 bits, wherein the third bit represents the forwarding state flag of the CIST instance, if the flag is "1", it means that the CIST instance is in the forwarding state; otherwise, it means that the CIST instance is not in the forwarding state . In this way, the switch B3 can judge whether the CIST instance is in the forwarding state through the third bit of the CIST flag. Only when the newly activated MSTI is migrated to the forwarding state when the CIST instance is in the forwarding state, can loops be avoided and the MSTI migration be more reliable.
步骤411:交换机B3将握手响应报文中CIST实例的同意握手标志置位,再将所述握手响应报文返回给交换机A4;Step 411: The switch B3 sets the handshake flag of the CIST instance in the handshake response message, and then returns the handshake response message to the switch A4;
实际应用中,如果某交换机接收到的是来自域内针对某个激活的MSTI的握手请求报文,如果同意握手,该交换机会将握手响应报文中该激活的MSTI的同意握手标志置位,并返回该握手响应报文。但本实施例中,交换机A4是域边界交换机,按照MSTP协议的规定,应该只处理报文的CIST实例部分,如果交换机B3参照域内处理的方法将新激活的MSTI的同意握手标志置位,交换机A4就无法获取下游交换机B3已经同意握手的信息。所以在本实施例中,交换机B3是将CIST实例的同意握手标志置位,即将CIST标志的第2个比特置位。In practical applications, if a switch receives a handshake request message from an activated MSTI in the domain, if the handshake is agreed, the switch will set the handshake flag of the activated MSTI in the handshake response message, and Return the handshake response message. But in the present embodiment, switch A4 is domain border switch, according to the regulation of MSTP agreement, should only process the CIST instance part of message, if switch B3 refers to the method for processing in the domain and sets the agreement handshake sign of the newly activated MSTI, switch A4 cannot obtain the information that the downstream switch B3 has agreed to handshake. Therefore, in this embodiment, the switch B3 sets the agreed handshake flag of the CIST instance, that is, sets the second bit of the CIST flag.
步骤412:交换机A4接收握手响应报文,根据握手响应报文MST域配置标识的内容判断出所述握手响应报文来自下游MST域边界交换机;Step 412: Switch A4 receives the handshake response message, and judges that the handshake response message comes from the downstream MST domain boundary switch according to the content of the MST domain configuration identifier in the handshake response message;
与交换机B3一样,如果交换机A4接收到来自域内的握手响应报文,则可以按照MSTP协议的域内处理方法来处理所述握手响应报文。Like the switch B3, if the switch A4 receives the handshake response message from the domain, it can process the handshake response message according to the intra-domain processing method of the MSTP protocol.
步骤413:上游MST域边界交换机判断出报文中CIST实例的同意握手标志置位,并直接将新激活的MSTI从原来的阻塞状态迁移为转发状态。Step 413: The upstream MST domain border switch judges that the agreed handshake flag of the CIST instance in the message is set, and directly transfers the newly activated MSTI from the original blocking state to the forwarding state.
应用本实施例方案,交换机B3在接收到握手请求报文时,可以在明确该握手请求报文来自域外的情况下,并在CIST处于转发状态的条件下向交换机A4返回握手响应报文,交换机A4再将新激活的MSTI快速迁移到转发状态。此后,由于交换机A4将MSTI迁移到了转发状态,使A4-B3部分快速连通,从而提高VLAN连通的整体性能。Applying the scheme of this embodiment, when the switch B3 receives the handshake request message, it can return the handshake response message to the switch A4 under the condition that the CIST is in the forwarding state under the condition that the handshake request message is clear that the handshake request message is from outside the domain. A4 quickly migrates the newly activated MSTI to the forwarding state. Afterwards, since the switch A4 migrates the MSTI to the forwarding state, the part A4-B3 is quickly connected, thereby improving the overall performance of the VLAN connection.
针对上述实现快速迁移的方法,本发明还提供一种可以实现在域间快速迁移的交换机。With regard to the above method for implementing fast migration, the present invention also provides a switch that can realize fast migration between domains.
图5是本发明中交换机的基本结构示意图。如图5所示,该交换机至少包括:Fig. 5 is a schematic diagram of the basic structure of the switch in the present invention. As shown in Figure 5, the switch at least includes:
收发单元501,用于按照MSTP协议接收和发送交换机之间交互的报文,并发送给协议报文处理单元502,还用于在接收到来自上游MST域边界交换机针对新激活的MSTI的握手请求报文时,返回握手响应报文;The
协议报文处理单元502,用于按照MSTP协议处理接收到的报文。The protocol
为了更好地说明本发明方案,下面提出一种较佳实施例。图6显示了该实施例交换机内部结构示意图。如图6所示,该交换机除了包括图5中的收发单元501和协议报文处理单元502之外,为了保证收发单元501正确返回握手响应报文,避免产生环路,该交换机还可以进一步包括:In order to better illustrate the solution of the present invention, a preferred embodiment is proposed below. Fig. 6 shows a schematic diagram of the internal structure of the switch in this embodiment. As shown in Figure 6, in addition to including the
回应判别单元503,用于根据收发单元501接收到的握手请求报文判断是否需要向上游MST域边界交换机返回握手响应报文,如果需要,则通过收发单元501返回握手响应报文;如果不需要,则由协议报文处理单元502来处理所述握手请求报文。Response judging unit 503, for judging whether need to return handshake response message to upstream MST domain border switch according to the handshake request message that
其中,所述回应判别单元503还可以包括:Wherein, the response judging unit 503 may also include:
配置信息判别模块5031,用于判断收发单元501接收到的握手请求报文是否携带有新激活的MSTI的配置信息,如果有,则将报文发送给握手判别模块5032;如果没有携带,则由协议报文处理单元502来处理所述握手请求报文;The configuration information discriminating module 5031 is used to judge whether the handshake request message received by the
握手判别模块5032,用于判断新激活的MSTI的配置信息中的握手标志是否置位,如果置位,则将报文发送给CIST转发状态判别模块5033;如果没有置位,则由协议报文处理单元502来处理所述握手请求报文;The handshake discrimination module 5032 is used to judge whether the handshake flag in the configuration information of the newly activated MSTI is set, if it is set, the message is sent to the CIST forwarding state discrimination module 5033; if it is not set, the protocol message a
CIST转发状态判别模块5033,判断握手请求报文中CIST实例的转发状态标志位是否置位,如果置位,则通过收发单元501向上游MST域边界交换机返回握手响应报文;如果没有置位,则由协议报文处理单元502来处理所述握手请求报文。The CIST forwarding state discrimination module 5033 judges whether the forwarding state flag bit of the CIST instance in the handshake request message is set, if set, then returns the handshake response message to the upstream MST domain border switch by the
另外,本发明只涉及MST域间处理报文的情况,但实际上,交换机接收到的握手请求报文可能来自域内,也可能来自域外。为了更好地区分报文是域内报文还是域外报文,所述回应判别单元503还可以进一步包括:In addition, the present invention only relates to the case of message processing between MST domains, but in fact, the handshake request message received by the switch may come from within the domain or from outside the domain. In order to better distinguish whether the message is an intra-domain message or an out-of-domain message, the response judging unit 503 may further include:
报文类型判别模块5034,用于判断收发单元501接收到握手请求报文中MST域配置标识的内容是否与交换机自身已有的MST域配置标识的内容相同,如果不相同,则将报文发送给配置信息判别模块5031;如果相同,则直接由协议报文处理单元502来处理所述握手请求报文。The message type discrimination module 5034 is used to judge whether the content of the MST domain configuration identification in the handshake request message received by the
这样,当交换机的收发单元501接收到来自上游MST域边界交换机的握手请求报文时,先由报文类型判别模块5034判断握手请求报文中MST域配置标识的内容是否与交换机自身已有的MST域配置标识的内容相同,如果不相同,则将报文发送给配置信息判别模块5031;配置信息判别模块5031再判断握手请求报文是否携带有新激活的MSTI的配置信息,如果有,则将报文发送给握手判别模块5032;握手判别模块5032判断新激活的MSTI的配置信息中的握手标志是否置位,如果置位,则将报文发送给CIST转发状态判别模块5033;CIST转发状态判别模块5033再继续判断握手请求报文中CIST实例的转发状态标志位是否置位,如果置位,则通过收发单元501向上游MST域边界交换机返回握手响应报文。当然,如果报文类型判别模块5034判断出握手请求报文中MST域配置标识的内容与交换机自身已有的MST域配置标识的内容不相同,则直接将报文发送给协议报文处理单元502来处理;如果配置信息判别模块5031判断出报文中没有携带新激活的MSTI的配置信息,也直接将报文发送给协议报文处理单元502来处理;如果握手判别模块5032判断出新激活的MSTI的配置信息中的握手标志没有置位,也由协议报文处理单元502来处理所述握手请求报文;同样,如果CIST转发状态判别模块5033判断出握手请求报文中CIST实例的转发状态标志位没有置位,也由协议报文处理单元502来处理所述握手请求报文。In this way, when the
另外,协议报文处理单元502中包括域内报文处理模块和域间报文处理,分别按照MSTP协议处理域内和域间的报文。In addition, the protocol
应用本实施例方案,交换机在接收到握手请求报文时,可以通过回应判别单元503明确是否应该向上游MST域边界交换机返回握手响应报文,可以保证正确地回应报文,避免产生环路。这样,当上游MST域边界交换机接收到握手响应报文后,就可以将新激活的MSTI快速迁移到转发状态,从而提高VLAN连通的整体性能。Applying the scheme of this embodiment, when the switch receives the handshake request message, it can determine whether it should return the handshake response message to the upstream MST domain border switch through the response judging unit 503, which can ensure that the message is correctly responded and avoids loops. In this way, when the upstream MST domain border switch receives the handshake response message, it can quickly migrate the newly activated MSTI to the forwarding state, thereby improving the overall performance of VLAN connectivity.
综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100869125A CN100461743C (en) | 2007-03-20 | 2007-03-20 | A method and switch for rapid migration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100869125A CN100461743C (en) | 2007-03-20 | 2007-03-20 | A method and switch for rapid migration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101022393A CN101022393A (en) | 2007-08-22 |
CN100461743C true CN100461743C (en) | 2009-02-11 |
Family
ID=38710049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007100869125A Expired - Fee Related CN100461743C (en) | 2007-03-20 | 2007-03-20 | A method and switch for rapid migration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100461743C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108521341B (en) * | 2018-03-23 | 2019-09-13 | 新华三信息技术有限公司 | Message transmission method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004039015A2 (en) * | 2002-10-24 | 2004-05-06 | Cisco Technology, Inc. | Modified spanning tree protocol for metropolitan area network |
CN1510873A (en) * | 2002-12-26 | 2004-07-07 | 华为技术有限公司 | Implementation Method of Domain Root Switching Based on Multiple Spanning Tree Protocol |
CN1521999A (en) * | 2003-01-28 | 2004-08-18 | 华为技术有限公司 | A Protection Method for Multiple Spanning Tree Core Domains in Switching Networks |
EP1469639A1 (en) * | 2003-04-15 | 2004-10-20 | ECI Telecom Ltd. | Technology for improving STP protocols in Ethemet networks supporting VLANs |
-
2007
- 2007-03-20 CN CNB2007100869125A patent/CN100461743C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004039015A2 (en) * | 2002-10-24 | 2004-05-06 | Cisco Technology, Inc. | Modified spanning tree protocol for metropolitan area network |
CN1510873A (en) * | 2002-12-26 | 2004-07-07 | 华为技术有限公司 | Implementation Method of Domain Root Switching Based on Multiple Spanning Tree Protocol |
CN1521999A (en) * | 2003-01-28 | 2004-08-18 | 华为技术有限公司 | A Protection Method for Multiple Spanning Tree Core Domains in Switching Networks |
EP1469639A1 (en) * | 2003-04-15 | 2004-10-20 | ECI Telecom Ltd. | Technology for improving STP protocols in Ethemet networks supporting VLANs |
Also Published As
Publication number | Publication date |
---|---|
CN101022393A (en) | 2007-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2571536C2 (en) | Method, system and controlling bridge for obtaining port extension topology information | |
CN101491014B (en) | Share physical ports between virtual bridges on the switch | |
US7872989B1 (en) | Full mesh optimization for spanning tree protocol | |
CN103139037B (en) | For realizing the method and apparatus of VLAN flexibly | |
CN101005498A (en) | System and method for implementing multiple spanning tree protocol automatic 802.1q trunking | |
CN101268658B (en) | System and method for generating symmetrical spanning trees | |
CN109831390B (en) | Message forwarding control method and device | |
CN103581274B (en) | Message forwarding method and device in stacking system | |
CN101110820B (en) | Method and switchboard for processing spanning tree protocol message | |
CN101106532A (en) | Method for Realizing Mixed Forwarding of Switch Chip and Network Processor | |
CN103905325A (en) | Two-layer network data transmission method and network node | |
CN115378822A (en) | DDS distributed application simulation method and system | |
CN101171802A (en) | Node, network, correspondence relationship generation method, and frame transfer program | |
CN115174468A (en) | Route synchronization method, cross-device link aggregation group, electronic device and medium | |
CN101534211A (en) | Network convergence method, network bridges and system | |
CN107294856A (en) | Determine the method, equipment and system of change in topology | |
WO2023116268A1 (en) | Network isolation method and system, and proxy device | |
CN101296150A (en) | Method and device for realizing service interworking in ZESR and STP hybrid network | |
CN100461743C (en) | A method and switch for rapid migration | |
CN101115001B (en) | Host computer of ADSL router and PVC dynamic binding method | |
CN102480410B (en) | Single board for centralized business processing and virtualized resource dividing method | |
US20060268748A1 (en) | Facilitating Computation of Role and State Information for Multiple Spanning Tree Instances | |
WO2023035983A1 (en) | Method and device for electing designated forwarder (df) | |
CN103067283B (en) | Self-organized domain-separated redundant forwarding switch device | |
CN116016340A (en) | Method and device for realizing routing, storage medium and electronic equipment |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090211 |