[go: up one dir, main page]

CN103095579B - TRILL network interconnected method, Apparatus and system - Google Patents

TRILL network interconnected method, Apparatus and system Download PDF

Info

Publication number
CN103095579B
CN103095579B CN201310027036.4A CN201310027036A CN103095579B CN 103095579 B CN103095579 B CN 103095579B CN 201310027036 A CN201310027036 A CN 201310027036A CN 103095579 B CN103095579 B CN 103095579B
Authority
CN
China
Prior art keywords
edge
identification information
distribution tree
root
table item
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
CN201310027036.4A
Other languages
Chinese (zh)
Other versions
CN103095579A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310027036.4A priority Critical patent/CN103095579B/en
Publication of CN103095579A publication Critical patent/CN103095579A/en
Priority to PCT/CN2014/070124 priority patent/WO2014110986A1/en
Application granted granted Critical
Publication of CN103095579B publication Critical patent/CN103095579B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Landscapes

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

Abstract

本发明公开了一种TRILL网络互联方法、装置及系统,涉及通信技术领域,能够解决数据中心DC间进行互联时,各边缘RB需要分配大量的硬件资源以支持报文的封装与解封装,报文转发效率低的问题。本发明的方法包括:第一数据中心DC的第一边缘路由桥RB接收第二DC的第二边缘RB发送的RB标识信息,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合;所述第一边缘RB根据所述RB标识信息建立分发树转发表项,以便根据所述分发树转发表项发送报文。本发明主要用于DC间互联的过程中。

The invention discloses a TRILL network interconnection method, device, and system, which relate to the field of communication technology and can solve the problem that each edge RB needs to allocate a large amount of hardware resources to support packet encapsulation and decapsulation of packets when data center DCs are interconnected. The problem of low document forwarding efficiency. The method of the present invention includes: the first edge routing bridge RB of the first data center DC receives the RB identification information sent by the second edge RB of the second DC, and the RB identification information carries the root RB in the second DC The combination of the RB identity ID and the second DC identity ID; the first edge RB establishes a distribution tree forwarding entry according to the RB identity information, so as to send a message according to the distribution tree forwarding entry. The present invention is mainly used in the process of interconnection between DCs.

Description

TRILL网络互联方法、装置及系统TRILL network interconnection method, device and system

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种TRILL网络互联方法、装置及系统。The present invention relates to the field of communication technology, in particular to a TRILL network interconnection method, device and system.

背景技术Background technique

随着网络技术的发展,数据中心(DataCenter,简称DC)的规模和数量在快速增长。通常,DC被解释为“多功能的建筑物,能容纳多个服务器以及通信设备。这些设备被放置在一起是因为它们具有相同的对环境的要求以及物理安全上的需求,并且这样放置便于维护。”因此,简单的说,DC由多个服务器、交换机以及路由器组成。运行多链接半透明互联(TransparentInterconnectionofLotsofLinks,简称TRILL)协议的网桥(Bridge)被称为路由桥(Route-Bridge,简称RB),即具有路由转发特性的网桥设备,由RB构建的网络称之为TRILL网(TRILLCampus)。With the development of network technologies, the scale and number of data centers (Data Center, DC for short) are increasing rapidly. Generally, a DC is interpreted as a "multifunctional building that can accommodate multiple servers and communication equipment. These equipment are placed together because they have the same environmental requirements and physical security needs, and they are placed so that they are easy to maintain. .” So, simply put, a DC consists of multiple servers, switches, and routers. A Bridge running the Transparent Interconnection of Lots of Links (TRILL) protocol is called a Route-Bridge (RB), which is a bridge device with routing and forwarding characteristics. The network built by RB is called It is TRILL network (TRILL Campus).

现有技术中,基于TRILL的DC间的互联通过下述两种方式实现:In the prior art, the interconnection between DCs based on TRILL is implemented in the following two ways:

一、将多个DC作为一个TRILLCampus。由各DC的出口RB管理各DC间报文转发的路由表。1. Use multiple DCs as a TRILLCampus. The egress RB of each DC manages the routing table for message forwarding between DCs.

二、各个DC作为独立的TRILLCampus进行互联。若第一DC的第一主机需要第二DC的某个分发树中进行广播,则第一DC中第一个与第一主机相连的RB在数据帧中添加第一TRILL报文头,第一DC内的RB根据第一TRILL报文头的信息,通过第一DC内的分发树将该数据帧转发到第一DC的作为路由器的RB,该RB将第一TRILL报文头去掉,并将报文路由至第二DC的作为路由器的RB,该RB为报文添加第二TRILL报文头,用于通过第二DC中的分发树转发给该分发树树根节点。2. Each DC is interconnected as an independent TRILLCampus. If the first host of the first DC needs to broadcast in a certain distribution tree of the second DC, the first RB connected to the first host in the first DC adds the first TRILL header to the data frame, and the first The RB in the DC forwards the data frame to the RB serving as a router in the first DC through the distribution tree in the first DC according to the information of the first TRILL message header, and the RB removes the first TRILL message header and sends The message is routed to the RB serving as a router of the second DC, and the RB adds a second TRILL message header to the message for forwarding to the root node of the distribution tree through the distribution tree in the second DC.

在实现上述网络互联的过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the above-mentioned network interconnection, the inventor found that at least the following problems existed in the prior art:

现有技术一中,由于路由器的处理能力以及存储空间有限,其管理的路由表的表项的数量是有限的,因此路由范围也是有限的,无法满足大规模的DC间互联。由于路由器管理着多个DC间的路由路径,路由表庞大,因此其收敛时间与路由器管理一个DC内的路由表时将增加。因此,现有技术一只适用于小规模DC间互联,无法支持大规模的DC间互联。In prior art 1, due to the limited processing capability and storage space of the router, the number of entries in the routing table managed by the router is limited, so the routing range is also limited, which cannot satisfy large-scale inter-DC interconnection. Because the router manages the routing paths between multiple DCs, the routing table is huge, so its convergence time will increase compared with when the router manages the routing table in one DC. Therefore, the existing technology is only suitable for small-scale inter-DC interconnection, and cannot support large-scale inter-DC interconnection.

现有技术二中,由于各DC分别使用各自的分发树转发报文,使得报文在不同DC间转发时,发送报文的DC的出口RB需要对报文进行解封装,接收报文的DC的路由器需要对报文进行再封装。路由器需要分配大量的硬件资源以支持报文的封装与解封装,报文转发效率低。In prior art 2, since each DC uses its own distribution tree to forward the message, when the message is forwarded between different DCs, the egress RB of the DC that sends the message needs to decapsulate the message, and the DC that receives the message The router needs to re-encapsulate the packet. The router needs to allocate a large amount of hardware resources to support packet encapsulation and decapsulation, and the efficiency of packet forwarding is low.

发明内容Contents of the invention

本发明的实施例提供一种TRILL网络互联方法、装置及系统,能够解决由于对报文进行封装与解封装导致的报文转发效率低和无法支持大规模DC间互联的问题。Embodiments of the present invention provide a TRILL network interconnection method, device and system, which can solve the problems of low message forwarding efficiency and inability to support large-scale inter-DC interconnection caused by encapsulating and decapsulating messages.

第一方面,本发明提供了一种多链接半透明互联TRILL网络互联方法,所述方法包括:In a first aspect, the present invention provides a multi-link translucent interconnection TRILL network interconnection method, the method comprising:

第一数据中心DC的第一边缘RB接收第二DC的第二边缘RB发送的RB标识信息,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合;The first edge RB of the first data center DC receives the RB identification information sent by the second edge RB of the second DC, and the RB identification information carries the RB identity ID of the root RB in the second DC and the A combination of the second DC identity ID;

所述第一边缘RB根据所述RB标识信息建立分发树转发表项,以便根据所述分发树转发表项发送报文。The first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send packets according to the distribution tree forwarding entry.

在所述第一方面的第一种可能的实现方式中,所述第一边缘RB接收所述第二边缘RB通过边界网关协议BGP发送的所述RB标识信息。In a first possible implementation manner of the first aspect, the first edge RB receives the RB identification information sent by the second edge RB through a Border Gateway Protocol (BGP).

在所述第一方面或所述第一方面的第一种可能的实现方式中,还提供了所述第一方面的第二种可能的实现方式,在所述第一方面的第二种可能的实现方式中,所述第一边缘RB根据所述RB标识信息通过最短路径优先算法SPF算法建立所述分发树转发表项;In the first aspect or the first possible implementation of the first aspect, a second possible implementation of the first aspect is also provided, and in the second possible implementation of the first aspect In an implementation manner, the first edge RB establishes the distribution tree forwarding entry through the shortest path first algorithm (SPF) algorithm according to the RB identification information;

所述第一边缘RB将所述RB标识信息转发给所述第一DC中的其他RB,以便所述其他RB根据所述RB标识信息通过所述SPF算法建立自身的分发树转发表项。The first edge RB forwards the RB identification information to other RBs in the first DC, so that the other RBs establish their own distribution tree forwarding entries through the SPF algorithm according to the RB identification information.

在所述第一方面或所述第一方面的第一种可能或第二种可能的实现方式中,还提供了所述第一方面的第三种可能的实现方式,在所述第一方面的第三种可能的实现方式中,所述第一边缘RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中;所述其他RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到自身建立的分发树转发表项中。In the first aspect or the first possible or second possible implementation of the first aspect, a third possible implementation of the first aspect is also provided, in the first aspect In a third possible implementation manner of , the first edge RB obtains the port number corresponding to the next-hop RB, and adds the port number corresponding to the next-hop RB to the distribution tree forwarding entry; the The other RBs obtain the port number corresponding to the next-hop RB, and add the port number corresponding to the next-hop RB to the distribution tree forwarding entry established by itself.

在所述第一方面或所述第一方面的第一种可能、第二种可能或第三种可能的实现方式中,还提供了所述第一方面的第四种可能的实现方式,在所述第一方面的第四种可能的实现方式中,所述第一数据中心DC的第一边缘RB接收第二DC的第二边缘RB发送的RB标识信息中还携带有:In the first aspect or the first possible, second possible or third possible implementation of the first aspect, a fourth possible implementation of the first aspect is also provided, in In the fourth possible implementation manner of the first aspect, the RB identification information sent by the first edge RB of the first data center DC to the second edge RB of the second DC further carries:

虚拟局域网VLAN身份标识ID,所述VLANID用于标识所述第一DC中树根RB和所述第二DC中树根RB同属的VLAN;所述第一边缘RB接收所述第二边缘RB发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。A virtual local area network VLAN ID, where the VLAN ID is used to identify the VLAN to which the root RB in the first DC and the root RB in the second DC belong; the first edge RB receives the message sent by the second edge RB. extended information, the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLAN ID.

在所述第一方面或所述第一方面的第一种可能、第二种可能、第三种可能或第四种可能的实现方式中,还提供了所述第一方面的第五种可能的实现方式,在所述第一方面的第五种可能的实现方式中,所述第一边缘RB根据VLANID建立所述第一DC中树根RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系,由此将所述扩展信息转化为本地分发树转发表项。In the first aspect or the first possibility, the second possibility, the third possibility or the fourth possible implementation of the first aspect, a fifth possibility of the first aspect is also provided In the fifth possible implementation of the first aspect, the first edge RB establishes the RB identification information of the root RB in the first DC and the tree root RB in the second DC according to the VLANID. The corresponding relationship of the RB identification information of the root RB, thereby converting the extended information into a local distribution tree forwarding entry.

第二方面,本发明提供一种多链接半透明互联TRILL网络互联方法,所述方法包括:In a second aspect, the present invention provides a multi-link translucent interconnection TRILL network interconnection method, the method comprising:

第二数据中心DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,以便所述第一边缘RB根据所述RB标识信息建立分发树转发表项,根据所述分发树转发表项发送报文。The second edge RB of the second data center DC sends RB identification information to the first edge RB of the first DC, and the RB identification information carries the RB identity ID of the root RB in the second DC and the first A combination of two DC IDs, so that the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, and sends a message according to the distribution tree forwarding entry.

在所述第二方面的第一种可能的实现方式中,所述第二边缘RB通过边界网关协议BGP向所述第一边缘RB发送所述RB标识信息。In a first possible implementation manner of the second aspect, the second edge RB sends the RB identification information to the first edge RB through a Border Gateway Protocol (BGP).

在所述第二方面或所述第二方面的第一种可能的实现方式中,还提供了所述第二方面的第二种可能的实现方式,在所述第二方面的第二种可能的实现方式中,所述第二边缘RB向所述第一边缘RB发送的所述RB标识信息中还携带有:In the second aspect or the first possible implementation of the second aspect, a second possible implementation of the second aspect is also provided, and in the second possible implementation of the second aspect In an implementation manner, the RB identification information sent by the second edge RB to the first edge RB also carries:

虚拟局域网VLAN身份标识ID,所述VLANID用于标识所述第一DC中树根RB和所述第二DC中树根RB同属的VLAN;所述第二边缘RB向所述第一边缘RB发送扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。A virtual local area network VLAN ID, the VLAN ID is used to identify the VLAN to which the root RB in the first DC and the root RB in the second DC belong; the second edge RB sends a message to the first edge RB Extended information, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLAN ID.

第三方面,本发明提供一种多链接半透明互联TRILL网络互联装置,所述装置为第一数据中心DC中的第一边缘RB,所述装置包括:In a third aspect, the present invention provides a multi-link translucent interconnection TRILL network interconnection device, the device is a first edge RB in a first data center DC, and the device includes:

接收单元,用于接收第二DC的第二边缘RB发送的RB标识信息,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合;The receiving unit is configured to receive RB identification information sent by the second edge RB of the second DC, where the RB identification information carries the RB identity ID of the root RB in the second DC and the second DC identity A combination of IDs;

处理单元,用于根据所述接收单元接收到的所述RB标识信息建立分发树转发表项。A processing unit, configured to establish a distribution tree forwarding entry according to the RB identification information received by the receiving unit.

在所述第三方面的第一种可能的实现方式中,所述接收单元还用于接收所述第二边缘RB通过边界网关协议BGP发送的所述RB标识信息。In a first possible implementation manner of the third aspect, the receiving unit is further configured to receive the RB identification information sent by the second edge RB through a Border Gateway Protocol (BGP).

在所述第三方面或所述第三方面的第一种可能的实现方式中,还提供了所述第三方面的第二种可能的实现方式,在所述第三方面的第二种可能的实现方式中,所述处理单元具体包括:In the third aspect or the first possible implementation of the third aspect, a second possible implementation of the third aspect is also provided, and in the second possible implementation of the third aspect In an implementation manner, the processing unit specifically includes:

计算子单元,用于根据所述接收单元接收到的所述RB标识信息通过最短路径SPF算法建立所述分发树转发表项;A calculation subunit, configured to establish the distribution tree forwarding entry through the shortest path SPF algorithm according to the RB identification information received by the receiving unit;

发送子单元,用于将所述接收单元接收到的所述RB标识信息转发给所述第一DC中的其他RB。The sending subunit is configured to forward the RB identification information received by the receiving unit to other RBs in the first DC.

在所述第三方面或所述第三方面的第一种可能或第二种可能的实现方式中,还提供了所述第三方面的第三种可能的实现方式,在所述第三方面的第三种可能的实现方式中,所述计算子单元还用于获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。In the third aspect or the first possible or second possible implementation of the third aspect, a third possible implementation of the third aspect is also provided, in the third aspect In a third possible implementation manner of , the calculating subunit is further configured to obtain the port number corresponding to the next-hop RB, and add the port number corresponding to the next-hop RB to the distribution tree forwarding entry.

在所述第三方面或所述第三方面的第一种可能、第二种可能或第三种可能的实现方式中,还提供了所述第三方面的第四种可能的实现方式,在所述第三方面的第四种可能的实现方式中,所述接收单元还用于接收所述第二边缘RB发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。In the third aspect or the first possible, second possible or third possible implementation of the third aspect, a fourth possible implementation of the third aspect is also provided, in In a fourth possible implementation manner of the third aspect, the receiving unit is further configured to receive extended information sent by the second edge RB, where the extended information is used to describe the root RB in the second DC The corresponding relationship between the RB identification information and the VLAN ID.

在所述第三方面或所述第三方面的第一种可能、第二种可能、第三种可能或第四种可能的实现方式中,还提供了所述第三方面的第五种可能的实现方式,在所述第三方面的第五种可能的实现方式中,所述处理单元还用于根据VLANID建立所述第一DC中树根RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系。In the third aspect or the first possibility, the second possibility, the third possibility or the fourth possible implementation of the third aspect, a fifth possibility of the third aspect is also provided In a fifth possible implementation of the third aspect, the processing unit is further configured to establish the RB identification information of the root RB in the first DC and the RB identification information of the root RB in the second DC according to the VLANID. Correspondence between RB identification information of the root RB.

第四方面,本发明提供一种多链接半透明互联TRILL网络互联装置,所述装置为第二数据中心DC中的第二边缘RB,所述装置包括:In a fourth aspect, the present invention provides a multi-link translucent interconnection TRILL network interconnection device, the device is a second edge RB in a second data center DC, and the device includes:

发送单元,用于向第一DC的第一边缘RB发送RB标识信息,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。A sending unit, configured to send RB identification information to the first edge RB of the first DC, where the RB identification information carries the RB identity ID of the root RB in the second DC and the second DC identity ID The combination.

在所述第四方面的第一种可能的实现方式中所述发送单元还用于通过边界网关协议BGP向所述第一边缘RB发送所述RB标识信息。In a first possible implementation manner of the fourth aspect, the sending unit is further configured to send the RB identification information to the first edge RB through a Border Gateway Protocol (BGP).

在所述第四方面或所述第四方面的第一种可能的实现方式中,还提供了所述第四方面的第二种可能的实现方式,在所述第四方面的第二种可能的实现方式中,所述发送单元还用于向所述第一边缘RB发送扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。In the fourth aspect or the first possible implementation manner of the fourth aspect, a second possible implementation manner of the fourth aspect is also provided, and in the second possible implementation manner of the fourth aspect In an implementation manner of , the sending unit is further configured to send extended information to the first edge RB, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLANID .

第五方面,本发明提供一种多链接半透明互联TRILL网络互联系统,所述系统由第一边缘RB和第二边缘RB组成。In a fifth aspect, the present invention provides a multi-link semi-transparent interconnection TRILL network interconnection system, the system is composed of a first edge RB and a second edge RB.

本发明提供的TRILL网络互联方法、装置及系统,由于第一边缘RB接收到的RB标识信息为第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,因此当所述第一边缘RB根据所述RB标识信息建立分发树转发表项时,第一边缘RB所建立的分发树转发表项除了含有针对第一DC内部各树根RB的分发树转发表项外,还有针对第二DC内各树根RB的分发树转发表项。与现有技术二中在第一边缘RB和第二边缘RB需要对报文进行解封装和封装相比,本发明中的第一边缘RB和第二边缘RB无需对报文进行解封装和封装,可减小支持报文封装与解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,第一边缘RB和第二边缘RB分别管理各自所在DC的路由表,因此可支持大规模的DC间的互联。In the TRILL network interconnection method, device and system provided by the present invention, since the RB identification information received by the first edge RB is a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID, therefore When the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, the distribution tree forwarding entry established by the first edge RB includes the distribution tree forwarding entry for each tree root RB inside the first DC In addition, there are distribution tree forwarding entries for each tree root RB in the second DC. Compared with the need to decapsulate and encapsulate the message in the first edge RB and the second edge RB in the prior art 2, the first edge RB and the second edge RB in the present invention do not need to decapsulate and encapsulate the message , which can reduce the allocation of hardware resources supporting packet encapsulation and decapsulation, and the packet forwarding efficiency is high. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the first edge RB and the second edge RB manage the routing tables of their respective DCs respectively , so it can support large-scale interconnection between DCs.

附图说明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 are only 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.

图1为本发明实施例中一种TRILL网络互联方法的方法流程图;Fig. 1 is the method flowchart of a kind of TRILL network interconnection method in the embodiment of the present invention;

图2为本发明实施例中另一种TRILL网络互联方法的方法流程图;Fig. 2 is the method flowchart of another TRILL network interconnection method in the embodiment of the present invention;

图3为本发明实施例中又一种TRILL网络互联方法的方法流程图;Fig. 3 is a method flowchart of another TRILL network interconnection method in an embodiment of the present invention;

图4为本发明实施例中再一种TRILL网络互联方法的方法流程图;Fig. 4 is the method flowchart of another TRILL network interconnection method in the embodiment of the present invention;

图5为本发明实施例中第一个第一边缘RB的结构示意图;FIG. 5 is a schematic structural diagram of a first first edge RB in an embodiment of the present invention;

图6为本发明实施例中第二个第一边缘RB的结构示意图;FIG. 6 is a schematic structural diagram of a second first edge RB in an embodiment of the present invention;

图7为本发明实施例中第三个第一边缘RB的结构示意图;FIG. 7 is a schematic structural diagram of a third first edge RB in an embodiment of the present invention;

图8为本发明实施例中第一个第二边缘RB的结构示意图;FIG. 8 is a schematic structural diagram of the first second edge RB in an embodiment of the present invention;

图9为本发明实施例中第一个TRILL网络互联系统的结构示意图;9 is a schematic structural diagram of the first TRILL network interconnection system in an embodiment of the present invention;

图10为本发明实施例中第四个第一边缘RB的结构示意图;FIG. 10 is a schematic structural diagram of a fourth first edge RB in an embodiment of the present invention;

图11为本发明实施例中第二个第二边缘RB的结构示意图;FIG. 11 is a schematic structural diagram of a second second edge RB in an embodiment of the present invention;

图12为本发明实施例中第二个TRILL网络互联系统的结构示意图。FIG. 12 is a schematic structural diagram of a second TRILL network interconnection system in an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. 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.

为了方便对本发明的理解,TRILL报文头的结构如表1所示。In order to facilitate the understanding of the present invention, the structure of the TRILL message header is shown in Table 1.

表1Table 1

表1中:TRILLEthertype为TRILL协议的网络类型;V为TRILL版本号,当前为0,如果发现不为0则丢弃该报文;R为保留字段;M为组播标识,0表示单播,1表示组播;OpLng(0p-Length)为TRILL报文头扩展选项的长度;Hop为跳数;EgressRBridgeNickname(出口RB名称)若单播则为与服务器连接的RB的RB标识信息,若组播则为分发树的树根RB标识信息;IngressRBridgeNickname(入口RB名称)为与服务器相连的RB的RB标识信息,用于标识为报文添加TRILL报文头的源RB。In Table 1: TRILLEthertype is the network type of the TRILL protocol; V is the TRILL version number, which is currently 0, and if it is not 0, the message will be discarded; R is a reserved field; M is the multicast identifier, 0 means unicast, 1 Indicates multicast; OpLng (0p-Length) is the length of the TRILL message header extension option; Hop is the hop number; EgressRBridgeNickname (egress RB name) is the RB identification information of the RB connected to the server if it is unicast, and if it is multicast It is the root RB identification information of the distribution tree; IngressRBridgeNickname (entry RB name) is the RB identification information of the RB connected to the server, and is used to identify the source RB that adds the TRILL message header to the message.

下述各实施例中提及的树根RB、其他RB以及下一跳RB的命名是根据单次TRILL报文发送过程中某RB的功能进行命名的,该单次TRILL报文的发送以入口RB名称(第一个与服务器相连RB的RB标识信息)为起始点,以出口RB名称为终止点。因此,对于不同的报文发送过程中同一RB可能分别作为树根RB或其他RB或下一跳RB。The naming of the tree root RB, other RBs, and next-hop RBs mentioned in the following embodiments is named according to the function of a certain RB in the process of sending a single TRILL message. The sending of a single TRILL message is based on the entry The RB name (the RB identification information of the first RB connected to the server) is the starting point, and the egress RB name is the ending point. Therefore, the same RB may serve as the tree root RB or other RBs or next-hop RBs in different message sending processes.

实施例一Embodiment one

本发明实施例提供了一种TRILL网络互联方法,如图1所示,所述方法包括:The embodiment of the present invention provides a TRILL network interconnection method, as shown in Figure 1, the method includes:

步骤101、第一数据中心DC的第一边缘RB接收第二DC的第二边缘RB发送的RB标识信息。Step 101, the first edge RB of the first data center DC receives RB identification information sent by the second edge RB of the second DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID.

RB标识信息的结构为:DCID:RBID,通过DCID与RBID相结合的方式,使得第一DC与第二DC内的各RB具有唯一的标识信息。可选的,上述RB标识信息的结构还可为:RBID:DCID。The structure of the RB identification information is: DCID: RBID. By combining the DCID and the RBID, each RB in the first DC and the second DC has unique identification information. Optionally, the structure of the above RB identification information may also be: RBID: DCID.

步骤102、所述第一边缘RB根据所述RB标识信息建立分发树转发表项。Step 102, the first edge RB establishes a distribution tree forwarding entry according to the RB identification information.

所述第一边缘RB根据所述RB标识信息建立分发树转发表项,以便根据所述分发树转发表项发送报文。第一边缘RB可将接收到的RB标识信息发送给第一DC内的各RB,第一DC内的第一边缘RB以及各RB除了根据第一DC内RB标识信息建立针对第一DC内部的分发树转发表项以外,还根据接收到的第二DC内的RB标识信息建立针对第二DC内各树根RB的分发树转发表项。The first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send packets according to the distribution tree forwarding entry. The first edge RB can send the received RB identification information to the RBs in the first DC, and the first edge RB and each RB in the first DC can establish the RB identification information for the first DC in addition to the RB identification information in the first DC. In addition to the distribution tree forwarding entries, distribution tree forwarding entries for each tree root RB in the second DC are also established according to the received RB identification information in the second DC.

具体的,第一边缘RB在接收到的RB标识信息之后,在自身链路状态数据库(LinkStateDatabase,简称LSDB)中为该RB标识信息生成拓扑,包括以下两种方式:Specifically, after receiving the RB identification information, the first edge RB generates a topology for the RB identification information in its own link state database (LinkStateDatabase, LSDB for short), including the following two methods:

1、复制第一边缘RB自身拓扑。1. Copy the topology of the first edge RB itself.

第一边缘RB在LSDB中添加一个表项,该表项为用RB标识信息替换第一边缘RB的RB标识后的一组对应关系。例如:第一边缘RB的RB标识标识信息为01:01,在LSDB中已存在以第一边缘RB作为起始的表项为“01:01-01:02”和“01:01-01:03”。当第一边缘RB接收到第二边缘RB发送到RB标识信息后,若此时接收到的RB标识信息为02:02,则添加表项:“02:02-01:02”和“02:02-01:03”。The first edge RB adds an entry in the LSDB, and the entry is a set of corresponding relationships after replacing the RB identifier of the first edge RB with the RB identifier information. For example: the RB identification information of the first edge RB is 01:01, and the entries starting with the first edge RB already exist in the LSDB as "01:01-01:02" and "01:01-01: 03". After the first edge RB receives the RB identification information sent by the second edge RB, if the RB identification information received at this time is 02:02, add entries: "02:02-01:02" and "02: 02-01:03".

2、复制第一DC内某树根RB的拓扑。2. Copy the topology of a root RB in the first DC.

该树根可随机选择,也可根据预设规则选择。在第一DC内选择一个树根RB,然后在LSDB中查找到该树根RB作为起始的表项,例如:选择RB标识为01:05的树根RB,以01:05为起始的表项为“01:05-01:03”和“01:05-01:06”。当第一边缘RB接收到第二边缘RB发送到RB标识信息后,若此时接收到的RB标识信息为02:02,则添加表项:“02:02-01:03”和“02:02-01:06”。The tree root can be selected randomly or according to preset rules. Select a root RB in the first DC, and then find the root RB as the starting entry in the LSDB, for example: select the root RB whose RB ID is 01:05, and start with 01:05 The entries are "01:05-01:03" and "01:05-01:06". After the first edge RB receives the RB identification information sent by the second edge RB, if the RB identification information received at this time is 02:02, add entries: "02:02-01:03" and "02: 02-01:06".

所述预设规则可为但不限于哈希算法。在第一边缘RB向LSDB中添加表项后,通过SPF算法结合LSDB中的表项可形成分发树转发表项。在建立分发树转发表项时,需要参考LSDB中各表项的优先级,表项中起始RB标识的优先级越高被确定为树根RB的概率越大。因此,为了保证第二DC内树根RB的RB标识信息在第一DC内被选举为树根,赋予第二DC内树根RB的RB标识信息与第一DC内树根RB的RB标识信息相同的树根优先级(rootpriority)。The preset rule may be but not limited to a hash algorithm. After the first edge RB adds an entry to the LSDB, the distribution tree forwarding entry can be formed by combining the entry in the LSDB with the SPF algorithm. When establishing a distribution tree forwarding entry, it is necessary to refer to the priority of each entry in the LSDB. The higher the priority of the starting RB identifier in the entry, the greater the probability of being determined as the tree root RB. Therefore, in order to ensure that the RB identification information of the root RB in the second DC is elected as the root in the first DC, the RB identification information of the root RB in the second DC and the RB identification information of the root RB in the first DC are assigned The same tree root priority (rootpriority).

当第一边缘RB在自身LSDB中为该RB标识信息生成拓扑之后,第一边缘RB将自身LSDB中新增的表项,即LSPs(拓扑),在第一DC内进行通告。After the first edge RB generates a topology for the RB identification information in its own LSDB, the first edge RB notifies the newly added entries in its own LSDB, that is, LSPs (topology), in the first DC.

当通过第二数据中心DC的第二边缘RB接收第一DC的第一边缘RB发送的RB标识信息时,第二DC的第二边缘RB可获得第一DC中各树根RB的RB标识信息,进而可实现第一DC与第二DC的互联。When the second edge RB of the second data center DC receives the RB identification information sent by the first edge RB of the first DC, the second edge RB of the second DC can obtain the RB identification information of each tree root RB in the first DC , and then the interconnection between the first DC and the second DC can be realized.

若第一DC的第一主机需要在第二DC的某个分发树中进行广播,则第一DC中第一个与第一主机相连的RB在数据帧中添加TRILL报文头,所述TRILL报文头中的入口RB名称为第一DC中第一个与第一主机相连的RB的名称,出口RB名称为第二DC中作为该分发树树根的RB的RB标识信息。第一DC内的RB根据TRILL报文头的信息,通过第一DC内的RB将该数据帧转发到第一DC的第一边缘RB,所述第一边缘RB将报文直接路由至第二DC的第二边缘RB,所述第二边缘RB接收到报文后,第二DC内的各RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播。If the first host of the first DC needs to broadcast in a certain distribution tree of the second DC, the first RB connected to the first host in the first DC adds a TRILL header to the data frame, and the TRILL The entry RB name in the message header is the name of the first RB connected to the first host in the first DC, and the exit RB name is the RB identification information of the RB that is the root of the distribution tree in the second DC. According to the information in the TRILL packet header, the RB in the first DC forwards the data frame to the first edge RB of the first DC through the RB in the first DC, and the first edge RB directly routes the packet to the second The second edge RB of the DC, after the second edge RB receives the message, each RB in the second DC checks the "M" field in the TRILL message header, and multicasts the message according to the distribution tree entry.

上述报文发送过程,仅为第二DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息后的单向的技术方案,在第一DC的第一边缘RB向第二DC的第二边缘RB发送RB标识信息,和第一DC的第一边缘RB向其他DC的其他边缘RB发送RB标识信息之后,可实现多DC间的网络互联。The above message sending process is only a one-way technical solution after the second edge RB of the second DC sends RB identification information to the first edge RB of the first DC, and the first edge RB of the first DC sends the second DC After the second edge RB of the first DC sends the RB identification information, and the first edge RB of the first DC sends the RB identification information to other edge RBs of other DCs, network interconnection between multiple DCs can be realized.

本发明提供的TRILL网络互联方法,由于第一边缘RB接收到的RB标识信息为第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,因此当所述第一边缘RB根据所述RB标识信息建立分发树转发表项时,第一边缘RB所建立的分发树转发表项除了含有针对第一DC内部各树根RB的分发树转发表项外,还有针对第二DC内各分发树树根RB的转发表项。与现有技术二中在第一边缘RB和第二边缘RB需要对报文进行解封装和封装相比,本发明中的第一边缘RB和第二边缘RB无需对报文进行解封装和封装,可减小支持报文封装与解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,本发明中第一边缘RB和第二边缘RB分别管理各自所在DC的路由表,因此可支持大规模的DC间的互联。In the TRILL network interconnection method provided by the present invention, since the RB identification information received by the first edge RB is a combination of the RB ID of the root RB in the second DC and the ID of the second DC, when the first edge RB When an edge RB establishes a distribution tree forwarding entry according to the RB identification information, the distribution tree forwarding entry established by the first edge RB contains, in addition to the distribution tree forwarding entries for each tree root RB inside the first DC, The forwarding entry for each distribution tree root RB in the second DC. Compared with the need to decapsulate and encapsulate the message in the first edge RB and the second edge RB in the prior art 2, the first edge RB and the second edge RB in the present invention do not need to decapsulate and encapsulate the message , which can reduce the allocation of hardware resources supporting packet encapsulation and decapsulation, and the packet forwarding efficiency is high. In addition, compared with the first edge RB or the second edge RB in the prior art to manage all the routing tables in the first DC and the second DC, in the present invention, the first edge RB and the second edge RB respectively manage the respective DCs routing table, so it can support large-scale interconnection between DCs.

实施例二Embodiment two

本发明实施例提供了一种TRILL网络互联方法,如图2实施,所述方法包括:The embodiment of the present invention provides a TRILL network interconnection method, as shown in Figure 2, the method includes:

步骤201、第二数据中心DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息。Step 201, the second edge RB of the second data center DC sends RB identification information to the first edge RB of the first DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,以便所述第一边缘RB根据所述RB标识信息建立分发树转发表项,根据所述分发树转发表项发送报文。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID, so that the first edge RB can establish The distribution tree forwarding entry is used to send the message according to the distribution tree forwarding entry.

本发明实施例提供的TRILL网络互联方法,通过第二DC的第二边缘RB向第一DC的第一边缘RB发送的RB标识信息可用于区分第一DC内的RB和第二DC内的RB,使第一DC内和第二DC内各RB具有唯一的标识信息。与现有技术二中在第一边缘RB和第二边缘RB需要对报文进行解封装和封装相比,本发明实施例中第一边缘RB可根据接收到的第二DC内的RB标识信息建立分发树转发表项,达到第一边缘RB和第二边缘RB无需对报文进行解封装和封装,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,本发明实施例中第一边缘RB和第二边缘RB分别管理各自所在DC的路由表,因此可支持大规模的DC间的互联。In the TRILL network interconnection method provided by the embodiment of the present invention, the RB identification information sent from the second edge RB of the second DC to the first edge RB of the first DC can be used to distinguish RBs in the first DC from RBs in the second DC , so that each RB in the first DC and in the second DC has unique identification information. Compared with prior art 2 where the first edge RB and the second edge RB need to decapsulate and encapsulate the message, in the embodiment of the present invention, the first edge RB can receive the RB identification information in the second DC Establish a distribution tree forwarding table item, so that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the message, reduce the allocation of hardware resources used by the edge RB to support message encapsulation and decapsulation, and improve the message forwarding efficiency high. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, in the embodiment of the present invention the first edge RB and the second edge RB manage their respective The routing table of the DC where it is located, so it can support large-scale interconnection between DCs.

实施例三Embodiment Three

作为对实施例一和实施例二的详细说明及进一步扩展,本发明实施例还提供了一种TRILL网络互联方法,如图3所示,所述方法包括:As a detailed description and further expansion of Embodiment 1 and Embodiment 2, the embodiment of the present invention also provides a TRILL network interconnection method, as shown in FIG. 3 , the method includes:

步骤301、第二数据中心DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息。Step 301, the second edge RB of the second data center DC sends RB identification information to the first edge RB of the first DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,以便所述第一边缘RB根据所述RB标识信息建立分发树转发表项,根据所述分发树转发表项发送报文。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID, so that the first edge RB can establish The distribution tree forwarding entry is used to send the message according to the distribution tree forwarding entry.

第二DC的第二边缘RB向第一DC的第一边缘RB发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。The RB identification information sent by the second edge RB of the second DC to the first edge RB of the first DC can distinguish the RBs in the first DC and the RBs in the second DC, so that the RBs in the first DC and the RBs in the second DC have a unique identification information.

具体的,所述第二边缘RB通过边界网关协议BGP向所述第一边缘RB发送所述RB标识信息。Specifically, the second edge RB sends the RB identification information to the first edge RB through a border gateway protocol BGP.

第二边缘RB通过BGP向所述第一边缘RB发送所述RB标识信息时,除了发送与现有技术中BGP内容类型相同的信息外,还发送如表2所示的第一附加信息,第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。When the second edge RB sends the RB identification information to the first edge RB through BGP, in addition to sending the same information as the BGP content type in the prior art, it also sends the first additional information shown in Table 2, the first The additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is the root RB of the distribution tree. The first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC.

表2(第一附加信息)Table 2 (first additional information)

Yes or No(是否为树根RB)Yes or No (whether it is the root RB) Root Nickname(树根RB的RB标识信息)Root Nickname (RB identification information of the root RB)

第二数据中心DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息后,第一数据中心DC的第一边缘RB接收第二DC的第二边缘RB发送的RB标识信息。其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。通过第一附加信息中的第一个表项,可确定RB标识信息是否为树根RB的RB标识信息。After the second edge RB of the second data center DC sends the RB identification information to the first edge RB of the first DC, the first edge RB of the first data center DC receives the RB identification information sent by the second edge RB of the second DC. Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID. Through the first entry in the first additional information, it can be determined whether the RB identification information is the RB identification information of the root RB.

具体的,所述第一边缘RB接收所述第二边缘RB通过边界网关协议BGP发送的所述RB标识信息。Specifically, the first edge RB receives the RB identification information sent by the second edge RB through Border Gateway Protocol BGP.

步骤302、所述第一边缘RB根据所述RB标识信息建立分发树转发表项。Step 302, the first edge RB establishes a distribution tree forwarding entry according to the RB identification information.

所述第一边缘RB根据所述RB标识信息建立分发树转发表项,以便根据所述分发树转发表项发送报文。第一边缘RB可将接收到的RB标识信息发送给第一DC内的其他RB,第一DC内的第一边缘RB以及其他RB除了根据第一DC内RB标识信息建立针对第一DC内部的分发树转发表项以外,还根据接收到的第二DC内的RB标识信息建立针对第二DC内各树根RB的分发树转发表项。The first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send packets according to the distribution tree forwarding entry. The first edge RB can send the received RB identification information to other RBs in the first DC, and the first edge RB and other RBs in the first DC can establish the RB identification information for the first DC in addition to the RB identification information in the first DC. In addition to the distribution tree forwarding entries, distribution tree forwarding entries for each tree root RB in the second DC are also established according to the received RB identification information in the second DC.

具体的,如图4所示,所述步骤302具体包括:Specifically, as shown in FIG. 4, the step 302 specifically includes:

步骤401、所述第一边缘RB根据所述RB标识信息通过最短路径优先算法SPF算法建立所述分发树转发表项。Step 401, the first edge RB establishes the distribution tree forwarding entry through the shortest path first algorithm (SPF) algorithm according to the RB identification information.

第一边缘RB在接收到的RB标识信息之后,在自身LSDB中为该RB标识信息生成拓扑,包括以下两种方式:After receiving the RB identification information, the first edge RB generates a topology for the RB identification information in its own LSDB, including the following two methods:

1、复制第一边缘RB自身拓扑。1. Copy the topology of the first edge RB itself.

第一边缘RB在LSDB中添加一个表项,该表项为用RB标识信息替换第一边缘RB的RB标识后的一组对应关系。例如:第一边缘RB的RB标识标识信息为01:01,在LSDB中已存在以第一边缘RB作为起始的表项为“01:01-01:02”和“01:01-01:03”。当第一边缘RB接收到第二边缘RB发送到RB标识信息后,若此时接收到的RB标识信息为02:02,则添加表项:“02:02-01:02”和“02:02-01:03”。The first edge RB adds an entry in the LSDB, and the entry is a set of corresponding relationships after replacing the RB identifier of the first edge RB with the RB identifier information. For example: the RB identification information of the first edge RB is 01:01, and the entries starting with the first edge RB already exist in the LSDB as "01:01-01:02" and "01:01-01: 03". After the first edge RB receives the RB identification information sent by the second edge RB, if the RB identification information received at this time is 02:02, add entries: "02:02-01:02" and "02: 02-01:03".

2、复制第一DC内某树根RB的拓扑。2. Copy the topology of a root RB in the first DC.

该树根可随机选择,也可根据预设规则选择。在第一DC内选择一个树根RB,然后在LSDB中查找到该树根RB作为起始的表项,例如:选择RB标识为01:05的树根RB,以01:05为起始的表项为“01:05-01:03”和“01:05-01:06”。当第一边缘RB接收到第二边缘RB发送到RB标识信息后,若此时接收到的RB标识信息为02:02,则添加表项:“02:02-01:03”和“02:02-01:06”。The tree root can be selected randomly or according to preset rules. Select a root RB in the first DC, and then find the root RB as the starting entry in the LSDB, for example: select the root RB whose RB ID is 01:05, and start with 01:05 The entries are "01:05-01:03" and "01:05-01:06". After the first edge RB receives the RB identification information sent by the second edge RB, if the RB identification information received at this time is 02:02, add entries: "02:02-01:03" and "02: 02-01:06".

所述预设规则可为但不限于哈希算法。在第一边缘RB向LSDB中添加表项后,通过SPF算法结合LSDB中的表项可形成分发树转发表项。在建立分发树转发表项时,需要参考LSDB中各表项的优先级,表项中起始RB标识的优先级越高被确定为树根RB的概率越大。因此,为了保证第二DC内树根RB的RB标识信息在第一DC内被选举为树根,赋予第二DC内树根RB的RB标识信息与第一DC内树根RB的RB标识信息相同的树根优先级(rootpriority)。The preset rule may be but not limited to a hash algorithm. After the first edge RB adds an entry to the LSDB, the distribution tree forwarding entry can be formed by combining the entry in the LSDB with the SPF algorithm. When establishing a distribution tree forwarding entry, it is necessary to refer to the priority of each entry in the LSDB. The higher the priority of the starting RB identifier in the entry, the greater the probability of being determined as the tree root RB. Therefore, in order to ensure that the RB identification information of the root RB in the second DC is elected as the root in the first DC, the RB identification information of the root RB in the second DC and the RB identification information of the root RB in the first DC are assigned The same tree root priority (rootpriority).

SPF算法将某个RB作为根(ROOT)来计算其到每一个目的RB的距离,各RB在计算时根据一个统一的数据库会计算出路由域的拓扑结构图,该结构图类似于一棵树,在SPF算法中,被称为最短路径树。经过SPF算法的运算可得出作为最短路径树的树根RB到目的RB之间跳数最少的一条路径,并将该路径中与树根RB距离最近的RB的RB标识信息作为分发树转发表项进行保存。此外,还可将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行保存,即所述第一边缘RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。通过端口号可同时向多个RB发送报文。The SPF algorithm uses a certain RB as the root (ROOT) to calculate the distance to each destination RB. When calculating, each RB will calculate the topology structure diagram of the routing domain according to a unified database. The structure diagram is similar to a tree. In the SPF algorithm, it is called the shortest path tree. After the operation of the SPF algorithm, a path with the least number of hops between the root RB and the destination RB of the shortest path tree can be obtained, and the RB identification information of the RB closest to the root RB in the path is used as the distribution tree forwarding table item to save. In addition, the port list calculated by the SPF algorithm as the port number on the root RB can be saved as a distribution tree forwarding entry, that is, the first edge RB obtains the port number of the corresponding next-hop RB, and The port number corresponding to the next-hop RB is added to the distribution tree forwarding entry. Messages can be sent to multiple RBs at the same time through the port number.

步骤402、所述第一边缘RB将所述RB标识信息转发给所述第一DC中的其他RB。Step 402, the first edge RB forwards the RB identification information to other RBs in the first DC.

当第一边缘RB在自身LSDB中为接收到的RB标识信息生成拓扑之后,第一边缘RB将自身LSDB中新增的表项,即LSPs(拓扑),在第一DC内进行通告。在通告之后,第一DC内的每个RB均可获取到该RB标识信息对应的新增的表项。After the first edge RB generates a topology for the received RB identification information in its own LSDB, the first edge RB notifies the newly added entries in its own LSDB, that is, LSPs (topology), in the first DC. After the announcement, each RB in the first DC can obtain the newly added entry corresponding to the RB identification information.

所述第一边缘RB将所述RB标识信息转发给所述第一DC中的其他RB,以便所述其他RB根据所述RB标识信息通过所述SPF算法建立自身的分发树转发表项。为了使第一DC内各RB均可向第二DC内的RB发送报文,第一边缘RB将接收到的RB标识信息发送给第一DC内的其他RB。其他RB通过步骤401中所述的SPF算法可得到向第二DC内RB发送报文用的下一跳RB的RB标识信息,并将该RB标识信息进行保存。此外,将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行保存,通过端口号可同时向多个目的RB发送报文,即所述其他RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到自身建立的分发树转发表项中。The first edge RB forwards the RB identification information to other RBs in the first DC, so that the other RBs establish their own distribution tree forwarding entries through the SPF algorithm according to the RB identification information. In order to enable all RBs in the first DC to send packets to RBs in the second DC, the first edge RB sends the received RB identification information to other RBs in the first DC. The other RBs can obtain the RB identification information of the next-hop RB for sending messages to the RB in the second DC through the SPF algorithm described in step 401, and save the RB identification information. In addition, the port list calculated by the SPF algorithm as the port number on the root RB is stored as a distribution tree forwarding entry, and the port number can be used to send messages to multiple destination RBs at the same time, that is, the other RBs obtain the corresponding The port number of the next-hop RB, adding the port number of the corresponding next-hop RB to the distribution tree forwarding entry established by itself.

若第一DC的第一主机需要在第二DC的某个分发树中进行广播,则第一DC中第一个与第一主机相连的RB在数据帧中添加TRILL报文头,所述TRILL报文头中的入口RB名称为第一DC中第一个与第一主机相连的RB的名称,出口RB名称为第二DC中作为该分发树树根RB的RB的名称。该第一个与第一主机相连的RB将TRILL报文头中的出口RB名称与自身保存的各分发树转发表项进行比较,并找到与出口RB名称对应的下一跳RB的RB标识信息或端口列表,并将报文发送给下一跳RB,各RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播;。If the first host of the first DC needs to broadcast in a certain distribution tree of the second DC, the first RB connected to the first host in the first DC adds a TRILL header to the data frame, and the TRILL The entry RB name in the message header is the name of the first RB connected to the first host in the first DC, and the exit RB name is the name of the RB serving as the root RB of the distribution tree in the second DC. The first RB connected to the first host compares the egress RB name in the TRILL header with each distribution tree forwarding entry saved by itself, and finds the RB identification information of the next-hop RB corresponding to the egress RB name or port list, and send the message to the next hop RB, each RB checks the "M" field in the TRILL message header, and multicasts the message according to the distribution tree entry;

若上述出口RB名称为第一DC内部的某个树根RB的RB标识信息,则报文为第一DC内部的一个组播报文报文。If the egress RB name is the RB identification information of a root RB inside the first DC, the message is a multicast message inside the first DC.

与现有技术二中在第一边缘RB和第二边缘RB需要对报文进行解封装和封装相比,上述报文发送过程通过第二DC的第二边缘RB向第一DC的第一边缘RB发送的RB标识信息可区分第一DC内的RB和第二DC内的RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。第一边缘RB可根据接收到的第二DC内的RB标识信息建立分发树转发表项,同时第一边缘RB将接收到的RB标识信息发送至第一DC内的其他RB中,以便第一DC内的其他RB根据接收到的第二DC内的RB标识信息建立分发树转发表项。由此,可实现在第一边缘RB和第二边缘RB无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,上述报文发送过程中第一边缘RB和第二边缘RB分别管理各自所在DC的路由表,因此可支持大规模的DC间的互联。Compared with prior art 2 where the first edge RB and the second edge RB need to decapsulate and encapsulate the message, the above message sending process passes through the second edge RB of the second DC to the first edge of the first DC The RB identification information sent by the RB can distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and in the second DC has unique identification information. The first edge RB can establish a distribution tree forwarding entry according to the received RB identification information in the second DC, and at the same time, the first edge RB sends the received RB identification information to other RBs in the first DC, so that the first Other RBs in the DC establish distribution tree forwarding entries according to the received RB identification information in the second DC. Thus, under the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the message, the message can be successfully sent to the RB of another DC, so that the RB can check the TRILL message header In the "M" field, the message is multicast according to the distribution tree entry, which reduces the allocation of hardware resources used by the edge RB to support message encapsulation and decapsulation, and the message forwarding efficiency is high. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the first edge RB and the second edge RB respectively manage The routing table of their respective DCs, so it can support large-scale interconnection between DCs.

进一步的,所述第二边缘RB向所述第一边缘RB发送的所述RB标识信息中还携带有:虚拟局域网VLAN身份标识ID,所述VLANID用于标识所述第一DC中树根RB和所述第二DC中树根RB同属的VLAN。Further, the RB identification information sent by the second edge RB to the first edge RB also carries: a virtual local area network (VLAN) ID, and the VLAN ID is used to identify the root RB in the first DC A VLAN to which the root RB in the second DC belongs.

此时,步骤301进一步细化为,所述第二数据中心DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息,具体包括:所述第二边缘RB向所述第一边缘RB发送扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。At this time, step 301 is further refined as, the second edge RB of the second data center DC sends RB identification information to the first edge RB of the first DC, specifically including: the second edge RB sends the first edge RB The edge RB sends extended information, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLAN ID.

第二边缘RB通过BGP向所述第一边缘RB发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。When the second edge RB sends the RB identification information to the first edge RB through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second The additional information is used to indicate whether it is the root RB, the RB identification information of the root RB, and the correspondence between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information.

表3(第二附加信息)Table 3 (second additional information)

Yes or No(是否为树根RB)Yes or No (whether it is the root RB) Root Nickname(树根RB的RB标识信息)Root Nickname (RB identification information of the root RB) 扩展信息:Ethernet Tag ID(VLAN ID)Extended information: Ethernet Tag ID (VLAN ID)

此时,所述第一数据中心DC的第一边缘RB接收第二DC的第二边缘RB发送的RB标识信息,具体包括:所述第一边缘RB接收所述第二边缘RB发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。At this time, the first edge RB of the first data center DC receives the RB identification information sent by the second edge RB of the second DC, specifically including: the first edge RB receives the extended information sent by the second edge RB , the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLAN ID.

所述第一数据中心DC的第一边缘RB接收第二DC的第二边缘RB发送的RB标识信息中还携带有:虚拟局域网VLANID,所述VLANID用于标识所述第一DC中的RB和所述第二DC中树根RB同属的VLAN。The first edge RB of the first data center DC receives the RB identification information sent by the second edge RB of the second DC and also carries: a virtual local area network VLANID, and the VLANID is used to identify the RB and the RB in the first DC. The VLAN to which the root RB in the second DC belongs.

步骤302进一步细化为,所述第一边缘RB根据VLANID建立所述第一DC中RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系,由此将所述扩展信息转化为本地分发树转发表项。Step 302 is further refined as, the first edge RB establishes the corresponding relationship between the RB identification information of the RB in the first DC and the RB identification information of the root RB in the second DC according to the VLANID, thereby the Extended information is translated into local distribution tree forwarding table entries.

当第一DC的第一边缘RB接收到第二DC的第二边缘RB发送的第二附加信息后,根据其中的扩展信息,即VLANID,寻找第一DC内与该VLANID对应RB的RB标识信息,并将该RB标识信息与第二附加信息中的树根RB的RB标识信息以及VLANID作为一条分发树转发表项进行保存。After the first edge RB of the first DC receives the second additional information sent by the second edge RB of the second DC, it searches for the RB identification information of the RB corresponding to the VLANID in the first DC according to the extended information therein, that is, the VLANID , and store the RB identification information, the RB identification information of the root RB and the VLAN ID in the second additional information as a distribution tree forwarding entry.

各分发树转发表项组成分发树转发表,如表4所示:Each distribution tree forwarding table item constitutes a distribution tree forwarding table, as shown in Table 4:

表4(分发树转发表)Table 4 (distribution tree forwarding table)

第二RB标识信息Second RB identification information VLAN IDVLAN ID 第一RB标识信息First RB identification information 02:0102:01 VLAN1VLAN1 01:0101:01 02:0302:03 VLAN2VLAN2 01:0201:02 ...... ...... ......

其中,第二RB标识信息为第二DC中树根RB的RB标识信息,第一RB标识信息为第一DC中与第二RB标识信息中对应于同一个VLAN内RB的RB标识信息。通过表4第一DC的边缘RB可将TRILL报文头中第二DC内的RB标识信息以VLAN为依据,查找到第一DC内与该树根RB的RB标识信息对应的RB标识信息。Wherein, the second RB identification information is the RB identification information of the root RB in the second DC, and the first RB identification information is the RB identification information corresponding to the RB in the same VLAN in the first DC and the second RB identification information. The edge RB of the first DC in Table 4 can use the RB identification information in the second DC in the TRILL header to find out the RB identification information corresponding to the RB identification information of the root RB in the first DC based on the VLAN.

例如,若第二DC的第二主机需要在第一DC的某个分发树中进行广播,则第二DC中第一个与第二主机相连的RB在数据帧中添加TRILL报文头,所述TRILL报文头中的入口RB名称为第二DC中第一个与第二主机相连的RB的名称,出口RB名称为第一DC中作为该分发树树根RB的RB标识信息。若TRILL报文头中出口RB名称为第二DC内的RB标识信息为02:01、对应VLANID为LVAN1,则第一DC的第一边缘RB通过查询表4得出第一DC内的RB标识信息01:01,第一DC的第一边缘RB将TRILL报文头进行解封装和封装,将TRILL报文头中的出口RB名称改为01:01,以便在第一DC内部进行转发。由于第一DC内部对报文的转发为现有技术,因此可顺利发送至出口RB名称对应的RB,各RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播。For example, if the second host of the second DC needs to broadcast in a distribution tree of the first DC, the first RB connected to the second host in the second DC adds a TRILL header to the data frame, so The entry RB name in the TRILL message header is the name of the first RB connected to the second host in the second DC, and the exit RB name is the RB identification information of the root RB of the distribution tree in the first DC. If the name of the egress RB in the header of the TRILL message is 02:01 and the corresponding VLAN ID is LVAN1 in the RB identification information in the second DC, then the first edge RB of the first DC obtains the RB identification in the first DC through lookup table 4 Information 01:01, the first edge RB of the first DC decapsulates and encapsulates the TRILL packet header, and changes the name of the egress RB in the TRILL packet header to 01:01, so as to be forwarded inside the first DC. Since the forwarding of the message within the first DC is an existing technology, it can be successfully sent to the RB corresponding to the egress RB name, and each RB checks the "M" field in the TRILL message header, and forwards the message according to the distribution tree entry. multicast.

与现有技术二中第一DC的第一边缘RB和第二DC的第二边缘RB对报文进行解封装和封装相比,上述报文的发送过程省去了第二边缘RB的解封装步骤,同时,除了边缘RB外的其他RB无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,上述报文的发送过程中第一边缘RB和第二边缘RB分别管理各自所在DC的路由表,因此可支持大规模的DC间的互联。Compared with the decapsulation and encapsulation of the message by the first edge RB of the first DC and the second edge RB of the second DC in the prior art 2, the above process of sending the message saves the decapsulation of the second edge RB step, at the same time, other RBs except the edge RB do not need to calculate the next-hop distribution tree forwarding table items for RBs in other DCs, reducing the allocation of hardware resources used by edge RBs to support packet encapsulation and decapsulation, Packet forwarding efficiency is high, further reducing the workload of other RBs. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the first edge RB and the second edge RB respectively Manage the routing table of their respective DCs, so it can support large-scale interconnection between DCs.

进一步的,步骤302可进一步细化为,所述第一边缘RB根据接收到的RB标识信息随机的建立分发树转发表项。所述随机的建立为第一边缘RB将接收到的第二DC内的RB标识信息与第一DC内任意树根RB标识信息作为一组对应关系。由于第一DC内任意一个RB均可通过该RB的某个端口将报文发送至VLANID对应的VLAN内,因此,通过上述方式也可实现不同DC间互联的技术效果。Further, step 302 may be further refined as, the first edge RB randomly establishes a distribution tree forwarding entry according to the received RB identification information. The random establishment is that the first edge RB takes the received RB identification information in the second DC and any tree root RB identification information in the first DC as a set of correspondences. Since any RB in the first DC can send a message to the VLAN corresponding to the VLANID through a certain port of the RB, the technical effect of interconnection between different DCs can also be achieved through the above method.

进一步的,除了通过各RB完成不同DC间的报文发送之外,还可通过针对每个DC分别配置的控制器(Controller)完成上述分发树转发表项的建立以及分发树转发表项的维护。各RB只需接收控制器发送的指示信息,如通过某个接口发送报文。由于控制器与各边缘RB以及其他RB功能明确,因此各RB的工作效率将进一步提高。Further, in addition to sending messages between different DCs through each RB, the establishment of the above-mentioned distribution tree forwarding table items and the maintenance of the distribution tree forwarding table items can also be completed through a controller (Controller) configured separately for each DC . Each RB only needs to receive instruction information sent by the controller, such as sending a message through a certain interface. Since the functions of the controller and each edge RB and other RBs are clear, the working efficiency of each RB will be further improved.

本发明实施例提供的TRILL网络互联方法为在第二DC的第二边缘RB向第一DC的第一边缘RB发送RB标识信息之后单向的技术方案,在第一DC的第一边缘RB向第二DC的第二边缘RB发送RB标识信息,和第一DC的第一边缘RB向其他DC的其他边缘RB发送RB标识信息之后,可实现多DC间的网络互联。The TRILL network interconnection method provided by the embodiment of the present invention is a one-way technical solution after the second edge RB of the second DC sends RB identification information to the first edge RB of the first DC. After the second edge RB of the second DC sends the RB identification information, and the first edge RB of the first DC sends the RB identification information to other edge RBs of other DCs, network interconnection among multiple DCs can be realized.

本发明实施例提供的TRILL网络互联方法的一种实现方式,通过第二DC的第二边缘RB向第一DC的第一边缘RB发送的RB标识信息可区分第一DC内的RB和第二DC内的RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。第一边缘RB可根据接收到的第二DC内的RB标识信息建立分发树转发表项,同时第一边缘RB将接收到的RB标识信息发送至第一DC内的其他RB中,以便第一DC内的其他RB根据接收到的第二DC内的RB标识信息建立分发树转发表项。由此,可实现在第一边缘RB和第二边缘RB无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。In an implementation of the TRILL network interconnection method provided by the embodiment of the present invention, the RB identification information sent by the second edge RB of the second DC to the first edge RB of the first DC can distinguish the RB in the first DC from the second edge RB. The RBs in the DC make each RB in the first DC and the RBs in the second DC have unique identification information. The first edge RB can establish a distribution tree forwarding entry according to the received RB identification information in the second DC, and at the same time, the first edge RB sends the received RB identification information to other RBs in the first DC, so that the first Other RBs in the DC establish distribution tree forwarding entries according to the received RB identification information in the second DC. Thus, under the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the message, the message can be successfully sent to the RB of another DC, so that the RB can check the TRILL message header In the "M" field, the message is multicast according to the distribution tree entry, which reduces the allocation of hardware resources used by the edge RB to support message encapsulation and decapsulation, and the message forwarding efficiency is high.

本发明实施例提供的TRILL网络互联方法的另一种实现方式,与现有技术二中第一DC的第一边缘RB和第二DC的第二边缘RB对报文进行解封装和封装相比,上述报文的发送过程省去了第二边缘RB的解封装步骤,同时,各DC边缘RB以外的其他RB无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。Another implementation of the TRILL network interconnection method provided by the embodiment of the present invention is compared with the decapsulation and encapsulation of the message by the first edge RB of the first DC and the second edge RB of the second DC in the second prior art , the sending process of the above message omits the decapsulation step of the second edge RB, and at the same time, other RBs other than the edge RBs of each DC do not need to calculate the next-hop distribution tree forwarding table items for the RBs in other DCs, reducing The small edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, further reducing the workload of other RBs.

此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,上述两种实现方式中第一边缘RB和第二边缘RB分别管理各自所在DC的路由表,因此可支持大规模的DC间的互联。In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, in the above two implementations the first edge RB and the second edge RB manage The routing table of their respective DCs, so it can support large-scale interconnection between DCs.

实施例四Embodiment four

本发明实施例提供了一种TRILL网络互联装置,所述装置为第一数据中心DC中的第一边缘RB,如图5所示,所述第一边缘路由网桥RB包括:An embodiment of the present invention provides a TRILL network interconnection device. The device is a first edge RB in a first data center DC. As shown in FIG. 5, the first edge routing bridge RB includes:

接收单元51,用于接收第二DC的第二边缘RB发送的RB标识信息。The receiving unit 51 is configured to receive RB identification information sent by the second edge RB of the second DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,以便所述第一边缘RB根据所述RB标识信息建立分发树转发表项,根据所述分发树转发表项发送报文。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID, so that the first edge RB can establish The distribution tree forwarding entry is used to send the message according to the distribution tree forwarding entry.

具体的,所述接收单元51还用于接收所述第二边缘RB通过边界网关协议BGP发送的所述RB标识信息。Specifically, the receiving unit 51 is further configured to receive the RB identification information sent by the second edge RB through the Border Gateway Protocol BGP.

所述接收单元51在接收所述RB标识信息时,在接收与现有技术中BGP内容类型相同的信息之外,还接收第一附加信息。所述第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB,所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。When receiving the RB identification information, the receiving unit 51 receives the first additional information in addition to the information of the same type as the BGP content in the prior art. The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is the root RB of the distribution tree, and the first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC.

处理单元52,用于根据所述接收单元51接收到的所述RB标识信息建立分发树转发表项。The processing unit 52 is configured to establish a distribution tree forwarding entry according to the RB identification information received by the receiving unit 51 .

处理单元52除了根据第一DC内RB标识信息建立针对第一DC内部的分发树转发表项以外,还根据接收单元51接收到的第二DC内的RB标识信息建立针对第二DC内各树根RB的分发树转发表项。In addition to establishing the distribution tree forwarding entry for the first DC according to the RB identification information in the first DC, the processing unit 52 also establishes a distribution tree forwarding entry for each tree in the second DC according to the RB identification information in the second DC received by the receiving unit 51. The distribution tree forwarding entry of the root RB.

所述处理单元52,如图6所示,具体包括:The processing unit 52, as shown in FIG. 6 , specifically includes:

计算子单元521,用于根据所述接收单元51接收到的所述RB标识信息通过最短路径SPF算法建立所述分发树转发表项。The calculation subunit 521 is configured to establish the distribution tree forwarding entry through the shortest path SPF algorithm according to the RB identification information received by the receiving unit 51 .

SPF算法将某个RB作为根(ROOT)来计算其到每一个目的RB的距离,各RB在计算时根据一个统一的数据库会计算出路由域的拓扑结构图,该结构图类似于一棵树,在SPF算法中,被称为最短路径树。计算子单元521经过SPF算法的运算可得出作为最短路径树的树根RB到目的RB之间跳数最少的一条路径,并将该路径中与树根RB距离最近的RB标识信息作为分发树转发表项保存至存储单元61。此外,存储单元61还可将计算子单元521通过SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行存储,以便发送子单元522通过端口号可同时向多个目的RB发送报文。即所述第一边缘RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The SPF algorithm uses a certain RB as the root (ROOT) to calculate the distance to each destination RB. When calculating, each RB will calculate the topology structure diagram of the routing domain according to a unified database. The structure diagram is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The calculation subunit 521 can obtain a path with the least number of hops between the root RB and the destination RB as the shortest path tree through the operation of the SPF algorithm, and use the RB identification information closest to the root RB in the path as the distribution tree The forwarding entry is saved to the storage unit 61 . In addition, the storage unit 61 can also store the port list composed of port numbers on the root RB calculated by the calculation subunit 521 through the SPF algorithm as a distribution tree forwarding entry, so that the sending subunit 522 can simultaneously send Multiple destination RBs send packets. That is, the first edge RB obtains the port number of the corresponding next-hop RB, and adds the port number of the corresponding next-hop RB to the distribution tree forwarding entry.

发送子单元522,用于将所述接收单元51接收到的所述RB标识信息转发给所述第一DC中的其他RB。The sending subunit 522 is configured to forward the RB identification information received by the receiving unit 51 to other RBs in the first DC.

为了使第一DC内各RB均可向第二DC内的RB发送报文,发送子单元522将接收单元51接收到的RB标识信息发送给第一DC内的其他RB。其他RB通过其内的计算子单元521可得到向第二DC内RB发送报文用的下一跳RB的RB标识信息,并将该RB标识信息保存至存储单元61。In order to enable each RB in the first DC to send a message to an RB in the second DC, the sending subunit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC. Other RBs can obtain the RB identification information of the next-hop RB for sending messages to the second intra-DC RB through the calculation subunit 521 therein, and save the RB identification information to the storage unit 61 .

所述计算子单元521还用于获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The calculation subunit 521 is further configured to obtain the port number of the corresponding next-hop RB, and add the port number of the corresponding next-hop RB to the distribution tree forwarding entry.

计算子单元521还可将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项保存至存储单元61,通过端口号可同时向多个目的RB发送报文,即所述其他RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到自身建立的分发树转发表项中。The calculation subunit 521 can also save the port list calculated by the SPF algorithm as the port number on the root RB to the storage unit 61 as a distribution tree forwarding entry, and can send messages to multiple destination RBs at the same time through the port number. That is, the other RB obtains the port number of the corresponding next-hop RB, and adds the port number of the corresponding next-hop RB to the distribution tree forwarding entry established by itself.

与现有技术二中在第一边缘RB和第二边缘RB需要对报文进行解封装和封装相比,上述报文发送过程通过第二DC的第二边缘RB向接收单元51发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。计算子单元521根据接收单元51接收到的第二DC内的RB标识信息建立分发树转发表项,发送子单元522将接收单元51接收到的RB标识信息发送至第一DC内的其他RB,以便其他RB的计算子单元521根据接收到的第二DC内的RB标识信息建立分发树转发表项,可实现在第一边缘RB和第二边缘RB无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,第一边缘RB的计算子单元521管理第一DC的路由表,因此可支持大规模的DC间的互联。Compared with the need to decapsulate and encapsulate the message in the first edge RB and the second edge RB in the second prior art, the above message sending process uses the RB identification sent by the second edge RB of the second DC to the receiving unit 51 The information can distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and the RBs in the second DC have unique identification information. The calculation subunit 521 establishes a distribution tree forwarding entry according to the RB identification information received by the receiving unit 51 in the second DC, and the sending subunit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC, So that the calculation subunit 521 of other RBs can establish the distribution tree forwarding table item according to the received RB identification information in the second DC, the premise that there is no need to decapsulate and encapsulate the message at the first edge RB and the second edge RB Next, the message is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL message header, and multicasts the message according to the distribution tree entry, reducing the use of edge RBs to support The allocation of hardware resources for packet encapsulation and decapsulation, and high packet forwarding efficiency. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the calculation subunit 521 of the first edge RB manages the routing table of the first DC, Therefore, large-scale interconnection between DCs can be supported.

进一步的,如图7所示,所述接收单元51还用于接收所述第二边缘RB发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。Further, as shown in FIG. 7, the receiving unit 51 is further configured to receive extended information sent by the second edge RB, where the extended information is used to describe the RB identification information and the root RB in the second DC. Correspondence between VLAN IDs.

第二边缘RB通过BGP向所述接收单元51发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。When the second edge RB sends the RB identification information to the receiving unit 51 through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second additional The information is used to indicate whether it is the root RB, the RB identification information of the root RB, and the corresponding relationship between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information.

所述处理单元52还用于根据VLANID建立所述第一DC中树根RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系。The processing unit 52 is further configured to establish a corresponding relationship between the RB identification information of the root RB in the first DC and the RB identification information of the root RB in the second DC according to the VLAN ID.

当接收单元51接收到第二DC的第二边缘RB发送的第二附加信息后,处理单元52根据其中的扩展信息,即VLANID,寻找第一DC内与该VLANID对应RB的RB标识信息,并将该RB标识信息与第二附加信息中的树根RB的RB标识信息以及VLANID作为一条分发树转发表项保存至存储单元61。After the receiving unit 51 receives the second additional information sent by the second edge RB of the second DC, the processing unit 52 searches for the RB identification information of the RB corresponding to the VLANID in the first DC according to the extended information therein, that is, the VLANID, and The RB identification information, the RB identification information of the root RB in the second additional information, and the VLAN ID are stored in the storage unit 61 as a distribution tree forwarding entry.

封装单元71将TRILL报文头中出口RB名称更改为处理单元52建立的与原出口RB名称即VLANID对应的第一DC内树根RB的RB标识信息,以便第一DC内的RB根据封装单元71封装后的TRILL报文头可将转发至第一DC内的RB中。The encapsulation unit 71 changes the egress RB name in the TRILL message header to the RB identification information of the root RB in the first DC corresponding to the original egress RB name, VLANID, established by the processing unit 52, so that the RBs in the first DC can 71. The encapsulated TRILL packet header may be forwarded to the RBs in the first DC.

作为进一步的技术方案,与现有技术二中第一DC的第一边缘RB和第二DC的第二边缘RB对报文进行解封装和封装相比,上述报文的发送过程只需通过第一DC的边缘RB的封装单元71对报文头进行封装,同时,第一DC的第一边缘RB以外的其他RB的处理单元52无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,第一边缘RB的计算子单元521管理第一DC的路由表,因此可支持大规模的DC间的互联。As a further technical solution, compared with the decapsulation and encapsulation of the message by the first edge RB of the first DC and the second edge RB of the second DC in the prior art 2, the sending process of the above message only needs to go through the first The encapsulation unit 71 of the edge RB of a DC encapsulates the message header, and at the same time, the processing unit 52 of other RBs other than the first edge RB of the first DC does not need to perform next-hop distribution tree forwarding table for RBs in other DCs The calculation of the item reduces the allocation of hardware resources used by edge RBs to support message encapsulation and decapsulation, and the message forwarding efficiency is high, further reducing the workload of other RBs. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the calculation subunit 521 of the first edge RB manages the routing table of the first DC, Therefore, large-scale interconnection between DCs can be supported.

进一步的,所述计算子单元521还可根据接收单元51接收到的RB标识信息随机的建立分发树转发表项。所述随机的建立为第一边缘RB将接收到的第二DC内的RB标识信息与第一DC内任意树根RB标识信息作为一组对应关系。由于第一DC内任意一个RB均可通过该RB的某个端口将报文发送至VLANID对应的VLAN内,因此,通过上述方式也可实现不同DC间互联的技术效果。Further, the calculation subunit 521 may also randomly establish distribution tree forwarding entries according to the RB identification information received by the receiving unit 51 . The random establishment is that the first edge RB takes the received RB identification information in the second DC and any tree root RB identification information in the first DC as a set of correspondences. Since any RB in the first DC can send a message to the VLAN corresponding to the VLANID through a certain port of the RB, the technical effect of interconnection between different DCs can also be achieved through the above method.

实施例五Embodiment five

本发明实施例提供一种TRILL网络互联装置,所述装置为第二数据中心DC中的第二边缘RB,如图8所示,所述第二边缘RB包括:An embodiment of the present invention provides a TRILL network interconnection device. The device is a second edge RB in a second data center DC. As shown in FIG. 8 , the second edge RB includes:

发送单元81,用于向第一DC的第一边缘RB发送RB标识信息。A sending unit 81, configured to send RB identification information to a first edge RB of the first DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID.

发送单元81向第一DC的第一边缘RB发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。The RB identification information sent by the sending unit 81 to the first edge RB of the first DC can distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and the RBs in the second DC have unique identification information.

所述发送单元81还用于通过边界网关协议BGP向所述第一边缘RB发送所述RB标识信息。The sending unit 81 is further configured to send the RB identification information to the first edge RB through a border gateway protocol BGP.

发送单元81通过BGP向所述第一边缘RB发送所述RB标识信息时,除了发送与现有技术中BGP内容类型相同的信息外,还发送如表2所示的第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。以便当第二DC的第二边缘RB的发送单元81向第一DC的第一边缘RB的接收单元51发送所述第一附加信息后,作为接收端的第一边缘RB的计算子单元521根据接收单元51接收到的第二DC内的RB标识信息建立分发树转发表项,发送子单元522将接收单元51接收到的RB标识信息发送至第一DC内的其他RB,以便其他RB的计算子单元521根据接收到的第二DC内的RB标识信息建立分发树转发表项,可实现在第一边缘RB和第二边缘RB无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。When the sending unit 81 sends the RB identification information to the first edge RB through BGP, in addition to sending the same information as the BGP content type in the prior art, it also sends the first additional information shown in Table 2 to indicate In the additional information, whether the RB corresponding to the RB identification information is the root RB of the distribution tree, the first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC. So that after the sending unit 81 of the second edge RB of the second DC sends the first additional information to the receiving unit 51 of the first edge RB of the first DC, the calculation subunit 521 of the first edge RB as the receiving end receives The RB identification information in the second DC received by the unit 51 establishes a distribution tree forwarding entry, and the sending subunit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC, so that the computing subunits of other RBs Unit 521 establishes a distribution tree forwarding table entry according to the received RB identification information in the second DC, which can successfully forward the message without decapsulating and encapsulating the message between the first edge RB and the second edge RB. Send it to the RB of another DC, so that the RB can check the "M" field in the TRILL message header, multicast the message according to the distribution tree entry, and reduce the edge RB's support for message encapsulation and decapsulation. The allocation of hardware resources and high packet forwarding efficiency.

进一步的,所述发送单元81还用于向所述第一边缘RB发送扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。Further, the sending unit 81 is further configured to send extended information to the first edge RB, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLAN ID.

发送单元81通过BGP向所述第一边缘RB发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。以便当第二DC的第二边缘RB的发送单元81向第一DC的第一边缘RB的接收单元51发送所述第一附加信息后,作为接收端的第一边缘RB只需通过第一DC的边缘RB的封装单元71对报文头进行封装,同时,第一DC的第一边缘RB以外的其他RB的处理单元52无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。When the sending unit 81 sends the RB identification information to the first edge RB through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second additional The information is used to indicate whether it is the root RB, the RB identification information of the root RB, and the corresponding relationship between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information. So that when the sending unit 81 of the second edge RB of the second DC sends the first additional information to the receiving unit 51 of the first edge RB of the first DC, the first edge RB as the receiving end only needs to pass the The encapsulation unit 71 of the edge RB encapsulates the message header, and at the same time, the processing unit 52 of other RBs other than the first edge RB of the first DC does not need to calculate the next-hop forwarding distribution tree forwarding entry for the RBs in other DCs , reducing the allocation of hardware resources used by edge RBs to support packet encapsulation and decapsulation, high packet forwarding efficiency, and further reducing the workload of other RBs.

实施例六Embodiment six

本发明实施例提供了一种TRILL网络互联系统,如图9所示,所述系统由第一DC的第一边缘RB91和第二DC的第二边缘RB92组成。An embodiment of the present invention provides a TRILL network interconnection system. As shown in FIG. 9 , the system is composed of a first edge RB91 of a first DC and a second edge RB92 of a second DC.

所述第二边缘RB92向第一边缘RB91发送RB标识信息。The second edge RB92 sends RB identification information to the first edge RB91.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID.

所述第一边缘RB91接收第二DC的第二边缘RB92发送的RB标识信息。The first edge RB91 receives the RB identification information sent by the second edge RB92 of the second DC.

具体的,第二边缘RB92可通过边界网关协议BGP向所述第一边缘RB91发送所述RB标识信息。Specifically, the second edge RB92 may send the RB identification information to the first edge RB91 through a border gateway protocol BGP.

第二边缘RB92通过BGP向所述第一边缘RB91发送所述RB标识信息时,除了发送与现有技术中BGP内容类型相同的信息外,还发送如表2所示的第一附加信息,所述第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB,所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。When the second edge RB92 sends the RB identification information to the first edge RB91 through BGP, in addition to sending the same information as the BGP content type in the prior art, it also sends the first additional information shown in Table 2, so The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is the root RB of the distribution tree, and the first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC.

所述第一边缘RB91接收到的所述RB标识信息建立分发树转发表项。The RB identification information received by the first edge RB91 establishes a distribution tree forwarding entry.

所述第一边缘RB91除了根据第一DC内RB标识信息建立针对第一DC内部的分发树转发表项以外,还根据接收到的第二DC内的RB标识信息建立针对第二DC内各树根RB的分发树转发表项。In addition to establishing the distribution tree forwarding entry for the first DC according to the RB identification information in the first DC, the first edge RB91 also establishes a distribution tree forwarding entry for each tree in the second DC according to the received RB identification information in the second DC. The distribution tree forwarding entry of the root RB.

所述第一边缘RB91根据接收到的所述RB标识信息通过最短路径SPF算法建立所述分发树转发表项。The first edge RB91 establishes the distribution tree forwarding entry through the shortest path SPF algorithm according to the received RB identification information.

SPF算法将某个RB作为根(ROOT)来计算其到每一个目的RB的距离,各RB在计算时根据一个统一的数据库会计算出路由域的拓扑结构图,该结构图类似于一棵树,在SPF算法中,被称为最短路径树。第一边缘RB91经过SPF算法的运算可得出作为最短路径树的树根RB到目的RB之间跳数最少的一条路径,并将该路径中与树根RB距离最近的RB标识信息作为分发树转发表项进行保存。此外,第一边缘RB91还可将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行保存,以便通过端口号可同时向多个目的RB发送报文。即所述第一边缘RB91获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The SPF algorithm uses a certain RB as the root (ROOT) to calculate the distance to each destination RB. When calculating, each RB will calculate the topology structure diagram of the routing domain according to a unified database. The structure diagram is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The first edge RB91 can obtain a path with the least number of hops between the root RB of the shortest path tree and the destination RB through the operation of the SPF algorithm, and use the RB identification information closest to the root RB in the path as the distribution tree Forward table entries to save. In addition, the first edge RB91 can also save the port list composed of the port numbers on the root RB calculated by the SPF algorithm as a distribution tree forwarding entry, so that packets can be sent to multiple destination RBs at the same time through the port numbers. That is, the first edge RB91 obtains the port number of the corresponding next-hop RB, and adds the port number of the corresponding next-hop RB into the distribution tree forwarding entry.

所述第一边缘RB91将接收到的所述RB标识信息转发给所述第一DC中的其他RB。The first edge RB91 forwards the received RB identification information to other RBs in the first DC.

为了使第一DC内各RB均可向第二DC内的RB发送报文,第一边缘RB91将接收到的RB标识信息发送给第一DC内的其他RB。其他RB可得到向第二DC内RB发送报文用的下一跳RB的RB标识信息,并将该RB标识信息进行保存。In order to enable all RBs in the first DC to send packets to RBs in the second DC, the first edge RB91 sends the received RB identification information to other RBs in the first DC. The other RBs can obtain the RB identification information of the next-hop RB used to send the message to the RB in the second DC, and save the RB identification information.

所述第一边缘RB91还用于获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The first edge RB91 is further configured to obtain the port number of the corresponding next-hop RB, and add the port number of the corresponding next-hop RB to the distribution tree forwarding entry.

第一边缘RB91还可将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行保存,通过端口号可同时向多个目的RB发送报文,即所述获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到自身建立的分发树转发表项中。The first edge RB91 can also save the port list calculated by the SPF algorithm as the port number on the root RB as a distribution tree forwarding entry, and can send messages to multiple destination RBs at the same time through the port number, that is, the above-mentioned Obtain the port number corresponding to the next-hop RB, and add the port number corresponding to the next-hop RB to the distribution tree forwarding entry established by itself.

与现有技术二中在第一边缘RB91和第二边缘RB92需要对报文进行解封装和封装相比,上述报文发送过程通过第二DC的第二边缘RB92向第一DC的第一边缘RB91发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。第一边缘RB91根据接收到的第二DC内的RB标识信息建立分发树转发表项,并将接收到的RB标识信息发送至第一DC内的其他RB,以便其他RB接收到第二DC内的RB标识信息建立分发树转发表项,可实现在第一边缘RB91和第二边缘RB92无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB91或第二边缘RB92管理第一DC和第二DC内全部路由表相比,第一边缘RB91管理第一DC的路由表,因此可支持大规模的DC间的互联。Compared with the need to decapsulate and encapsulate the message at the first edge RB91 and the second edge RB92 in the second prior art, the above message sending process passes through the second edge RB92 of the second DC to the first edge of the first DC The RB identification information sent by the RB91 can distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and the RBs in the second DC have unique identification information. The first edge RB91 establishes a distribution tree forwarding entry according to the received RB identification information in the second DC, and sends the received RB identification information to other RBs in the first DC, so that other RBs can receive The distribution tree forwarding entry can be established based on the RB identification information, which can successfully send the message to the RB of another DC on the premise that the first edge RB91 and the second edge RB92 do not need to decapsulate and encapsulate the message, so that The RB checks the "M" field in the TRILL message header, multicasts the message according to the distribution tree entry, reduces the allocation of hardware resources used by the edge RB to support message encapsulation and decapsulation, and improves the message forwarding efficiency. high. In addition, compared with the first edge RB91 or the second edge RB92 in the prior art to manage all the routing tables in the first DC and the second DC, the first edge RB91 manages the routing table of the first DC, so it can support large-scale interconnection between DCs.

进一步的,第一边缘RB91还用于接收所述第二边缘RB92发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。Further, the first edge RB91 is further configured to receive the extended information sent by the second edge RB92, the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLANID.

第二边缘RB92通过BGP向第一边缘RB91发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。When the second edge RB92 sends the RB identification information to the first edge RB91 through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second additional information It is used to indicate whether it is the root RB, the RB identification information of the root RB, and the corresponding relationship between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information.

第一边缘RB91还用于根据VLANID建立所述第一DC中树根RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系。The first edge RB91 is further configured to establish a correspondence between the RB identification information of the root RB in the first DC and the RB identification information of the root RB in the second DC according to the VLANID.

当第一边缘RB91接收到第二DC的第二边缘RB92发送的第二附加信息后,根据其中的扩展信息,即VLANID,寻找第一DC内与该VLANID对应的树根RB标识信息,并将该RB标识信息与第二附加信息中的树根RB的RB标识信息以及VLANID作为一条分发树转发表项进行保存。After receiving the second additional information sent by the second edge RB92 of the second DC, the first edge RB91 searches for the root RB identification information corresponding to the VLANID in the first DC according to the extended information in it, that is, the VLANID, and sends The RB identification information, the RB identification information of the root RB and the VLAN ID in the second additional information are saved as a distribution tree forwarding entry.

第一边缘RB91将TRILL报文头中出口RB名称更改为与原出口RB名称即VLANID对应的第一DC内树根RB的RB标识信息,以便第一DC内的第一边缘RB91封装后的TRILL报文头可转发至第一DC内的RB中。The first edge RB91 changes the egress RB name in the TRILL packet header to the RB identification information of the root RB in the first DC corresponding to the original egress RB name, VLANID, so that the TRILL encapsulated by the first edge RB91 in the first DC The packet header can be forwarded to the RBs in the first DC.

作为进一步的技术方案,与现有技术二中第一DC的第一边缘RB91和第二DC的第二边缘RB92对报文进行解封装和封装相比,上述报文的发送过程只需通过第一DC的边缘RB对报文头进行封装,同时,第一DC的第一边缘RB91以外的其他RB无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。此外,与现有技术一中通过第一边缘RB91或第二边缘RB92管理第一DC和第二DC内全部路由表相比,第一边缘RB91管理第一DC的路由表,因此可支持大规模的DC间的互联。As a further technical solution, compared with the decapsulation and encapsulation of the message by the first edge RB91 of the first DC and the second edge RB92 of the second DC in the second prior art, the sending process of the above message only needs to pass through the second The edge RB of a DC encapsulates the message header, and at the same time, other RBs other than the first edge RB91 of the first DC do not need to calculate the next-hop distribution tree forwarding table items for RBs in other DCs, reducing the number of edge RBs The allocation of hardware resources used to support message encapsulation and decapsulation, the message forwarding efficiency is high, and the workload of other RBs is further reduced. In addition, compared with the first edge RB91 or the second edge RB92 in the prior art to manage all the routing tables in the first DC and the second DC, the first edge RB91 manages the routing table of the first DC, so it can support large-scale interconnection between DCs.

本发明实施例提供的TRILL网络互联系统为第二边缘RB92,例如第二DC的第二边缘RB92,向第一边缘RB91,例如第一DC的第一边缘RB91,发送RB标识信息时单向的技术方案,当第一DC的第一边缘RB91向第二DC的第二边缘RB92发送RB标识信息,和第一DC的第一边缘RB91向其他DC的其他边缘RB发送RB标识信息时,可实现多DC间的网络互联。In the TRILL network interconnection system provided by the embodiment of the present invention, the second edge RB92, such as the second edge RB92 of the second DC, sends the RB identification information to the first edge RB91, such as the first edge RB91 of the first DC, unidirectionally. Technical solution, when the first edge RB91 of the first DC sends RB identification information to the second edge RB92 of the second DC, and the first edge RB91 of the first DC sends RB identification information to other edge RBs of other DCs, it can be realized Network interconnection among multiple DCs.

实施例七Embodiment seven

本发明实施例提供了一种TRILL网络互联装置,所述装置为第一数据中心DC中的第一边缘RB,如图10所示,所述第一边缘RB包括:An embodiment of the present invention provides a TRILL network interconnection device. The device is a first edge RB in a first data center DC. As shown in FIG. 10 , the first edge RB includes:

接收器1001,用于接收第二DC的第二边缘RB发送的RB标识信息。The receiver 1001 is configured to receive RB identification information sent by the second edge RB of the second DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合,以便处理器1002根据所述RB标识信息建立分发树转发表项,发射器1003根据所述分发树转发表项发送报文。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID, so that the processor 1002 can establish a distribution tree according to the RB identity information. entry, the transmitter 1003 sends the message according to the distribution tree forwarding entry.

具体的,所述接收器1001还用于接收所述第二边缘RB通过边界网关协议BGP发送的所述RB标识信息。Specifically, the receiver 1001 is further configured to receive the RB identification information sent by the second edge RB through the Border Gateway Protocol BGP.

所述接收器1001在接收所述RB标识信息时,在接收与现有技术中BGP内容类型相同的信息之外,还接收第一附加信息。所述第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB,所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。When receiving the RB identification information, the receiver 1001 receives first additional information in addition to receiving the same type of information as the BGP content type in the prior art. The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is the root RB of the distribution tree, and the first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC.

处理器1002,用于根据所述接收器1001接收到的所述RB标识信息建立分发树转发表项。The processor 1002 is configured to establish a distribution tree forwarding entry according to the RB identification information received by the receiver 1001 .

所述处理器1002除了根据第一DC内RB标识信息建立针对第一DC内部的分发树转发表项以外,还根据接收器1001接收到的第二DC内的RB标识信息建立针对第二DC内各树根RB的分发树转发表项。In addition to establishing the distribution tree forwarding entry for the first DC according to the RB identification information in the first DC, the processor 1002 also establishes a distribution tree forwarding entry for the second DC according to the RB identification information received by the receiver 1001 in the second DC. Distribution tree forwarding entries of each tree root RB.

所述处理器1002,还用于根据所述接收器1001接收到的所述RB标识信息通过最短路径SPF算法建立所述分发树转发表项。The processor 1002 is further configured to establish the distribution tree forwarding entry through the shortest path SPF algorithm according to the RB identification information received by the receiver 1001 .

SPF算法将某个RB作为根(ROOT)来计算其到每一个目的RB的距离,各RB在计算时根据一个统一的数据库会计算出路由域的拓扑结构图,该结构图类似于一棵树,在SPF算法中,被称为最短路径树。处理器1002经过SPF算法的运算可得出作为最短路径树的树根RB到目的RB之间跳数最少的一条路径,并将该路径中与树根RB距离最近的RB标识信息作为分发树转发表项保存到存储器1004。此外,存储器1004可将处理器1002根据SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行存储,以便发射器1003通过端口号可同时向多个目的RB发送报文。即所述第一边缘RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The SPF algorithm uses a certain RB as the root (ROOT) to calculate the distance to each destination RB. When calculating, each RB will calculate the topology structure diagram of the routing domain according to a unified database. The structure diagram is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The processor 1002 can obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree through the operation of the SPF algorithm, and use the RB identification information closest to the root RB in the path as the distribution tree transfer Posted items are saved to memory 1004 . In addition, the memory 1004 can store the port list composed of the port numbers on the root RB calculated by the processor 1002 according to the SPF algorithm as a distribution tree forwarding entry, so that the transmitter 1003 can send multiple destination RBs at the same time through the port numbers Send message. That is, the first edge RB obtains the port number of the corresponding next-hop RB, and adds the port number of the corresponding next-hop RB to the distribution tree forwarding entry.

发射器1003,用于将所述接收器1001接收到的所述RB标识信息转发给所述第一DC中的其他RB。The transmitter 1003 is configured to forward the RB identification information received by the receiver 1001 to other RBs in the first DC.

为了使第一DC内各RB均可向第二DC内的RB发送报文,发射器1003将接收器1001接收到的RB标识信息发送给第一DC内的其他RB。其他RB通过其内的处理器1002可得到向第二DC内RB发送报文用的下一跳RB的RB标识信息,并将该RB标识信息保存到存储器1004。In order to enable all RBs in the first DC to send packets to RBs in the second DC, the transmitter 1003 sends the RB identification information received by the receiver 1001 to other RBs in the first DC. The other RBs can obtain the RB identification information of the next-hop RB used to send a message to the RB in the second DC through the processor 1002 therein, and store the RB identification information in the memory 1004 .

所述处理器1002还用于获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The processor 1002 is further configured to acquire a port number corresponding to the next-hop RB, and add the port number corresponding to the next-hop RB to the distribution tree forwarding entry.

存储器1004将所述处理器1002根据SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行存储。发射器1003通过端口号可同时向多个目的RB发送报文,即所述其他RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到自身建立的分发树转发表项中。The memory 1004 stores the port list calculated by the processor 1002 according to the SPF algorithm as the port number on the root RB as the distribution tree forwarding entry. The transmitter 1003 can send messages to multiple destination RBs at the same time through the port number, that is, the other RBs obtain the port number of the corresponding next-hop RB, and add the port number of the corresponding next-hop RB to the distribution tree established by itself In the forwarding entry.

与现有技术二中第一DC的第一边缘RB和第二DC的第二边缘RB对报文进行解封装和封装相比,上述报文发送过程通过第二DC的第二边缘RB向接收器1001发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。处理器1002根据接收器1001接收到的第二DC内的RB标识信息建立分发树转发表项,发射器1003将接收器1001接收到的RB标识信息发送至第一DC内的其他RB,以便其他RB的处理器1002根据接收到的第二DC内的RB标识信息建立分发树转发表项,可实现在第一边缘RB和第二边缘RB无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,第一边缘RB的处理器1002管理第一DC的路由表,因此可支持大规模的DC间的互联。Compared with the decapsulation and encapsulation of the message by the first edge RB of the first DC and the second edge RB of the second DC in prior art 2, the above message sending process passes the second edge RB of the second DC to the receiver The RB identification information sent by the device 1001 can distinguish the RBs in the first DC and the RBs in the second DC, so that the RBs in the first DC and the RBs in the second DC have unique identification information. The processor 1002 establishes a distribution tree forwarding entry according to the RB identification information received by the receiver 1001 in the second DC, and the transmitter 1003 sends the RB identification information received by the receiver 1001 to other RBs in the first DC, so that other The processor 1002 of the RB establishes a distribution tree forwarding table item according to the received RB identification information in the second DC, which can implement the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the message. The message is successfully sent to the RB of another DC, so that the RB can check the "M" field in the TRILL message header, and multicast the message according to the distribution tree entry, reducing the number of edge RBs used to support message encapsulation and the allocated amount of hardware resources for decapsulation, and the packet forwarding efficiency is high. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the processor 1002 of the first edge RB manages the routing table of the first DC, so It can support large-scale interconnection between DCs.

进一步的,所述接收器1001还用于接收所述第二边缘RB发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。Further, the receiver 1001 is further configured to receive extended information sent by the second edge RB, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLANID .

第二边缘RB通过BGP向所述接收器1001发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。When the second edge RB sends the RB identification information to the receiver 1001 through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second additional The information is used to indicate whether it is the root RB, the RB identification information of the root RB, and the corresponding relationship between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information.

所述处理器1002还用于根据VLANID建立所述第一DC中树根RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系。The processor 1002 is further configured to establish a corresponding relationship between the RB identification information of the root RB in the first DC and the RB identification information of the root RB in the second DC according to the VLANID.

当接收器1001接收到第二DC的第二边缘RB发送的第二附加信息后,处理器1002根据其中的扩展信息,即VLANID,寻找第一DC内与该VLANID对应RB的RB标识信息,并将该RB标识信息与第二附加信息中的树根RB的RB标识信息以及VLANID作为一条分发树转发表项保存到存储器1004。After the receiver 1001 receives the second additional information sent by the second edge RB of the second DC, the processor 1002 searches for the RB identification information of the RB corresponding to the VLANID in the first DC according to the extended information therein, that is, the VLANID, and The RB identification information, the RB identification information of the root RB in the second additional information, and the VLAN ID are stored in the memory 1004 as a distribution tree forwarding entry.

处理器1002将TRILL报文头中出口RB名称更改为与原出口RB名称即VLANID对应的第一DC内树根RB的RB标识信息,以便第一DC内的RB根据处理器1002封装后的TRILL报文头可将转发至第一DC内的RB中。The processor 1002 changes the name of the egress RB in the header of the TRILL message to the RB identification information of the root RB in the first DC corresponding to the original egress RB name, i.e. VLANID, so that the RBs in the first DC are based on the TRILL information encapsulated by the processor 1002. The packet header can be forwarded to the RBs in the first DC.

作为进一步的技术方案,与现有技术二中第一DC的第一边缘RB和第二DC的第二边缘RB对报文进行解封装和封装相比,上述报文的发送过程只需通过第一DC的边缘RB的处理器1002对报文头进行封装,同时,第一DC的第一边缘RB以外的其他RB的处理器1002无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。此外,与现有技术一中通过第一边缘RB或第二边缘RB管理第一DC和第二DC内全部路由表相比,第一边缘RB的处理器1002管理第一DC的路由表,因此可支持大规模的DC间的互联。As a further technical solution, compared with the decapsulation and encapsulation of the message by the first edge RB of the first DC and the second edge RB of the second DC in the prior art 2, the sending process of the above message only needs to go through the first The processor 1002 of the edge RB of a DC encapsulates the message header, and at the same time, the processors 1002 of other RBs other than the first edge RB of the first DC do not need to perform next-hop distribution tree forwarding table for RBs in other DCs The calculation of the item reduces the allocation of hardware resources used by edge RBs to support message encapsulation and decapsulation, and the message forwarding efficiency is high, further reducing the workload of other RBs. In addition, compared with prior art 1 where the first edge RB or the second edge RB manages all the routing tables in the first DC and the second DC, the processor 1002 of the first edge RB manages the routing table of the first DC, so It can support large-scale interconnection between DCs.

进一步的,所述处理器1002还可根据接收器1001接收到的RB标识信息随机的建立分发树转发表项。所述随机的建立为第一边缘RB将接收到的第二DC内的RB标识信息与第一DC内任意树根RB标识信息作为一组对应关系。由于第一DC内任意一个RB均可通过该RB的某个端口将报文发送至VLANID对应的VLAN内,因此,通过上述方式也可实现不同DC间互联的技术效果。Further, the processor 1002 may also randomly establish distribution tree forwarding entries according to the RB identification information received by the receiver 1001 . The random establishment is that the first edge RB takes the received RB identification information in the second DC and any tree root RB identification information in the first DC as a set of correspondences. Since any RB in the first DC can send a message to the VLAN corresponding to the VLANID through a certain port of the RB, the technical effect of interconnection between different DCs can also be achieved through the above method.

实施例八Embodiment eight

本发明实施例提供一种TRILL网络互联装置,所述装置为第二数据中心DC中的第二边缘RB,如图11所示,所述第二边缘RB包括:An embodiment of the present invention provides a TRILL network interconnection device. The device is a second edge RB in a second data center DC. As shown in FIG. 11 , the second edge RB includes:

发射器1101,用于向第一DC的第一边缘RB发送RB标识信息。The transmitter 1101 is configured to send RB identification information to a first edge RB of the first DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID.

发射器1101向第一DC的第一边缘RB发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。The RB identification information sent by the transmitter 1101 to the first edge RB of the first DC can distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and the RBs in the second DC have unique identification information.

所述发射器1101还用于通过边界网关协议BGP向所述第一边缘RB发送所述RB标识信息。The transmitter 1101 is further configured to send the RB identification information to the first edge RB through a border gateway protocol BGP.

发射器1101通过BGP向所述第一边缘RB发送所述RB标识信息时,除了发送与现有技术中BGP内容类型相同的信息外,还发送如表2所示的第一附加信息,所述第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB,所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。以便当第二DC的第二边缘RB的发射器1101向第一DC的第一边缘RB的接收器1001发送所述第一附加信息后,作为接收端的第一边缘RB的处理器1002根据接收器1001接收到的第二DC内的RB标识信息建立分发树转发表项,发射器1003将接收器1001接收到的RB标识信息发送至第一DC内的其他RB,以便其他RB的处理器1002根据接收到的第二DC内的RB标识信息建立分发树转发表项,可实现在第一边缘RB和第二边缘RB无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。When the transmitter 1101 sends the RB identification information to the first edge RB through BGP, in addition to sending the same information as the BGP content type in the prior art, it also sends the first additional information shown in Table 2, the The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is the root RB of the distribution tree, and the first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC. So that when the transmitter 1101 of the second edge RB of the second DC sends the first additional information to the receiver 1001 of the first edge RB of the first DC, the processor 1002 of the first edge RB as the receiving end according to the receiver 1001 1001 The received RB identification information in the second DC establishes a distribution tree forwarding entry, and the transmitter 1003 sends the RB identification information received by the receiver 1001 to other RBs in the first DC, so that the processors 1002 of other RBs according to The received RB identification information in the second DC establishes a distribution tree forwarding table entry, which can successfully send the message to another edge RB and the second edge RB without decapsulating and encapsulating the message. In the RB of a DC, the RB checks the "M" field in the TRILL message header, multicasts the message according to the distribution tree entry, and reduces the hardware resources used by the edge RB to support message encapsulation and decapsulation The allocation amount is high, and the message forwarding efficiency is high.

进一步的,所述发射器1101还用于向所述第一边缘RB发送扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。Further, the transmitter 1101 is further configured to send extended information to the first edge RB, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLAN ID.

发射器1101通过BGP向所述第一边缘RB发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。以便当第二DC的第二边缘RB的发射器1101向第一DC的第一边缘RB的接收器1001发送所述第二附加信息后,作为接收端的第一边缘RB只需通过第一DC的边缘RB的处理器1002对报文头进行封装,同时,第一DC的第一边缘RB以外的其他RB的处理器1002无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。When the transmitter 1101 sends the RB identification information to the first edge RB through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second additional The information is used to indicate whether it is the root RB, the RB identification information of the root RB, and the corresponding relationship between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information. So that when the transmitter 1101 of the second edge RB of the second DC sends the second additional information to the receiver 1001 of the first edge RB of the first DC, the first edge RB as the receiving end only needs to pass the The processor 1002 of the edge RB encapsulates the message header, and at the same time, the processors 1002 of other RBs other than the first edge RB of the first DC do not need to calculate the next-hop distribution tree forwarding table items for the RBs in other DCs , reducing the allocation of hardware resources used by edge RBs to support packet encapsulation and decapsulation, high packet forwarding efficiency, and further reducing the workload of other RBs.

实施例九Embodiment nine

本发明实施例提供了一种TRILL网络互联系统,如图12所示,所述系统由第一边缘RB1201和所述的第二边缘RB1202组成。An embodiment of the present invention provides a TRILL network interconnection system. As shown in FIG. 12 , the system consists of a first edge RB1201 and the second edge RB1202.

所述第二边缘RB1202,例如第二DC的第二边缘RB1202,向第一边缘RB1201,例如第一DC的第一边缘RB1201,发送RB标识信息。The second edge RB1202, for example, the second edge RB1202 of the second DC, sends RB identification information to the first edge RB1201, for example, the first edge RB1201 of the first DC.

其中,所述RB标识信息中携带有所述第二DC中树根RB的RB身份标识ID和所述第二DC身份标识ID的组合。Wherein, the RB identity information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID.

所述第一边缘RB1201接收第二DC的第二边缘RB1202发送的RB标识信息。The first edge RB1201 receives the RB identification information sent by the second edge RB1202 of the second DC.

具体的,第二边缘RB1202可通过边界网关协议BGP向所述第一边缘RB1201发送所述RB标识信息。Specifically, the second edge RB1202 may send the RB identification information to the first edge RB1201 through a border gateway protocol BGP.

第二边缘RB1202通过BGP向所述第一边缘RB1201发送所述RB标识信息时,除了发送与现有技术中BGP内容类型相同的信息外,还发送如表2所示的第一附加信息,所述第一附加信息用于表示附加信息中RB标识信息对应的RB是否为分发树树根RB,所述第一附加信息还包含有RB标识信息。可选的,在第一附加信息中还包含有与RB标识信息对应的VLANID,用于匹配第一DC内的数据格式。When the second edge RB1202 sends the RB identification information to the first edge RB1201 through BGP, in addition to sending the same information as the BGP content type in the prior art, it also sends the first additional information shown in Table 2, so The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is the root RB of the distribution tree, and the first additional information also includes the RB identification information. Optionally, the VLAN ID corresponding to the RB identification information is also included in the first additional information, for matching the data format in the first DC.

所述第一边缘RB1201接收到的所述RB标识信息建立分发树转发表项。The RB identification information received by the first edge RB1201 establishes a distribution tree forwarding entry.

所述第一边缘RB1201除了根据第一DC内RB标识信息建立针对第一DC内部的分发树转发表项以外,还根据接收到的第二DC内的RB标识信息建立针对第二DC内各树根RB的分发树转发表项。In addition to establishing the distribution tree forwarding entry for the first DC according to the RB identification information in the first DC, the first edge RB 1201 also establishes a distribution tree forwarding entry for each tree in the second DC according to the received RB identification information in the second DC. The distribution tree forwarding entry of the root RB.

所述第一边缘RB1201根据接收到的所述RB标识信息通过最短路径SPF算法建立所述分发树转发表项。The first edge RB1201 establishes the distribution tree forwarding entry through the shortest path SPF algorithm according to the received RB identification information.

SPF算法将某个RB作为根(ROOT)来计算其到每一个目的RB的距离,各RB在计算时根据一个统一的数据库会计算出路由域的拓扑结构图,该结构图类似于一棵树,在SPF算法中,被称为最短路径树。第一边缘RB1201经过SPF算法的运算可得出作为最短路径树的树根RB到目的RB之间跳数最少的一条路径,并将该路径中与树根RB距离最近的RB标识信息作为分发树转发表项进行保存。此外,第一边缘RB1201还可将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行保存,以便通过端口号可同时向多个目的RB发送报文。即所述第一边缘RB1201获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The SPF algorithm uses a certain RB as the root (ROOT) to calculate the distance to each destination RB. When calculating, each RB will calculate the topology structure diagram of the routing domain according to a unified database. The structure diagram is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The first edge RB1201 can obtain a path with the least number of hops between the root RB of the shortest path tree and the destination RB through the operation of the SPF algorithm, and use the RB identification information closest to the root RB in the path as the distribution tree Forward table entries to save. In addition, the first edge RB1201 can also save the port list composed of port numbers on the root RB calculated by the SPF algorithm as a distribution tree forwarding entry, so that packets can be sent to multiple destination RBs at the same time through the port numbers. That is, the first edge RB1201 obtains the port number of the corresponding next-hop RB, and adds the port number of the corresponding next-hop RB into the distribution tree forwarding entry.

所述第一边缘RB1201将接收到的所述RB标识信息转发给所述第一DC中的其他RB。The first edge RB1201 forwards the received RB identification information to other RBs in the first DC.

为了使第一DC内各RB均可向第二DC内的RB发送报文,第一边缘RB1201将接收到的RB标识信息发送给第一DC内的其他RB。其他RB可得到向第二DC内RB发送报文用的下一跳RB的RB标识信息,并将该RB标识信息进行保存。In order to enable all RBs in the first DC to send packets to RBs in the second DC, the first edge RB 1201 sends the received RB identification information to other RBs in the first DC. The other RBs can obtain the RB identification information of the next-hop RB used to send the message to the RB in the second DC, and save the RB identification information.

所述第一边缘RB1201还用于获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到所述分发树转发表项中。The first edge RB1201 is further configured to acquire the port number of the corresponding next-hop RB, and add the port number of the corresponding next-hop RB to the distribution tree forwarding entry.

所述第一边缘RB1201还可将SPF算法计算得到的作为树根RB上的端口号组成的端口列表作为分发树转发表项进行保存,通过端口号可同时向多个目的RB发送报文,即所述其他RB获取对应下一跳RB的端口号,将所述对应下一跳RB的端口号添加到自身建立的分发树转发表项中。The first edge RB1201 can also save the port list calculated by the SPF algorithm as the port number on the root RB as a distribution tree forwarding entry, and can send messages to multiple destination RBs at the same time through the port number, that is, The other RB obtains the port number of the corresponding next-hop RB, and adds the port number of the corresponding next-hop RB to the distribution tree forwarding entry established by itself.

与现有技术二中第一DC的第一边缘RB1201和第二DC的第二边缘RB1202对报文进行解封装和封装相比,上述报文发送过程通过第二DC的第二边缘RB1202向第一DC的第一边缘RB1201发送的RB标识信息可区分第一DC内RB和第二DC内RB,使得第一DC内和第二DC内各RB具有唯一的标识信息。第一边缘RB1201根据接收到的第二DC内的RB标识信息建立分发树转发表项,并将接收到的RB标识信息发送至第一DC内的其他RB,以便其他RB接收到的第二DC内的RB标识信息建立分发树转发表项,可实现在第一边缘RB1201和第二边缘RB1202无需对报文进行解封装和封装的前提下,将报文成功发送至另一DC的RB中,以便所述RB检查TRILL报文头中的“M”字段,根据分发树表项对报文进行组播,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高。此外,与现有技术一中通过第一边缘RB1201或第二边缘RB1202管理第一DC和第二DC内全部路由表相比,第一边缘RB1201管理第一DC的路由表,因此可支持大规模的DC间的互联。Compared with the decapsulation and encapsulation of the message by the first edge RB1201 of the first DC and the second edge RB1202 of the second DC in the second prior art, the above message sending process passes through the second edge RB1202 of the second DC to the second The RB identification information sent by the first edge RB 1201 of a DC can distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and in the second DC has unique identification information. The first edge RB1201 establishes a distribution tree forwarding entry according to the received RB identification information in the second DC, and sends the received RB identification information to other RBs in the first DC, so that other RBs receive The distribution tree forwarding table entry can be established based on the RB identification information in the first edge RB1201 and the second edge RB1202, and the message can be successfully sent to the RB of another DC without decapsulating and encapsulating the message. In order for the RB to check the "M" field in the TRILL message header, multicast the message according to the distribution tree entry, reduce the allocation of hardware resources used by the edge RB to support message encapsulation and decapsulation, and message forwarding efficient. In addition, compared with the first edge RB1201 or the second edge RB1202 in the prior art to manage all the routing tables in the first DC and the second DC, the first edge RB1201 manages the routing table of the first DC, so it can support large-scale interconnection between DCs.

进一步的,第一边缘RB1201还用于接收所述第二边缘RB1202发送的扩展信息,所述扩展信息用于描述所述第二DC中树根RB的RB标识信息和VLANID之间的对应关系。Further, the first edge RB1201 is further configured to receive the extended information sent by the second edge RB1202, where the extended information is used to describe the correspondence between the RB identification information of the root RB in the second DC and the VLANID.

第二边缘RB1202通过BGP向第一边缘RB1201发送所述RB标识信息时,除了发送与现有技术中内容类型相同的信息外,还发送如表3所示的第二附加信息,第二附加信息用于表示是否为树根RB、树根RB的RB标识信息以及树根RB与VLAN的对应关系。其中,树根RB的RB标识信息以及树根RB与VLAN的对应关系为扩展信息。When the second edge RB1202 sends the RB identification information to the first edge RB1201 through BGP, in addition to sending the same content type information as in the prior art, it also sends the second additional information shown in Table 3, the second additional information It is used to indicate whether it is the root RB, the RB identification information of the root RB, and the corresponding relationship between the root RB and the VLAN. Wherein, the RB identification information of the root RB and the corresponding relationship between the root RB and the VLAN are extended information.

第一边缘RB1201还用于根据VLANID建立所述第一DC中树根RB的RB标识信息和所述第二DC中树根RB的RB标识信息的对应关系。The first edge RB 1201 is further configured to establish a corresponding relationship between the RB identification information of the root RB in the first DC and the RB identification information of the root RB in the second DC according to the VLAN ID.

当第一边缘RB1201接收到第二DC的第二边缘RB1202发送的第二附加信息后,根据其中的扩展信息,即VLANID,寻找第一DC内与该VLANID对应RB的RB标识信息,并将该RB标识信息与第二附加信息中的树根RB的RB标识信息以及VLANID作为一条分发树转发表项进行保存。After receiving the second additional information sent by the second edge RB1202 of the second DC, the first edge RB1201 searches for the RB identification information of the RB corresponding to the VLANID in the first DC according to the extended information in it, that is, the VLANID, and sends the The RB identification information and the RB identification information of the root RB in the second additional information and the VLAN ID are saved as a distribution tree forwarding entry.

第一边缘RB1201将TRILL报文头中出口RB名称更改为与原出口RB名称即VLANID对应的第一DC内树根RB的RB标识信息,以便第一DC内的第一边缘RB1201封装后的TRILL报文头可转发至第一DC内的RB中。The first edge RB1201 changes the egress RB name in the TRILL packet header to the RB identification information of the root RB in the first DC corresponding to the original egress RB name, VLANID, so that the TRILL encapsulated by the first edge RB1201 in the first DC The packet header can be forwarded to the RBs in the first DC.

作为进一步的技术方案,与现有技术二中第一DC的第一边缘RB1201和第二DC的第二边缘RB1202对报文进行解封装和封装相比,上述报文的发送过程只需通过第一DC的边缘RB对报文头进行封装,同时,第一DC的第一边缘RB1201以外的其他RB无需对其他DC内的RB进行下一跳转分发树转发表项的计算,减小边缘RB用于支持报文封装和解封装的硬件资源的分配量,报文转发效率高,进一步的减少其他RB的工作量。此外,与现有技术一中通过第一边缘RB1201或第二边缘RB1202管理第一DC和第二DC内全部路由表相比,第一边缘RB1201管理第一DC的路由表,因此可支持大规模的DC间的互联。As a further technical solution, compared with the decapsulation and encapsulation of the message by the first edge RB1201 of the first DC and the second edge RB1202 of the second DC in the second prior art, the sending process of the above message only needs to pass through the second The edge RB of a DC encapsulates the packet header, and at the same time, other RBs other than the first edge RB1201 of the first DC do not need to calculate the next-hop distribution tree forwarding table items for RBs in other DCs, reducing the number of edge RBs The allocation of hardware resources used to support message encapsulation and decapsulation, the message forwarding efficiency is high, and the workload of other RBs is further reduced. In addition, compared with the first edge RB1201 or the second edge RB1202 in the prior art to manage all the routing tables in the first DC and the second DC, the first edge RB1201 manages the routing table of the first DC, so it can support large-scale interconnection between DCs.

本发明实施例提供的TRILL网络互联系统为第二边缘RB1202,例如第二DC的第二边缘RB1202,向第一边缘RB1201,例如第一DC的第一边缘RB1201,发送RB标识信息时单向的技术方案,当第一DC的第一边缘RB1201向第二DC的第二边缘RB1202发送RB标识信息,和第一DC的第一边缘RB1201向其他DC的其他边缘RB发送RB标识信息时,可实现多DC间的网络互联。In the TRILL network interconnection system provided by the embodiment of the present invention, the second edge RB1202, such as the second edge RB1202 of the second DC, sends RB identification information to the first edge RB1201, such as the first edge RB1201 of the first DC. Technical solution, when the first edge RB1201 of the first DC sends RB identification information to the second edge RB1202 of the second DC, and the first edge RB1201 of the first DC sends RB identification information to other edge RBs of other DCs, it can be realized Network interconnection among multiple DCs.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用于使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk and other media that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (19)

1. the translucent interconnected TRILL network interconnected method of multi-link, it is characterized in that, described method comprises:
The first edge routing bridge RB of the first data center DC receives the RB identification information of the second edge RB transmission of the 2nd DC, carries the RB identify label ID of tree root RB in described 2nd DC and the combination of described 2nd DC identify label ID in described RB identification information;
Described first edge RB sets up distribution tree forwarding-table item according to described RB identification information, to send message according to described distribution tree forwarding-table item; Described first edge RB and each RB in a described DC sets up the distribution tree forwarding-table item for a described DC inside according to RB identification information in a described DC, also sets up the distribution tree forwarding-table item for each tree root RB in described 2nd DC according to the RB identification information in described 2nd DC received.
2. method according to claim 1, is characterized in that, the first edge RB of described first data center DC receives the RB identification information of the second edge RB transmission of the 2nd DC, specifically comprises:
Described first edge RB receives the described RB identification information that described second edge RB is sent by Border Gateway Protocol (BGP).
3. method according to claim 2, is characterized in that, described first edge RB sets up distribution tree forwarding-table item according to described RB identification information, specifically comprises:
Described first edge RB sets up described distribution tree forwarding-table item according to described RB identification information by shortest-path first algorithm SPF algorithm;
Described RB identification information is transmitted to other RB in a described DC by described first edge RB, so that other RB described set up the distribution tree forwarding-table item of self by described SPF algorithm according to described RB identification information.
4. method according to claim 3, is characterized in that, described first edge RB sets up described distribution tree forwarding-table item according to described RB identification information by shortest path SPF algorithm, specifically comprises:
Described first edge RB obtains the port numbers of corresponding down hop RB, the port numbers of described corresponding down hop RB is added in described distribution tree forwarding-table item;
Other RB described set up self distribution tree forwarding-table item by described SPF algorithm according to described RB identification information, specifically comprise:
Other RB described obtain the port numbers of corresponding down hop RB, the port numbers of described corresponding down hop RB are added in the distribution tree forwarding-table item self set up.
5. method according to claim 1, is characterized in that, the first edge RB of described first data center DC receives in the RB identification information of the second edge RB transmission of the 2nd DC and also carries:
Virtual LAN VLAN identify label ID, described VLANID are for identifying the VLAN that in a described DC, in tree root RB and described 2nd DC, tree root RB belongs to together;
The first edge RB of described first data center DC receives the RB identification information of the second edge RB transmission of the 2nd DC, specifically comprises:
Described first edge RB receives the extend information that described second edge RB sends, and described extend information is for describing the corresponding relation between the RB identification information of tree root RB in described 2nd DC and VLANID.
6. method according to claim 5, is characterized in that, described first edge RB sets up distribution tree forwarding-table item according to described RB identification information, specifically comprises:
Described first edge RB sets up the corresponding relation of the RB identification information of tree root RB in the RB identification information of tree root RB in a described DC and described 2nd DC according to VLANID, thus described extend information is converted into local distribution tree forwarding-table item.
7. the translucent interconnected TRILL network interconnected method of multi-link, it is characterized in that, described method comprises:
The second edge RB of the second data center DC sends RB identification information to the first edge routing bridge RB of a DC, the RB identify label ID of tree root RB in described 2nd DC and the combination of described 2nd DC identify label ID is carried in described RB identification information, so that described first edge RB sets up distribution tree forwarding-table item according to described RB identification information, send message according to described distribution tree forwarding-table item; Described first edge RB and each RB in a described DC sets up the distribution tree forwarding-table item for a described DC inside according to RB identification information in a described DC, also sets up the distribution tree forwarding-table item for each tree root RB in described 2nd DC according to the RB identification information in described 2nd DC received.
8. method according to claim 7, is characterized in that, the second edge RB of described second data center DC, to the first edge RB transmission RB identification information of a DC, specifically comprises:
Described second edge RB sends described RB identification information by Border Gateway Protocol (BGP) to described first edge RB.
9. method according to claim 8, is characterized in that, described second edge RB also carries in the described RB identification information of described first edge RB transmission:
Virtual LAN VLAN identify label ID, described VLANID are for identifying the VLAN that in a described DC, in tree root RB and described 2nd DC, tree root RB belongs to together;
The second edge RB of described second data center DC, to the first edge RB transmission RB identification information of a DC, specifically comprises:
Described second edge RB sends extend information to described first edge RB, and described extend information is for describing the corresponding relation between the RB identification information of tree root RB in described 2nd DC and VLANID.
10. the translucent interconnected TRILL network interconnect device of multi-link, described device is the first edge routing bridge RB in the first data center DC, it is characterized in that, described first edge RB comprises:
Receiving element, the RB identification information that the second edge RB for receiving the 2nd DC sends, carries the RB identify label ID of tree root RB in described 2nd DC and the combination of described 2nd DC identify label ID in described RB identification information;
Processing unit, sets up distribution tree forwarding-table item for the described RB identification information received according to described receiving element; Described first edge RB and each RB in a described DC sets up the distribution tree forwarding-table item for a described DC inside according to RB identification information in a described DC, also sets up the distribution tree forwarding-table item for each tree root RB in described 2nd DC according to the RB identification information in described 2nd DC received.
11. devices according to claim 10, is characterized in that, described receiving element is also for receiving the described RB identification information that described second edge RB is sent by Border Gateway Protocol (BGP).
12. devices according to claim 11, is characterized in that, described processing unit specifically comprises:
Computation subunit, sets up described distribution tree forwarding-table item for the described RB identification information received according to described receiving element by shortest path SPF algorithm;
Send subelement, the described RB identification information for being received by described receiving element is transmitted to other RB in a described DC.
13. devices according to claim 12, is characterized in that, the port numbers of described corresponding down hop RB, also for obtaining the port numbers of corresponding down hop RB, is added in described distribution tree forwarding-table item by described computation subunit.
14. devices according to claim 10, it is characterized in that, described receiving element is also for receiving the extend information that described second edge RB sends, and described extend information is for describing the corresponding relation between the RB identification information of tree root RB in described 2nd DC and VLANID.
15. device according to claim 14, is characterized in that, described processing unit is also for setting up the corresponding relation of the RB identification information of tree root RB in the RB identification information of tree root RB in a described DC and described 2nd DC according to VLANID.
16. 1 kinds of translucent interconnected TRILL network interconnect devices of multi-link, described device is the second edge routing bridge RB in the second data center DC, it is characterized in that, described second edge RB comprises:
Transmitting element, sends RB identification information for the first edge RB to a DC, carries the RB identify label ID of tree root RB in described 2nd DC and the combination of described 2nd DC identify label ID in described RB identification information; Described first edge RB and each RB in a described DC sets up the distribution tree forwarding-table item for a described DC inside according to RB identification information in a described DC, also sets up the distribution tree forwarding-table item for each tree root RB in described 2nd DC according to the RB identification information in described 2nd DC received.
17. devices according to claim 16, is characterized in that, described transmitting element is also for sending described RB identification information by Border Gateway Protocol (BGP) to described first edge RB.
18. devices according to claim 17, it is characterized in that, described transmitting element is also for sending extend information to described first edge RB, and described extend information is for describing the corresponding relation between the RB identification information of tree root RB in described 2nd DC and VLANID.
19. 1 kinds of translucent interconnected TRILL network interconnected systemss of multi-link, it is characterized in that, described system is made up of the second edge RB in the first edge routing bridge RB in claim 10 to claim 15 described in any one and claim 16 to claim 18 described in any one.
CN201310027036.4A 2013-01-18 2013-01-18 TRILL network interconnected method, Apparatus and system Expired - Fee Related CN103095579B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310027036.4A CN103095579B (en) 2013-01-18 2013-01-18 TRILL network interconnected method, Apparatus and system
PCT/CN2014/070124 WO2014110986A1 (en) 2013-01-18 2014-01-04 Trill network interconnection method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310027036.4A CN103095579B (en) 2013-01-18 2013-01-18 TRILL network interconnected method, Apparatus and system

Publications (2)

Publication Number Publication Date
CN103095579A CN103095579A (en) 2013-05-08
CN103095579B true CN103095579B (en) 2016-03-30

Family

ID=48207732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310027036.4A Expired - Fee Related CN103095579B (en) 2013-01-18 2013-01-18 TRILL network interconnected method, Apparatus and system

Country Status (2)

Country Link
CN (1) CN103095579B (en)
WO (1) WO2014110986A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095579B (en) * 2013-01-18 2016-03-30 华为技术有限公司 TRILL network interconnected method, Apparatus and system
CN103346962B (en) * 2013-06-20 2016-08-17 杭州华三通信技术有限公司 Unknown unicast message forwarding method and routing bridge
CN104954264B (en) * 2014-03-24 2018-07-13 华为技术有限公司 Multicast connection identification accords with distribution method, device
CN105323084B (en) * 2014-07-01 2020-03-10 中兴通讯股份有限公司 Method, device and system for managing TRILL network by three layers of network management
CN106209626B (en) * 2016-07-26 2019-12-06 新华三技术有限公司 Self-adaptive routing issuing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101933366A (en) * 2008-01-30 2010-12-29 高通股份有限公司 Use routing table management wireless relay nodes
CN102075446A (en) * 2011-03-01 2011-05-25 杭州华三通信技术有限公司 Interconnection method of transparent interconnection network of lots of links in different places and operator edge device
CN102123091A (en) * 2011-02-25 2011-07-13 福建星网锐捷网络有限公司 Method, device and network equipment for generating multilink transparent transmission interconnection forwarding table
CN102647330A (en) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 Data transmission method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095579B (en) * 2013-01-18 2016-03-30 华为技术有限公司 TRILL network interconnected method, Apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101933366A (en) * 2008-01-30 2010-12-29 高通股份有限公司 Use routing table management wireless relay nodes
CN102647330A (en) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 Data transmission method and device
CN102123091A (en) * 2011-02-25 2011-07-13 福建星网锐捷网络有限公司 Method, device and network equipment for generating multilink transparent transmission interconnection forwarding table
CN102075446A (en) * 2011-03-01 2011-05-25 杭州华三通信技术有限公司 Interconnection method of transparent interconnection network of lots of links in different places and operator edge device

Also Published As

Publication number Publication date
CN103095579A (en) 2013-05-08
WO2014110986A1 (en) 2014-07-24

Similar Documents

Publication Publication Date Title
CN108476160B (en) Switch Interconnection Based on Hierarchical Overlay Tunneling
CN103227757B (en) A kind of message forwarding method and equipment
CN104580024B (en) The Ethernet interconnection architecture interchanger of extension
CN103685022B (en) Message forwarding method and service provider network edge equipment
JP6189942B2 (en) Routing VLAN-tagged packets to the far-end address of a virtual forwarding instance using an individual management scheme
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
CN102150148B (en) Differentiated services for unicast multicast frames in layer 2 topologies
CN104168184B (en) Message forwarding method and equipment
US20150023352A1 (en) Implement equal cost multiple path of trill network
CN104954265B (en) Send the method and interchanger of multicast message
WO2022100554A1 (en) Method for forwarding bier message, and device and system
US9504016B2 (en) Optimized multicast routing in a Clos-like network
CN105939257A (en) Update of mac routes in EVPN single-active topology
CN103209132B (en) In the interconnection of transparent multilink(TRILL)Method, the apparatus and system of multicast are realized in network
CN102804693A (en) Method and apparatus for implementing L2 VPNs on an ip network
EP2915298A1 (en) Message forwarding between geographically dispersed network sites
CN103095579B (en) TRILL network interconnected method, Apparatus and system
CN103220215A (en) Fiber channel over Ethernet (FCoE) message forwarding method and device in TRILL network
CN105453513A (en) Packet forwarding method, forwarding entry delivery method, and network device
CN111654441A (en) Method and device for pseudowire load sharing
CN105991446A (en) Three-layer networking method, device and system and data processing method, device and system of TRILL network
CN112822097A (en) Packet forwarding method, first network device, and first device group
CN104426778B (en) Route renewing method and routing device
WO2024016869A1 (en) Multicast configuration method and apparatus
CN103595609B (en) TRILL network interconnected method, system and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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: 20160330