CN102244614B - Message forwarding method, system and routing switch - Google Patents

Message forwarding method, system and routing switch Download PDF

Info

Publication number
CN102244614B
CN102244614B CN201110232354.5A CN201110232354A CN102244614B CN 102244614 B CN102244614 B CN 102244614B CN 201110232354 A CN201110232354 A CN 201110232354A CN 102244614 B CN102244614 B CN 102244614B
Authority
CN
China
Prior art keywords
routing switch
destination
rbridge
destination routing
data frame
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
CN201110232354.5A
Other languages
Chinese (zh)
Other versions
CN102244614A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201110232354.5A priority Critical patent/CN102244614B/en
Publication of CN102244614A publication Critical patent/CN102244614A/en
Application granted granted Critical
Publication of CN102244614B publication Critical patent/CN102244614B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明提供一种报文转发方法、系统及路由交换机。方法包括:源路由交换机根据接收到的当前以太网数据帧的目的MAC地址,查询MAC表,获取第一目的路由交换机的标识;源路由交换机根据第一目的路由交换机的标识,查询第一目的路由交换机的邻居直连列表,获取与第一目的路由交换机直连的第二目的路由交换机的标识;源路由交换机根据TRILL路由表,将以太网数据帧和后续接收到的目的MAC地址相同的其他以太网数据帧,通过第一目的路由交换机和第二目的路由交换机转发给目的MAC地址对应的终端设备。本发明技术方案可以减少链路带宽资源的浪费,提高链路带宽资源的利用率。

The invention provides a message forwarding method, system and routing switch. The method includes: the source routing switch queries the MAC table according to the received destination MAC address of the current Ethernet data frame, and obtains the identifier of the first destination routing switch; the source routing switch queries the first destination routing switch according to the identifier of the first destination routing switch The neighbor direct connection list of the switch obtains the identification of the second destination routing switch directly connected to the first destination routing switch; the source routing switch uses the TRILL routing table to transfer the Ethernet data frame to the subsequent received Ethernet data frame with the same destination MAC address. The network data frame is forwarded to the terminal device corresponding to the destination MAC address through the first destination routing switch and the second destination routing switch. The technical scheme of the invention can reduce the waste of link bandwidth resources and improve the utilization rate of link bandwidth resources.

Description

报文转发方法、系统及路由交换机Message forwarding method, system and routing switch

技术领域 technical field

本发明涉及数据通信技术,尤其涉及一种报文转发方法、系统及路由交换机。The invention relates to data communication technology, in particular to a message forwarding method, system and routing switch.

背景技术 Background technique

数据中心(Data Center;简称为:DC)通过实现统一的数据定义与命名规范、集中的数据环境,从而达到数据共享与利用的目标。伴随着云计算、云存储的兴起,作为云的依托——数据中心网络也正在进行着“为云而变”的技术升级和改造,由此提出了许许多多新的技术,多链接透明传输互连(Transparent Interconnection of Lots of Link;简称为:TRILL)就是其中之一。当前TRILL正渐渐成为数据中心网络虚拟化的标准,并推动着数据中心的发展。Data Center (abbreviated as: DC) achieves the goal of data sharing and utilization by realizing unified data definition and naming specifications and a centralized data environment. With the rise of cloud computing and cloud storage, as the support of the cloud - the data center network is also undergoing technological upgrading and transformation of "changing for the cloud", thus proposing many new technologies, multi-link transparent transmission Interconnection (Transparent Interconnection of Lots of Link; abbreviation: TRILL) is one of them. At present, TRILL is gradually becoming the standard of data center network virtualization and promoting the development of data centers.

运行TRILL协议的网桥(bridge)通常被称为路由交换机(Routebridge;简称为:Rbridge),是一种具有路由转发特性的网桥设备。也就是说,Rbridge既具有二层交换机的功能,又具有三层路由器的功能。在TRILL网络中,Rbridge通过运行自己的链路状态协议认知TRILL网络的拓扑,并使用最短路径优先(Shortest Path First;简称为:SPF)算法生成从该Rbridge到达TRILL网络里的各个Rbridge的路由转发表(称之为TRILL路由表);TRILL路由表主要包括两个字段别名(nickname)和下一跳Rbridge的介质访问控制(Media Access Control;简称为:MAC)地址。Rbridge又通过终端地址交互协议(End Station Address DistributionInformation;简称为:ESADI)相互学习所连接终端设备的MAC地址,这样Rbridge就知道了终端设备究竟属于哪个Rbridge。当一台Rbridge接收到普通以太网数据帧时,表明该Rbridge是与TRILL网络之外的终端设备连接的边缘Rbridge,该边缘Rbridge查找MAC表,将以太网数据帧转换成TRILL数据帧并根据本地TRILL路由表在TRILL网络里转发,TRILL数据帧包含有源Rbridge信息和目的Rbridge信息;当一台Rbridge接收到一个TRILL数据帧时,如果该TRILL数据帧的目的Rbridge不是其自身,就根据本地TRILL路由表将接收到的TRILL数据帧转发出去,如果TRILL数据帧的目的Rbridge为其自身,则解封装TRILL报头,获得最初进入TRILL网络时的以太网数据帧,并根据以太网数据帧中的目的MAC地址进行二层转发,将以太网数据帧最终转发给目的MAC地址对应的终端设备。A bridge (bridge) running the TRILL protocol is generally called a routing switch (Routebridge; Rbridge for short), and is a bridge device with routing and forwarding characteristics. That is to say, Rbridge not only has the function of a layer 2 switch, but also has the function of a layer 3 router. In the TRILL network, Rbridge recognizes the topology of the TRILL network by running its own link state protocol, and uses the Shortest Path First (Shortest Path First; SPF for short) algorithm to generate routes from the Rbridge to each Rbridge in the TRILL network Forwarding table (referred to as TRILL routing table); TRILL routing table mainly includes two field aliases (nickname) and the Media Access Control (Media Access Control; referred to as: MAC) address of the next hop Rbridge. Rbridge also learns the MAC addresses of connected terminal devices through the End Station Address Distribution Information (ESADI for short), so that Rbridge knows which Rbridge the terminal device belongs to. When an Rbridge receives an ordinary Ethernet data frame, it indicates that the Rbridge is an edge Rbridge connected to a terminal device outside the TRILL network. The edge Rbridge searches the MAC table, converts the Ethernet data frame into a TRILL data frame, and The TRILL routing table is forwarded in the TRILL network, and the TRILL data frame contains the information of the source Rbridge and the destination Rbridge; when an Rbridge receives a TRILL data frame, if the destination Rbridge of the TRILL data frame is not itself, it uses the local TRILL The routing table forwards the received TRILL data frame. If the destination Rbridge of the TRILL data frame is itself, the TRILL header is decapsulated to obtain the Ethernet data frame initially entering the TRILL network, and according to the purpose of the Ethernet data frame The MAC address is forwarded at Layer 2, and the Ethernet data frame is finally forwarded to the terminal device corresponding to the destination MAC address.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题:在上述报文转发过程中,对于共享一条链路的两台Rbridge而言,会预先根据转发Rbridge选举规则从中选出一台Rbridge作为转发Rbridge,进而由该转发Rbridge从两台Rbridge选出一台作为该链路上报文的转发者并将作为转发者的Rbridge的信息通告出去,而另一台Rbridge对该共享链路上的报文不进行转发,只用作链路备份,链路带宽资源的利用率较低,造成了带宽资源的浪费。In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: In the above-mentioned message forwarding process, for two Rbridges sharing a link, one of them will be selected in advance according to the forwarding Rbridge election rules. One Rbridge acts as the forwarding Rbridge, and then the forwarding Rbridge selects one of the two Rbridges as the forwarder of the message on the link and announces the information of the forwarder Rbridge, and the other Rbridge forwards the message to the shared link. Packets on the road are not forwarded and are only used for link backup. The utilization rate of link bandwidth resources is low, resulting in a waste of bandwidth resources.

发明内容 Contents of the invention

本发明提供一种报文转发方法、系统及路由交换机,用以减少链路带宽资源的浪费,提高链路带宽资源的利用率。The invention provides a message forwarding method, system and routing switch, which are used to reduce the waste of link bandwidth resources and improve the utilization rate of link bandwidth resources.

本发明提供一种报文转发方法,包括:The present invention provides a message forwarding method, including:

源路由交换机根据接收到的当前以太网数据帧的目的介质访问控制MAC地址,查询MAC表,获取第一目的路由交换机的标识;The source routing switch queries the MAC table according to the destination media access control MAC address of the current Ethernet data frame received, and obtains the identification of the first destination routing switch;

所述源路由交换机根据所述第一目的路由交换机的标识,查询所述第一目的路由交换机的邻居直连列表,获取与所述第一目的路由交换机直连的第二目的路由交换机的标识;The source routing switch queries the neighbor direct connection list of the first destination routing switch according to the identifier of the first destination routing switch, and obtains the identifier of a second destination routing switch directly connected to the first destination routing switch;

所述源路由交换机根据多链接透明传输互连TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过所述第一目的路由交换机和所述第二目的路由交换机转发给所述目的MAC地址对应的终端设备。According to the multi-link transparent transmission interconnection TRILL routing table, the source routing switch passes the current Ethernet data frame and other Ethernet data frames whose destination MAC address is the same as the destination MAC address of the current Ethernet data frame received subsequently, through the The first destination routing switch and the second destination routing switch forward to the terminal device corresponding to the destination MAC address.

本发明提供一种路由交换机,包括:The present invention provides a routing switch, including:

第一获取模块,用于根据接收到的当前以太网数据帧的目的介质访问控制MAC地址,查询MAC表,获取第一目的路由交换机的标识;The first obtaining module is used to query the MAC table according to the received destination medium access control MAC address of the current Ethernet data frame, and obtain the identification of the first destination routing switch;

第二获取模块,用于根据所述第一目的路由交换机的标识,查询所述第一目的路由交换机的邻居直连列表,获取与所述第一目的路由交换机直连的第二目的路由交换机的标识;The second obtaining module is configured to query the neighbor direct connection list of the first destination routing switch according to the identifier of the first destination routing switch, and obtain the information of the second destination routing switch directly connected to the first destination routing switch logo;

转发模块,用于根据多链接透明传输互连TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过所述第一目的路由交换机和所述第二目的路由交换机转发给所述目的MAC地址对应的终端设备。The forwarding module is used to interconnect the TRILL routing table according to the multi-link transparent transmission, and pass the current Ethernet data frame and other Ethernet data frames whose destination MAC address is the same as the destination MAC address of the current Ethernet data frame received subsequently, through the The first destination routing switch and the second destination routing switch forward to the terminal device corresponding to the destination MAC address.

本发明提供一种报文转发系统,包括:源路由交换机、第一目的路由交换机和与所述第一目的路由交换机直连的第二目的路由交换机;The present invention provides a message forwarding system, comprising: a source routing switch, a first destination routing switch, and a second destination routing switch directly connected to the first destination routing switch;

所述源路由交换机为本发明提供的任一路由交换机;The source routing switch is any routing switch provided by the present invention;

所述第一目的路由交换机和所述第二目的路由交换机,用于将所述源路由交换机接收到的以太网数据帧转发给所述以太网数据帧的目的MAC地址对应的终端设备。The first destination routing switch and the second destination routing switch are configured to forward the Ethernet data frame received by the source routing switch to a terminal device corresponding to a destination MAC address of the Ethernet data frame.

本发明的报文转发方法、系统及路由交换机,源路由交换机根据以太网数据帧的目的MAC地址查询到目的路由交换机后,进一步查询目的路由交换机的邻居直连列表,获取与该目的路由交换机直连的其他目的路由交换机,并将接收到的数据报文通过共享链路上所有目的路由交换机转发给目的MAC地址对应的终端设备,实现以太网数据帧的转发,由于充分利用了共享链路上每条转发路径的带宽资源,提高了网络带宽的利用率,减少了链路带宽资源的浪费,提高了以太网数据帧的转发速率。In the message forwarding method, system and routing switch of the present invention, after the source routing switch queries the destination routing switch according to the destination MAC address of the Ethernet data frame, it further queries the neighbor direct connection list of the destination routing switch to obtain the direct connection list of the destination routing switch. other destination routing switches connected to each other, and forward the received data packets to the terminal device corresponding to the destination MAC address through all destination routing switches on the shared link, so as to realize the forwarding of Ethernet data frames. The bandwidth resources of each forwarding path improve the utilization rate of network bandwidth, reduce the waste of link bandwidth resources, and increase the forwarding rate of Ethernet data frames.

附图说明 Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1A为本发明一实施例提供的报文转发方法的流程图;FIG. 1A is a flowchart of a message forwarding method provided by an embodiment of the present invention;

图1B为本发明一实施例所示共享链路的结构示意图;FIG. 1B is a schematic structural diagram of a shared link shown in an embodiment of the present invention;

图2为本发明另一实施例提供的报文转发方法的流程图;FIG. 2 is a flowchart of a message forwarding method provided by another embodiment of the present invention;

图3为本发明一实施例提供的TRILL网络场景的结构示意图;FIG. 3 is a schematic structural diagram of a TRILL network scenario provided by an embodiment of the present invention;

图4为本发明一实施例提供的Rbridge的结构示意图;FIG. 4 is a schematic structural diagram of an Rbridge provided by an embodiment of the present invention;

图5为本发明另一实施例提供的Rbridge的结构示意图;FIG. 5 is a schematic structural diagram of an Rbridge provided by another embodiment of the present invention;

图6为本发明一实施例提供的报文转发系统的结构示意图。FIG. 6 is a schematic structural diagram of a message forwarding system provided by an embodiment of the present invention.

具体实施方式 Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

图1A为本发明一实施例提供的报文转发方法的流程图。如图1A所示,本实施例的方法包括:FIG. 1A is a flowchart of a packet forwarding method provided by an embodiment of the present invention. As shown in Figure 1A, the method of this embodiment includes:

步骤101、源Rbridge根据接收到的当前以太网数据帧的目的MAC地址,查询MAC表,获取第一目的Rbridge的标识。Step 101, the source Rbridge queries the MAC table according to the received destination MAC address of the current Ethernet data frame, and obtains the identifier of the first destination Rbridge.

在TRILL网络中,每个Rbridge通过ESADI相互学习MAC地址并生成MAC表。MAC表中主要存储有TRILL网络中每个边缘Rbridge所连接的终端设备的MAC地址以及终端设备的MAC地址与边缘Rbridge的对应关系。另外,在MAC表中还存储有每个边缘Rbridge的标识。在TRILL网络中,Rbridge的标识被称为Rbridge的nickname。其中,边缘Rbridge是指既与TRILL网络中其他Rbridge连接,又与TRILL网络之外的终端设备连接的Rbridge。在本实施例中,第一目的Rbridge即为与目的MAC地址对应的终端设备相连接的边缘Rbridge。In a TRILL network, each Rbridge learns MAC addresses from each other through ESADI and generates a MAC table. The MAC table mainly stores the MAC address of the terminal device connected to each edge Rbridge in the TRILL network and the corresponding relationship between the MAC address of the terminal device and the edge Rbridge. In addition, the identifier of each edge Rbridge is also stored in the MAC table. In the TRILL network, the identity of Rbridge is called the nickname of Rbridge. Wherein, the edge Rbridge refers to an Rbridge that not only connects with other Rbridges in the TRILL network, but also connects with terminal devices outside the TRILL network. In this embodiment, the first destination Rbridge is the edge Rbridge connected to the terminal device corresponding to the destination MAC address.

在TRILL网络中,每个Rbridge都有一个TRILL路由表,主要存储有每个Rbridge的nickname和到达该Rbridge的下一跳Rbridge的MAC地址和出接口信息。Rbridge通过SPF算法生成TRILL路由表。In the TRILL network, each Rbridge has a TRILL routing table, which mainly stores the nickname of each Rbridge and the MAC address and outgoing interface information of the next-hop Rbridge to reach the Rbridge. Rbridge generates TRILL routing table through SPF algorithm.

本实施例的源Rbridge是指接收到以太网数据帧的边缘Rbridge。也就是说,源Rbridge与TRILL网络之外的发送以太网数据帧的终端设备连接。进一步,如果源Rbridge与其他Rbridge属于一条共享链路时,源Rbridge还是转发Rbridge,即根据转发Rbridge选举机制选举出的具有转发功能的Rbridge。所谓共享链路主要是指以太网的共享链路,即处于同一个虚拟局域网(VirtualLocal Area Network;简称为:VLAN)内的链路,这样处于同一共享链路上的两台或两台以上的Rbridge在物理链路上和二层链路上都是连通的,并且这些Rbridge还同时与同一台终端设备连接。如图1B所示,Rbridge1与Rbridge2相连,且Rbridge1和Rbridge2同时与终端设备3连接,从而构成一条共享链路。The source Rbridge in this embodiment refers to the edge Rbridge that receives the Ethernet data frame. That is to say, the source Rbridge is connected to a terminal device sending Ethernet data frames outside the TRILL network. Further, if the source Rbridge and other Rbridges belong to a shared link, the source Rbridge is still a forwarding Rbridge, that is, an Rbridge with a forwarding function elected according to the forwarding Rbridge election mechanism. The so-called shared link mainly refers to the shared link of Ethernet, that is, the link in the same virtual local area network (Virtual Local Area Network; referred to as: VLAN), so that two or more computers on the same shared link Rbridges are connected on physical links and Layer 2 links, and these Rbridges are also connected to the same terminal device at the same time. As shown in FIG. 1B , Rbridge1 is connected to Rbridge2, and Rbridge1 and Rbridge2 are connected to terminal device 3 at the same time, thus forming a shared link.

具体的,与源Rbridge连接的终端设备向源Rbridge发送以太网数据帧。源Rbridge接收以太网数据帧,然后根据以太网数据帧的目的MAC地址查询MAC表,获取目的MAC地址对应的终端设备属于那台Rbridge,即获取本实施例的第一目的Rbridge的nickname。Specifically, the terminal device connected to the source Rbridge sends the Ethernet data frame to the source Rbridge. The source Rbridge receives the Ethernet data frame, and then queries the MAC table according to the destination MAC address of the Ethernet data frame to obtain the Rbridge to which the terminal device corresponding to the destination MAC address belongs, that is, obtains the nickname of the first destination Rbridge in this embodiment.

步骤102、源Rbridge根据第一目的Rbridge的标识,查询第一目的Rbridge的邻居直连列表,获取与第一目的Rbridge直连的第二目的Rbridge的标识。Step 102, the source Rbridge queries the neighbor direct connection list of the first destination Rbridge according to the identifier of the first destination Rbridge, and obtains the identifier of a second destination Rbridge directly connected to the first destination Rbridge.

其中,所述直连是指两台Rbridge通过一条物理链路直接相连,且两台Rbridge在二层链路上也是连通的。在本实施例中,第一目的Rbridge和第二目的Rbridge除了直连外,还同时与以太网数据帧的接收者相连,从而构成一条共享链路。在此说明,在本发明各实施例中,所有与第一目的Rbridge直连且同时与目的MAC地址对应的终端设备相连的Rbridge均被称为第二目的Rbridge,也就是说本发明各实施例中所说的第二目的Rbridge可能是一台Rbridge也可能是多台Rbridge。其中,对与第一目的Rbridge直连的每台Rbridge的处理基本相同,故本发明各实施例主要以一台第二目的Rbridge为例进行说明。Wherein, the direct connection means that two Rbridges are directly connected through a physical link, and the two Rbridges are also connected on a layer 2 link. In this embodiment, in addition to being directly connected, the first destination Rbridge and the second destination Rbridge are also connected to the receiver of the Ethernet data frame at the same time, thereby forming a shared link. It is explained here that in each embodiment of the present invention, all Rbridges that are directly connected to the first destination Rbridge and are connected to the terminal device corresponding to the destination MAC address are called the second destination Rbridge, that is to say, each embodiment of the present invention The second purpose Rbridge mentioned in may be one Rbridge or multiple Rbridges. Wherein, the processing of each Rbridge directly connected to the first-purpose Rbridge is basically the same, so each embodiment of the present invention is mainly described by taking one second-purpose Rbridge as an example.

以图1B所示共享链路为例进行说明:当TRILL网络中存在共享链路时,对于目的地址为终端设备3的以太网数据帧而言,就会存在两条转发路径,此时将会出现环路。为了解决该问题,处于共享链路中的Rbridge1和Rbridge2会通过转发Rbridge选举机制选举出一台转发Rbridge(例如Rbridge1),并由该转发Rbridge从两台Rbridge中选择出一台Rbridge作为该共享链路上报文的转发者并将该作为转发者的Rbridge的信息通告给整个TRILL网络,由该作为转发者的Rbridge负责转发该共享链路上的以太网数据帧。通常,转发Rbridge会选择自己作为共享链路上报文的转发者,即Rbridge1为共享链路上的转发者。此时,Rbridge1将自己的nickname和与自己连接的终端设备3的MAC地址等信息通告给Trill网络中其他Rbridge,这样Trill网络中的其他Rbridge就知道到达终端设备3的出口Rbridge为Rbridge1。而对于共享链路上另一台Rbridge,即Rbridge2与终端设备3之间的相关信息,Rbridge1不会通告给TRILL网络中的其他Rbridge,这样由于网络中其他Rbridge不知道Rbridge2与终端设备3之间的相关信息,也就不知道Rbridge2能够将以太网数据帧转发给终端设备3,实现了将Rbridge2上与终端设备3直连的接口被阻塞的目的,也就以防止了Rbridge2也向终端设备3转发以太网数据帧。另外,由于Rbridge2未被选举为该共享链路上的转发Rbridge,故Rbridge2也不会将其与终端设备3之间的相关信息通告给TRILL网络中的其他Rbridge。Take the shared link shown in Figure 1B as an example for illustration: when there is a shared link in the TRILL network, for the Ethernet data frame whose destination address is terminal device 3, there will be two forwarding paths. A loop occurs. In order to solve this problem, Rbridge1 and Rbridge2 in the shared link will elect a forwarding Rbridge (such as Rbridge1) through the forwarding Rbridge election mechanism, and the forwarding Rbridge will select one Rbridge from the two Rbridges as the shared chain The forwarder of the message on the road notifies the information of the forwarder Rbridge to the entire TRILL network, and the forwarder Rbridge is responsible for forwarding the Ethernet data frame on the shared link. Usually, the forwarding Rbridge will choose itself as the forwarder of the packet on the shared link, that is, Rbridge1 is the forwarder on the shared link. At this time, Rbridge1 notifies other Rbridges in the Trill network of its nickname and the MAC address of the terminal device 3 connected to it, so that other Rbridges in the Trill network know that the exit Rbridge to the terminal device 3 is Rbridge1. For another Rbridge on the shared link, that is, the relevant information between Rbridge2 and terminal device 3, Rbridge1 will not notify other Rbridges in the TRILL network, so that other Rbridges in the network do not know the information between Rbridge2 and terminal device 3. I don’t know that Rbridge2 can forward the Ethernet data frame to terminal device 3, which realizes the purpose of blocking the interface directly connected to terminal device 3 on Rbridge2, and prevents Rbridge2 from sending data frames to terminal device 3. Forward Ethernet data frames. In addition, since Rbridge2 is not elected as the forwarding Rbridge on the shared link, Rbridge2 will not notify other Rbridges in the TRILL network of the relevant information between itself and the terminal device 3 .

上述方案虽然解决了环路问题,但是由于一条转发路径被闲置将造成网络带宽资源的浪费,故在本发明各实施例中,被选举为转发Rbridge的Rbridge向TRILL网络中所有Rbridge通告与其直连的其他Rbridge的相关信息,例如其他Rbridge的nickname、优先级、是否为转发Rbridge等信息。这样网络中每台Rbridge都会获知网络中处于共享链路上的Rbridge相关信息,例如哪台Rbridge被选举为转发Rbridge,与转发Rbridge直连的Rbridge的信息等。对于网络中的每台Rbridge来说,较为优选的是根据共享链路上的转发Rbridge通告的相关信息生成该转发Rbridge的邻居直连列表,并将相关信息存储到该邻居直连列表中。Although the above solution solves the loop problem, because a forwarding path is idle, it will cause a waste of network bandwidth resources, so in each embodiment of the present invention, the Rbridge elected as the forwarding Rbridge notifies all Rbridges in the TRILL network of its direct connection Information about other Rbridges, such as the nickname, priority, and whether it is a forwarding Rbridge of other Rbridges. In this way, each Rbridge in the network will know the relevant information of the Rbridge on the shared link in the network, such as which Rbridge is elected as the forwarding Rbridge, information about the Rbridge directly connected to the forwarding Rbridge, and so on. For each Rbridge in the network, it is more preferable to generate a direct neighbor list of the forwarding Rbridge according to relevant information notified by the forwarding Rbridge on the shared link, and store the relevant information in the direct neighbor list.

基于上述,源Rbridge会根据第一目的Rbridge的nickname去查找第一目的Rbridge的邻居直连列表,获取与第一目的Rbridge直连的其他Rbridge(即第二目的Rbridge)。在本实施例中,第一目的Rbridge与第二目的Rbridge同时与以太网数据帧的接收者(即以太网数据帧的目的MAC地址对应的终端设备)相连接。Based on the above, the source Rbridge will search the neighbor direct connection list of the first destination Rbridge according to the nickname of the first destination Rbridge, and obtain other Rbridges directly connected to the first destination Rbridge (that is, the second destination Rbridge). In this embodiment, the first destination Rbridge and the second destination Rbridge are simultaneously connected to the receiver of the Ethernet data frame (ie, the terminal device corresponding to the destination MAC address of the Ethernet data frame).

步骤103、源Rbridge根据TRILL路由表,将以太网数据帧和后续接收到的目的MAC地址相同的其他以太网数据帧,通过第一目的Rbridge和第二目的Rbridge转发给目的MAC地址对应的终端设备。Step 103, the source Rbridge forwards the Ethernet data frame and other Ethernet data frames with the same destination MAC address received subsequently to the terminal device corresponding to the destination MAC address through the first destination Rbridge and the second destination Rbridge according to the TRILL routing table .

源Rbridge在获取第一目的Rbridge和第二目的Rbridge后,分别使用第一目的Rbridge和第二目的Rbridge所在的两条转发路径将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧转发给目的MAC地址对应的终端设备。当第二目的Rbridge为多台与第一目的Rbridge直连的Rbridge时,源Rbridge就会通过第一目的Rbridge和第二目的Rbridge所在的多条转发路径将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧转发给目的MAC地址对应的终端设备。After the source Rbridge obtains the first destination Rbridge and the second destination Rbridge, it uses the two forwarding paths where the first destination Rbridge and the second destination Rbridge are located to link the current Ethernet data frame and the subsequently received destination MAC address with the current Ethernet data frame. Other Ethernet data frames with the same destination MAC address of the data frame are forwarded to the terminal device corresponding to the destination MAC address. When the second purpose Rbridge is multiple Rbridges directly connected to the first purpose Rbridge, the source Rbridge will pass the current Ethernet data frame and the subsequent received Other Ethernet data frames whose destination MAC address is the same as that of the current Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address.

具体的,源Rbridge是连接接收以太网数据帧的,故源Rbridge可以将部分以太网数据帧通过第一目的Rbridge转发给目的MAC地址对应的终端设备,而将另一部分以太网数据帧通过第二目的Rbridge转发给目的MAC地址对应的终端设备,而随着以太网数据帧的不断接收,最终通过轮流使用第一目的Rbridge和第二目的Rbridge将所有以太网数据帧转发给目的MAC地址对应的终端设备。其中,对于第一目的Rbridge而言,源Rbridge根据其TRILL路由表获取到第一目的Rbridge的下一跳Rbridge,并将发送给第一目的Rbridge的以太网数据帧封装为TRILL数据帧,然后逐跳转发给第一目的Rbridge。第一目的Rbridge接收到TRILL数据帧后,对接收到的TRILL数据帧进行解封装获取最初进入TRILL网络的以太网数据帧,并根据以太网数据帧中的目的MAC地址将以太网数据帧转发给目的MAC地址对应的终端设备。对于第二目的Rbridge而言,源Rbridge同样根据TRILL路由表将发送给第二目的Rbridge的以太网数据帧封装为TRILL数据帧后转发给第二目的Rbridge。只是在本实施例中,源Rbridge是通过第一目的Rbridge的邻居直连列表获知第二目的Rbridge也可以转发数据帧到目的MAC地址对应的终端设备,从而获取第二目的Rbridge的。第二目的Rbridge在接收到TRILL数据帧后也会对接收到的TRILL数据帧进行解封装,并将解封装获取到的以太网数据帧转发给目的MAC地址对应的终端设备。对第二目的Rbridge来说,当以太网数据帧是到达连接于其与第一目的Rbridge之间的共享链路上的终端设备时,就意味着第二目的Rbridge与该终端设备直连的接口将要被打开,然后将以太网数据帧转发给终端设备。Specifically, the source Rbridge is connected to receive the Ethernet data frame, so the source Rbridge can forward part of the Ethernet data frame to the terminal device corresponding to the destination MAC address through the first destination Rbridge, and another part of the Ethernet data frame through the second The destination Rbridge forwards to the terminal device corresponding to the destination MAC address, and as the Ethernet data frames are continuously received, finally, all Ethernet data frames are forwarded to the terminal corresponding to the destination MAC address by using the first destination Rbridge and the second destination Rbridge in turn equipment. Wherein, for the first purpose Rbridge, the source Rbridge obtains the next hop Rbridge of the first purpose Rbridge according to its TRILL routing table, and encapsulates the Ethernet data frame sent to the first purpose Rbridge into a TRILL data frame, and then The jump is forwarded to the first destination Rbridge. After the first destination Rbridge receives the TRILL data frame, it decapsulates the received TRILL data frame to obtain the Ethernet data frame initially entering the TRILL network, and forwards the Ethernet data frame to the The terminal device corresponding to the destination MAC address. For the second destination Rbridge, the source Rbridge also encapsulates the Ethernet data frame sent to the second destination Rbridge into a TRILL data frame according to the TRILL routing table and forwards it to the second destination Rbridge. Only in this embodiment, the source Rbridge obtains the second destination Rbridge by learning that the second destination Rbridge can also forward the data frame to the terminal device corresponding to the destination MAC address through the direct neighbor list of the first destination Rbridge. After receiving the TRILL data frame, the second destination Rbridge will also decapsulate the received TRILL data frame, and forward the Ethernet data frame obtained through decapsulation to the terminal device corresponding to the destination MAC address. For the second purpose Rbridge, when the Ethernet data frame arrives at the terminal device connected to the shared link between it and the first purpose Rbridge, it means that the second purpose Rbridge is directly connected to the interface of the terminal device will be opened and then forward the Ethernet data frame to the end device.

本实施例的报文转发方法,源Rbridge根据以太网数据帧的目的MAC地址查询到目的Rbridge后,进一步查询目的Rbridge的邻居直连列表,获取与该目的Rbridge直连的另外的目的Rbridge,并将接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的所有以太网数据帧通过共享链路上所有目的Rbridge所在的转发路径转发给目的MAC地址对应的终端设备,实现以太网数据帧的转发,由于充分利用了共享链路上每条转发路径的带宽资源来转发以太网数据帧,提高了网络带宽的利用率,减少了链路带宽资源的浪费,提高了以太网数据帧的转发速率。In the message forwarding method of this embodiment, after the source Rbridge queries the destination Rbridge according to the destination MAC address of the Ethernet data frame, it further queries the neighbor direct connection list of the destination Rbridge to obtain another destination Rbridge directly connected to the destination Rbridge, and All Ethernet data frames whose destination MAC address is the same as that of the current Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address through the forwarding path of all destination Rbridges on the shared link to realize Ethernet data Frame forwarding, because the bandwidth resources of each forwarding path on the shared link are fully utilized to forward Ethernet data frames, the utilization rate of network bandwidth is improved, the waste of link bandwidth resources is reduced, and the efficiency of Ethernet data frames is improved. Forwarding rate.

图2为本发明另一实施例提供的报文转发方法的流程图。如图2所示,本实施例的方法包括:Fig. 2 is a flowchart of a packet forwarding method provided by another embodiment of the present invention. As shown in Figure 2, the method of this embodiment includes:

步骤201、TRILL网络初始化,TRILL网络中处于共享链路上的Rbridge根据转发Rbridge选举机制,进行转发Rbridge的选举。In step 201, the TRILL network is initialized, and the Rbridge on the shared link in the TRILL network elects the forwarding Rbridge according to the forwarding Rbridge election mechanism.

通常,在TRILL网络启动时,TRILL网络中处于共享链路上的Rbridge就会进行转发Rbridge的选举。其中,转发Rbridge选举属于现有技术,在此不做赘述。在选举出转发Rbridge之后,由转发Rbridge从共享链路上的两台或两台以上的Rbridge中指定一台Rbridge作为共享链路的转发者负责转发该共享链路上的报文,并将指定的Rbridge的信息通告出去。在本发明各实施例中,均以转发Rbridge指定自己为共享链路的转发者为例。Usually, when the TRILL network is started, the Rbridge on the shared link in the TRILL network will elect the forwarding Rbridge. Wherein, the forwarding Rbridge election belongs to the prior art, and details are not described here. After the forwarding Rbridge is elected, the forwarding Rbridge will designate one Rbridge from the two or more Rbridges on the shared link as the forwarder of the shared link to be responsible for forwarding the packets on the shared link, and will The Rbridge information is advertised. In each embodiment of the present invention, the forwarding Rbridge designates itself as the forwarder of the shared link as an example.

步骤202、被选举为转发Rbridge的Rbridge向TRILL网络广播邻居通告消息。Step 202, the Rbridge elected as the forwarding Rbridge broadcasts a neighbor notification message to the TRILL network.

在本实施例中,被选举为转发Rbridge的Rbridge会向TRILL网络中所有Rbridge广播邻居通告消息。在邻居通告消息中包括与转发Rbridge直连的Rbridge的nickname。In this embodiment, the Rbridge elected as the forwarding Rbridge broadcasts a neighbor notification message to all Rbridges in the TRILL network. The nickname of the Rbridge directly connected to the forwarding Rbridge is included in the Neighbor Advertisement message.

另外,转发Rbridge还可以将转发Rbridge的优先级以及与转发Rbridge直连的Rbridge的优先级等其他信息通告给TRILL网络中所有Rbridge。其中,转发Rbridge可以将优先级等信息也添加在邻居通告消息中同nickname一起广播给TRILL网络中所有Rbridge。转发Rbridge也可以通过另外的通告消息将优先级等信息广播给TRILL网络中的所有Rbridge。In addition, the forwarding Rbridge can also notify all the Rbridges in the TRILL network of other information such as the priority of the forwarding Rbridge and the priority of the Rbridges directly connected to the forwarding Rbridge. Wherein, the forwarding Rbridge may also add information such as priority to the neighbor notification message together with the nickname and broadcast it to all Rbridges in the TRILL network. The forwarding Rbridge can also broadcast information such as priority to all Rbridges in the TRILL network through another notification message.

步骤203、TRILL网络中的各个Rbridge接收转发Rbridge广播的邻居通告消息。Step 203, each Rbridge in the TRILL network receives and forwards the neighbor notification message broadcast by the Rbridge.

步骤204、各个Rbridge将广播邻居通告消息的转发Rbridge的nickname和邻居通告消息中与转发Rbridge直连的Rbridge的nickname存储到广播邻居通告消息的转发Rbridge的邻居直连列表中。Step 204, each Rbridge stores the nickname of the forwarding Rbridge broadcasting the NA message and the nickname of the Rbridge directly connected to the forwarding Rbridge in the NA message to the direct neighbor list of the forwarding Rbridge broadcasting the NA message.

当TRILL网络中存在广播的邻居通告消息时,每个Rbridge接收邻居通告消息,然后将发送邻居通告消息的转发Rbridge的nickname、邻居通告消息中携带的与转发Rbridge直连的Rbridge的nickname存储到转发Rbridge的邻居直连列表中。When there is a broadcast Neighbor Advertisement message in the TRILL network, each Rbridge receives the Neighbor Advertisement message, and then stores the nickname of the forwarding Rbridge that sent the Neighbor Advertisement message, and the nickname of the Rbridge directly connected to the forwarding Rbridge carried in the Neighbor Advertisement message to the forwarding In the direct connection list of neighbors of Rbridge.

另外,当邻居通告消息中携带转发Rbridge以及与转发Rbridge直连的Rbridge的优先级等其他信息时,接收到邻居通告消息的Rbridge还会将转发Rbridge的和与转发Rbridge直连的Rbridge的优先级等信息存储到转发Rbridge的邻居直连列表中。In addition, when the Neighbor Advertisement message carries other information such as the priority of the forwarding Rbridge and the Rbridge directly connected to the forwarding Rbridge, the Rbridge receiving the Neighbor Advertisement message will also set the priorities of the forwarding Rbridge and the Rbridge directly connected to the forwarding Rbridge. and other information are stored in the neighbor direct connection list of the forwarding Rbridge.

步骤205、源Rbridge接收与其直连的终端设备发送的以太网数据帧,并根据以太网数据帧的目的MAC地址,查询MAC表,获取该目的MAC地址对应的终端设备所属的Rbridge的nickname,即获取第一目的Rbridge的nickname。Step 205, the source Rbridge receives the Ethernet data frame sent by its directly connected terminal equipment, and queries the MAC table according to the destination MAC address of the Ethernet data frame, and obtains the nickname of the Rbridge to which the terminal equipment corresponding to the destination MAC address belongs, namely Get the nickname of the first destination Rbridge.

步骤206、源Rbridge根据第一目的Rbridge的nickname,查询第一目的Rbridge的邻居直连列表,判断邻居直连列表是否为空;如果判断结果为是,即邻居直连列表为空,执行步骤211;如果判断结果为否,即邻居直连列表不为空,执行步骤207。Step 206, the source Rbridge queries the neighbor direct list of the first destination Rbridge according to the nickname of the first destination Rbridge, and judges whether the neighbor direct list is empty; if the judgment result is yes, that is, the neighbor direct list is empty, execute step 211 ; If the judgment result is no, that is, the direct connection list of neighbors is not empty, go to step 207.

在本实施例中,如果第一目的Rbridge也是处于共享链路上的Rbridge时,也会根据转发Rbridge选举机制进行转发Rbridge的选举,并且在其被选举为共享链路上的转发Rbridge时,也会向TRILL网络广播邻居通告消息。而源Rbridge会接收到第一目的Rbridge广播的邻居通告消息。同理,如果本实施例的源Rbridge也处于共享链路上时,也会根据转发Rbridge选举机制进行转发Rbridge的选举,并且在其被选举为共享链路上的转发Rbridge时,也会向TRILL网络广播邻居通告消息。In this embodiment, if the first destination Rbridge is also the Rbridge on the shared link, the election of the forwarding Rbridge will also be performed according to the forwarding Rbridge election mechanism, and when it is elected as the forwarding Rbridge on the shared link, it will also be selected as the forwarding Rbridge on the shared link. Neighbor Advertisement messages are broadcast to the TRILL network. The source Rbridge will receive the neighbor notification message broadcast by the first destination Rbridge. Similarly, if the source Rbridge of this embodiment is also on the shared link, the election of the forwarding Rbridge will also be carried out according to the forwarding Rbridge election mechanism, and when it is elected as the forwarding Rbridge on the shared link, it will also be sent to TRILL The network broadcasts neighbor advertisement messages.

在本实施例中,将第一目的Rbridge广播的邻居通告消息称之为第一邻居通告消息,该第一邻居通告消息中主要包括与第一目的Rbridge直连的第二目的Rbridge的nickname。而将源Rbridge广播的邻居通告消息称之为第二邻居通告消息,该第二邻居通告消息中主要包括与原Rbridge直连的Rbridge的nickname。In this embodiment, the neighbor notification message broadcast by the first destination Rbridge is called a first neighbor notification message, and the first neighbor notification message mainly includes the nickname of the second destination Rbridge directly connected to the first destination Rbridge. The neighbor notification message broadcast by the source Rbridge is called a second neighbor notification message, and the second neighbor notification message mainly includes the nickname of the Rbridge directly connected to the original Rbridge.

如果第一目的Rbridge不是处于共享链路上的Rbridge时,其不会进行转发Rbridge的选举,也就不会广播邻居通告消息,则源Rbridge上第一目的Rbridge的邻居直连列表也就不会存储有任何信息,此时源Rbridge可以按照现有技术对以太网数据帧进行转发处理。If the first destination Rbridge is not an Rbridge on a shared link, it will not elect a forwarding Rbridge, and will not broadcast a Neighbor Advertisement message, and the neighbor direct list of the first destination Rbridge on the source Rbridge will not If any information is stored, the source Rbridge can forward and process the Ethernet data frame according to the prior art.

步骤207、源Rbridge从邻居直连列表中获取与第一目的Rbridge直连的第二目的Rbridge的nickname。Step 207, the source Rbridge obtains the nickname of the second destination Rbridge directly connected to the first destination Rbridge from the neighbor direct connection list.

步骤208、源Rbridge按照一定的分配比例,将当前以太网数据帧和后续接收到的以太网数据帧分别分配给第一目的Rbridge和第二目的Rbridge。Step 208, the source Rbridge allocates the current Ethernet data frame and subsequent received Ethernet data frames to the first destination Rbridge and the second destination Rbridge respectively according to a certain distribution ratio.

其中,分配比例可以预先手工配置,也可以根据一定规则自动生成。例如:假设预先配置了分配比例为1∶1,则源Rbridge会将接收到的以太网数据帧按照1∶1的比例分配到第一目的Rbridge和第二目的Rbridge所在的转发路径上进行转发。例如:源Rbridge可以将接收到每个以太网数据帧轮流分配给第一目的Rbridge或第二目的Rbridge。又例如:源Rbridge可以将接收到每5个以太网数据帧作为一组轮流分配给第一目的Rbridge或第二目的Rbridge。除了分配比例为1∶1之外,还可以配置分配比例为1∶2、2∶1、3∶1等等。Wherein, the distribution ratio can be manually configured in advance, and can also be automatically generated according to certain rules. For example, assuming that the distribution ratio is pre-configured as 1:1, the source Rbridge will distribute the received Ethernet data frame to the forwarding path where the first destination Rbridge and the second destination Rbridge are located according to the ratio of 1:1 for forwarding. For example, the source Rbridge may allocate each received Ethernet data frame to the first destination Rbridge or the second destination Rbridge in turn. For another example: the source Rbridge may assign every 5 received Ethernet data frames to the first destination Rbridge or the second destination Rbridge in turn as a group. In addition to the distribution ratio of 1:1, it is also possible to configure the distribution ratio of 1:2, 2:1, 3:1 and so on.

进一步,当第一目的Rbridge在源Rbridge查询第一目的Rbridge的邻居直连列表之前,向源Rbridge通告第一目的Rbridge的优先级和第二目的Rbridge的优先级等其他信息时,源Rbridge会将第一目的Rbridge的和第二目的Rbridge的优先级等信息也存储到第一目的Rbridge的邻居直连列表中。则源Rbridge可以从第一目的Rbridge的邻居直连列表中获取第一目的Rbridge的和第二目的Rbridge的优先级,并根据第一目的Rbridge的和第二目的Rbridge的优先级,动态生成分配比例。例如:当存在一台第二目的Rbridge时,设第一目的Rbridge的优先级为2,而第二目的Rbridge的优先级为1,则可以生成2∶1的分配比例,但并不限于此。又例如:当存在两台第二目的Rbridge时,设第一目的Rbridge的优先级为4,一台第二目的Rbridge的优先级为3,另一台第二目的Rbridge的优先级为1,则可以生成4∶3∶1的分配比例,但并不限于此。本实施方式只是以第一目的Rbridge和第二目的Rbridge的优先级为依据,可以生成不同的分配比例。其中,第一目的Rbridge和第二目的Rbridge的优先级在一定程度上可以体现第一目的Rbridge和第二目的Rbridge所在转发路径的质量,故依据优先级信息获取分配比例并基于获取的分配比例进行以太网数据帧的分配,可以使网络带宽资源得到更加合理的利用,进一步提高以太网数据帧的转发效率。Further, when the first destination Rbridge notifies the source Rbridge of other information such as the priority of the first destination Rbridge and the priority of the second destination Rbridge before the source Rbridge queries the neighbor direct connection list of the first destination Rbridge, the source Rbridge will Information such as the priority of the first destination Rbridge and the second destination Rbridge is also stored in the neighbor direct connection list of the first destination Rbridge. Then the source Rbridge can obtain the priorities of the first destination Rbridge and the second destination Rbridge from the neighbor direct connection list of the first destination Rbridge, and dynamically generate the allocation ratio according to the priorities of the first destination Rbridge and the second destination Rbridge . For example: when there is a second-purpose Rbridge, set the priority of the first-purpose Rbridge to be 2, and the priority of the second-purpose Rbridge to be 1, then a distribution ratio of 2:1 can be generated, but it is not limited thereto. Another example: when there are two second-purpose Rbridges, set the priority of the first-purpose Rbridge to be 4, the priority of one second-purpose Rbridge to be 3, and the priority of another second-purpose Rbridge to be 1, then A distribution ratio of 4:3:1 may be generated, but is not limited thereto. In this embodiment, different distribution ratios may be generated based on the priorities of the first purpose Rbridge and the second purpose Rbridge. Among them, the priority of the first purpose Rbridge and the second purpose Rbridge can reflect the quality of the forwarding path where the first purpose Rbridge and the second purpose Rbridge are located to a certain extent, so the allocation ratio is obtained according to the priority information and based on the obtained allocation ratio. The allocation of Ethernet data frames can make more reasonable use of network bandwidth resources and further improve the forwarding efficiency of Ethernet data frames.

步骤209、源Rbridge根据TRILL路由表,将分配第一目的Rbridge或第二目的Rbridge的以太网数据帧封装为TRILL数据帧,然后将TRILL数据帧发送给第一目的Rbridge或第二目的Rbridge。Step 209, the source Rbridge encapsulates the Ethernet data frame assigned to the first destination Rbridge or the second destination Rbridge into a TRILL data frame according to the TRILL routing table, and then sends the TRILL data frame to the first destination Rbridge or the second destination Rbridge.

对于分配给第一目的Rbridge或第二目的Rbridge的以太网数据帧,源Rbridge的处理方式相同,区别在于所封装的TRILL报头有所不同。下面以分配给第一目的Rbridge的数据报文的转发过程为例进行详细说明。For the Ethernet data frames allocated to the first destination Rbridge or the second destination Rbridge, the source Rbridge processes them in the same way, except that the encapsulated TRILL headers are different. The following takes the forwarding process of the data packet allocated to the first destination Rbridge as an example to describe in detail.

源Rbridge根据TRILL路由表,获取第一目的Rbridge的下一跳Rbridge,以及下一跳Rbridge的出接口。然后,源Rbridge在以太网数据帧的外面封装TRILL报头,具体的,源Rbridge将TRILL报头中的入Rbridge字段填充为源Rbridge的nickname,将出Rbridge字段填充为第一目的Rbridge的nickname,并分别填充TRILL报头中的其他相应字段。接着,源Rbridge在TRILL报头外侧封装源MAC地址为源Rbridge的MAC地址、目的MAC地址为下一跳Rbridge的MAC地址、并填充VLAN标记(VLAN Tag)后发送给下一跳Rbridge。下一跳Rbridge接收TRILL数据帧,根据TRILL报头中的出Rbridge字段获知第一目的Rbridge,然后根据TRILL路由表再将TRILL数据帧转发给其下一跳Rbridge,直到第一目的Rbridge接收到TRILL数据帧为止。The source Rbridge obtains the next-hop Rbridge of the first destination Rbridge and the outgoing interface of the next-hop Rbridge according to the TRILL routing table. Then, the source Rbridge encapsulates the TRILL header outside the Ethernet data frame. Specifically, the source Rbridge fills the input Rbridge field in the TRILL header with the nickname of the source Rbridge, and fills the output Rbridge field with the nickname of the first destination Rbridge, and respectively Fill in other corresponding fields in the TRILL header. Next, the source Rbridge encapsulates the source MAC address as the MAC address of the source Rbridge, the destination MAC address as the MAC address of the next-hop Rbridge on the outside of the TRILL header, and fills in the VLAN tag (VLAN Tag) and sends it to the next-hop Rbridge. The next hop Rbridge receives the TRILL data frame, learns the first destination Rbridge according to the outbound Rbridge field in the TRILL header, and then forwards the TRILL data frame to its next hop Rbridge according to the TRILL routing table until the first destination Rbridge receives the TRILL data frame.

步骤210、第一目的Rbridge或第二目的Rbridge接收TRILL数据帧,并对接收到的TRILL数据帧进行解封装处理获取以太网数据帧,并将以太网数据帧转发给目的MAC地址对应的终端设备,直到转发完所有以太网数据帧时结束操作。Step 210, the first purpose Rbridge or the second purpose Rbridge receives the TRILL data frame, and decapsulates the received TRILL data frame to obtain the Ethernet data frame, and forwards the Ethernet data frame to the terminal device corresponding to the destination MAC address , and end the operation until all Ethernet data frames are forwarded.

其中,第一目的Rbridge和第二目的Rbridge接收到TRILL数据帧后的处理操作相同,故以第一目的Rbridge为例进行说明。Wherein, the first destination Rbridge and the second destination Rbridge perform the same processing operations after receiving the TRILL data frame, so the first destination Rbridge is used as an example for illustration.

第一目的Rbridge接收到TRILL数据帧后,根据TRILL报头中的出Rbridge字段获知自己就是出Rbridge,则将TRILL报头去掉,获取初始进入TRILL网络的以太网数据帧,然后根据以太网数据帧的目的MAC地址,直接将以太网数据帧发送给目的MAC地址对应的终端设备,完成以太网数据帧的转发。After the first destination Rbridge receives the TRILL data frame, it knows that it is the outgoing Rbridge according to the outgoing Rbridge field in the TRILL header, then removes the TRILL header to obtain the Ethernet data frame initially entering the TRILL network, and then according to the purpose of the Ethernet data frame MAC address, directly sends the Ethernet data frame to the terminal device corresponding to the destination MAC address, and completes the forwarding of the Ethernet data frame.

步骤211、源Rbridge直接根据TRILL路由表,将当前以太网数据帧以及后续接收到的其他以太网数据帧分别封装为TRILL数据帧,并将TRILL数据帧发送给第一目的Rbridge,并执行步骤212。Step 211, the source Rbridge directly encapsulates the current Ethernet data frame and subsequent received other Ethernet data frames into TRILL data frames according to the TRILL routing table, and sends the TRILL data frame to the first destination Rbridge, and executes step 212 .

步骤212、第一目的Rbridge接收TRILL数据帧,并对接收到的TRILL数据帧进行解封装处理,获取以太网数据帧,并将以太网数据帧转发给目的MAC地址对应的终端设备,直到转发完所有以太网数据帧时结束操作。Step 212, the first destination Rbridge receives the TRILL data frame, and decapsulates the received TRILL data frame, obtains the Ethernet data frame, and forwards the Ethernet data frame to the terminal device corresponding to the destination MAC address until the forwarding is completed The operation ends when all Ethernet data frames are received.

其中,步骤211和步骤212描述了第一目的Rbridge不是共享链路上的Rbridge时,TRILL网络转发以太网数据帧的过程,其与现有技术相同,源Rbridge直接根据TRILL路由表进行以太网数据帧的转发,在此不再赘述。Wherein, step 211 and step 212 describe the process of the TRILL network forwarding the Ethernet data frame when the first destination Rbridge is not the Rbridge on the shared link. The forwarding of the frame will not be repeated here.

本实施例的报文转发方法,源Rbridge根据以太网数据帧的目的MAC地址查询到目的Rbridge后,进一步查询目的Rbridge的邻居直连列表,获取与该目的Rbridge直连的另外的目的Rbridge,并将接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的所有以太网数据帧通过共享链路上所有目的Rbridge所在的转发路径转发给目的MAC地址对应的终端设备,实现以太网数据帧的转发,由于充分利用了共享链路上每条转发路径的带宽资源来转发以太网数据帧,提高了网络带宽的利用率,减少了链路带宽资源的浪费,提高了以太网数据帧的转发速率。In the message forwarding method of this embodiment, after the source Rbridge queries the destination Rbridge according to the destination MAC address of the Ethernet data frame, it further queries the neighbor direct connection list of the destination Rbridge to obtain another destination Rbridge directly connected to the destination Rbridge, and All Ethernet data frames whose destination MAC address is the same as that of the current Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address through the forwarding path of all destination Rbridges on the shared link to realize Ethernet data Frame forwarding, because the bandwidth resources of each forwarding path on the shared link are fully utilized to forward Ethernet data frames, the utilization rate of network bandwidth is improved, the waste of link bandwidth resources is reduced, and the efficiency of Ethernet data frames is improved. Forwarding rate.

下面将结合具体TRILL网络场景以由两台Rbridge构成共享链路为例更加清晰的说明本发明各实施例的技术方案。In the following, the technical solution of each embodiment of the present invention will be described more clearly in combination with a specific TRILL network scenario by taking two Rbridges forming a shared link as an example.

如图3所示,该TRILL网络由Rbridge31-Rbridge35构建成而成,用于传输终端设备的报文。其中,主机36和主机37是TRILL网络外的终端设备,主机37连接Rbridge33与Rbridge34的共享链路A上,也就是说Rbridge33与Rbridge34在物理上直接相连,且主机37还分别与Rbridge33和Rbridge34相连,构成如图1B所示的共享链路结构。假设主机36发出一个单播以太网数据帧要到主机37。As shown in FIG. 3, the TRILL network is constructed by Rbridge31-Rbridge35, and is used to transmit messages of terminal devices. Wherein, the host 36 and the host 37 are terminal devices outside the TRILL network, and the host 37 is connected to the shared link A of Rbridge33 and Rbridge34, that is to say, Rbridge33 and Rbridge34 are directly connected physically, and the host 37 is also connected to Rbridge33 and Rbridge34 respectively , forming a shared link structure as shown in FIG. 1B . Assume that host 36 sends a unicast Ethernet data frame to host 37.

在本实施例中,Rbridge33和Rbridge34预先根据转发Rbridge选举机制,选举出Rbridge33为该共享链路A上的转发Rbridge,且Rbridge33选择自己为共享链路A上的报文的转发者并将自己的nickname和主机37的MAC地址等信息通告给整个TRILL网络,即Rbridge33负责将该共享链路A上的以太网数据帧转发给主机37。在本实施例中,在确定自己是转发Rbridge后,Rbridge33向整个TRILL网络广播邻居通告消息。其中,Rbridge33的优先级为2,Rbridge34的优先级为1。该邻居通告消息包括如下信息:{共享链路A:(Rbridge33的nickname、转发Rbridge、2),(Rbridge34的nickname、空(NULL)、1)},具体表示共享链路A上存在两台Rbridge,其中Rbridge33为转发Rbridge,且其优先级为2;其中Rbridge34是Rbridge33的直连Rbridge,其并非转发Rbridge,优先级为1。In this embodiment, Rbridge33 and Rbridge34 elect Rbridge33 as the forwarding Rbridge on the shared link A in advance according to the forwarding Rbridge election mechanism, and Rbridge33 selects itself as the forwarder of the message on the shared link A and sends its own Information such as the nickname and the MAC address of the host 37 is notified to the entire TRILL network, that is, the Rbridge 33 is responsible for forwarding the Ethernet data frame on the shared link A to the host 37. In this embodiment, after determining that it is a forwarding Rbridge, Rbridge33 broadcasts a neighbor notification message to the entire TRILL network. Among them, the priority of Rbridge33 is 2, and the priority of Rbridge34 is 1. The neighbor notification message includes the following information: {shared link A: (nickname of Rbridge33, forwarding Rbridge, 2), (nickname of Rbridge34, empty (NULL), 1)}, specifically indicating that there are two Rbridges on the shared link A , wherein Rbridge33 is a forwarding Rbridge, and its priority is 2; wherein Rbridge34 is a directly connected Rbridge of Rbridge33, which is not a forwarding Rbridge, and its priority is 1.

对于TRILL网络中的每个Rbridge而言,其上都会生成Rbridge33的邻居直连列表,该列表包括如下信息:{共享链路A:(Rbridge33的nickname、转发Rbridge、2),(Rbridge34的nickname、空(NULL)、1)}。For each Rbridge in the TRILL network, a neighbor direct connection list of Rbridge33 will be generated on it, and the list includes the following information: {shared link A: (nickname of Rbridge33, forwarding Rbridge, 2), (nickname of Rbridge34, empty (NULL), 1)}.

当Rbridge31接收主机36发送的以太网数据帧时,首先根据以太网数据帧的目的MAC地址(即主机37的MAC地址),查询MAC表,获取该目的MAC地址所属的Rbridge,即Rbridge33。然后,Rbridge31查询Rbridge33的邻居直连列表,获知与Rbridge33直连的Rbridge(即Rbridge34)的nickname,并且获知Rbridge33的优先级为2、Rbridge34的优先级为1。接着,Rbridge31查询TRILL路由表,获知到达Rbridge33的下一跳为Rbridge32,到达Rbridge34的下一跳为Rbridge35。Rbridge31将主机36发送来的以太网数据帧按照2∶1的分配比例,进行TRILL封装,例如每将2个以太网数据帧封装为出Rbridge字段为Rbridge33的nickname的TRILL数据帧后,将1个以太网数据帧封装为出Rbridge字段为Rbridge34的nickname的TRILL数据帧,并分别发送给Rbridge32和Rbridge35。When Rbridge31 receives the Ethernet data frame that host computer 36 sends, at first according to the destination MAC address of Ethernet data frame (being the MAC address of host computer 37), query MAC table, obtain the Rbridge that this destination MAC address belongs to, namely Rbridge33. Then, Rbridge31 queries the neighbor direct connection list of Rbridge33, obtains the nickname of the Rbridge directly connected to Rbridge33 (that is, Rbridge34), and obtains that the priority of Rbridge33 is 2, and that of Rbridge34 is 1. Next, Rbridge31 queries the TRILL routing table, and learns that the next hop to Rbridge33 is Rbridge32, and the next hop to Rbridge34 is Rbridge35. Rbridge31 performs TRILL encapsulation on the Ethernet data frames sent by the host computer 36 according to a distribution ratio of 2:1. The Ethernet data frame is encapsulated into a TRILL data frame whose Rbridge field is the nickname of Rbridge34, and is sent to Rbridge32 and Rbridge35 respectively.

对于Rbridge32,在接收到TRILL数据帧时,查询TRILL路由表发现自己是Rbridge33的下一跳出口,则将TRILL数据帧的源MAC地址修改为Rbridge32的MAC地址、将目的MAC地址修改为Rbridge33的MAC地址后直接转发给Rbridge33。对于Rbridge33来说,接收到TRILL数据帧后,查询TRILL路由表发现自己是主机37的直连Rbridge,则将TRILL数据帧的TRILL报头去掉,直接将获取的以太网数据帧转发给主机37。For Rbridge32, when receiving a TRILL data frame, query the TRILL routing table and find that it is the next-hop exit of Rbridge33, then modify the source MAC address of the TRILL data frame to the MAC address of Rbridge32, and modify the destination MAC address to the MAC address of Rbridge33 The address is forwarded directly to Rbridge33. For Rbridge33, after receiving the TRILL data frame, query the TRILL routing table and find that it is the directly connected Rbridge of the host 37, then remove the TRILL header of the TRILL data frame, and directly forward the acquired Ethernet data frame to the host 37.

对于Rbridge35,在接收到TRILL数据帧时,查询TRILL路由表发现自己是Rbridge34的下一跳出口,则将TRILL数据帧的源MAC地址修改为Rbridge35的MAC地址、将目的MAC地址修改为Rbridge34的MAC地址后直接转发给Rbridge34。对于Rbridge34来说,接收到TRILL数据帧后,查询TRILL路由表发现自己是主机37的直连Rbridge,则将TRILL数据帧的TRILL报头去掉,对获取的以太网数据帧继续进行二层转发,最终将以太网数据帧转发给主机37。For Rbridge35, when receiving a TRILL data frame, query the TRILL routing table and find that it is the next-hop exit of Rbridge34, then modify the source MAC address of the TRILL data frame to the MAC address of Rbridge35, and modify the destination MAC address to the MAC address of Rbridge34 The address is forwarded directly to Rbridge34. For Rbridge34, after receiving the TRILL data frame, it queries the TRILL routing table and finds that it is the directly connected Rbridge of the host 37, then removes the TRILL header of the TRILL data frame, and continues to perform Layer 2 forwarding on the acquired Ethernet data frame, finally The Ethernet data frame is forwarded to the host 37.

通过上面描述可见:本发明各实施例将TRILL网络中到达连接在某一共享链路上的终端设备的流量分配到该共享链路上所有Rbridge所在的转发路径上,这种转发方式充分利用了每条转发路径的带宽资源,减少了带宽资源的浪费,提高了转发效率,进而从整体上提高了整个TRILL网络的转发性能。It can be seen from the above description that in each embodiment of the present invention, the traffic arriving at a terminal device connected to a certain shared link in the TRILL network is distributed to the forwarding paths where all Rbridges on the shared link are located. This forwarding method makes full use of The bandwidth resources of each forwarding path reduce the waste of bandwidth resources, improve the forwarding efficiency, and improve the forwarding performance of the entire TRILL network as a whole.

图4为本发明一实施例提供的Rbridge的结构示意图。如图4所示,本实施例的Rbridge包括:第一获取模块41、第二获取模块42和转发模块43。FIG. 4 is a schematic structural diagram of an Rbridge provided by an embodiment of the present invention. As shown in FIG. 4 , the Rbridge of this embodiment includes: a first obtaining module 41 , a second obtaining module 42 and a forwarding module 43 .

其中,第一获取模块41,用于根据接收到的当前以太网数据帧的目的MAC地址,查询MAC表,获取第一目的Rbridge的标识。第二获取模块42,与第一获取模块41连接,用于根据第一目的Rbridge的标识,查询第一目的Rbridge的邻居直连列表,获取与第一目的Rbridge直连的第二目的Rbridge的标识。转发模块43,与第一获取模块41和第二获取模块42连接,用于根据TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过第一目的Rbridge和第二目的Rbridge转发给目的MAC地址对应的终端设备。Wherein, the first acquiring module 41 is configured to query the MAC table according to the received destination MAC address of the current Ethernet data frame, and acquire the identifier of the first destination Rbridge. The second obtaining module 42 is connected with the first obtaining module 41, and is used to query the neighbor direct connection list of the first purpose Rbridge according to the identification of the first purpose Rbridge, and obtain the identification of the second purpose Rbridge directly connected with the first purpose Rbridge . The forwarding module 43 is connected with the first obtaining module 41 and the second obtaining module 42, and is used to make the current Ethernet data frame and the subsequent received destination MAC address the same as the destination MAC address of the current Ethernet data frame according to the TRILL routing table The other Ethernet data frames are forwarded to the terminal device corresponding to the destination MAC address through the first destination Rbridge and the second destination Rbridge.

本实施例Rbridge可以作为图1A所示实施例中的源Rbridge,其各功能模块可用于执行图1A所示报文转发方法的流程,具体工作原理不再赘述,详见方法实施例的描述。The Rbridge in this embodiment can be used as the source Rbridge in the embodiment shown in FIG. 1A , and its functional modules can be used to execute the flow of the packet forwarding method shown in FIG. 1A . The specific working principle will not be described in detail, and see the description of the method embodiment for details.

本实施例的Rbridge,根据以太网数据帧的目的MAC地址查询到目的Rbridge后,进一步查询目的Rbridge的邻居直连列表,获取与该目的Rbridge直连的另一个目的Rbridge,并将接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的所有以太网数据帧通过共享链路上所有目的Rbridge所在的转发路径转发给目的MAC地址对应的终端设备,实现以太网数据帧的转发,由于充分利用了共享链路上每条转发路径的带宽资源来转发以太网数据帧,提高了网络带宽的利用率,减少了链路带宽资源的浪费,提高了以太网数据帧的转发速率。The Rbridge of this embodiment, after querying the destination Rbridge according to the destination MAC address of the Ethernet data frame, further queries the neighbor direct connection list of the destination Rbridge, obtains another destination Rbridge directly connected to the destination Rbridge, and sends the received destination Rbridge All Ethernet data frames whose MAC address is the same as the destination MAC address of the current Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address through the forwarding path of all destination Rbridges on the shared link, so as to realize the forwarding of the Ethernet data frame. The bandwidth resources of each forwarding path on the shared link are fully utilized to forward Ethernet data frames, which improves the utilization rate of network bandwidth, reduces the waste of link bandwidth resources, and improves the forwarding rate of Ethernet data frames.

图5为本发明另一实施例提供的Rbridge的结构示意图。本实施例基于图4所示实施例实现,如图5所示,本实施例的Rbridge还包括:第一接收模块51和第一存储模块52。FIG. 5 is a schematic structural diagram of an Rbridge provided by another embodiment of the present invention. This embodiment is implemented based on the embodiment shown in FIG. 4 . As shown in FIG. 5 , the Rbridge of this embodiment further includes: a first receiving module 51 and a first storage module 52 .

其中,第一接收模块51,与第一目的Rbridge连接,用于接收第一目的Rbridge广播的第一邻居通告消息,所述第一邻居通告消息是第一目的Rbridge根据转发Rbridge选举机制,确定第一目的Rbridge为共享链路上的转发路由交换机后广播的,且第一邻居通告消息包括与第一目的Rbridge直连的第二目的Rbridge的标识。第一存储模块52,与第一接收模块51连接,用于将第一目的Rbridge的标识和第二目的Rbridge的标识存储在第一目的Rbridge的邻居直连列表中,以供第二获取模块42查询并获取第二目的Rbridge。Wherein, the first receiving module 51 is connected with the first destination Rbridge, and is used to receive the first neighbor advertisement message broadcast by the first destination Rbridge, and the first neighbor advertisement message is determined by the first destination Rbridge according to the forwarding Rbridge election mechanism. A destination Rbridge is broadcast after the forwarding router switch on the shared link, and the first neighbor notification message includes the identifier of the second destination Rbridge directly connected to the first destination Rbridge. The first storage module 52, connected to the first receiving module 51, is used to store the identifier of the first destination Rbridge and the identifier of the second destination Rbridge in the neighbor direct connection list of the first destination Rbridge, for the second acquisition module 42 Query and obtain the second destination Rbridge.

进一步,本实施例的转发模块43包括:分配单元431和转发单元432。Further, the forwarding module 43 of this embodiment includes: an allocation unit 431 and a forwarding unit 432 .

具体的,分配单元431,用于将按照一定的分配比例,将当前以太网数据帧和后续接收到的以太网数据帧分别分配给第一目的Rbridge和第二目的Rbridge。转发单元432,与分配单元431连接,用于根据TRILL路由表,将分配给第一目的Rbridge或第二目的Rbridge的以太网数据帧封装为TRILL数据帧后发送给第一目的Rbridge或第二目的Rbridge,以使第一目的Rbridge或第二目的Rbridge对TRILL数据帧进行解封装后转发给目的MAC地址对应的终端设备。Specifically, the allocation unit 431 is configured to allocate the current Ethernet data frame and subsequent received Ethernet data frames to the first destination Rbridge and the second destination Rbridge respectively according to a certain distribution ratio. The forwarding unit 432 is connected to the distribution unit 431, and is used to encapsulate the Ethernet data frame assigned to the first purpose Rbridge or the second purpose Rbridge into a TRILL data frame and send it to the first purpose Rbridge or the second purpose according to the TRILL routing table Rbridge, so that the first destination Rbridge or the second destination Rbridge decapsulates the TRILL data frame and forwards it to the terminal device corresponding to the destination MAC address.

更进一步,如图5所示,本实施例的Rbridge还包括:第二接收模块53和第二存储模块54。Furthermore, as shown in FIG. 5 , the Rbridge of this embodiment further includes: a second receiving module 53 and a second storage module 54 .

第二接收模块53,与第一目的Rbridge连接,用于接收第一目的Rbridge通告的第一目的Rbridge的和第二目的Rbridge的优先级。第二存储模块54,与第二接收模块53连接,用于将第一目的Rbridge的和第二目的Rbridge的优先级存储到第一目的Rbridge的邻居直连列表中。The second receiving module 53 is connected to the first destination Rbridge, and is configured to receive the priorities of the first destination Rbridge and the second destination Rbridge notified by the first destination Rbridge. The second storage module 54 is connected to the second receiving module 53, and is configured to store the priorities of the first destination Rbridge and the second destination Rbridge in the direct neighbor list of the first destination Rbridge.

在具体实现时,第二接收模块53、第二存储模块54可以分别与第一接收模块51、第一存储模块52一体实现,即由一个接收模块同时实现第一接收模块51和第二接收模块53的功能,并由一个存储模块同时实现第一存储模块52和第二存储模块54的功能。In specific implementation, the second receiving module 53 and the second storage module 54 can be integrated with the first receiving module 51 and the first storage module 52 respectively, that is, the first receiving module 51 and the second receiving module are simultaneously realized by one receiving module 53, and realize the functions of the first storage module 52 and the second storage module 54 simultaneously by one storage module.

基于上述,本实施例的转发模块43还包括:获取确定单元430。该获取确定单元430,与分配单元431和第二存储模块54连接,用于从第一目的Rbridge的邻居直连列表中获取第一目的Rbridge的和第二目的Rbridge优先级,并根据第一目的Rbridge的和第二目的Rbridge的优先级,确定分配比例,并将确定出的分配比例提供给分配单元431。Based on the above, the forwarding module 43 of this embodiment further includes: an acquisition determining unit 430 . The acquisition determination unit 430 is connected to the allocation unit 431 and the second storage module 54, and is used to obtain the priority of the first purpose Rbridge and the second purpose Rbridge from the neighbor direct connection list of the first purpose Rbridge, and according to the first purpose The Rbridge and the priority of the second destination Rbridge determine the distribution ratio, and provide the determined distribution ratio to the distribution unit 431 .

更进一步,当本实施例的Rbridge处于共享链路上时,本实施例的Rbridge还包括:确定模块55和通告模块56。Furthermore, when the Rbridge in this embodiment is on a shared link, the Rbridge in this embodiment further includes: a determination module 55 and a notification module 56 .

具体的,确定模块55,用于根据转发Rbridge选举机制,确定自己为共享链路上的转发Rbridge。通告模块56,与确定模块55和TRILL网络中其他Rbridge连接,用于广播第二邻居通告消息,以供TRILL网络中其他Rbridge生成本实施例的Rbridge的邻居直连列表,所述第二邻居通告消息中包括与本实施例的Rbridge直连的Rbridge的标识。通告模块56还会与第二获取模块42连接。Specifically, the determining module 55 is configured to determine itself as the forwarding Rbridge on the shared link according to the forwarding Rbridge election mechanism. The notification module 56 is connected with the determination module 55 and other Rbridges in the TRILL network, and is used to broadcast a second neighbor notification message, so that other Rbridges in the TRILL network can generate the neighbor direct connection list of the Rbridge in this embodiment, and the second neighbor notification The message includes the identifier of the Rbridge directly connected to the Rbridge in this embodiment. The notification module 56 is also connected with the second acquisition module 42 .

本实施例Rbridge的上述各功能模块或单元可用于执行图2或图3所示实施例中转发报文的相应流程,其具体工作原理不再赘述,详见方法实施例的描述。The above-mentioned functional modules or units of the Rbridge in this embodiment can be used to execute the corresponding process of forwarding the message in the embodiment shown in FIG. 2 or FIG. 3 , and its specific working principle will not be described in detail. For details, refer to the description of the method embodiment.

本实施例的Rbridge,根据以太网数据帧的目的MAC地址查询到目的Rbridge后,进一步查询目的Rbridge的邻居直连列表,获取与该目的Rbridge直连的另一个目的Rbridge,并将接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的所有以太网数据帧通过共享链路上所有目的Rbridge所在的转发路径转发给目的MAC地址对应的终端设备,实现以太网数据帧的转发,由于充分利用了共享链路上每条转发路径的带宽资源来转发以太网数据帧,提高了网络带宽的利用率,减少了链路带宽资源的浪费,提高了以太网数据帧的转发速率。The Rbridge of this embodiment, after querying the destination Rbridge according to the destination MAC address of the Ethernet data frame, further queries the neighbor direct connection list of the destination Rbridge, obtains another destination Rbridge directly connected to the destination Rbridge, and sends the received destination Rbridge All Ethernet data frames whose MAC address is the same as the destination MAC address of the current Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address through the forwarding path of all destination Rbridges on the shared link, so as to realize the forwarding of the Ethernet data frame. The bandwidth resources of each forwarding path on the shared link are fully utilized to forward Ethernet data frames, which improves the utilization rate of network bandwidth, reduces the waste of link bandwidth resources, and improves the forwarding rate of Ethernet data frames.

图6为本发明一实施例提供的报文转发系统的结构示意图。如图6所示,本实施例的报文转发系统包括:源Rbridge61、第一目的Rbridge62和与第一目的Rbridge62直连的第二目的Rbridge63。其中,在图6中仅示出一台第二目的Rbridge63,但并不限于此,当共享链路上包括多台Rbridge,本实施例将包括多台第二目的Rbridge63。FIG. 6 is a schematic structural diagram of a message forwarding system provided by an embodiment of the present invention. As shown in FIG. 6 , the message forwarding system of this embodiment includes: a source Rbridge61, a first destination Rbridge62, and a second destination Rbridge63 directly connected to the first destination Rbridge62. Wherein, only one second purpose Rbridge 63 is shown in FIG. 6 , but it is not limited thereto. When the shared link includes multiple Rbridges, this embodiment will include multiple second purpose Rbridges 63 .

本实施例的报文转发系统可以为TRILL网络,为便于描述,本实施例仅从报文转发的角度示出TRILL网络的部分分支链路。源Rbridge61分别与第一目的Rbridge62和第二目的Rbridge63连接,但并不限于直接相连;通常,源Rbridge61会经过其他Rbridge与第一目的Rbridge62和第二目的Rbridge63相连接。图6所示仅为源Rbridge61分别与第一目的Rbridge62和第二目的Rbridge63相连的简化示意图。The message forwarding system in this embodiment may be a TRILL network. For ease of description, this embodiment only shows some branch links of the TRILL network from the perspective of message forwarding. The source Rbridge61 is respectively connected to the first destination Rbridge62 and the second destination Rbridge63, but not limited to direct connection; usually, the source Rbridge61 is connected to the first destination Rbridge62 and the second destination Rbridge63 through other Rbridges. FIG. 6 is only a simplified schematic diagram of connecting the source Rbridge 61 to the first destination Rbridge 62 and the second destination Rbridge 63 respectively.

其中,源Rbridge61包括:第一获取模块、第二获取模块和转发模块。本实施例的源Rbridge61为图4或图5所示的Rbridge,其工作原理可参见图1A、图2或图3所示实施例的描述,其具体结构可参见图4或图5所示,在此不再赘述。Wherein, the source Rbridge61 includes: a first obtaining module, a second obtaining module and a forwarding module. The source Rbridge61 of this embodiment is the Rbridge shown in Figure 4 or Figure 5, its working principle can refer to the description of the embodiment shown in Figure 1A, Figure 2 or Figure 3, and its specific structure can be seen as shown in Figure 4 or Figure 5, I won't repeat them here.

下面结合源Rbridge61的具体结构,详细说明本系统的工作原理。The working principle of this system will be described in detail below in conjunction with the specific structure of the source Rbridge61.

源Rbridge61的第一获取模块在接收到以太网数据帧后,根据接收到的当前以太网数据帧的目的MAC地址,查询MAC表,获取第一目的Rbridge62的标识。源Rbridge61的第二获取模块根据第一获取模块获取的第一目的Rbridge62的标识,查询第一目的Rbridge62的邻居直连列表,获取与第一目的Rbridge62直连的第二目的Rbridge63的标识。源Rbridge61的转发模块根据TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过第一获取模块获取的第一目的Rbridge62和第二获取模块获取的第二目的Rbridge63转发给目的MAC地址对应的终端设备。具体的,源Rbridge61的转发模块将以太网数据帧封装为TRILL报文后发送给第一目的Rbridge62或第二目的Rbridge63。After receiving the Ethernet data frame, the first obtaining module of the source Rbridge61 queries the MAC table according to the received destination MAC address of the current Ethernet data frame to obtain the identifier of the first destination Rbridge62. The second acquisition module of the source Rbridge61 queries the neighbor direct connection list of the first destination Rbridge62 according to the identifier of the first destination Rbridge62 obtained by the first acquisition module, and obtains the identifier of the second destination Rbridge63 directly connected to the first destination Rbridge62. According to the TRILL routing table, the forwarding module of the source Rbridge61 uses the current Ethernet data frame and subsequent received destination MAC addresses and other Ethernet data frames that are the same as the destination MAC address of the current Ethernet data frame through the first acquisition module to obtain the first Ethernet data frame. The first destination Rbridge62 and the second destination Rbridge63 acquired by the second acquisition module are forwarded to the terminal device corresponding to the destination MAC address. Specifically, the forwarding module of the source Rbridge61 encapsulates the Ethernet data frame into a TRILL message and sends it to the first destination Rbridge62 or the second destination Rbridge63.

第一目的Rbridge62或第二目的Rbridge63接收源Rbridge61的转发模块发送的由源Rbridge61接收到的以太网数据帧封装成的TRILL报文,对TRILL报文进行解封装后转发给以太网数据帧的目的MAC地址对应的终端设备。The first destination Rbridge62 or the second destination Rbridge63 receives the TRILL message encapsulated by the Ethernet data frame received by the source Rbridge61 sent by the forwarding module of the source Rbridge61, decapsulates the TRILL message and forwards it to the destination of the Ethernet data frame The terminal device corresponding to the MAC address.

进一步,在源Rbridge61查询第一目的Rbridge62的邻居直连列表之前,第一目的Rbridge62和第二目的Rbridge63会根据转发Rbridge选举机制,进行转发Rbridge的选举,并且第一目的Rbridge62确定其被选举为共享链路上的转发Rbridge。第一目的Rbridge62被选举为转发Rbridge之后,向整个报文转发系统广播第一邻居通告消息。所述第一邻居通告消息包括与第一目的Rbridge62直连的第二目的Rbridge63的标识。Further, before the source Rbridge61 queries the neighbor direct connection list of the first destination Rbridge62, the first destination Rbridge62 and the second destination Rbridge63 will perform forwarding Rbridge election according to the forwarding Rbridge election mechanism, and the first destination Rbridge62 determines that it is elected as a shared Forwarding Rbridge on the link. After the first destination Rbridge 62 is elected as the forwarding Rbridge, it broadcasts the first neighbor notification message to the entire packet forwarding system. The first neighbor notification message includes the identifier of the second destination Rbridge63 directly connected to the first destination Rbridge62.

基于上述,本实施例的源Rbridge61还包括:第一接收模块和第一存储模块。Based on the above, the source Rbridge61 of this embodiment further includes: a first receiving module and a first storage module.

具体的,第一接收模块,用于接收第一目的Rbridge62广播的第一邻居通告消息。第一存储模块,用于将第一目的Rbridge62的标识和第二目的Rbridge63的标识存储在第一目的Rbridge62的邻居直连列表中,为第二获取模块提供基础。Specifically, the first receiving module is configured to receive the first neighbor advertisement message broadcast by the first destination Rbridge62. The first storage module is configured to store the identifier of the first destination Rbridge62 and the identifier of the second destination Rbridge63 in the direct neighbor list of the first destination Rbridge62, providing a basis for the second obtaining module.

本实施例的报文转发系统,可用于执行图1A、图2或图3所示实施例中转发报文的流程,具体工作原理详见上述方法实施例的描述。The message forwarding system of this embodiment can be used to execute the process of forwarding a message in the embodiment shown in FIG. 1A , FIG. 2 or FIG. 3 , and the specific working principle can be found in the description of the above method embodiment.

本实施例的报文转发系统,源Rbridge根据以太网数据帧的目的MAC地址查询到目的Rbridge后,进一步查询目的Rbridge的邻居直连列表,获取与该目的Rbridge直连的另外的目的Rbridge,并将接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的所有以太网数据帧通过共享链路上所有的目的Rbridge所在的转发路径转发给目的MAC地址对应的终端设备,实现以太网数据帧的转发,由于充分利用了共享链路上每条转发路径的带宽资源来转发以太网数据帧,提高了网络带宽的利用率,减少了链路带宽资源的浪费,提高了以太网数据帧的转发速率。In the message forwarding system of this embodiment, after the source Rbridge queries the destination Rbridge according to the destination MAC address of the Ethernet data frame, it further queries the neighbor direct connection list of the destination Rbridge to obtain another destination Rbridge directly connected to the destination Rbridge, and All Ethernet data frames whose destination MAC address is the same as that of the current Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address through the forwarding path of all destination Rbridges on the shared link to realize Ethernet Forwarding of data frames, due to making full use of the bandwidth resources of each forwarding path on the shared link to forward Ethernet data frames, the utilization rate of network bandwidth is improved, the waste of link bandwidth resources is reduced, and the speed of Ethernet data frames is improved. forwarding rate.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种报文转发方法,其特征在于,包括:1. A message forwarding method, characterized in that, comprising: 源路由交换机根据接收到的当前以太网数据帧的目的介质访问控制MAC地址,查询MAC表,获取第一目的路由交换机的标识;The source routing switch queries the MAC table according to the destination media access control MAC address of the current Ethernet data frame received, and obtains the identification of the first destination routing switch; 所述源路由交换机根据所述第一目的路由交换机的标识,查询所述第一目的路由交换机的邻居直连列表,获取与所述第一目的路由交换机直连的第二目的路由交换机的标识;The source routing switch queries the neighbor direct connection list of the first destination routing switch according to the identifier of the first destination routing switch, and obtains the identifier of a second destination routing switch directly connected to the first destination routing switch; 所述源路由交换机根据多链接透明传输互连TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过所述第一目的路由交换机和所述第二目的路由交换机转发给所述目的MAC地址对应的终端设备;According to the multi-link transparent transmission interconnection TRILL routing table, the source routing switch passes the current Ethernet data frame and other Ethernet data frames whose destination MAC address is the same as the destination MAC address of the current Ethernet data frame received subsequently, through the The first destination routing switch and the second destination routing switch forward to the terminal device corresponding to the destination MAC address; 其中,所述源路由交换机根据所述第一目的路由交换机的标识,查询所述第一目的路由交换机的邻居直连列表,获取与所述第一目的路由交换机直连的第二目的路由交换机的标识之前包括:Wherein, the source routing switch queries the neighbor direct connection list of the first destination routing switch according to the identifier of the first destination routing switch, and obtains the information of the second destination routing switch directly connected to the first destination routing switch. Before the logo includes: 所述源路由交换机接收所述第一目的路由交换机广播的第一邻居通告消息,所述第一邻居通告消息是所述第一目的路由交换机根据转发Rbridge选举机制,确定所述第一目的路由交换机为共享链路上的转发路由交换机后广播的,且所述第一邻居通告消息包括与所述第一目的路由交换机直连的第二目的路由交换机的标识;The source routing switch receives the first neighbor notification message broadcast by the first destination routing switch, and the first neighbor notification message is that the first destination routing switch determines the first destination routing switch according to the forwarding Rbridge election mechanism It is broadcast after sharing the forwarding routing switch on the link, and the first neighbor notification message includes the identifier of the second destination routing switch directly connected to the first destination routing switch; 所述源路由交换机将所述第一目的路由交换机的标识和所述第二目的路由交换机的标识存储在所述第一目的路由交换机的邻居直连列表中。The source routing switch stores the identifier of the first destination routing switch and the identifier of the second destination routing switch in a direct neighbor list of the first destination routing switch. 2.根据权利要求1所述的报文转发方法,其特征在于,所述源路由交换机根据多链接透明传输互连TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过所述第一目的路由交换机和所述第二目的路由交换机转发给所述目的MAC地址对应的终端设备包括:2. message forwarding method according to claim 1, it is characterized in that, described source routing switch is interconnected TRILL routing table according to multi-link transparent transmission, and the current Ethernet data frame and the destination MAC address that follow-up receive and current Other Ethernet data frames with the same destination MAC address of the Ethernet data frame are forwarded to the terminal device corresponding to the destination MAC address through the first destination routing switch and the second destination routing switch, including: 所述源路由交换机按照一定的分配比例,将当前以太网数据帧和后续接收到的以太网数据帧分别分配给所述第一目的路由交换机和所述第二目的路由交换机;The source routing switch distributes the current Ethernet data frame and subsequent received Ethernet data frames to the first destination routing switch and the second destination routing switch respectively according to a certain distribution ratio; 所述源路由交换机根据所述TRILL路由表,将分配给所述第一目的路由交换机或所述第二目的路由交换机的以太网数据帧封装为TRILL数据帧后发送给所述第一目的路由交换机或所述第二目的路由交换机;According to the TRILL routing table, the source routing switch encapsulates the Ethernet data frame assigned to the first destination routing switch or the second destination routing switch into a TRILL data frame and sends it to the first destination routing switch or the second destination routing switch; 所述第一目的路由交换机或所述第二目的路由交换机接收所述TRILL数据帧,并对所述TRILL数据帧进行解封装后转发给所述目的MAC地址对应的终端设备。The first destination routing switch or the second destination routing switch receives the TRILL data frame, decapsulates the TRILL data frame, and forwards it to the terminal device corresponding to the destination MAC address. 3.根据权利要求2所述的报文转发方法,其特征在于,所述源路由交换机根据所述第一目的路由交换机的标识,查询所述第一目的路由交换机的邻居直连列表,获取与所述第一目的路由交换机直连的第二目的路由交换机的标识之前包括:3. The message forwarding method according to claim 2, wherein the source routing switch queries the neighbor direct connection list of the first destination routing switch according to the identifier of the first destination routing switch, and obtains the The identifier of the second destination routing switch directly connected to the first destination routing switch includes: 所述第一目的路由交换机向所述源路由交换机通告所述第一目的路由交换机的和所述第二目的路由交换机的优先级;The first destination routing switch notifies the source routing switch of the priorities of the first destination routing switch and the second destination routing switch; 所述源路由交换机将所述第一目的路由交换机的和所述第二目的路由交换机的优先级存储到所述第一目的路由交换机的邻居直连列表中;The source routing switch stores the priorities of the first destination routing switch and the second destination routing switch in a direct neighbor list of the first destination routing switch; 所述源路由交换机按照一定的分配比例,将当前以太网数据帧和后续接收到的以太网数据帧分别分配给所述第一目的路由交换机和所述第二目的路由交换机之前包括:Before the source routing switch distributes the current Ethernet data frame and subsequent received Ethernet data frames to the first destination routing switch and the second destination routing switch respectively according to a certain distribution ratio, it includes: 所述源路由交换机从所述第一目的路由交换机的邻居直连列表中获取所述第一目的路由交换机的和所述第二目的路由交换机的优先级,并根据所述第一目的路由交换机的和所述第二目的路由交换机的优先级,确定所述分配比例。The source routing switch obtains the priority of the first destination routing switch and the priority of the second destination routing switch from the neighbor direct connection list of the first destination routing switch, and according to the priorities of the first destination routing switch and the priority of the second destination routing switch to determine the allocation ratio. 4.根据权利要求1所述的报文转发方法,其特征在于,还包括:4. The message forwarding method according to claim 1, further comprising: 所述源路由交换机根据转发路由交换机选举机制,确定所述源路由交换机为共享链路上的转发路由交换机;The source routing switch determines that the source routing switch is the forwarding routing switch on the shared link according to the forwarding routing switch election mechanism; 所述源路由交换机广播第二邻居通告消息,以供TRILL网络中的其他路由交换机生成所述源路由交换机的邻居直连列表,所述第二邻居通告消息中包括与所述源路由交换机直连的路由交换机的标识。The source routing switch broadcasts a second neighbor advertisement message for other routing switches in the TRILL network to generate a neighbor direct connection list of the source routing switch, and the second neighbor advertisement message includes a direct connection list of the source routing switch. The ID of the routing switch. 5.一种路由交换机,其特征在于,包括:5. A routing switch, characterized in that, comprising: 第一获取模块,用于根据接收到的当前以太网数据帧的目的介质访问控制MAC地址,查询MAC表,获取第一目的路由交换机的标识;The first obtaining module is used to query the MAC table according to the received destination medium access control MAC address of the current Ethernet data frame, and obtain the identification of the first destination routing switch; 第二获取模块,用于根据所述第一目的路由交换机的标识,查询所述第一目的路由交换机的邻居直连列表,获取与所述第一目的路由交换机直连的第二目的路由交换机的标识;The second obtaining module is configured to query the neighbor direct connection list of the first destination routing switch according to the identifier of the first destination routing switch, and obtain the information of the second destination routing switch directly connected to the first destination routing switch logo; 转发模块,用于根据多链接透明传输互连TRILL路由表,将当前以太网数据帧和后续接收到的目的MAC地址与当前以太网数据帧的目的MAC地址相同的其他以太网数据帧,通过所述第一目的路由交换机和所述第二目的路由交换机转发给所述目的MAC地址对应的终端设备;The forwarding module is used to interconnect the TRILL routing table according to the multi-link transparent transmission, and pass the current Ethernet data frame and other Ethernet data frames whose destination MAC address is the same as the destination MAC address of the current Ethernet data frame received subsequently, through the The first destination routing switch and the second destination routing switch forward to the terminal device corresponding to the destination MAC address; 还包括:Also includes: 第一接收模块,用于接收所述第一目的路由交换机广播的第一邻居通告消息,所述第一邻居通告消息是所述第一目的路由交换机根据转发路由交换机选举机制,确定所述第一目的路由交换机为共享链路上的转发路由交换机后广播的,且所述第一邻居通告消息包括与所述第一目的路由交换机直连的第二目的路由交换机的标识;The first receiving module is configured to receive a first neighbor notification message broadcast by the first destination routing switch, where the first neighbor notification message is determined by the first destination routing switch according to the forwarding routing switch election mechanism. The destination routing switch is broadcast after the forwarding routing switch on the shared link, and the first neighbor advertisement message includes an identifier of a second destination routing switch directly connected to the first destination routing switch; 第一存储模块,用于将所述第一目的路由交换机的标识和所述第二目的路由交换机的标识存储在所述第一目的路由交换机的邻居直连列表中。A first storage module, configured to store the identifier of the first destination routing switch and the identifier of the second destination routing switch in a direct neighbor list of the first destination routing switch. 6.根据权利要求5所述的路由交换机,其特征在于,所述转发模块包括:6. The routing switch according to claim 5, wherein the forwarding module comprises: 分配单元,用于将按照一定的分配比例,将当前以太网数据帧和后续接收到的以太网数据帧分别分配给所述第一目的路由交换机和所述第二目的路由交换机;An allocating unit, configured to allocate the current Ethernet data frame and the subsequently received Ethernet data frame to the first destination routing switch and the second destination routing switch respectively according to a certain distribution ratio; 转发单元,用于根据所述TRILL路由表,将分配给所述第一目的路由交换机或第二目的路由交换机的以太网数据帧封装为TRILL数据帧后发送给所述第一目的路由交换机或所述第二目的路由交换机,以使所述第一目的路由交换机或所述第二目的路由交换机对所述TRILL数据帧进行解封装后转发给所述目的MAC地址对应的终端设备。A forwarding unit, configured to encapsulate the Ethernet data frame assigned to the first destination routing switch or the second destination routing switch into a TRILL data frame according to the TRILL routing table and send it to the first destination routing switch or the second destination routing switch The second destination routing switch, so that the first destination routing switch or the second destination routing switch decapsulates the TRILL data frame and forwards it to the terminal device corresponding to the destination MAC address. 7.根据权利要求6所述的路由交换机,其特征在于,还包括:7. The routing switch according to claim 6, further comprising: 第二接收模块,用于接收所述第一目的路由交换机通告的所述第一目的路由交换机的和所述第二目的路由交换机的优先级;A second receiving module, configured to receive the priorities of the first destination routing switch and the second destination routing switch notified by the first destination routing switch; 第二存储模块,用于将所述第一目的路由交换机的和所述第二目的路由交换机的优先级存储到所述第一目的路由交换机的邻居直连列表中;A second storage module, configured to store the priorities of the first destination routing switch and the second destination routing switch in the direct neighbor list of the first destination routing switch; 所述转发模块还包括:The forwarding module also includes: 获取确定单元,用于从所述第一目的路由交换机的邻居直连列表中获取所述第一目的路由交换机的和所述第二目的路由交换机的优先级,并根据所述第一目的路由交换机的和所述第二目的路由交换机的优先级,确定所述分配比例。An acquisition determining unit, configured to acquire the priority of the first destination routing switch and the priority of the second destination routing switch from the neighbor direct connection list of the first destination routing switch, and according to the priority of the first destination routing switch and the priority of the second destination routing switch to determine the distribution ratio. 8.根据权利要求5所述的路由交换机,其特征在于,还包括:8. The routing switch according to claim 5, further comprising: 确定模块,用于根据转发路由交换机选举机制,确定所述路由交换机为共享链路上的转发路由交换机;A determining module, configured to determine that the routing switch is the forwarding routing switch on the shared link according to the forwarding routing switch election mechanism; 通告模块,用于广播第二邻居通告消息,以供TRILL网络中其他路由交换机生成所述路由交换机的邻居直连列表,所述第二邻居通告消息中包括与所述路由交换机直连的路由交换机的标识。The notification module is configured to broadcast a second neighbor notification message for other routing switches in the TRILL network to generate a direct neighbor list of the routing switch, and the second neighbor notification message includes routing switches directly connected to the routing switch logo. 9.一种报文转发系统,其特征在于,包括:源路由交换机、第一目的路由交换机和与所述第一目的路由交换机直连的第二目的路由交换机;9. A message forwarding system, comprising: a source routing switch, a first destination routing switch, and a second destination routing switch directly connected to the first destination routing switch; 所述源路由交换机为权利要求5-8任一所述的路由交换机;The source routing switch is the routing switch according to any one of claims 5-8; 所述第一目的路由交换机和所述第二目的路由交换机,用于将所述源路由交换机接收到的以太网数据帧转发给所述以太网数据帧的目的MAC地址对应的终端设备。The first destination routing switch and the second destination routing switch are configured to forward the Ethernet data frame received by the source routing switch to a terminal device corresponding to a destination MAC address of the Ethernet data frame. 10.根据权利要求9所述的报文转发系统,其特征在于,所述第一目的路由交换机还用于在根据转发路由交换机选举机制,确定所述第一目的路由交换机为共享链路上的转发路由交换机后广播第一邻居通告消息,所述第一邻居通告消息包括与所述第一目的路由交换机直连的所述第二目的路由交换机的标识。10. The message forwarding system according to claim 9, wherein the first destination routing switch is further configured to determine that the first destination routing switch is the one on the shared link according to the forwarding routing switch election mechanism. After forwarding the routing switch, broadcasting a first neighbor advertisement message, where the first neighbor advertisement message includes the identifier of the second destination routing switch directly connected to the first destination routing switch.
CN201110232354.5A 2011-08-15 2011-08-15 Message forwarding method, system and routing switch Expired - Fee Related CN102244614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110232354.5A CN102244614B (en) 2011-08-15 2011-08-15 Message forwarding method, system and routing switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110232354.5A CN102244614B (en) 2011-08-15 2011-08-15 Message forwarding method, system and routing switch

Publications (2)

Publication Number Publication Date
CN102244614A CN102244614A (en) 2011-11-16
CN102244614B true CN102244614B (en) 2014-07-02

Family

ID=44962463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110232354.5A Expired - Fee Related CN102244614B (en) 2011-08-15 2011-08-15 Message forwarding method, system and routing switch

Country Status (1)

Country Link
CN (1) CN102244614B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420765B (en) * 2011-12-09 2014-06-04 福建星网锐捷网络有限公司 Method and device for determining physical link between switchboard and terminal
CN102710500A (en) * 2012-05-10 2012-10-03 中兴通讯股份有限公司 Method for processing conflict of identifiers of device groups in network, and route bridge
CN102710510B (en) * 2012-05-18 2018-03-13 中兴通讯股份有限公司 Information processing method, apparatus and system
CN102724120B (en) 2012-06-08 2015-12-16 华为技术有限公司 The method of transmitting announcement routing information and route-bridge
CN103825794B (en) * 2012-11-19 2017-07-14 华为技术有限公司 Transparent interconnection of lots of links internet data frame sending method and device
CN103051985B (en) * 2013-01-06 2015-08-12 中兴通讯股份有限公司 A kind of method of Ethernet optical-fibre channel routing forwarding data and equipment thereof
CN103200100A (en) * 2013-03-12 2013-07-10 杭州华三通信技术有限公司 Method and device for packet transmitting
CN105306613A (en) * 2014-07-24 2016-02-03 中兴通讯股份有限公司 MAC address notification method and device and acquisition device for ESADI
CN106034071B (en) * 2015-03-09 2019-02-12 华为技术有限公司 Data message transmission method and edge routing bridge device
CN113946141B (en) * 2020-07-16 2022-09-06 卡奥斯工业智能研究院(青岛)有限公司 Network system for production demonstration line and control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678280B1 (en) * 1998-10-28 2004-01-13 Lg Electronics Inc. Voice packet transmission control method in gateway system and device therefor
CN101827009A (en) * 2009-03-04 2010-09-08 丛林网络公司 Routing frames in a trill network using service vlan identifiers
CN102075438A (en) * 2011-02-14 2011-05-25 中兴通讯股份有限公司 Unicast data frame transmission method and device
CN102130812A (en) * 2011-03-18 2011-07-20 中兴通讯股份有限公司 Method, device and system for processing unknown unicast data frame

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678280B1 (en) * 1998-10-28 2004-01-13 Lg Electronics Inc. Voice packet transmission control method in gateway system and device therefor
CN101827009A (en) * 2009-03-04 2010-09-08 丛林网络公司 Routing frames in a trill network using service vlan identifiers
EP2226973A1 (en) * 2009-03-04 2010-09-08 Juniper Networks, Inc. Routing frames in a TRILL network using service VLAN identifiers
CN102075438A (en) * 2011-02-14 2011-05-25 中兴通讯股份有限公司 Unicast data frame transmission method and device
CN102130812A (en) * 2011-03-18 2011-07-20 中兴通讯股份有限公司 Method, device and system for processing unknown unicast data frame

Also Published As

Publication number Publication date
CN102244614A (en) 2011-11-16

Similar Documents

Publication Publication Date Title
CN102244614B (en) Message forwarding method, system and routing switch
CN102185782B (en) Data transmission method and device of multilink transparent transmission interconnection network
EP2920926B1 (en) Virtual link aggregations across multiple fabric switches
US20140029412A1 (en) Systems and methods for providing anycast mac addressing in an information handling system
CN103428088B (en) A kind of distribution of tree root, the method for Message processing and route-bridge
CN114095305A (en) BIER message forwarding method, equipment and system
CN109995654A (en) A kind of method and device based on tunnel data
WO2013185532A1 (en) Alias and transparent interconnection of lots of links (trill) packet processing method and apparatus
CN103220215B (en) The retransmission method of FCoE message and device in TRILL network
CN114465946B (en) Method, device and system for acquiring forwarding table item
CN115865769A (en) Message processing method, network device and system
CN107026796A (en) A VPN route notification method, data flow forwarding method, and related equipment
US9641433B2 (en) Method, routing bridge, and system for sending packet
WO2016054956A1 (en) Load sharing method and device
CN112532563A (en) Message sending method and device
WO2020078043A1 (en) Method for determining df of multicast stream, device, and system
WO2022166465A1 (en) Message processing method and related apparatus
CN112822097A (en) Packet forwarding method, first network device, and first device group
CN115550252A (en) Method, device, equipment and storage medium for routing, publishing and forwarding messages
CN105991446A (en) Three-layer networking method, device and system and data processing method, device and system of TRILL network
CN103095579B (en) TRILL network interconnected method, Apparatus and system
CN103856449B (en) A kind of access chassis node for creating multiple virtual access nodes
CN102710510B (en) Information processing method, apparatus and system
CN106487677A (en) Provider edge equipment and data forwarding method
CN115473765A (en) Message transmission method, device and system

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee before: Fujian Star-net Ruijie Network 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: 20140702

Termination date: 20210815