WO2014110986A1 - Trill network interconnection method, device and system - Google Patents

Trill network interconnection method, device and system Download PDF

Info

Publication number
WO2014110986A1
WO2014110986A1 PCT/CN2014/070124 CN2014070124W WO2014110986A1 WO 2014110986 A1 WO2014110986 A1 WO 2014110986A1 CN 2014070124 W CN2014070124 W CN 2014070124W WO 2014110986 A1 WO2014110986 A1 WO 2014110986A1
Authority
WO
WIPO (PCT)
Prior art keywords
edge
identification information
root
distribution tree
forwarding entry
Prior art date
Application number
PCT/CN2014/070124
Other languages
French (fr)
Chinese (zh)
Inventor
冀智刚
夏寅贲
宋雪飞
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014110986A1 publication Critical patent/WO2014110986A1/en

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

Definitions

  • TRILL NETWORK METHOD, DEVICE, AND SYSTEM This application claims priority to Chinese Patent Application No. 201310027036. 4, entitled “TRILL Network Interconnection Method, Device and System", filed on January 18, 2013. The entire contents of which are incorporated herein by reference.
  • the present invention relates to the field of communications technologies, and in particular, to a TRILL network interconnection method, apparatus, and system.
  • BACKGROUND With the development of network technologies, the size and number of data centers (data centers) are rapidly increasing. In general, DC is interpreted as a "multi-functional building that can accommodate multiple servers and communication devices. These devices are placed together because they have the same environmental requirements and physical security requirements, and are placed for maintenance.
  • the DC consists of multiple servers, switches, and routers.
  • the bridge (Br idge) running the Transatent Interconnection of Lot s of Links (called TRI1) is called the Route Bridge (Route-Br idge), which has routing forwarding.
  • the characteristic bridge device, the network constructed by RB is called TRILL Network.
  • the interconnection between the DCs based on the TRILL is implemented in the following two ways: 1. A plurality of DCs are used as one TRILL Campus 0 , and the routing RBs for forwarding packets between the DCs are managed by the egress RBs of the DCs.
  • Each DC is interconnected as an independent TRILL Campus. 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 first TRILL packet header to the data frame, first The RB in the DC forwards the data frame to the RB of the first DC as a router according to the information of the first TRILL packet header, and the RB removes the first TRILL packet header, and Message routing to the second The RB of the DC as a router adds a second TRILL header to the root tree of the distribution tree through the distribution tree in the second DC.
  • the prior art because the processing capacity of the router and the storage space are limited, the number of entries of the routing table managed by the router is limited, so the routing range is also limited, and the large-scale interconnection between DCs cannot be satisfied. Since the router manages the routing path between multiple DCs and the routing table is large, its convergence time will increase when the router manages the routing table within a DC. Therefore, the prior art is suitable for small-scale inter-DC interconnections and cannot support large-scale inter-DC interconnection.
  • the DCs of the DCs that send the packets need to decapsulate the packets, and receive DCs of the packets, because the DCs use the respective distribution trees to forward the packets, so that the packets are forwarded between different DCs.
  • 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. The packet forwarding efficiency is low. Summary of the invention
  • the embodiment of the present invention provides a TRILL network interconnection method, device, and system, which can solve the problem of low packet forwarding efficiency and inability to support large-scale inter-DC interconnection due to packet encapsulation and decapsulation.
  • the present invention provides a multi-link semi-transparent interconnect TR I LL network interconnection method, where the method includes:
  • 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, where the RB identification information carries the RB identity identifier of the root RB in the second DC and the a combination of second DC identity IDs;
  • the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send a packet according to the distribution tree forwarding entry.
  • the first edge RB receives the RB identification information that is sent by the second edge RB by using a border gateway protocol BGP.
  • the first edge RB establishes the distribution tree forwarding entry by using a shortest path first algorithm SPF algorithm according to the RB identification information;
  • the first edge RB forwards the RB identification information to other RBs in the first DC, so that the other RB establishes its own distribution tree forwarding item through the SPF algorithm according to the RB identification information.
  • the first edge RB acquires a port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry;
  • the other RBs obtain the port number corresponding to the next hop RB, and add the port number of the corresponding next hop RB to the distribution tree forwarding entry established by itself.
  • the RB identifier information sent by the first edge RB of the first data center DC that is received by the second edge RB of the second DC carries:
  • VLAN ID of the virtual local area network, where the VLAN ID is used to identify the root of the first DC
  • the first edge RB receives the extended information sent by the second edge RB, and the extended information is used to describe the root RB of the second DC Correspondence between RB identification information and VLAN ID.
  • the fifth possibility of the first aspect is also provided in a fifth possible implementation manner of the first aspect, the first edge RB Establishing 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 VL AN ID, thereby converting the extended information into a local distribution tree forwarding table item.
  • the present invention provides a multi-link semi-transparent interconnect TRILL network interconnection method, where the method includes:
  • the second edge RB of the second data center DC sends the RB identification information to the first edge RB of the first DC, where the RB identification information carries the RB identity identifier ID of the root RB in the second DC and the A combination of the two DC identity IDs, so that the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, and sends a packet according to the distribution tree forwarding entry.
  • the second edge RB sends the RB identification information to the first edge RB by using a border gateway protocol BGP.
  • the second possible implementation manner of the second aspect is further provided, and the second possibility in the second aspect
  • the RB identifier information sent by the second edge RB to the first edge RB further carries:
  • VLAN ID of the virtual local area network, where the VLAN ID is used to identify a VLAN in which the root RB in the first DC and the tree root RB in the second DC belong to the same; the second edge RB is in the first edge RB And transmitting the extended information, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC.
  • the present invention provides a multi-link translucent interconnect TRILL network interconnection device, where the device is a first edge RB in the first data center DC, and the device includes:
  • a receiving unit configured to receive RB identification information that is sent by the second edge RB of the second DC, where the RB identification information carries the RB identity identifier and the second DC identity of the root RB in the second DC Combination of IDs;
  • the processing unit is configured to establish a distribution tree forwarding entry according to the RB identification information received by the receiving unit.
  • the receiving unit is further configured to receive the RB identifier information that is sent by the second edge RB by using a border gateway protocol BGP.
  • the processing unit specifically includes:
  • a calculation subunit configured to establish, according to the RB identification information received by the receiving unit, the distribution tree forwarding entry by using a shortest path SPF algorithm
  • a sending subunit configured to forward the RB identification information received by the receiving unit to other RBs in the first DC.
  • a third possible implementation of the third aspect is also provided, in the third aspect
  • the calculating subunit is further configured to obtain a port number corresponding to the next hop RB, and add the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • the receiving unit is further configured to receive extended information sent by the second edge RB, where the extended information is used to describe a root RB in the second DC Correspondence between the RB identification information and the VLAN ID.
  • the processing unit is further configured to establish RB identifier information of the root RB in the first DC according to the VLAN ID, and the second DC Correspondence between RB identification information of the RB of the root tree.
  • the present invention provides a multi-link semi-transparent interconnected TRILL network interconnection device, where the device is a second edge RB in the second data center DC, and the device includes: a sending unit, configured to send RB identification information to the first edge RB of the first DC, where the RB identification information carries an RB identity identifier ID and a second DC identity identifier of the root RB in the second DC The combination.
  • the sending unit is further configured to send the RB identifier information to the first edge RB by using a border gateway protocol BGP.
  • the sending unit is further configured to send the extended information to the first edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC relationship.
  • the present invention provides a multi-link semi-transparent interconnect TRILL network interconnection system, the system comprising a first edge RB and a second edge RB.
  • the TRILL network interconnection method, device and system provided by the present invention because the RB identification information received by the first edge RB is a combination of the RB identity identifier ID of the root RB and the second DC identity identifier in the second DC,
  • the distribution tree forwarding entry established by the first edge RB includes a distribution tree forwarding entry for each root RB of the first DC.
  • the first edge RB and the second edge RB in the present invention do not need to decapsulate and encapsulate the packet, as the first edge RB and the second edge RB need to decapsulate and encapsulate the packet.
  • the allocation of hardware resources supporting packet encapsulation and decapsulation can be reduced, and the packet forwarding efficiency is high.
  • the first edge RB and the second edge RB respectively manage the routing tables of the respective DCs in the first DC and the second DC by using the first edge RB or the second edge RB to manage all the routing tables in the first DC and the second DC. Therefore, it can support the interconnection between large-scale DCs.
  • FIG. 1 is a flowchart of a method for interconnecting TR I LL networks according to an embodiment of the present invention
  • FIG. 1 is a flowchart of another method for interconnecting TR I LL networks according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for a TRILL network interconnection method according to an embodiment of the present invention
  • FIG. 5 is a structure of a first first edge RB according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a second first edge RB according to an embodiment of the present invention.
  • Figure ⁇ is a schematic structural diagram of a third first edge RB in the embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a first second edge RB according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a first TR I LL network interconnection system according to an embodiment of the present invention
  • FIG. 10 is a schematic structural diagram of a fourth first edge RB according to an embodiment of the present invention
  • FIG. 11 is a schematic structural diagram of a second second edge R B according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a second TR I LL network interconnection system according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the structure of the TRILL header is as shown in Table 1.
  • TRILL Ether type is the network type of the TRILL protocol; V is the TRILL version number, currently 0, if the disc is not 0, the packet is discarded; R is the reserved field.
  • M is a multicast identifier, Q means unicast, 1 means multicast;
  • OpLng (0 P _Length) is the length of the TRILL header extension option;
  • Hop is the hop count;
  • Egres s RBr idge Nickname (export RB name) The broadcast is the RB identification information of the RB connected to the server.
  • the Ingres s RBr idge Nickname is the RB identification information of the RB connected to the server. , is used to identify the source RB that adds TRILL ⁇ header to ⁇ .
  • the naming of the root RB, the other RBs, and the next hops mentioned in the following embodiments are named according to the function of an RB in the process of sending a single TRILL packet, and the sending of the single TRILL packet is an entry.
  • the RB name (the first RB identification information of the RB connected to the server) is the starting point, and the exit RB name is used as the termination point. Therefore, the same RB may be used as a root RB or other RB or next hop RB for different ⁇ transmissions.
  • the embodiment of the invention provides a TRILL network interconnection method. As shown in FIG. 1, the method includes:
  • Step 101 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.
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
  • the structure of the RB identification information is: DC ID: RB ID, by combining the DC ID and the RB ID, so that each RB in the first DC and the second DC has unique identification information.
  • the structure of the foregoing RB identifier information may also be: RB ID: DC ID.
  • Step 102 The first edge RB establishes a distribution tree forwarding entry according to the RB identification information.
  • the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send a packet according to the distribution tree forwarding entry.
  • the first edge RB may receive the received RB identification information.
  • Sending to each RB in the first DC, the first edge RB and the RBs in the first DC are not only configured according to the RB identification information in the first DC, but also based on the distribution tree forwarding entry in the first DC.
  • the RB identification information in the second DC establishes a distribution tree forwarding entry for each root RB in the second DC.
  • the first edge RB After the received RB identification information, the first edge RB generates a topology for the RB identification information in a Link State Database (LSDB), including the following two methods:
  • the first edge RB adds an entry in the LSDB, where the entry is a set of correspondences after the RB identifier of the first edge RB is replaced by the RB identifier information.
  • the RB identification information of the first edge RB is 01: 01.
  • the entries in the LSDB that start with the first edge RB are "01: 01-01: 02" and "01: 01-01: 03".
  • the first edge RB receives the second edge RB and sends the RB identification information, if the received RB identification information is 02: 02, the entry is added: "02: 02-01: 02" and "02: 02-01: 03".
  • the root of the tree can be randomly selected or selected 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 RB with the RB ID of 01: 05, starting with 01: 05. The entries are "01: 05-01: 03" and "01: 05-01: 06". After the first edge RB receives the second edge RB and sends the RB identification information, if the RB identification information received at this time is 02: 02, the entry is added: "02: 02-01: 03" and "02: 02-01: 06".
  • the preset rule may be, but is not limited to, a hash algorithm.
  • the SPF algorithm is combined with the entry in the LSDB to form a distribution tree forwarding entry.
  • the first edge RB After the first edge RB generates a topology for the RB identification information in the LSDB, the first edge RB advertises the new entry in the LSDB, that is, the LSPs, in the first DC.
  • the second edge RB of the second DC may obtain the RB identification information of each root RB in the first DC.
  • the interconnection of the first DC and the second DC can be implemented.
  • the first RB connected to the first host in the first DC adds a TRILL packet header to the data frame, where the TRILL
  • the entry RB name in the header is the name of the first RB connected to the first host in the first DC
  • the egress RB name is the RB identification information of the RB in the second DC that is the root of the distribution tree.
  • the RB in the first DC forwards the data frame to the first edge RB of the first DC by using the RB in the first DC according to the information of the TRILL packet header, and the first edge RB directly routes the packet to the second edge.
  • each RB in the second DC checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry.
  • the foregoing packet sending process is only the second edge RB of the second DC to the first edge of the first DC
  • the unidirectional technical solution sends the RB identification information to the second edge RB of the second DC, and the first edge RB of the first DC to the other DCs.
  • the edge RB sends the RB identification information, network interconnection between multiple DCs can be implemented.
  • the TRILL network interconnection method provided by the present invention, because the RB identification information received by the first edge RB is a combination of the RB identity identifier ID of the root RB and the second DC identity identifier in the second DC,
  • the distribution tree forwarding entry established by the first edge RB includes, in addition to the distribution tree forwarding entry for each root RB of the first DC, A forwarding entry for each of the distribution tree root RBs in the second DC.
  • the first edge RB and the second edge RB in the present invention do not need to decapsulate and encapsulate the packet, as the first edge RB and the second edge RB need to decapsulate and encapsulate the packet.
  • the allocation of hardware resources supporting packet encapsulation and decapsulation can be reduced, and the packet forwarding efficiency is high.
  • the first edge RB or the second edge RB is managed.
  • the first edge RB and the second edge RB respectively manage routing tables of respective DCs, and thus can support interconnection between large-scale DCs.
  • the embodiment of the present invention provides a TRILL network interconnection method, as shown in FIG. 1, the method includes:
  • Step 201 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 RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier ID, so that the first edge RB is established according to the RB identifier information.
  • the distribution tree forwarding entry sends a packet according to the distribution tree forwarding entry.
  • the RB identification information sent by the second edge RB of the second DC to the first edge RB of the first DC may be used to distinguish between the RB in the first DC and the RB in the second DC. And making each RB in the first DC and the second DC have unique identification information.
  • the first edge RB in the embodiment of the present invention may be based on the received RB identification information in the second DC, as compared with the second edge RB in the prior art, in which the first edge RB and the second edge RB need to decapsulate and encapsulate the packet.
  • a distribution tree forwarding entry is created, and the first edge RB and the second edge RB need not be decapsulated and encapsulated, and the amount of hardware resources allocated by the edge RB to support packet encapsulation and decapsulation is reduced. high.
  • the first edge RB and the second edge RB respectively manage the respective first and second edge RBs in the first DC and the second DC.
  • the routing table of the DC so it can support the interconnection between large-scale DCs.
  • the embodiment of the present invention further provides a TRILL network interconnection method. As shown in FIG. 3, the method includes:
  • Step 301 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 RB identifier information carries the RB identity label of the root RB in the second DC.
  • the RB identification information sent by the second edge RB of the second DC to the first edge RB of the first DC may distinguish the first intra DC and the second intra RB, so that each RB in the first DC and the second DC is unique Identification information.
  • the second edge RB sends the RB identification information to the first edge RB by using a border gateway protocol BGP.
  • the first additional information is also sent.
  • An additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB.
  • the first additional information further includes RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
  • Root Nickname (RB RB identification information of the root RB)
  • the first edge RB of the first data center DC receives the second DC
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
  • the first entry in the first additional information determines whether the RB identification information is the RB identification information of the root RB.
  • the first edge RB receives the RB identification information that is sent by the second edge RB through the border gateway protocol BGP.
  • Step 302 The first edge RB establishes a distribution tree forwarding entry according to the RB identification information.
  • the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send a packet according to the distribution tree forwarding entry.
  • the first edge RB may receive the received RB identification information.
  • Sending to other RBs in the first DC, the first edge RBs and other RBs in the first DC are not only configured according to the RB identification information in the first DC, but also based on the distribution tree forwarding entries in the first DC.
  • the RB identification information in the second DC establishes a distribution tree forwarding entry for each root RB in the second DC.
  • the step 302 specifically includes:
  • Step 401 The first edge RB establishes the distribution tree forwarding entry by using a shortest path first algorithm SPF algorithm according to the RB identification information.
  • the first edge RB generates a topology for the RB identification information in its own LSDB after receiving the RB identification information, including the following two methods:
  • the first edge RB adds an entry in the LSDB, where the entry is a set of correspondences after the RB identifier of the first edge RB is replaced by the RB identifier information.
  • the RB identification information of the first edge RB is 01: 01
  • the entries starting with the first edge RB in the LSDB are "01: 01-01: 02" and "01: 01-01: 03”.
  • the first edge RB receives the second edge RB and sends the RB identification information, if the received RB identification information is 02:02, the entry is added: "02: 02-01: 02" and "02: 02-01: 03".
  • the root of the tree can be randomly selected or selected 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 RB with the RB ID of 01: 05, starting with 01: 05. The entries are "01: 05-01: 03" and "01: 05-01: 06". After the first edge RB receives the second edge RB and sends the RB identification information, if the received RB identification information is 02: 02, the entry is added: "02: 02-01: 03" and "02: 02-01: 06".
  • the preset rule may be, but is not limited to, a hash algorithm.
  • the SPF algorithm is combined with the entry in the LSDB to form a distribution tree forwarding entry.
  • you create a distribution tree forwarding entry you need to refer to the priority of each entry in the LSDB. The higher the priority of the starting RB identifier in the entry is, the greater the probability that the root RB is determined.
  • the RB identification information of the root RB is elected as the root of the root in the first DC, and the RB identification information of the root RB in the second DC is given the same root priority as the RB identification information of the root RB in the first DC ( roo t pr i or i ty ).
  • the SPF algorithm calculates the distance to each target RB by using a certain RB as the root (ROOT).
  • Each RB calculates the topology structure of the routing domain according to a unified database during calculation.
  • the structure is similar to a tree.
  • the SPF algorithm it is called the shortest path tree.
  • the operation of the SPF algorithm can be used to obtain the path with the least number of hops between the root RB and the destination RB of the shortest path tree, and the RB identification information of the RB closest to the root RB in the path is used as the distribution tree forwarding table. Items are saved.
  • the port list formed by the SPF algorithm as the port number of the root RB may be saved as a distribution tree forwarding entry, that is, the first edge RB obtains the port number corresponding to the next hop RB.
  • the port number corresponding to the next hop RB is added to the distribution tree forwarding entry.
  • the port number can be sent to multiple RBs at the same time.
  • Step 402 The first edge RB forwards the RB identification information to other RBs in the first DC.
  • the first edge RB After the first edge RB generates a topology for the received RB identification information in the LSDB, the first edge RB advertises the newly added entries in the LSDB, that is, LSPs, in the first DC. After the advertised, each RB in the first DC can obtain the newly added entry corresponding to the RB identification information.
  • the first edge RB forwards the RB identification information to other RBs in the first DC, so that the other RB establishes its own distribution tree forwarding entry by using the SPF algorithm according to the RB identification information.
  • 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 that sends the 4 ⁇ text to the RB in the second DC by using the SPF algorithm described in step 401, and save the RB identification information.
  • the port list formed by the SPF algorithm as a port number on the root RB is saved as a distribution tree forwarding entry, and the port number can be simultaneously sent to multiple destination RBs, that is, the other RBs.
  • the first RB connected to the first host in the first DC adds a TRILL packet header to the data frame, where the TRILL
  • the entry RB name in the header is the name of the first RB connected to the first host in the first DC
  • the egress RB name is the name of the RB in the second DC that is the root RB of the distribution tree.
  • the RB that is connected to the first host compares the egress RB name in the TRILL packet header with each of the distribution tree forwarding entries saved in the TRILL packet header, and finds the RB identifier information of the next hop RB corresponding to the egress RB name. Or the port list, and the packet is sent to the next hop RB.
  • Each RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry.
  • the packet is a multicast packet in the first DC.
  • the first edge RB and the second edge RB need to decapsulate and encapsulate the packet, and the foregoing sending process passes the second edge RB of the second DC to the first of the first DC.
  • the RB identification information sent by the edge RB may distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and the second DC has unique identification information.
  • the first edge RB may establish a distribution tree forwarding entry according to the received RB identification information in the second DC, and the first edge RB sends the received RB identification information to other RBs in the first DC, so as to be first.
  • the other RBs in the DC establish a distribution tree forwarding entry according to the received RB identification information in the second DC. Therefore, the first edge RB and the second edge RB can be successfully sent to the RB of another DC without the decapsulation and encapsulation of the packet, so that the RB checks the TRILL header.
  • the packet is multicast according to the distribution tree entry, and the allocation of hardware resources that the edge RB is used to support packet encapsulation and decapsulation is reduced, and the packet forwarding efficiency is high.
  • the first edge RB and the second edge RB are respectively sent in the foregoing process. Manage the routing tables of their respective DCs, thus supporting large-scale interconnections between DCs.
  • the RB identification information that is sent by the second edge RB to the first edge RB further includes: a virtual local area network VLAN identity identifier, where the VLAN ID is used to identify the A VLAN in which the root RB in the first DC and the root RB in the second DC belong to the same VLAN.
  • the step 301 is further refined to: the second edge RB of the second data center DC sends the RB identification information to the first edge RB of the first DC, which specifically includes: the second edge RB is toward the first
  • the edge RB sends the extended information, where the extended information is used to describe the correspondence between the RB identification information of the RB and the VLAN ID in the second DC.
  • the second edge RB sends the RB identification information to the first edge RB through BGP, in addition to transmitting the same information as the content type in the prior art, the second additional information is also sent as shown in Table 3.
  • 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.
  • the RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
  • Root Ni ckname (RB RB identification information of the root RB)
  • the first edge RB of the first data center DC receives the RB sent by the second edge RB of the second DC
  • the identifier information includes: the first edge RB receives the extension information sent by the second edge RB, and the extension information is used to describe the RB identifier information of the root RB in the second DC and the VLAN ID. Correspondence relationship.
  • the RB identification information sent by the first edge RB of the first data center DC that is received by the second edge RB of the second DC further carries: a virtual local area network VLAN ID, where the VLAN ID is used to identify the first DC The RB and the VLAN of the second DC in which the root RB belongs.
  • Step 302 is further refined, the first edge RB establishes a correspondence 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 VLAN ID, thereby The extended information is converted into a local distribution tree forwarding entry.
  • the first edge RB of the first DC receives the second additional information sent by the second edge RB of the second DC, according to the extended information, that is, the VLAN ID
  • the RB of the RB corresponding to the VLAN ID in the first DC is searched for.
  • Identification information, and the RB identification information and the root RB in the second additional information are saved as a distribution tree forwarding entry.
  • Each distribution tree forwarding entry constitutes a distribution tree forwarding table, as shown in Table 4:
  • the second RB identifier information is the RB identifier information of the root RB in the second DC
  • the first RB identifier information is the RB identifier information corresponding to the RBs in the same VL AN in the first DC and the second RB identifier information.
  • the RB identifier information in the second DC of the TRILL 4 ⁇ header can be found by using the RB identifier information in the first DC in the first DC by the RB identifier information of the RB RB in the first DC. information.
  • the first RB connected to the second host in the second DC adds a TRILL 4 header to the data frame.
  • the name of the entry RB in the TRILL header is the name of the first RB connected to the second host in the second DC
  • the egress RB name is the RB identification information in the first DC as the root RB of the distribution tree. If the RB identifier information in the TRILL 4 ⁇ header is 02: 01 and the corresponding VLAN ID is LVAN1, the first edge RB of the first DC is obtained by querying Table 4 in the first DC.
  • the RB identification information 01: 01 the first edge RB of the first DC decapsulates and encapsulates the TRILL 4 ⁇ header, and changes the name of the exit RB in the TRILL header to 01: 01 for internal DC Forward. Because the forwarding of the packet in the first DC is the prior art, the RB can be successfully sent to the RB corresponding to the egress RB name, and each RB checks the "M" field in the TRILL packet header, and performs the ⁇ ⁇ according to the distribution tree entry. Multicast.
  • the transmission process of the above-mentioned message saves the second edge RB compared to the decapsulation and encapsulation of the second edge RB of the second DC.
  • the encapsulation step is performed.
  • the RBs other than the edge RB do not need to perform the calculation of the next hop distribution tree forwarding entry for the RBs in other DCs, and the edge RB is used to support packet encapsulation and decapsulation.
  • the allocation of resources is high, and the packet forwarding efficiency is high, which further reduces the workload of other RBs.
  • first edge RB and the second edge RB in the sending process of the packet are respectively compared with the first routing RB or the second edge RB managing the entire routing table in the first DC and the second DC.
  • step 302 may be further refined as: the first edge RB is received according to the received
  • the RB identification information randomly establishes a distribution tree forwarding entry.
  • the random establishment is performed by the first edge RB as the set of correspondence between the received RB identification information in the second DC and the arbitrary tree root RB identification information in the first DC.
  • the RB can be sent to the VLAN corresponding to the VLAN ID through any port of the RB. Therefore, the technical effect of interconnecting between different DCs can also be achieved by the above method.
  • the establishment of the distribution tree forwarding entry and the distribution tree may be completed by using a controller (Cont roler) configured for each DC. Maintenance of forwarding entries.
  • a controller Cont roler
  • Each RB only needs to receive the indication information sent by the controller, such as sending a message through an interface. Since the controller and each edge RB and other RB functions are clear, the efficiency of each RB will be further improved.
  • 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 the RB identification information to the first edge RB of the first DC, where the first edge of the first DC is RB.
  • the second edge RB of the second DC sends the RB identification information, and after the first edge RB of the first DC sends the RB identification information to the other edge RBs of other DCs, the network interconnection between the multiple DCs can be implemented.
  • the RB identification information sent by the second edge RB of the second DC to the first edge RB of the first DC may distinguish the RB and the second in the first DC
  • the RBs in the DC are such that each RB in the first DC and the second DC has unique identification information.
  • the first edge RB may establish a distribution tree forwarding entry according to the received RB identification information in the second DC, and the first edge RB sends the received RB identification information to other RBs in the first DC, so as to be first.
  • the other RBs in the DC establish a distribution tree forwarding entry according to the received RB identification information in the second DC.
  • the first edge RB and the second edge RB are absent
  • the packet is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL packet header, and the packet is matched according to the distribution tree entry.
  • Multicasting is performed to reduce the allocation of hardware resources for edge packet RBs to support packet encapsulation and decapsulation. The packet forwarding efficiency is high.
  • Another implementation manner of the TRILL network interconnection method provided by the embodiment of the present invention is compared with the decapsulation and encapsulation of the first edge RB of the first DC and the second edge RB of the second DC in the second technology.
  • the sending process of the above-mentioned ⁇ ⁇ omitting the de-encapsulation step of the second edge RB, and the RBs other than the DC edge RB need not perform the calculation of the next-hop distribution tree forwarding entry for the RBs in other DCs.
  • the edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, thereby further reducing the workload of other RBs.
  • first edge RB and the second edge RB are respectively managed in the foregoing two implementation manners by using the first edge RB or the second edge RB to manage all the routing tables in the first DC and the second DC.
  • the routing table of the respective DCs can support the interconnection between large-scale DCs.
  • the embodiment of the present invention provides a TRILL network interconnection device, where the device is a first edge RB in the first data center DC.
  • the first edge routing bridge RB includes: a receiving unit 51.
  • RB identification information for receiving the second edge RB of the second DC.
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier ID, so that the first edge RB is established according to the RB identifier information.
  • the distribution tree forwarding entry sends a packet according to the distribution tree forwarding entry.
  • the receiving unit 51 is further configured to receive the RB identifier information that is sent by the second edge RB by using the border gateway protocol BGP.
  • the receiving unit 51 when receiving the RB identification information, receives the first additional information in addition to the information of 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 a distribution tree root RB, and the first additional information further includes RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
  • 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.
  • the processing unit 52 establishes a tree for the second DC according to the RB identification information in the second DC received by the receiving unit 51, in addition to establishing the distribution tree forwarding entry for the first DC according to the RB identification information in the first DC.
  • the distribution tree forwarding entry of the root RB is established.
  • the processing unit 52 as shown in FIG. 6, specifically includes:
  • the calculating subunit 521 is configured to establish the distribution tree forwarding entry by using a shortest path SPF algorithm according to the RB identification information received by the receiving unit 51.
  • the SPF algorithm calculates the distance to each target RB by using a certain RB as the root (ROOT).
  • Each RB calculates the topology structure of the routing domain according to a unified database during calculation. The structure is similar to a tree. In the SPF algorithm, it is called the shortest path tree.
  • the calculation sub-unit 521 performs the operation of the SPF algorithm to obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and uses 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.
  • the storage unit 61 may also store, by using the SPF algorithm, a port list formed by the port number on the root RB as a distribution tree forwarding entry, so that the sending subunit 522 can simultaneously transmit through the port number.
  • Multiple destination RBs send ⁇ . That is, the first edge RB obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • 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.
  • the sending sub-unit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC.
  • the other RBs can obtain the RB identification information of the next hop RB for transmitting the RB to the RB in the second DC through the calculation sub-unit 521 therein, and save the RB identification information to the storage unit 61.
  • the calculating sub-unit 521 is further configured to obtain a port number corresponding to the next hop RB, and add the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • the calculation sub-unit 521 can also calculate the port number group on the root RB calculated by the SPF algorithm.
  • the port list is saved as a distribution tree forwarding entry to the storage unit 61, and the port number can be sent to the plurality of destination RBs at the same time, that is, the other RB obtains the port number corresponding to the next hop RB, and the The port number corresponding to the next hop is added to the distribution tree forwarding entry established by itself.
  • the packet sending process is performed by the first edge RB and the second edge RB in the prior art.
  • the information may distinguish between the first intra-DC RB and the second intra-DC RB such that each RB within the first DC and the second DC has unique identification information.
  • the calculation sub-unit 521 establishes a distribution tree forwarding entry according to the RB identification information in the second DC received by the receiving unit 51, and the sending sub-unit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC.
  • the calculation sub-unit 521 of the other RBs can establish a distribution tree forwarding entry according to the received RB identification information in the second DC, so that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the packet.
  • the RB is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL header, multicasts the packet according to the distribution tree entry, and reduces the edge RB for support.
  • the amount of hardware resources allocated for packet encapsulation and decapsulation is high.
  • the computing subunit 521 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Therefore, it is possible to support interconnection between large-scale DCs.
  • 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 RB identification information of a root RB in the second DC. Correspondence between VLAN IDs.
  • the second edge RB sends the RB identification information to the receiving unit 51 through BGP, in addition to transmitting the same information as the content type in the prior art, the second additional information, as shown in Table 3, is also sent.
  • the 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.
  • the RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
  • the processing unit 52 is further configured to establish, according to the VLAN ID, 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. 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 VLAN ID in the first DC according to the extended information, that is, the VLAN ID. And storing the RB identification information and the RB identification information of the root RB in the second additional information and the VLAN ID as a distribution tree forwarding entry to the storage unit 61.
  • the encapsulating unit 71 changes the egress RB name in the TRILL packet header to the RB identification information of the first DC inner root RB corresponding to the original egress RB name, that is, the VLAN ID established by the processing unit 52, so that the RB in the first DC is encapsulated according to the encapsulation.
  • the TRILL packet header encapsulated by the unit 71 can be forwarded to the RB in the first DC.
  • the transmission process of the foregoing The encapsulation unit 71 of the edge RB of the first DC only needs to encapsulate the header, and the processing unit 52 of the other RBs other than the first edge RB of the first DC does not need to perform the next RB in other DCs.
  • the calculation of the forwarding tree forwarding entry is performed to reduce the allocation of hardware resources for the edge encapsulation and decapsulation of the edge RB.
  • the packet forwarding efficiency is high, and the workload of other RBs is further reduced.
  • the computing subunit 521 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Therefore, it is possible to support interconnection between large-scale DCs.
  • the calculating sub-unit 521 can also establish a distribution tree forwarding entry randomly according to the RB identification information received by the receiving unit 51.
  • the random establishment is performed by the first edge RB as the set of correspondence between the received RB identification information in the second DC and the arbitrary tree root RB identification information in the first DC. Since any RB in the first DC can send the message to the VLAN corresponding to the VLAN ID through a certain port of the RB, the technical effect of the interconnection between different DCs can also be achieved by the above method.
  • the embodiment of the present invention provides a TRILL network interconnection device, where the device is a second edge RB in the second data center DC.
  • the second edge RB includes:
  • the sending unit 81 is configured to send RB identification information to the first edge RB of the first DC.
  • the RB identification information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
  • the RB identification information sent by the sending unit 81 to the first edge RB of the first DC may distinguish the RB in the first DC and the RB in the second DC, so that each RB in the first DC and the second DC has unique identification information.
  • the sending unit 81 is further configured to send the RB identification information to the first edge RB by using a border gateway protocol BGP.
  • the sending unit 81 sends the RB identification information to the first edge RB through BGP, in addition to transmitting the same information as the BGP content type in the prior art, the sending unit 81 sends the first additional information as shown in Table 2 for indicating Whether the RB corresponding to the RB identification information in the additional information is the distribution tree root RB, the first additional information further includes the RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
  • the transmitting unit 81 of the second edge RB of the second DC transmits the first additional information to the receiving unit 51 of the first edge RB of the first DC
  • the calculating sub-unit 521 as the first edge RB of the receiving end receives according to the receiving
  • the RB identification information in the second DC received by the unit 51 establishes a distribution tree forwarding entry, and the sending sub-unit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC, so as to calculate other RBs.
  • the unit 521 establishes a distribution tree forwarding entry according to the received RB identification information in the second DC, and the packet is successfully obtained on the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the packet.
  • the RB is sent to the RB of another DC, so that the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the edge RB to support packet encapsulation and decapsulation.
  • the allocation of hardware resources and the efficiency of packet forwarding are high.
  • the sending unit 81 is further configured to send the extended information to the first edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC .
  • the sending unit 81 When the sending unit 81 sends the RB identification information to the first edge RB through BGP, in addition to transmitting the same information as the content type in the prior art, the sending unit 81 also sends the second attached as shown in Table 3. The information is added, and the second additional information is used to indicate whether the root RB, the RB identification information of the root RB, and the correspondence between the root RB and the VLAN.
  • the RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
  • the transmitting unit 81 of the second edge RB of the second DC transmits 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 first DC
  • the encapsulating unit 71 of the edge RB encapsulates the header, and the processing unit 52 of the other RBs other than the first edge RB of the first DC does not need to perform the next jump distribution tree forwarding entry for the RBs in other DCs.
  • the calculation reduces the allocation of hardware resources to support packet encapsulation and decapsulation, and the packet forwarding efficiency is high, which further reduces the workload of other RBs.
  • the 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.
  • the second edge RB92 sends the RB identification information to the first edge RB91.
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier ID.
  • the first edge RB91 receives the RB identification information sent by the second edge RB92 of the second DC.
  • the second edge RB92 may send the RB identification information to the first edge RB91 by using the border gateway protocol BGP.
  • the first additional information shown in Table 2 is also sent.
  • the first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB, and the first additional information further includes RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
  • the RB identification information received by the first edge RB91 establishes a distribution tree forwarding entry.
  • the first edge RB91 is configured to establish, according to the RB identification information in the first DC, the RB identification information in the second DC.
  • the first edge RB91 establishes the distribution tree forwarding entry by using a shortest path SPF algorithm according to the received RB identification information.
  • the SPF algorithm calculates the distance to each target RB by using a certain RB as the root (ROOT).
  • Each RB calculates the topology structure of the routing domain according to a unified database during calculation.
  • the structure is similar to a tree.
  • the SPF algorithm it is called the shortest path tree.
  • the first edge RB91 performs the operation of the SPF algorithm to obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and uses the RB identification information closest to the root RB in the path as the distribution tree. Forward the entry to save.
  • the first edge RB91 may also save the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, so that the port number can be simultaneously sent to multiple destination RBs through the port number. Text. That is, the first edge RB91 obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • the first edge RB91 forwards the received RB identification information to other RBs in the first DC.
  • the first edge RB91 sends the received RB identification information to other RBs in the first DC, so that each RB in the first DC can send the RB to the RB in the second DC.
  • the other RBs can obtain the RB identification information of the next hop RB for the RB in the second DC, and save the RB identification information.
  • the first edge RB91 is further configured to obtain a port number corresponding to the next hop RB, and add the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • the first edge RB91 may also store the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, and send the packet to multiple destination RBs through the port number at the same time.
  • the port number corresponding to the next hop RB is obtained, and the port number corresponding to the next hop RB is added to the distribution tree forwarding entry established by itself.
  • the first edge RB91 and the second edge RB92 need to decapsulate and encapsulate the packet, and the foregoing sending process is performed by the second edge RB92 of the second DC.
  • the RB identification information sent by the first edge RB91 of the DC may distinguish the first intra-RB and the second intra-RB, so that each RB in the first DC and the second DC has 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 the other RBs receive the second DC.
  • the RB identification information is used to establish a distribution tree forwarding entry, so that the first edge RB91 and the second edge RB92 can successfully send the packet to the RB of another DC without the need to decapsulate and encapsulate the packet.
  • the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the allocation amount of the hardware resources supported by the edge RB to support packet encapsulation and decapsulation, and the packet forwarding efficiency. high.
  • the first edge RB91 manages the routing table of the first DC by using the first edge RB91 or the second edge RB92 to manage all routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
  • first edge RB91 is further configured to receive the extended information sent by the second edge RB92, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC. .
  • the second edge RB92 sends the RB identification information to the first edge RB91 through BGP, in addition to transmitting the same information as the content type in the prior art, the second additional information is also sent as the second additional information shown in Table 3. It 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.
  • the RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
  • the first edge RB91 is further configured to establish, according to the VLAN ID, 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.
  • the first edge RB91 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 VLAN ID in the first DC according to the extended information, that is, the VLAN ID.
  • 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.
  • the first edge RB91 changes the name of the egress RB in the TRILL header to the RB identification information of the root RB in the first DC corresponding to the original egress RB name, that is, the VLAN ID, so that the first DC An edge RB91 encapsulated TRILL 4 header can be forwarded to the RB in the first DC.
  • the transmission process of the above-mentioned message is only
  • the RB of the first DC is encapsulated by the edge RB of the first DC.
  • the RBs other than the first edge RB91 of the first DC do not need to perform the calculation of the next hop distribution tree forwarding entry for the RBs in other DCs.
  • the edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, thereby further reducing the workload of other RBs.
  • the first edge RB91 manages the routing table of the first DC by using the first edge RB91 or the second edge RB92 to manage all routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
  • the TRILL network interconnection system provided by the embodiment of the present invention is a second edge RB92, for example, the second edge RB92 of the second DC, and is unidirectional when transmitting the RB identification information to the first edge RB91, for example, the first edge RB91 of the first DC.
  • the first edge RB91 of the first DC sends the RB identification information to the second edge RB92 of the second DC
  • the first edge RB91 of the first DC sends the RB identification information to other edge RBs of other DCs
  • Network interconnection between multiple DCs when the first edge RB91 of the first DC sends the RB identification information to the second edge RB92 of the second DC, and the first edge RB91 of the first DC sends the RB identification information to other edge RBs of other DCs.
  • the embodiment of the present invention provides a TRILL network interconnection device, where the device is a first edge RB in the first data center DC.
  • the first edge RB includes:
  • the receiver 1001 is configured to receive RB identification information sent by the second edge RB of the second DC.
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier, so that the processor 1002 establishes a distribution tree according to the RB identifier information.
  • the transmitter 1003 sends a message according to the distribution tree forwarding entry.
  • the receiver 1001 is further configured to receive the RB identifier information that is sent by the second edge RB through the border gateway protocol BGP.
  • the receiver 1001 when receiving the RB identification information, receives the first additional information in addition to the information of the BGP content type in the prior art.
  • the first additional information is used for Indicates whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB, and the first additional information further includes RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
  • the processor 1002 is configured to establish a distribution tree forwarding entry according to the RB identification information received by the receiver 1001.
  • the processor 1002 establishes, according to the first DC internal RB identification information, a distribution tree forwarding entry for the first DC, and the RB identification information in the second DC received by the receiver 1001.
  • the distribution tree forwarding entry of each tree root RB is established, according to the first DC internal RB identification information, a distribution tree forwarding entry for the first DC, and the RB identification information in the second DC received by the receiver 1001. The distribution tree forwarding entry of each tree root RB.
  • the processor 1002 is further configured to establish, according to the RB identifier information received by the receiver 1001, the distribution tree forwarding entry by using a shortest path SPF algorithm.
  • the SPF algorithm calculates the distance to each target RB by using a certain RB as the root (ROOT).
  • Each RB calculates the topology structure of the routing domain according to a unified database during calculation.
  • the structure is similar to a tree.
  • the SPF algorithm it is called the shortest path tree.
  • the processor 1002 obtains a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and uses the RB identification information of the path closest to the root RB as the distribution tree.
  • the publication item is saved to the memory 1004.
  • the memory 1004 may store, as the distribution tree forwarding entry, a port list formed by the processor 1002 as a port number on the root RB, so that the transmitter 1003 can simultaneously access the multiple destination RBs through the port number. Send a message. That is, the first edge RB obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • the transmitter 1003 is configured to forward the RB identification information received by the receiver 1001 to other RBs in the first 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 for transmitting the ciphertext to the RB in the second DC through the processor 1002 therein, and save the RB identification information to the memory 1004.
  • the processor 1002 is further configured to obtain a port number corresponding to the next hop RB, where the corresponding The port number of the one-hop RB is added to the distribution tree forwarding entry.
  • the memory 1004 stores the port list formed by the processor 1002 as a port number on the root RB according to the SPF algorithm as a distribution tree forwarding entry.
  • the transmitter 1003 can simultaneously send the port number to the multiple destination RBs by using the port number, that is, the other RB obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution established by itself.
  • the tree is forwarded in the table entry.
  • the foregoing sending process passes the second edge RB of the second DC.
  • the RB identification information transmitted to the receiver 1001 may distinguish between the first intra-DC RB and the second intra-DC RB such that each RB within the first DC and the second DC has unique identification information.
  • the processor 1002 establishes a distribution tree forwarding entry according to the RB identification information in the second DC received by the receiver 1001, and the transmitter 1003 sends the RB identification information received by the receiver 1001 to other RBs in the first DC, so that the other
  • the processor 1002 of the RB establishes a distribution tree forwarding entry according to the received RB identification information in the second DC, which may be implemented on the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the packet.
  • the packet is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the edge RB to support packet encapsulation.
  • the processor 1002 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Can support large-scale interconnection between DCs.
  • the receiver 1001 is further configured to receive the extended information sent by the second edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID in the second DC relationship.
  • the second edge RB sends the RB identification information to the receiver 1001 through BGP, in addition to transmitting the same information as the content type in the prior art, the second additional information, as shown in Table 3, is also sent.
  • the 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.
  • the RB identification information of the root RB and the root RB The correspondence with the VLAN is extended information.
  • the processor 1002 is further configured to establish, according to the VLAN ID, 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.
  • the processor 1002 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 VLAN ID in the first DC according to the extended information, that is, the VLAN ID. And storing the RB identification information and the RB identification information of the root RB in the second additional information and the VLAN ID as a distribution tree forwarding entry to the memory 1004.
  • the processor 1002 changes the name of the egress RB in the TRILL header to the RB identification information of the first DC inner root RB corresponding to the original egress RB name, that is, the VLAN ID, so that the RB in the first DC is encapsulated according to the processor 1002.
  • the TRILL ⁇ header can be forwarded to the RB in the first DC.
  • the sending process of the foregoing packet only needs to pass the
  • the processor 1002 of the edge RB of a DC encapsulates the header of the RB, and the processor 1002 of the RB other than the first edge RB of the first DC does not need to perform the next jump distribution tree for the RBs in other DCs.
  • the calculation of the forwarding entry reduces the allocation of hardware resources that the edge RB is used to support packet encapsulation and decapsulation.
  • the packet forwarding efficiency is high, and the workload of other RBs is further reduced.
  • the processor 1002 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Can support large-scale interconnection between DCs.
  • the processor 1002 may also randomly establish a distribution tree forwarding entry according to the RB identification information received by the receiver 1001.
  • the random establishment is that the first edge RB associates the received RB identification information in the second DC with any tree root RB identification information in the first DC as a set of correspondence.
  • the RBs in the first DC can send packets to the VLAN corresponding to the VLAN ID through a certain port of the RB. Therefore, the technical effects of interconnecting between different DCs can also be implemented in the foregoing manner.
  • An embodiment of the present invention provides a TRILL network interconnection device, where the device is in the second data.
  • the transmitter 1101 is configured to send RB identification information to the first edge RB of the first DC.
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
  • the RB identification information sent by the transmitter 1101 to the first edge RB of the first DC can distinguish the first
  • the intra-DC RB and the second intra-RB RB have unique identification information in each of the first DC and the second DC.
  • the transmitter 101 is further configured to send the RB identification information to the first edge RB by using a border gateway protocol BGP.
  • the transmitter 1101 When transmitting the RB identification information to the first edge RB by using the BGP, the transmitter 1101 sends the first additional information as shown in Table 2, in addition to the information of 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 a distribution tree root RB, and the first additional information further includes RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
  • the processor 1002 as the first edge RB of the receiving end receives according to the receiving
  • the RB identification information in the second DC received by the device 1001 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 processor 1002 of the other RBs And establishing the distribution tree forwarding entry according to the received RB identification information in the second DC, so that the first edge RB and the second edge RB can successfully send the packet to the first edge RB and the second edge RB without decapsulating and encapsulating the packet.
  • the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the hardware resources used by the edge RB to support packet encapsulation and decapsulation. The amount of allocation, the message forwarding efficiency is high.
  • the transmitter 1101 is further configured to send the extended information to the first edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC. .
  • the transmitter 1101 sends the second additional information as shown in Table 3, in addition to the information of the content type in the prior art.
  • the 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.
  • the RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
  • the first edge RB as the receiving end only needs to pass the first DC
  • the processor 1002 of the edge RB encapsulates the header of the RB, and the processor 1002 of the RB other than the first edge RB of the first DC does not need to perform the next jump distribution tree forwarding entry for the RBs in other DCs.
  • the calculation reduces the allocation of hardware resources to support packet encapsulation and decapsulation, and the packet forwarding efficiency is high, which further reduces the workload of other RBs.
  • the embodiment of the present invention provides a TRILL network interconnection system. As shown in FIG. 12, the system is composed of a first edge RB1201 and a second edge RB1202.
  • the second edge RB1202 such as the second edge RB1202 of the second DC, to the first edge
  • RB1201 for example, the first edge RB1201 of the first DC, sends the RB identification information.
  • the RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
  • the first edge RB1201 receives the RB identification information sent by the second edge RB1202 of the second DC.
  • the second edge RB 1202 may send the RB identification information to the first edge RB 1201 by using a border gateway protocol BGP.
  • the first additional information shown in Table 1 is also sent.
  • the first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB, and the first additional information further includes RB identification information.
  • the first additional information further includes a VLAN ID corresponding to the RB identification information, where Matches the data format within the first DC.
  • the RB identification information received by the first edge RB 1201 establishes a distribution tree forwarding entry.
  • the first edge RB 1201 establishes, according to the RB identification information in the first DC, the tree in the second DC, according to the RB identification information in the second DC.
  • the distribution tree forwarding entry of the root RB is a distribution tree forwarding entry of the root RB.
  • the first edge RB 1201 establishes the distribution tree forwarding entry by using a shortest path SPF algorithm according to the received RB identification information.
  • the SPF algorithm calculates the distance to each target RB by using a certain RB as the root (ROOT).
  • Each RB calculates the topology structure of the routing domain according to a unified database during calculation.
  • the structure is similar to a tree.
  • the SPF algorithm it is called the shortest path tree.
  • the first edge RB1201 is operated by the SPF algorithm to obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and the RB identification information of the path closest to the root RB is used as the distribution tree. Forward the entry to save.
  • the first edge RB 1201 may also save the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, so that the port number can be simultaneously sent to multiple destination RBs through the port number. Text. That is, the first edge RB1201 obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry.
  • the first edge RB 1201 forwards the received RB identification information to other RBs in the first DC.
  • the first edge In order to enable each RB in the first DC to send a message to the RB in the second DC, the first edge
  • the RB 1201 sends the received RB identification information to other RBs in the first DC.
  • the other RBs may obtain the RB identification information of the next hop RB for the RB in the second DC, and save the RB identification information.
  • the first edge RB1201 is further configured to obtain 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.
  • the first edge RB 1201 may also save the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, and the port number may be simultaneously
  • the multiple destination RBs send the packet, that is, the other RBs obtain the port number corresponding to the next hop RB, and add the port number of the corresponding next hop RB to the distribution tree forwarding entry established by itself.
  • the RB identification information sent by the RB 1202 to the first edge RB 1201 of the first DC may distinguish the first intra-DC intra-RB and the second intra-DC RB such that each RB in the first DC and the second DC has unique identification information.
  • the first edge RB 1201 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 the other DC receives the second DC.
  • the RB identification information is used to establish a distribution tree forwarding entry, and the RB can be successfully sent to another DC without the decapsulation and encapsulation of the first edge RB1 201 and the second edge RB 1202.
  • the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the allocation amount of the hardware resources supported by the edge RB to support packet encapsulation and decapsulation.
  • the text forwarding efficiency is high.
  • the first edge RB 1201 manages the routing table of the first DC by using the first edge RB 1201 or the second edge RB 1202 to manage all the routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
  • first edge RB 1201 is further configured to receive the extended information sent by the second edge RB 1202, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC. .
  • the second edge RB 1202 sends the RB identification information to the first edge RB 1201 through BGP, in addition to transmitting the same information as the content type in the prior art, the second additional information, as shown in Table 3, is also sent. It 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.
  • the RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
  • the first edge RB 1201 is further configured to establish, according to the VLAN ID, 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.
  • the RB identification information of the RB corresponding to the VLAN ID in the first DC is searched according to the extended information, that is, the VLAN ID, and the RB identification information of the root RB in the RB identification information and the second additional information is The VLAN ID is saved as a distribution tree forwarding entry.
  • the first edge RB 1201 changes the name of the egress RB 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, that is, the VLAN ID, so that the first edge RB1201 in the first DC is encapsulated.
  • the TRILL 4 header can be forwarded to the RB in the first DC.
  • the sending process of the foregoing message is only required.
  • the RB of the first DC is encapsulated by the edge RB of the first DC, and the RBs other than the first edge RB1201 of the first DC do not need to perform calculation of the next jump distribution tree forwarding entry for the RBs in other DCs.
  • the edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, thereby further reducing the workload of other RBs.
  • the first edge RB 1201 manages the routing table of the first DC by using the first edge RB 1201 or the second edge RB 1202 to manage all the routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
  • the TRILL network interconnection system provided by the embodiment of the present invention is a second edge RB 1202, for example, the second edge RB 1202 of the second DC, and is unidirectional when transmitting the RB identification information to the first edge RB 1201, for example, the first edge RB 1201 of the first DC.
  • the technical solution is that when the first edge RB 1201 of the first DC sends the RB identification information to the second edge RB 1202 of the second DC, and the first edge RB 1201 of the first DC sends the RB identification information to other edge RBs of other DCs, Network interconnection between multiple DCs.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (proces sor) to perform all or part of the steps of the methods of the various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acces s Memory), a magnetic disk or an optical disk, and the like, which can store program codes. medium.

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

The present invention relates to the technical field of communications. Disclosed are a TRILL network interconnection method, device and system, capable of solving the problem of low packet forwarding efficiency due to the fact that a great quantity of hardware resources need to be allocated for each edge route-bridge (RB) to support packet encapsulation and decapsulation during interconnection between data centers (DC). The method of the present invention comprises: the first edge RB of a first DC receives RB identification information transmitted by the second edge RB of a second DC, the RB identification information carrying the combination of the identification (ID) of a root-RB in a second DC and the ID of the second DC; and the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, such that the packet can be transmitted according to the distribution tree forwarding entry. The present invention is mainly used in the interconnection process between DCs.

Description

TRILL网络互联方法、 装置及系统 本申请要求于 2013 年 1 月 18 日提交中国专利局、 申请号为 201310027036. 4 , 发明名称为 "TRILL 网络互联方法、 装置及系统" 的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术领域, 尤其涉及一种 TRILL网络互联方法、 装置及 系统。 背景技术 随着网络技术的发展, 数据中心(Data Center , 筒称 DC )的规模和数 量在快速增长。 通常, DC被解释为 "多功能的建筑物, 能容纳多个服务器 以及通信设备。 这些设备被放置在一起是因为它们具有相同的对环境的要 求以及物理安全上的需求, 并且这样放置便于维护。" 因此, 筒单的说, DC 由多个服务器、 交换机以及路由器组成。 运行多链接半透明互联 (Transparent Interconnect ion of Lot s of Links , 筒称 TRI1 )十办议的网 桥(Br idge )被称为路由桥(Route-Br idge , 筒称 RB ), 即具有路由转发特 性的网桥设备, 由 RB构建的网络称之为 TRILL网 (TRILL Campus )。  TRILL NETWORK METHOD, DEVICE, AND SYSTEM This application claims priority to Chinese Patent Application No. 201310027036. 4, entitled "TRILL Network Interconnection Method, Device and System", filed on January 18, 2013. The entire contents of which are incorporated herein by reference. The present invention relates to the field of communications technologies, and in particular, to a TRILL network interconnection method, apparatus, and system. BACKGROUND With the development of network technologies, the size and number of data centers (data centers) are rapidly increasing. In general, DC is interpreted as a "multi-functional building that can accommodate multiple servers and communication devices. These devices are placed together because they have the same environmental requirements and physical security requirements, and are placed for maintenance. Therefore, in the case of a single, the DC consists of multiple servers, switches, and routers. The bridge (Br idge) running the Transatent Interconnection of Lot s of Links (called TRI1) is called the Route Bridge (Route-Br idge), which has routing forwarding. The characteristic bridge device, the network constructed by RB is called TRILL Network.
现有技术中, 基于 TRILL的 DC间的互联通过下述两种方式实现: 一、 将多个 DC作为一个 TRILL Campus 0 由各 DC的出口 RB管理各 DC 间报文转发的路由表。 In the prior art, the interconnection between the DCs based on the TRILL is implemented in the following two ways: 1. A plurality of DCs are used as one TRILL Campus 0 , and the routing RBs for forwarding packets between the DCs are managed by the egress RBs of the DCs.
二、 各个 DC作为独立的 TRILL Campus进行互联。 若第一 DC的第一主 机需要第二 DC的某个分发树中进行广播, 则第一 DC中第一个与第一主机 相连的 RB在数据帧中添加第一 TRILL报文头, 第一 DC 内的 RB根据第一 TRILL报文头的信息,通过第一 DC内的分发树将该数据帧转发到第一 DC的 作为路由器的 RB, 该 RB将第一 TRILL报文头去掉, 并将报文路由至第二 DC的作为路由器的 RB,该 RB为 4艮文添加第二 TRILL ·^艮文头, 用于通过第二 DC中的分发树转发给该分发树树根节点。 2. Each DC is interconnected as an independent TRILL Campus. 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 first TRILL packet header to the data frame, first The RB in the DC forwards the data frame to the RB of the first DC as a router according to the information of the first TRILL packet header, and the RB removes the first TRILL packet header, and Message routing to the second The RB of the DC as a router adds a second TRILL header to the root tree of the distribution tree through the distribution tree in the second DC.
在实现上述网络互联的过程中, 发明人发现现有技术中至少存在如下 问题:  In the process of implementing the above network interconnection, the inventors found that at least the following problems exist in the prior art:
现有技术一中, 由于路由器的处理能力以及存储空间有限, 其管理的 路由表的表项的数量是有限的, 因此路由范围也是有限的, 无法满足大规 模的 DC间互联。 由于路由器管理着多个 DC间的路由路径, 路由表庞大, 因此其收敛时间与路由器管理一个 DC内的路由表时将增加。 因此, 现有技 术一只适用于小规模 DC间互联, 无法支持大规模的 DC间互联。  In the prior art 1, because the processing capacity of the router and the storage space are limited, the number of entries of the routing table managed by the router is limited, so the routing range is also limited, and the large-scale interconnection between DCs cannot be satisfied. Since the router manages the routing path between multiple DCs and the routing table is large, its convergence time will increase when the router manages the routing table within a DC. Therefore, the prior art is suitable for small-scale inter-DC interconnections and cannot support large-scale inter-DC interconnection.
现有技术二中, 由于各 DC分别使用各自的分发树转发报文, 使得报文 在不同 DC间转发时, 发送报文的 DC的出口 RB需要对报文进行解封装, 接 收报文的 DC的路由器需要对报文进行再封装。 路由器需要分配大量的硬件 资源以支持报文的封装与解封装, 报文转发效率低。 发明内容  In the second embodiment, the DCs of the DCs that send the packets need to decapsulate the packets, and receive DCs of the packets, because the DCs use the respective distribution trees to forward the packets, so that the packets are forwarded between different DCs. 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. The packet forwarding efficiency is low. Summary of the invention
本发明的实施例提供一种 TRILL网络互联方法、 装置及系统, 能够解决 由于对报文进行封装与解封装导致的报文转发效率低和无法支持大规模 DC 间互联的问题。  The embodiment of the present invention provides a TRILL network interconnection method, device, and system, which can solve the problem of low packet forwarding efficiency and inability to support large-scale inter-DC interconnection due to packet encapsulation and decapsulation.
第一方面, 本发明提供了一种多链接半透明互联 TR I LL网络互联方法, 所述方法包括:  In a first aspect, the present invention provides a multi-link semi-transparent interconnect TR I LL network interconnection method, where the method includes:
第一数据中心 DC的第一边缘 RB接收第二 DC的第二边缘 RB发送的 RB标识 信息, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标识 I D和所 述第二 DC身份标识 I D的组合;  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, where the RB identification information carries the RB identity identifier of the root RB in the second DC and the a combination of second DC identity IDs;
所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 以便根据 所述分发树转发表项发送报文。 在所述第一方面的第一种可能的实现方式中, 所述第一边缘 RB接收所 述第二边缘 RB通过边界网关协议 BGP发送的所述 RB标识信息。 The first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send a packet according to the distribution tree forwarding entry. In a first possible implementation manner of the first aspect, the first edge RB receives the RB identification information that is sent by the second edge RB by using 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 a second possibility in the first aspect In the implementation manner, the first edge RB establishes the distribution tree forwarding entry by using a 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 RB establishes its own distribution tree forwarding item 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, the first edge RB acquires a port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry; The other RBs obtain the port number corresponding to the next hop RB, and add the port number of the corresponding 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, the second possible or the third possible implementation of the first aspect, a fourth possible implementation of the first aspect is also provided, In the fourth possible implementation manner of the first aspect, the RB identifier information sent by the first edge RB of the first data center DC that is received by the second edge RB of the second DC carries:
虚拟局域网 VLAN身份标识 ID, 所述 VLAN ID用于标识所述第一 DC中树根 a VLAN ID of the virtual local area network, where the VLAN ID is used to identify the root of the first DC
RB和所述第二 DC中树根 RB同属的 VLAN; 所述第一边缘 RB接收所述第二边缘 RB发送的扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识 信息 和 VLAN ID之间的对应关系。 a RB and a VLAN of the second DC in which the root RB belongs; the first edge RB receives the extended information sent by the second edge RB, and the extended information is used to describe the root RB of the second DC Correspondence between RB identification information and VLAN ID.
在所述第一方面或所述第一方面的第一种可能、 第二种可能、 第三种 可能或第四种可能的实现方式中, 还提供了所述第一方面的第五种可能的 实现方式, 在所述第一方面的第五种可能的实现方式中, 所述第一边缘 RB 根据 VL AN I D建立所述第一 DC中树根 RB的 RB标识信息和所述第二 DC中树根 RB 的 RB标识信息的对应关系, 由此将所述扩展信息转化为本地分发树转发表 项。 In the first aspect or the first possible, the second possible, the third possible or the fourth possible implementation of the first aspect, the fifth possibility of the first aspect is also provided In a fifth possible implementation manner of the first aspect, the first edge RB Establishing 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 VL AN ID, thereby converting the extended information into a local distribution tree forwarding table item.
第二方面, 本发明提供一种多链接半透明互联 TRILL网络互联方法, 所 述方法包括:  In a second aspect, the present invention provides a multi-link semi-transparent interconnect TRILL network interconnection method, where the method includes:
第二数据中心 DC的第二边缘 RB向第一 DC的第一边缘 RB发送 RB标识信 息, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标识 I D和所述 第二 DC身份标识 ID的组合, 以便所述第一边缘 RB根据所述 RB标识信息建立 分发树转发表项, 根据所述分发树转发表项发送报文。  The second edge RB of the second data center DC sends the RB identification information to the first edge RB of the first DC, where the RB identification information carries the RB identity identifier ID of the root RB in the second DC and the A combination of the two DC identity IDs, so that the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, and sends a packet 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 by using a border gateway protocol BGP.
在所述第二方面或所述第二方面的第一种可能的实现方式中, 还提供 了所述第二方面的第二种可能的实现方式, 在所述第二方面的第二种可能 的实现方式中, 所述第二边缘 RB向所述第一边缘 RB发送的所述 RB标识信息 中还携带有:  In the second aspect or the first possible implementation manner of the second aspect, the second possible implementation manner of the second aspect is further provided, and the second possibility in the second aspect In the implementation manner, the RB identifier information sent by the second edge RB to the first edge RB further carries:
虚拟局域网 VLAN身份标识 ID, 所述 VLAN ID用于标识所述第一 DC中树根 RB和所述第二 DC中树根 RB同属的 VLAN; 所述第二边缘 RB向所述第一边缘 RB 发送扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN I D之间的对应关系。  a VLAN ID of the virtual local area network, where the VLAN ID is used to identify a VLAN in which the root RB in the first DC and the tree root RB in the second DC belong to the same; the second edge RB is in the first edge RB And transmitting the extended information, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC.
第三方面, 本发明提供一种多链接半透明互联 TRILL网络互联装置, 所 述装置为第一数据中心 DC中的第一边缘 RB , 所述装置包括:  In a third aspect, the present invention provides a multi-link translucent interconnect TRILL network interconnection device, where the device is a first edge RB in the first data center DC, and the device includes:
接收单元, 用于接收第二 DC的第二边缘 RB发送的 RB标识信息, 所述 RB 标识信息中携带有所述第二 DC中树根 RB的 RB身份标识 ID和所述第二 DC身份 标识 ID的组合;  a receiving unit, configured to receive RB identification information that is sent by the second edge RB of the second DC, where the RB identification information carries the RB identity identifier and the second DC identity of the root RB in the second DC Combination of IDs;
处理单元, 用于根据所述接收单元接收到的所述 RB标识信息建立分发 树转发表项。 在所述第三方面的第一种可能的实现方式中, 所述接收单元还用于接 收所述第二边缘 RB通过边界网关协议 BGP发送的所述 RB标识信息。 The processing unit is configured to establish a distribution tree forwarding entry according to the RB identification information received by the receiving unit. In a first possible implementation manner of the third aspect, the receiving unit is further configured to receive the RB identifier information that is sent by the second edge RB by using a border gateway protocol BGP.
在所述第三方面或所述第三方面的第一种可能的实现方式中, 还提供 了所述第三方面的第二种可能的实现方式, 在所述第三方面的第二种可能 的实现方式中, 所述处理单元具体包括:  In the third aspect or the first possible implementation manner of the third aspect, the second possible implementation manner of the third aspect is also provided, and the second possibility in the third aspect The processing unit specifically includes:
计算子单元, 用于根据所述接收单元接收到的所述 RB标识信息通过最 短路径 SPF算法建立所述分发树转发表项;  a calculation subunit, configured to establish, according to the RB identification information received by the receiving unit, the distribution tree forwarding entry by using a shortest path SPF algorithm;
发送子单元, 用于将所述接收单元接收到的所述 RB标识信息转发给所 述第一 DC中的其他 RB。  And a sending subunit, configured to forward the RB identification information received by the receiving unit to other RBs in the first DC.
在所述第三方面或所述第三方面的第一种可能或第二种可能的实现方 式中, 还提供了所述第三方面的第三种可能的实现方式, 在所述第三方面 的第三种可能的实现方式中, 所述计算子单元还用于获取对应下一跳 RB的 端口号, 将所述对应下一跳 RB的端口号添加到所述分发树转发表项中。  In a 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, the calculating subunit is further configured to obtain a port number corresponding to the next hop RB, and add the port number of the corresponding next hop RB to the distribution tree forwarding entry.
在所述第三方面或所述第三方面的第一种可能、 第二种可能或第三种 可能的实现方式中, 还提供了所述第三方面的第四种可能的实现方式, 在 所述第三方面的第四种可能的实现方式中, 所述接收单元还用于接收所述 第二边缘 RB发送的扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB 的 RB标识信息 和 VLAN ID之间的对应关系。  In the third aspect or the first possible, the second possible or the third possible implementation of the third aspect, a fourth possible implementation manner of the third aspect is also provided, 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 a root RB in the second DC Correspondence between the RB identification information and the VLAN ID.
在所述第三方面或所述第三方面的第一种可能、 第二种可能、 第三种 可能或第四种可能的实现方式中, 还提供了所述第三方面的第五种可能的 实现方式, 在所述第三方面的第五种可能的实现方式中, 所述处理单元还 用于根据 VLAN ID建立所述第一 DC中树根 RB的 RB标识信息和所述第二 DC中树 根 RB的 RB标识信息的对应关系。  In the third aspect or the first possible, the second possible, the third possible or the fourth possible implementation of the third aspect, the fifth possibility of the third aspect is also provided In a fifth possible implementation manner of the third aspect, the processing unit is further configured to establish RB identifier information of the root RB in the first DC according to the VLAN ID, and the second DC Correspondence between RB identification information of the RB of the root tree.
第四方面, 本发明提供一种多链接半透明互联 TRILL网络互联装置, 所 述装置为第二数据中心 DC中的第二边缘 RB , 所述装置包括: 发送单元, 用于向第一 DC的第一边缘 RB发送 RB标识信息, 所述 RB标识 信息中携带有所述第二 DC中树根 RB的 RB身份标识 ID和所述第二 DC身份标识 ID的组合。 In a fourth aspect, the present invention provides a multi-link semi-transparent interconnected TRILL network interconnection device, where the device is a second edge RB in the second data center DC, and the device includes: a sending unit, configured to send RB identification information to the first edge RB of the first DC, where the RB identification information carries an RB identity identifier ID and a second DC identity identifier of the root RB in the second DC The combination.
在所述第四方面的第一种可能的实现方式中所述发送单元还用于通过 边界网关协议 BGP向所述第一边缘 RB发送所述 RB标识信息。  In the first possible implementation manner of the fourth aspect, the sending unit is further configured to send the RB identifier information to the first edge RB by using a border gateway protocol BGP.
在所述第四方面或所述第四方面的第一种可能的实现方式中, 还提供 了所述第四方面的第二种可能的实现方式, 在所述第四方面的第二种可能 的实现方式中, 所述发送单元还用于向所述第一边缘 RB发送扩展信息, 所 述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的 对应关系。  In the fourth aspect or the first possible implementation manner of the fourth aspect, the second possible implementation manner of the fourth aspect is further provided, and the second possibility in the fourth aspect In an implementation manner, the sending unit is further configured to send the extended information to the first edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC relationship.
第五方面, 本发明提供一种多链接半透明互联 TRILL网络互联系统, 所 述系统由第一边缘 RB和第二边缘 RB组成。  In a fifth aspect, the present invention provides a multi-link semi-transparent interconnect TRILL network interconnection system, the system comprising a first edge RB and a second edge RB.
本发明提供的 TRILL网络互联方法、 装置及系统, 由于第一边缘 RB接收 到的 RB标识信息为第二 DC中树根 RB的 RB身份标识 I D和所述第二 DC身份标识 ID的组合, 因此当所述第一边缘 RB根据所述 RB标识信息建立分发树转发表 项时, 第一边缘 RB所建立的分发树转发表项除了含有针对第一 DC内部各树 根 RB的分发树转发表项外, 还有针对第二 DC内各树根 RB的分发树转发表项。 与现有技术二中在第一边缘 RB和第二边缘 RB需要对报文进行解封装和封装 相比, 本发明中的第一边缘 RB和第二边缘 RB无需对报文进行解封装和封装, 可减小支持报文封装与解封装的硬件资源的分配量, 报文转发效率高。 此 外, 与现有技术一中通过第一边缘 RB或第二边缘 RB管理第一 DC和第二 DC内 全部路由表相比, 第一边缘 RB和第二边缘 RB分别管理各自所在 DC的路由表, 因此可支持大规模的 DC间的互联。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。 The TRILL network interconnection method, device and system provided by the present invention, because the RB identification information received by the first edge RB is a combination of the RB identity identifier ID of the root RB and the second DC identity identifier in the second DC, 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 a distribution tree forwarding entry for each root RB of the first DC. In addition, there are distribution tree forwarding entries for each root RB in the second DC. Compared with the prior art, the first edge RB and the second edge RB in the present invention do not need to decapsulate and encapsulate the packet, as the first edge RB and the second edge RB need to decapsulate and encapsulate the packet. The allocation of hardware resources supporting packet encapsulation and decapsulation can be reduced, and the packet forwarding efficiency is high. In addition, the first edge RB and the second edge RB respectively manage the routing tables of the respective DCs in the first DC and the second DC by using the first edge RB or the second edge RB to manage all the routing tables in the first DC and the second DC. Therefore, it can support the interconnection between large-scale DCs. DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description It is merely some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图 1为本发明实施例中一种 TR I LL网络互联方法的方法流程图; 图 1为本发明实施例中另一种 TR I LL网络互联方法的方法流程图; 图 3为本发明实施例中又一种 TRILL网络互联方法的方法流程图; 图 4为本发明实施例中再一种 T R I L L网络互联方法的方法流程图; 图 5为本发明实施例中第一个第一边缘 RB的结构示意图;  1 is a flowchart of a method for interconnecting TR I LL networks according to an embodiment of the present invention; FIG. 1 is a flowchart of another method for interconnecting TR I LL networks according to an embodiment of the present invention; A flowchart of a method for a TRILL network interconnection method; FIG. 4 is a flowchart of a method for a TRILL network interconnection method according to an embodiment of the present invention; FIG. 5 is a structure of a first first edge RB according to an embodiment of the present invention; Schematic diagram
图 6为本发明实施例中第二个第一边缘 RB的结构示意图;  6 is a schematic structural diagram of a second first edge RB according to an embodiment of the present invention;
图 Ί为本发明实施例中第三个第一边缘 RB的结构示意图;  Figure Ί is a schematic structural diagram of a third first edge RB in the embodiment of the present invention;
图 8为本发明实施例中第一个第二边缘 RB的结构示意图;  8 is a schematic structural diagram of a first second edge RB according to an embodiment of the present invention;
图 9为本发明实施例中第一个 TR I LL网络互联系统的结构示意图; 图 10为本发明实施例中第四个第一边缘 RB的结构示意图;  FIG. 9 is a schematic structural diagram of a first TR I LL network interconnection system according to an embodiment of the present invention; FIG. 10 is a schematic structural diagram of a fourth first edge RB according to an embodiment of the present invention;
图 11为本发明实施例中第二个第二边缘 R B的结构示意图;  11 is a schematic structural diagram of a second second edge R B according to an embodiment of the present invention;
图 12为本发明实施例中第二个 TR I LL网络互联系统的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。  FIG. 12 is a schematic structural diagram of a second TR I LL network interconnection system according to an embodiment of the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了方便对本发明的理解, TRILL报文头的结构如表 1所示。  To facilitate the understanding of the present invention, the structure of the TRILL header is as shown in Table 1.
表 1 TRILL Ether type V R M OpLng HopTable 1 TRILL Ether type VRM OpLng Hop
Egres s RBr idge Nickname Ingres s RBr idge Nickname 表 1中: TRILL Ether type为 TRILL协议的网络类型; V为 TRILL版本 号, 当前为 0 , 如果发现不为 0则丟弃该报文; R为保留字段; M为组播标 识, Q表示单播, 1表示组播; OpLng (0P_Length)为 TRILL报文头扩展选 项的长度; Hop为跳数; Egres s RBr idge Nickname (出口 RB名称 )若单播 则为与服务器连接的 RB的 RB标识信息, 若组播则为分发树的树根 RB标识 信息; Ingres s RBr idge Nickname (入口 RB名称)为与月良务器相连的 RB 的 RB标识信息, 用于标识为 ^艮文添加 TRILL ^艮文头的源 RB。 Egres s RBr idge Nickname Ingres s RBr idge Nickname In Table 1: TRILL Ether type is the network type of the TRILL protocol; V is the TRILL version number, currently 0, if the disc is not 0, the packet is discarded; R is the reserved field. M is a multicast identifier, Q means unicast, 1 means multicast; OpLng (0 P _Length) is the length of the TRILL header extension option; Hop is the hop count; Egres s RBr idge Nickname (export RB name) The broadcast is the RB identification information of the RB connected to the server. If the multicast is the root RB identification information of the distribution tree, the Ingres s RBr idge Nickname is the RB identification information of the RB connected to the server. , is used to identify the source RB that adds TRILL ^艮 header to ^艮文.
下述各实施例中提及的树根 RB、 其他 RB以及下一跳 RB的命名是根据 单次 TRILL报文发送过程中某 RB的功能进行命名的, 该单次 TRILL报文的 发送以入口 RB名称(第一个与服务器相连 RB的 RB标识信息) 为起始点, 以出口 RB名称为终止点。 因此, 对于不同的 4艮文发送过程中同一 RB可能 分别作为树根 RB或其他 RB或下一跳 RB。  The naming of the root RB, the other RBs, and the next hops mentioned in the following embodiments are named according to the function of an RB in the process of sending a single TRILL packet, and the sending of the single TRILL packet is an entry. The RB name (the first RB identification information of the RB connected to the server) is the starting point, and the exit RB name is used as the termination point. Therefore, the same RB may be used as a root RB or other RB or next hop RB for different 艮 transmissions.
实施例一  Embodiment 1
本发明实施例提供了一种 TRILL网络互联方法, 如图 1所示, 所述方 法包括:  The embodiment of the invention provides a TRILL network interconnection method. As shown in FIG. 1, the method includes:
步骤 101、 第一数据中心 DC的第一边缘 RB接收第二 DC的第二边缘 RB 发送的 RB标识信息。  Step 101: 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.
其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合。  The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
RB标识信息的结构为: DC ID: RB ID, 通过 DC ID与 RB ID相结合的 方式, 使得第一 DC与第二 DC内的各 RB具有唯一的标识信息。 可选的, 上 述 RB标识信息的结构还可为: RB ID: DC ID。  The structure of the RB identification information is: DC ID: RB ID, by combining the DC ID and the RB ID, so that each RB in the first DC and the second DC has unique identification information. Optionally, the structure of the foregoing RB identifier information may also be: RB ID: DC ID.
步骤 102、所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项。 所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 以便根 据所述分发树转发表项发送报文。 第一边缘 RB可将接收到的 RB标识信息 发送给第一 DC内的各 RB, 第一 DC内的第一边缘 RB以及各 RB除了根据第 一 DC内 RB标识信息建立针对第一 DC内部的分发树转发表项以外, 还根据 接收到的第二 DC内的 RB标识信息建立针对第二 DC内各树根 RB的分发树 转发表项。 Step 102: The first edge RB establishes a distribution tree forwarding entry according to the RB identification information. The first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send a packet according to the distribution tree forwarding entry. The first edge RB may receive the received RB identification information. Sending to each RB in the first DC, the first edge RB and the RBs in the first DC are not only configured according to the RB identification information in the first DC, but also based on the distribution tree forwarding entry in the first DC. The RB identification information in the second DC establishes a distribution tree forwarding entry for each root RB in the second DC.
具体的, 第一边缘 RB在接收到的 RB标识信息之后, 在自身链路状态 数据库(Link State Database, 筒称 LSDB) 中为该 RB标识信息生成拓朴, 包括以下两种方式:  Specifically, after the received RB identification information, the first edge RB generates a topology for the RB identification information in a Link State Database (LSDB), including the following two methods:
1、 复制第一边缘 RB自身拓朴。  1. Copy the first edge RB itself topology.
第一边缘 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, where the entry is a set of correspondences after the RB identifier of the first edge RB is replaced by the RB identifier information. For example, the RB identification information of the first edge RB is 01: 01. The entries in the LSDB that start with the first edge RB are "01: 01-01: 02" and "01: 01-01: 03". After the first edge RB receives the second edge RB and sends the RB identification information, if the received RB identification information is 02: 02, the entry is added: "02: 02-01: 02" and "02: 02-01: 03".
2、 复制第一 DC内某树根 RB的拓朴。  2. Copy the topology of a tree 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 root of the tree can be randomly selected or selected 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 RB with the RB ID of 01: 05, starting with 01: 05. The entries are "01: 05-01: 03" and "01: 05-01: 06". After the first edge RB receives the second edge RB and sends the RB identification information, if the RB identification information received at this time is 02: 02, the entry is added: "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标识信息相同的树根优先级( root pr ior i ty )。 The preset rule may be, but is not limited to, a hash algorithm. After the first edge RB adds an entry to the LSDB, the SPF algorithm is combined with the entry in the LSDB to form a distribution tree forwarding entry. When you create a distribution tree forwarding entry, you need to refer to the priority of each entry in the LSDB. The higher the priority of the starting RB identifier in the entry is, the greater the probability that the root RB is determined. Therefore, in order to ensure that the RB identification information of the root RB in the second DC is elected as a 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 provided. Same root priority (root Pr ior i ty ).
当第一边缘 RB在自身 LSDB中为该 RB标识信息生成拓朴之后, 第一边 缘 RB将自身 LSDB中新增的表项, 即 LSPs (拓朴), 在第一 DC内进行通告。  After the first edge RB generates a topology for the RB identification information in the LSDB, the first edge RB advertises the new entry in the LSDB, that is, the LSPs, in the first DC.
当通过第二数据中心 DC的第二边缘 RB接收第一 DC的第一边缘 RB发 送的 RB标识信息时, 第二 DC的第二边缘 RB可获得第一 DC中各树根 RB的 RB标识信息, 进而可实现第一 DC与第二 DC的互联。  When the RB identification information sent by the first edge RB of the first DC is received by the second edge RB of the second data center DC, the second edge RB of the second DC may obtain the RB identification information of each root RB in the first DC. The interconnection of the first DC and the second DC can be implemented.
若第一 DC的第一主机需要在第二 DC的某个分发树中进行广播, 则第 一 DC中第一个与第一主机相连的 RB在数据帧中添加 TRILL报文头, 所述 TRILL 4艮文头中的入口 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 packet header to the data frame, where the TRILL The entry RB name in the header is the name of the first RB connected to the first host in the first DC, and the egress RB name is the RB identification information of the RB in the second DC that is the root of the distribution tree. The RB in the first DC forwards the data frame to the first edge RB of the first DC by using the RB in the first DC according to the information of the TRILL packet header, and the first edge RB directly routes the packet to the second edge. After the second edge RB of the DC receives the packet, each RB in the second DC checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry.
上述报文发送过程, 仅为第二 DC的第二边缘 RB向第一 DC的第一边缘 The foregoing packet sending process is only the second edge RB of the second DC to the first edge of the first DC
RB发送 RB标识信息后的单向的技术方案,在第一 DC的第一边缘 RB向第二 DC的第二边缘 RB发送 RB标识信息,和第一 DC的第一边缘 RB向其他 DC的 其他边缘 RB发送 RB标识信息之后, 可实现多 DC间的网络互联。 After the RB sends the RB identification information, the unidirectional technical solution sends the RB identification information to the second edge RB of the second DC, and the first edge RB of the first DC to the other DCs. After the edge RB sends the RB identification information, network interconnection between multiple DCs can be implemented.
本发明提供的 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间的互联。 The TRILL network interconnection method provided by the present invention, because the RB identification information received by the first edge RB is a combination of the RB identity identifier ID of the root RB and the second DC identity identifier in the second DC, 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 includes, in addition to the distribution tree forwarding entry for each root RB of the first DC, A forwarding entry for each of the distribution tree root RBs in the second DC. Compared with the prior art, the first edge RB and the second edge RB in the present invention do not need to decapsulate and encapsulate the packet, as the first edge RB and the second edge RB need to decapsulate and encapsulate the packet. The allocation of hardware resources supporting packet encapsulation and decapsulation can be reduced, and the packet forwarding efficiency is high. In addition, in the prior art, the first edge RB or the second edge RB is managed. Compared with all routing tables in a DC and a second DC, in the present invention, the first edge RB and the second edge RB respectively manage routing tables of respective DCs, and thus can support interconnection between large-scale DCs.
实施例二  Embodiment 2
本发明实施例提供了一种 TRILL网络互联方法, 如图 1实施, 所述方 法包括:  The embodiment of the present invention provides a TRILL network interconnection method, as shown in FIG. 1, the method includes:
步骤 201、第二数据中心 DC的第二边缘 RB向第一 DC的第一边缘 RB发 送 RB标识信息。  Step 201: The second edge RB of the second data center DC sends the RB identification information to the first edge RB of the first DC.
其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合, 以便所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 根据所述分发树转发表项发送报文。  The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier ID, so that the first edge RB is established according to the RB identifier information. The distribution tree forwarding entry sends a packet 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 by the second edge RB of the second DC to the first edge RB of the first DC may be used to distinguish between the RB in the first DC and the RB in the second DC. And making each RB in the first DC and the second DC have unique identification information. The first edge RB in the embodiment of the present invention may be based on the received RB identification information in the second DC, as compared with the second edge RB in the prior art, in which the first edge RB and the second edge RB need to decapsulate and encapsulate the packet. A distribution tree forwarding entry is created, and the first edge RB and the second edge RB need not be decapsulated and encapsulated, and the amount of hardware resources allocated by the edge RB to support packet encapsulation and decapsulation is reduced. high. In addition, in the first embodiment of the present invention, the first edge RB and the second edge RB respectively manage the respective first and second edge RBs in the first DC and the second DC. The routing table of the DC, so it can support the interconnection between large-scale DCs.
实施例三  Embodiment 3
作为对实施例一和实施例二的详细说明及进一步扩展, 本发明实施例 还提供了一种 TRILL网络互联方法, 如图 3所示, 所述方法包括:  As a detailed description and further extension of the first embodiment and the second embodiment, the embodiment of the present invention further 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 the RB identification information to the first edge RB of the first DC.
其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合, 以便所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 根据所述分发树转发表项发送报文。 The RB identifier information carries the RB identity label of the root RB in the second DC. The combination of the ID and the second DC identity ID, so that the first edge RB establishes a distribution tree forwarding entry according to the RB identification information, and sends a packet 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 may distinguish the first intra DC and the second intra RB, so that each RB in the first DC and the second DC is unique Identification information.
具体的, 所述第二边缘 RB通过边界网关协议 BGP向所述第一边缘 RB 发送所述 RB标识信息。  Specifically, the second edge RB sends the RB identification information to the first edge RB by using a border gateway protocol BGP.
第二边缘 RB通过 BGP向所述第一边缘 RB发送所述 RB标识信息时, 除 了发送与现有技术中 BGP内容类型相同的信息外, 还发送如表 2所示的第 一附加信息, 第一附加信息用于表示附加信息中 RB标识信息对应的 RB是 否为分发树树根 RB所述第一附加信息还包含有 RB标识信息。 可选的, 在 第一附加信息中还包含有与 RB标识信息对应的 VLAN ID, 用于匹配第一 DC 内的数据格式。  When the second edge RB sends the RB identification information to the first edge RB through BGP, in addition to transmitting the same information as the BGP content type in the prior art, the first additional information, as shown in Table 2, is also sent. An additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB. The first additional information further includes RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
表 2 (第一附加信息)  Table 2 (first additional information)
Yes or No (是否为树根 RB)  Yes or No (whether it is root RB)
Root Nickname (树根 RB的 RB标识信息) 第二数据中心 DC的第二边缘 RB向第一 DC的第一边缘 RB发送 RB标识 信息后, 第一数据中心 DC的第一边缘 RB接收第二 DC的第二边缘 RB发送 的 RB标识信息。 其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB 的 RB身份标识 ID和所述第二 DC身份标识 ID的组合。 通过第一附加信息 中的第一个表项, 可确定 RB标识信息是否为树根 RB的 RB标识信息。  Root Nickname (RB RB identification information of the root RB) After the second edge RB of the second data center DC transmits 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 second DC The RB identification information sent by the second edge RB. The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier. The first entry in the first additional information determines 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 that is sent by the second edge RB through the border gateway protocol BGP.
步骤 302、所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项。 所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 以便根 据所述分发树转发表项发送报文。 第一边缘 RB可将接收到的 RB标识信息 发送给第一 DC内的其他 RB, 第一 DC内的第一边缘 RB以及其他 RB除了根 据第一 DC内 RB标识信息建立针对第一 DC内部的分发树转发表项以外, 还 根据接收到的第二 DC内的 RB标识信息建立针对第二 DC内各树根 RB的分 发树转发表项。 Step 302: The first edge RB establishes a distribution tree forwarding entry according to the RB identification information. The first edge RB establishes a distribution tree forwarding entry according to the RB identification information, so as to send a packet according to the distribution tree forwarding entry. The first edge RB may receive the received RB identification information. Sending to other RBs in the first DC, the first edge RBs and other RBs in the first DC are not only configured according to the RB identification information in the first DC, but also based on the distribution tree forwarding entries in the first DC. The RB identification information in the second DC establishes a distribution tree forwarding entry for each root RB 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 by using a shortest path first algorithm SPF algorithm according to the RB identification information.
第一边缘 RB在接收到的 RB标识信息之后, 在自身 LSDB中为该 RB标 识信息生成拓朴, 包括以下两种方式:  The first edge RB generates a topology for the RB identification information in its own LSDB after receiving the RB identification information, including the following two methods:
1、 复制第一边缘 RB自身拓朴。  1. Copy the first edge RB itself topology.
第一边缘 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, where the entry is a set of correspondences after the RB identifier of the first edge RB is replaced by 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 in the LSDB are "01: 01-01: 02" and "01: 01-01: 03". After the first edge RB receives the second edge RB and sends the RB identification information, if the received RB identification information is 02:02, the entry is added: "02: 02-01: 02" and "02: 02-01: 03".
2、 复制第一 DC内某树根 RB的拓朴。  2. Copy the topology of a tree 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 root of the tree can be randomly selected or selected 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 RB with the RB ID of 01: 05, starting with 01: 05. The entries are "01: 05-01: 03" and "01: 05-01: 06". After the first edge RB receives the second edge RB and sends the RB identification information, if the received RB identification information is 02: 02, the entry is added: "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标识信息相同的树根优先级( roo t pr i or i ty )。 The preset rule may be, but is not limited to, a hash algorithm. After the first edge RB adds an entry to the LSDB, the SPF algorithm is combined with the entry in the LSDB to form a distribution tree forwarding entry. When you create a distribution tree forwarding entry, you need to refer to the priority of each entry in the LSDB. The higher the priority of the starting RB identifier in the entry is, the greater the probability that the root RB is determined. Therefore, in order to guarantee the second DC The RB identification information of the root RB is elected as the root of the root in the first DC, and the RB identification information of the root RB in the second DC is given the same root priority as the RB identification information of the root RB in the first DC ( roo t pr i or i ty ).
SPF算法将某个 RB作为根( ROOT )来计算其到每一个目的 RB的距离, 各 RB在计算时根据一个统一的数据库会计算出路由域的拓朴结构图, 该结 构图类似于一棵树, 在 SPF算法中, 被称为最短路径树。 经过 SPF算法的 运算可得出作为最短路径树的树根 RB到目的 RB之间跳数最少的一条路径, 并将该路径中与树根 RB距离最近的 RB的 RB标识信息作为分发树转发表项 进行保存。 此外, 还可将 SPF算法计算得到的作为树根 RB上的端口号组成 的端口列表作为分发树转发表项进行保存, 即所述第一边缘 RB获取对应下 一跳 RB的端口号, 将所述对应下一跳 RB的端口号添加到所述分发树转发 表项中。 通过端口号可同时向多个 RB发送 4艮文。  The SPF algorithm calculates the distance to each target RB by using a certain RB as the root (ROOT). Each RB calculates the topology structure of the routing domain according to a unified database during calculation. The structure is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The operation of the SPF algorithm can be used to obtain the path with the least number of hops between the root RB and the destination RB of the shortest path tree, and the RB identification information of the RB closest to the root RB in the path is used as the distribution tree forwarding table. Items are saved. In addition, the port list formed by the SPF algorithm as the port number of the root RB may be saved as a distribution tree forwarding entry, that is, the first edge RB obtains the port number corresponding to the next hop RB. The port number corresponding to the next hop RB is added to the distribution tree forwarding entry. The port number can be sent to multiple RBs at the same time.
步骤 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 the LSDB, the first edge RB advertises the newly added entries in the LSDB, that is, LSPs, in the first DC. After the advertised, 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发送 4艮文用的下一跳 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 RB establishes its own distribution tree forwarding entry by using the SPF algorithm according to the RB identification information. In order to enable each RB in the first DC to send a message to the RB 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 that sends the 4 艮 text to the RB in the second DC by using the SPF algorithm described in step 401, and save the RB identification information. In addition, the port list formed by the SPF algorithm as a port number on the root RB is saved as a distribution tree forwarding entry, and the port number can be simultaneously sent to multiple destination RBs, that is, the other RBs. Obtaining a port number corresponding to the next hop RB, and adding the port number of the corresponding next hop RB to the branch established by itself The tree is forwarded in the forwarding entry.
若第一 DC的第一主机需要在第二 DC的某个分发树中进行广播, 则第 一 DC中第一个与第一主机相连的 RB在数据帧中添加 TRILL报文头, 所述 TRILL 4艮文头中的入口 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 packet header to the data frame, where the TRILL The entry RB name in the header is the name of the first RB connected to the first host in the first DC, and the egress RB name is the name of the RB in the second DC that is the root RB of the distribution tree. The RB that is connected to the first host compares the egress RB name in the TRILL packet header with each of the distribution tree forwarding entries saved in the TRILL packet header, and finds the RB identifier information of the next hop RB corresponding to the egress RB name. Or the port list, and the packet is sent to the next hop RB. Each RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry.
若上述出口 RB名称为第一 DC内部的某个树根 RB的 RB标识信息, 则 报文为第一 DC内部的一个组播报文报文。  If the egress RB is the RB identifier of a tree root RB in the first DC, the packet is a multicast packet in 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内全部路由 表相比, 上述 4艮文发送过程中第一边缘 RB和第二边缘 RB分别管理各自所 在 DC的路由表, 因此可支持大规模的 DC间的互联。  Compared with the prior art, in the first edge RB and the second edge RB, the first edge RB and the second edge RB need to decapsulate and encapsulate the packet, and the foregoing sending process passes the second edge RB of the second DC to the first of the first DC. The RB identification information sent by the edge RB may distinguish the RBs in the first DC and the RBs in the second DC, so that each RB in the first DC and the second DC has unique identification information. The first edge RB may establish a distribution tree forwarding entry according to the received RB identification information in the second DC, and the first edge RB sends the received RB identification information to other RBs in the first DC, so as to be first. The other RBs in the DC establish a distribution tree forwarding entry according to the received RB identification information in the second DC. Therefore, the first edge RB and the second edge RB can be successfully sent to the RB of another DC without the decapsulation and encapsulation of the packet, so that the RB checks the TRILL header. In the "M" field, the packet is multicast according to the distribution tree entry, and the allocation of hardware resources that the edge RB is used to support packet encapsulation and decapsulation is reduced, and the packet forwarding efficiency is high. In addition, compared with the foregoing all the routing tables in the first DC and the second DC by the first edge RB or the second edge RB, the first edge RB and the second edge RB are respectively sent in the foregoing process. Manage the routing tables of their respective DCs, thus supporting large-scale interconnections between DCs.
进一步的, 所述第二边缘 RB向所述第一边缘 RB发送的所述 RB标识信 息中还携带有: 虚拟局域网 VLAN身份标识 ID, 所述 VLAN ID用于标识所述 第一 DC中树根 RB和所述第二 DC中树根 RB同属的 VLAN。 Further, the RB identification information that is sent by the second edge RB to the first edge RB further includes: a virtual local area network VLAN identity identifier, where the VLAN ID is used to identify the A VLAN in which the root RB in the first DC and the root RB in the second DC belong to the same VLAN.
此时, 步骤 301进一步细化为, 所述第二数据中心 DC的第二边缘 RB 向第一 DC的第一边缘 RB发送 RB标识信息, 具体包括: 所述第二边缘 RB 向所述第一边缘 RB发送扩展信息, 所述扩展信息用于描述所述第二 DC中 RB的 RB标识信息 和 VLAN ID之间的对应关系。  At this time, the step 301 is further refined to: the second edge RB of the second data center DC sends the RB identification information to the first edge RB of the first DC, which specifically includes: the second edge RB is toward the first The edge RB sends the extended information, where the extended information is used to describe the correspondence between the RB identification information of the RB and the VLAN ID in the second DC.
第二边缘 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 transmitting the same information as the content type in the prior art, the second additional information is also sent as shown in Table 3. 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. The RB identification information of the root RB and the correspondence 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 root RB)
Root Ni ckname (树根 RB的 RB标识信息) 扩展信息: Etherne t Tag ID (VLAN ID) 此时,所述第一数据中心 DC的第一边缘 RB接收第二 DC的第二边缘 RB 发送的 RB标识信息, 具体包括: 所述第一边缘 RB接收所述第二边缘 RB发 送的扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信 息 和 VLAN ID之间的对应关系。  Root Ni ckname (RB RB identification information of the root RB) Extended information: Etherne t Tag ID (VLAN ID) At this time, the first edge RB of the first data center DC receives the RB sent by the second edge RB of the second DC The identifier information includes: the first edge RB receives the extension information sent by the second edge RB, and the extension information is used to describe the RB identifier information of the root RB in the second DC and the VLAN ID. Correspondence relationship.
所述第一数据中心 DC的第一边缘 RB接收第二 DC的第二边缘 RB发送 的 RB标识信息中还携带有: 虚拟局域网 VLAN ID, 所述 VLAN ID用于标识 所述第一 DC中的 RB和所述第二 DC中树根 RB同属的 VLAN。  The RB identification information sent by the first edge RB of the first data center DC that is received by the second edge RB of the second DC further carries: a virtual local area network VLAN ID, where the VLAN ID is used to identify the first DC The RB and the VLAN of the second DC in which the root RB belongs.
步骤 302进一步细化为, 所述第一边缘 RB根据 VLAN ID建立所述第一 DC中 RB的 RB标识信息和所述第二 DC中树根 RB的 RB标识信息的对应关系 , 由此将所述扩展信息转化为本地分发树转发表项。  Step 302 is further refined, the first edge RB establishes a correspondence 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 VLAN ID, thereby The extended information is converted into a local distribution tree forwarding entry.
当第一 DC的第一边缘 RB接收到第二 DC的第二边缘 RB发送的第二附 加信息后, 根据其中的扩展信息, 即 VLAN ID , 寻找第一 DC内与该 VLAN ID 对应 RB的 RB标识信息, 并将该 RB标识信息与第二附加信息中的树根 RB 的 RB标识信息以及 VL AN I D作为一条分发树转发表项进行保存。 After the first edge RB of the first DC receives the second additional information sent by the second edge RB of the second DC, according to the extended information, that is, the VLAN ID, the RB of the RB corresponding to the VLAN ID in the first DC is searched for. Identification information, and the RB identification information and the root RB in the second additional information The RB identification information and the VL AN ID are saved as a distribution tree forwarding entry.
各分发树转发表项组成分发树转发表, 如表 4所示:  Each distribution tree forwarding entry constitutes a distribution tree forwarding table, as shown in Table 4:
表 4 (分发树转发表)  Table 4 (Distribution Tree Forwarding Table)
Figure imgf000018_0001
Figure imgf000018_0001
其中, 第二 RB标识信息为第二 DC中树根 RB的 RB标识信息, 第一 RB 标识信息为第一 DC中与第二 RB标识信息中对应于同一个 VL AN内 RB的 RB 标识信息。通过表 4第一 DC的边缘 RB可将 TRILL 4艮文头中第二 DC内的 RB 标识信息以 VLAN为依据, 查找到第一 DC内与该树才艮 RB的 RB标识信息对 应的 RB标识信息。  The second RB identifier information is the RB identifier information of the root RB in the second DC, and the first RB identifier information is the RB identifier information corresponding to the RBs in the same VL AN in the first DC and the second RB identifier information. The RB identifier information in the second DC of the TRILL 4艮 header can be found by using the RB identifier information in the first DC in the first DC by the RB identifier information of the RB RB in the first DC. information.
例如, 若第二 DC的第二主机需要在第一 DC的某个分发树中进行广播, 则第二 DC中第一个与第二主机相连的 RB在数据帧中添加 TRILL 4艮文头, 所述 TRILL 4艮文头中的入口 RB名称为第二 DC中第一个与第二主机相连的 RB的名称,出口 RB名称为第一 DC中作为该分发树树根 RB的 RB标识信息。 若 TRILL 4艮文头中出口 RB名称为第二 DC内的 RB标识信息为 02: 01、 对应 VLAN ID为 LVAN1 , 则第一 DC的第一边缘 RB通过查询表 4得出第一 DC内 的 RB标识信息 01 : 01 , 第一 DC的第一边缘 RB将 TRILL 4艮文头进行解封装 和封装, 将 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 certain distribution tree of the first DC, the first RB connected to the second host in the second DC adds a TRILL 4 header to the data frame. The name of the entry RB in the TRILL header is the name of the first RB connected to the second host in the second DC, and the egress RB name is the RB identification information in the first DC as the root RB of the distribution tree. If the RB identifier information in the TRILL 4 艮 header is 02: 01 and the corresponding VLAN ID is LVAN1, the first edge RB of the first DC is obtained by querying Table 4 in the first DC. RB identification information 01: 01, the first edge RB of the first DC decapsulates and encapsulates the TRILL 4艮 header, and changes the name of the exit RB in the TRILL header to 01: 01 for internal DC Forward. Because the forwarding of the packet in the first DC is the prior art, the RB can be successfully sent to the RB corresponding to the egress RB name, and each RB checks the "M" field in the TRILL packet header, and performs the 艮 根据 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 first edge RB of the first DC and the second edge RB of the second DC in the prior art 2, the transmission process of the above-mentioned message saves the second edge RB compared to the decapsulation and encapsulation of the second edge RB of the second DC. The encapsulation step is performed. At the same time, the RBs other than the edge RB do not need to perform the calculation of the next hop distribution tree forwarding entry for the RBs in other DCs, and the edge RB is used to support packet encapsulation and decapsulation. The allocation of resources is high, and the packet forwarding efficiency is high, which further reduces the workload of other RBs. In addition, the first edge RB and the second edge RB in the sending process of the packet are respectively compared with the first routing RB or the second edge RB managing the entire routing table in the first DC and the second DC. Manage the routing tables of their respective DCs, thus supporting large-scale interconnections between DCs.
进一步的, 步骤 302可进一步细化为, 所述第一边缘 RB根据接收到的 Further, step 302 may be further refined as: the first edge RB is received according to the received
RB标识信息随机的建立分发树转发表项。所述随机的建立为第一边缘 RB将 接收到的第二 DC内的 RB标识信息与第一 DC内任意树根 RB标识信息作为 一组对应关系。 由于第一 DC内任意一个 RB均可通过该 RB的某个端口将艮 文发送至 VLAN ID对应的 VLAN 内, 因此, 通过上述方式也可实现不同 DC 间互联的技术效果。 The RB identification information randomly establishes a distribution tree forwarding entry. The random establishment is performed by the first edge RB as the set of correspondence between the received RB identification information in the second DC and the arbitrary tree root RB identification information in the first DC. The RB can be sent to the VLAN corresponding to the VLAN ID through any port of the RB. Therefore, the technical effect of interconnecting between different DCs can also be achieved by the above method.
进一步的, 除了通过各 RB完成不同 DC间的 ·^艮文发送之外, 还可通过 针对每个 DC分别配置的控制器(Cont ro l ler )完成上述分发树转发表项的 建立以及分发树转发表项的维护。 各 RB只需接收控制器发送的指示信息, 如通过某个接口发送报文。 由于控制器与各边缘 RB以及其他 RB功能明确, 因此各 RB的工作效率将进一步提高。  Further, in addition to performing the transmission of the different DCs through the RBs, the establishment of the distribution tree forwarding entry and the distribution tree may be completed by using a controller (Cont roler) configured for each DC. Maintenance of forwarding entries. Each RB only needs to receive the indication information sent by the controller, such as sending a message through an interface. Since the controller and each edge RB and other RB functions are clear, the 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 the RB identification information to the first edge RB of the first DC, where the first edge of the first DC is RB. The second edge RB of the second DC sends the RB identification information, and after the first edge RB of the first DC sends the RB identification information to the other edge RBs of other DCs, the network interconnection between the multiple DCs can be implemented.
本发明实施例提供的 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用于支持报文封装和解封装的硬件资源的分配量, 报 文转发效率高。 An implementation manner 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 may distinguish the RB and the second in the first DC The RBs in the DC are such that each RB in the first DC and the second DC has unique identification information. The first edge RB may establish a distribution tree forwarding entry according to the received RB identification information in the second DC, and the first edge RB sends the received RB identification information to other RBs in the first DC, so as to be first. The other RBs in the DC establish a distribution tree forwarding entry according to the received RB identification information in the second DC. Thereby, it can be achieved that the first edge RB and the second edge RB are absent On the premise that the packet is decapsulated and encapsulated, the packet is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL packet header, and the packet is matched according to the distribution tree entry. Multicasting is performed to reduce the allocation of hardware resources for edge packet RBs to support packet encapsulation and decapsulation. The packet forwarding efficiency is high.
本发明实施例提供的 TRILL 网络互联方法的另一种实现方式, 与现有 技术二中第一 DC的第一边缘 RB和第二 DC的第二边缘 RB对报文进行解封 装和封装相比, 上述 ·^艮文的发送过程省去了第二边缘 RB的解封装步骤, 同 时, 各 DC边缘 RB以外的其他 RB无需对其他 DC内的 RB进行下一跳转分发 树转发表项的计算, 减小边缘 RB用于支持报文封装和解封装的硬件资源的 分配量, 报文转发效率高, 进一步的减少其他 RB的工作量。  Another implementation manner of the TRILL network interconnection method provided by the embodiment of the present invention is compared with the decapsulation and encapsulation of the first edge RB of the first DC and the second edge RB of the second DC in the second technology. The sending process of the above-mentioned 省 省 omitting the de-encapsulation step of the second edge RB, and the RBs other than the DC edge RB need not perform the calculation of the next-hop distribution tree forwarding entry for the RBs in other DCs. The edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, thereby further reducing the workload of other RBs.
此外, 与现有技术一中通过第一边缘 RB或第二边缘 RB管理第一 DC和 第二 DC内全部路由表相比, 上述两种实现方式中第一边缘 RB和第二边缘 RB分别管理各自所在 DC的路由表, 因此可支持大规模的 DC间的互联。  In addition, the first edge RB and the second edge RB are respectively managed in the foregoing two implementation manners by using the first edge RB or the second edge RB to manage all the routing tables in the first DC and the second DC. The routing table of the respective DCs can support the interconnection between large-scale DCs.
实施例四  Embodiment 4
本发明实施例提供了一种 TRILL 网络互联装置, 所述装置为第一数据 中心 DC中的第一边缘 RB, 如图 5所示, 所述第一边缘路由网桥 RB包括: 接收单元 51 , 用于接收第二 DC的第二边缘 RB发送的 RB标识信息。 其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合, 以便所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 根据所述分发树转发表项发送报文。  The embodiment of the present invention provides a TRILL network interconnection device, where the device is a first edge RB in the first data center DC. As shown in FIG. 5, the first edge routing bridge RB includes: a receiving unit 51. And RB identification information for receiving the second edge RB of the second DC. The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier ID, so that the first edge RB is established according to the RB identifier information. The distribution tree forwarding entry sends a packet according to the distribution tree forwarding entry.
具体的, 所述接收单元 51还用于接收所述第二边缘 RB通过边界网关 协议 BGP发送的所述 RB标识信息。  Specifically, the receiving unit 51 is further configured to receive the RB identifier information that is sent by the second edge RB by using the border gateway protocol BGP.
所述接收单元 51在接收所述 RB标识信息时,在接收与现有技术中 BGP 内容类型相同的信息之外, 还接收第一附加信息。 所述第一附加信息用于 表示附加信息中 RB标识信息对应的 RB是否为分发树树根 RB , 所述第一附 加信息还包含有 RB标识信息。 可选的, 在第一附加信息中还包含有与 RB 标识信息对应的 VLAN ID, 用于匹配第一 DC内的数据格式。 处理单元 52 , 用于根据所述接收单元 5 1接收到的所述 RB标识信息建 立分发树转发表项。 The receiving unit 51, when receiving the RB identification information, receives the first additional information in addition to the information of 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 a distribution tree root RB, and the first additional information further includes RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC. 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的分发树转发表项。  The processing unit 52 establishes a tree for the second DC according to the RB identification information in the second DC received by the receiving unit 51, in addition to establishing the distribution tree forwarding entry for the first DC according to the RB identification information in the first DC. 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 calculating subunit 521 is configured to establish the distribution tree forwarding entry by using a 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 calculates the distance to each target RB by using a certain RB as the root (ROOT). Each RB calculates the topology structure of the routing domain according to a unified database during calculation. The structure is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The calculation sub-unit 521 performs the operation of the SPF algorithm to obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and uses 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 may also store, by using the SPF algorithm, a port list formed by the port number on the root RB as a distribution tree forwarding entry, so that the sending subunit 522 can simultaneously transmit through the port number. Multiple destination RBs send ·^艮. That is, the first edge RB obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry.
发送子单元 522 ,用于将所述接收单元 5 1接收到的所述 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 the RB in the second DC, the sending sub-unit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC. The other RBs can obtain the RB identification information of the next hop RB for transmitting the RB to the RB in the second DC through the calculation sub-unit 521 therein, and save the RB identification information to the storage unit 61.
所述计算子单元 521还用于获取对应下一跳 RB的端口号, 将所述对应 下一跳 RB的端口号添加到所述分发树转发表项中。  The calculating sub-unit 521 is further configured to obtain a port number corresponding to the 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 sub-unit 521 can also calculate the port number group on the root RB calculated by the SPF algorithm. The port list is saved as a distribution tree forwarding entry to the storage unit 61, and the port number can be sent to the plurality of destination RBs at the same time, that is, the other RB obtains the port number corresponding to the next hop RB, and the The port number corresponding to the next hop is added 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 RB identifier sent by the second edge RB of the second DC to the receiving unit 51, the packet sending process is performed by the first edge RB and the second edge RB in the prior art. The information may distinguish between the first intra-DC RB and the second intra-DC RB such that each RB within the first DC and the second DC has unique identification information. The calculation sub-unit 521 establishes a distribution tree forwarding entry according to the RB identification information in the second DC received by the receiving unit 51, and the sending sub-unit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC. Therefore, the calculation sub-unit 521 of the other RBs can establish a distribution tree forwarding entry according to the received RB identification information in the second DC, so that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the packet. The RB is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL header, multicasts the packet according to the distribution tree entry, and reduces the edge RB for support. The amount of hardware resources allocated for packet encapsulation and decapsulation is high. In addition, the computing subunit 521 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Therefore, it is possible to support interconnection between large-scale DCs.
进一步的, 如图 7所示, 所述接收单元 51还用于接收所述第二边缘 RB 发送的扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识 信息 和 VLAN ID之间的对应关系。  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 RB identification information of a 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 transmitting the same information as the content type in the prior art, the second additional information, as shown in Table 3, is also sent. The 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. The RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
所述处理单元 52还用于根据 VLAN ID建立所述第一 DC中树根 RB的 RB 标识信息和所述第二 DC中树根 RB的 RB标识信息的对应关系。 当接收单元 51接收到第二 DC的第二边缘 RB发送的第二附加信息后, 处理单元 52根据其中的扩展信息,即 VLAN ID ,寻找第一 DC内与该 VLAN ID 对应 RB的 RB标识信息, 并将该 RB标识信息与第二附加信息中的树根 RB 的 RB标识信息以及 VLAN ID作为一条分发树转发表项保存至存储单元 61。 The processing unit 52 is further configured to establish, according to the VLAN ID, 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. 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 VLAN ID in the first DC according to the extended information, that is, the VLAN ID. And storing the RB identification information and the RB identification information of the root RB in the second additional information and the VLAN ID as a distribution tree forwarding entry to the storage unit 61.
封装单元 71将 TRILL报文头中出口 RB名称更改为处理单元 52建立的 与原出口 RB名称即 VLAN ID对应的第一 DC内树根 RB的 RB标识信息, 以 便第一 DC内的 RB根据封装单元 71封装后的 TRILL报文头可将转发至第一 DC内的 RB中。  The encapsulating unit 71 changes the egress RB name in the TRILL packet header to the RB identification information of the first DC inner root RB corresponding to the original egress RB name, that is, the VLAN ID established by the processing unit 52, so that the RB in the first DC is encapsulated according to the encapsulation. The TRILL packet header encapsulated by the unit 71 can be forwarded to the RB 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 first edge RB of the first DC and the second edge RB of the second DC in the prior art, the transmission process of the foregoing The encapsulation unit 71 of the edge RB of the first DC only needs to encapsulate the header, and the processing unit 52 of the other RBs other than the first edge RB of the first DC does not need to perform the next RB in other DCs. The calculation of the forwarding tree forwarding entry is performed to reduce the allocation of hardware resources for the edge encapsulation and decapsulation of the edge RB. The packet forwarding efficiency is high, and the workload of other RBs is further reduced. In addition, the computing subunit 521 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Therefore, it is possible to support interconnection between large-scale DCs.
进一步的, 所述计算子单元 521还可根据接收单元 51接收到的 RB标 识信息随机的建立分发树转发表项。 所述随机的建立为第一边缘 RB将接收 到的第二 DC内的 RB标识信息与第一 DC内任意树根 RB标识信息作为一组 对应关系。 由于第一 DC内任意一个 RB均可通过该 RB的某个端口将 ·^艮文发 送至 VLAN ID对应的 VLAN内, 因此, 通过上述方式也可实现不同 DC间互 联的技术效果。  Further, the calculating sub-unit 521 can also establish a distribution tree forwarding entry randomly according to the RB identification information received by the receiving unit 51. The random establishment is performed by the first edge RB as the set of correspondence between the received RB identification information in the second DC and the arbitrary tree root RB identification information in the first DC. Since any RB in the first DC can send the message to the VLAN corresponding to the VLAN ID through a certain port of the RB, the technical effect of the interconnection between different DCs can also be achieved by the above method.
实施例五  Embodiment 5
本发明实施例提供一种 TRILL 网络互联装置, 所述装置为第二数据中 心 DC中的第二边缘 RB, 如图 8所示, 所述第二边缘 RB包括:  The embodiment of the present invention provides a TRILL network interconnection device, where the device is a second edge RB in the second data center DC. As shown in FIG. 8, the second edge RB includes:
发送单元 81 , 用于向第一 DC的第一边缘 RB发送 RB标识信息。 其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合。 The sending unit 81 is configured to send RB identification information to the first edge RB of the first DC. The RB identification information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
发送单元 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 may distinguish the RB in the first DC and the RB in the second DC, so that each RB in the first DC and the second DC has 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 by using a border gateway protocol BGP.
发送单元 81通过 BGP向所述第一边缘 RB发送所述 RB标识信息时, 除 了发送与现有技术中 BGP内容类型相同的信息外, 还发送如表 2所示的第 一附加信息用于表示附加信息中 RB标识信息对应的 RB是否为分发树树根 RB所述第一附加信息还包含有 RB标识信息。 可选的, 在第一附加信息中还 包含有与 RB标识信息对应的 VLAN ID, 用于匹配第一 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 transmitting the same information as the BGP content type in the prior art, the sending unit 81 sends the first additional information as shown in Table 2 for indicating Whether the RB corresponding to the RB identification information in the additional information is the distribution tree root RB, the first additional information further includes the RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC. So that when the transmitting unit 81 of the second edge RB of the second DC transmits the first additional information to the receiving unit 51 of the first edge RB of the first DC, the calculating sub-unit 521 as the first edge RB of the receiving end receives according to the receiving The RB identification information in the second DC received by the unit 51 establishes a distribution tree forwarding entry, and the sending sub-unit 522 sends the RB identification information received by the receiving unit 51 to other RBs in the first DC, so as to calculate other RBs. The unit 521 establishes a distribution tree forwarding entry according to the received RB identification information in the second DC, and the packet is successfully obtained on the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the packet. The RB is sent to the RB of another DC, so that the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the edge RB to support packet encapsulation and decapsulation. The allocation of hardware resources and the efficiency of packet forwarding are high.
进一步的, 所述发送单元 81还用于向所述第一边缘 RB发送扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID 之间的对应关系。  Further, the sending unit 81 is further configured to send the extended information to the first edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC .
发送单元 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 transmitting the same information as the content type in the prior art, the sending unit 81 also sends the second attached as shown in Table 3. The information is added, and the second additional information is used to indicate whether the root RB, the RB identification information of the root RB, and the correspondence between the root RB and the VLAN. The RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information. Therefore, after the transmitting unit 81 of the second edge RB of the second DC transmits 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 first DC The encapsulating unit 71 of the edge RB encapsulates the header, and the processing unit 52 of the other RBs other than the first edge RB of the first DC does not need to perform the next jump distribution tree forwarding entry for the RBs in other DCs. The calculation reduces the allocation of hardware resources to support packet encapsulation and decapsulation, and the packet forwarding efficiency is high, which further reduces the workload of other RBs.
实施例六  Embodiment 6
本发明实施例提供了一种 TRILL网络互联系统, 如图 9所示, 所述系 统由第一 DC的第一边缘 RB91和第二 DC的第二边缘 RB92组成。  The 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 the RB identification information to the first edge RB91.
其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 I D和所述第二 DC身份标识 I D的组合。  The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier ID.
所述第一边缘 RB91接收第二 DC的第二边缘 RB92发送的 RB标识信息。 具体的,第二边缘 RB92可通过边界网关协议 BGP向所述第一边缘 RB91 发送所述 RB标识信息。  The first edge RB91 receives the RB identification information sent by the second edge RB92 of the second DC. Specifically, the second edge RB92 may send the RB identification information to the first edge RB91 by using the border gateway protocol BGP.
第二边缘 RB92通过 BGP向所述第一边缘 RB91发送所述 RB标识信息时, 除了发送与现有技术中 BGP 内容类型相同的信息外, 还发送如表 2所示的 第一附加信息, 所述第一附加信息用于表示附加信息中 RB标识信息对应的 RB是否为分发树树根 RB, 所述第一附加信息还包含有 RB标识信息。 可选 的, 在第一附加信息中还包含有与 RB标识信息对应的 VLAN ID, 用于匹配 第一 DC内的数据格式。  When the second edge RB92 sends the RB identification information to the first edge RB91 through BGP, in addition to transmitting the same information as the BGP content type in the prior art, the first additional information shown in Table 2 is also sent. The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB, and the first additional information further includes RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC.
所述第一边缘 RB91接收到的所述 RB标识信息建立分发树转发表项。 所述第一边缘 RB91除了根据第一 DC 内 RB标识信息建立针对第一 DC 内部的分发树转发表项以外, 还根据接收到的第二 DC内的 RB标识信息建 立针对第二 DC内各树根 RB的分发树转发表项。 The RB identification information received by the first edge RB91 establishes a distribution tree forwarding entry. The first edge RB91 is configured to establish, according to the RB identification information in the first DC, the RB identification information in the second DC. A distribution tree forwarding entry for each tree root RB in the second DC.
所述第一边缘 RB91根据接收到的所述 RB标识信息通过最短路径 SPF 算法建立所述分发树转发表项。  The first edge RB91 establishes the distribution tree forwarding entry by using a 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 calculates the distance to each target RB by using a certain RB as the root (ROOT). Each RB calculates the topology structure of the routing domain according to a unified database during calculation. The structure is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The first edge RB91 performs the operation of the SPF algorithm to obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and uses the RB identification information closest to the root RB in the path as the distribution tree. Forward the entry to save. In addition, the first edge RB91 may also save the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, so that the port number can be simultaneously sent to multiple destination RBs through the port number. Text. That is, the first edge RB91 obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to 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标识信息进行 保存。  The first edge RB91 sends the received RB identification information to other RBs in the first DC, so that each RB in the first DC can send the RB to the RB in the second DC. The other RBs can obtain the RB identification information of the next hop RB for the RB in the second DC, and save the RB identification information.
所述第一边缘 RB91还用于获取对应下一跳 RB的端口号, 将所述对应 下一跳 RB的端口号添加到所述分发树转发表项中。  The first edge RB91 is further configured to obtain a port number corresponding to the 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 may also store the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, and send the packet to multiple destination RBs through the port number at the same time. The port number corresponding to the next hop RB is obtained, and the port number corresponding to the next hop RB is added 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 prior art, the first edge RB91 and the second edge RB92 need to decapsulate and encapsulate the packet, and the foregoing sending process is performed by the second edge RB92 of the second DC. The RB identification information sent by the first edge RB91 of the DC may distinguish the first intra-RB and the second intra-RB, so that each RB in the first DC and the second DC has 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 the other RBs receive the second DC. The RB identification information is used to establish a distribution tree forwarding entry, so that the first edge RB91 and the second edge RB92 can successfully send the packet to the RB of another DC without the need to decapsulate and encapsulate the packet. The RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the allocation amount of the hardware resources supported by the edge RB to support packet encapsulation and decapsulation, and the packet forwarding efficiency. high. In addition, compared with the prior art, the first edge RB91 manages the routing table of the first DC by using the first edge RB91 or the second edge RB92 to manage all routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
进一步的, 第一边缘 RB91还用于接收所述第二边缘 RB92发送的扩展 信息,所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应关系。  Further, the first edge RB91 is further configured to receive the extended information sent by the second edge RB92, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC. .
第二边缘 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 transmitting the same information as the content type in the prior art, the second additional information is also sent as the second additional information shown in Table 3. It 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. The RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
第一边缘 RB91还用于根据 VLAN ID建立所述第一 DC中树根 RB的 RB 标识信息和所述第二 DC中树根 RB的 RB标识信息的对应关系。  The first edge RB91 is further configured to establish, according to the VLAN ID, 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.
当第一边缘 RB91接收到第二 DC的第二边缘 RB92发送的第二附加信息 后, 根据其中的扩展信息, 即 VLAN ID , 寻找第一 DC内与该 VLAN ID对应 的树根 RB标识信息,并将该 RB标识信息与第二附加信息中的树根 RB的 RB 标识信息以及 VLAN I D作为一条分发树转发表项进行保存。  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 VLAN ID in the first DC according to the extended information, that is, the VLAN ID. 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.
第一边缘 RB91将 TRILL 艮文头中出口 RB名称更改为与原出口 RB名称 即 VLAN ID对应的第一 DC内树根 RB的 RB标识信息, 以便第一 DC内的第 一边缘 RB91封装后的 TRILL 4艮文头可转发至第一 DC内的 RB中。 The first edge RB91 changes the name of the egress RB in the TRILL header to the RB identification information of the root RB in the first DC corresponding to the original egress RB name, that is, the VLAN ID, so that the first DC An edge RB91 encapsulated TRILL 4 header can be forwarded to the RB 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 first edge RB91 of the first DC and the second edge RB92 of the second DC in the second technique, the transmission process of the above-mentioned message is only The RB of the first DC is encapsulated by the edge RB of the first DC. The RBs other than the first edge RB91 of the first DC do not need to perform the calculation of the next hop distribution tree forwarding entry for the RBs in other DCs. The edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, thereby further reducing the workload of other RBs. In addition, compared with the prior art, the first edge RB91 manages the routing table of the first DC by using the first edge RB91 or the second edge RB92 to manage all routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
本发明实施例提供的 TRILL网络互联系统为第二边缘 RB92 , 例如第二 DC的第二边缘 RB92 , 向第一边缘 RB91 , 例如第一 DC的第一边缘 RB91 , 发 送 RB标识信息时单向的技术方案, 当第一 DC的第一边缘 RB91向第二 DC 的第二边缘 RB92发送 RB标识信息, 和第一 DC的第一边缘 RB91向其他 DC 的其他边缘 RB发送 RB标识信息时, 可实现多 DC间的网络互联。  The TRILL network interconnection system provided by the embodiment of the present invention is a second edge RB92, for example, the second edge RB92 of the second DC, and is unidirectional when transmitting the RB identification information to the first edge RB91, for example, the first edge RB91 of the first DC. In a technical solution, when the first edge RB91 of the first DC sends the RB identification information to the second edge RB92 of the second DC, and the first edge RB91 of the first DC sends the RB identification information to other edge RBs of other DCs, Network interconnection between multiple DCs.
实施例七  Example 7
本发明实施例提供了一种 TRILL 网络互联装置, 所述装置为第一数据 中心 DC中的第一边缘 RB, 如图 10所示, 所述第一边缘 RB包括:  The embodiment of the present invention provides a TRILL network interconnection device, where the device is a first edge RB in the first data center DC. As shown in FIG. 10, the first edge RB includes:
接收器 1001 , 用于接收第二 DC的第二边缘 RB发送的 RB标识信息。 其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合, 以便处理器 1002根据所述 RB标 识信息建立分发树转发表项, 发射器 1003根据所述分发树转发表项发送报 文。  The receiver 1001 is configured to receive RB identification information sent by the second edge RB of the second DC. The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier, so that the processor 1002 establishes a distribution tree according to the RB identifier information. In the publication item, the transmitter 1003 sends a message according to the distribution tree forwarding entry.
具体的, 所述接收器 1001还用于接收所述第二边缘 RB通过边界网关 协议 BGP发送的所述 RB标识信息。  Specifically, the receiver 1001 is further configured to receive the RB identifier information that is sent by the second edge RB through the border gateway protocol BGP.
所述接收器 1001在接收所述 RB标识信息时,在接收与现有技术中 BGP 内容类型相同的信息之外, 还接收第一附加信息。 所述第一附加信息用于 表示附加信息中 RB标识信息对应的 RB是否为分发树树根 RB, 所述第一附 加信息还包含有 RB标识信息。 可选的, 在第一附加信息中还包含有与 RB 标识信息对应的 VLAN ID, 用于匹配第一 DC内的数据格式。 The receiver 1001, when receiving the RB identification information, receives the first additional information in addition to the information of the BGP content type in the prior art. The first additional information is used for Indicates whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB, and the first additional information further includes RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match 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的分发树转发表项。  The processor 1002 establishes, according to the first DC internal RB identification information, a distribution tree forwarding entry for the first DC, and the RB identification information in the second DC received by the receiver 1001. The distribution tree forwarding entry of each tree root RB.
所述处理器 1002, 还用于根据所述接收器 1001接收到的所述 RB标识 信息通过最短路径 SPF算法建立所述分发树转发表项。  The processor 1002 is further configured to establish, according to the RB identifier information received by the receiver 1001, the distribution tree forwarding entry by using a shortest path SPF algorithm.
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 calculates the distance to each target RB by using a certain RB as the root (ROOT). Each RB calculates the topology structure of the routing domain according to a unified database during calculation. The structure is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The processor 1002 obtains a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and uses the RB identification information of the path closest to the root RB as the distribution tree. The publication item is saved to the memory 1004. In addition, the memory 1004 may store, as the distribution tree forwarding entry, a port list formed by the processor 1002 as a port number on the root RB, so that the transmitter 1003 can simultaneously access the multiple destination RBs through the port number. Send a message. That is, the first edge RB obtains the port number corresponding to the 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 each RB in the first DC to send a message to the RB 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 for transmitting the ciphertext to the RB in the second DC through the processor 1002 therein, and save the RB identification information to the memory 1004.
所述处理器 1002还用于获取对应下一跳 RB的端口号, 将所述对应下 一跳 RB的端口号添加到所述分发树转发表项中。 The processor 1002 is further configured to obtain a port number corresponding to the next hop RB, where the corresponding The port number of the one-hop RB is added to the distribution tree forwarding entry.
存储器 1004将所述处理器 1002根据 SPF算法计算得到的作为树根 RB 上的端口号组成的端口列表作为分发树转发表项进行存储。 发射器 1003通 过端口号可同时向多个目的 RB发送 4艮文, 即所述其他 RB获取对应下一跳 RB的端口号,将所述对应下一跳 RB的端口号添加到自身建立的分发树转发 表项中。  The memory 1004 stores the port list formed by the processor 1002 as a port number on the root RB according to the SPF algorithm as a distribution tree forwarding entry. The transmitter 1003 can simultaneously send the port number to the multiple destination RBs by using the port number, that is, the other RB obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution established by itself. The tree is forwarded in the table 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 packet by the first edge RB of the first DC and the second edge RB of the second DC in the second technology, the foregoing sending process passes the second edge RB of the second DC. The RB identification information transmitted to the receiver 1001 may distinguish between the first intra-DC RB and the second intra-DC RB such that each RB within the first DC and the second DC has unique identification information. The processor 1002 establishes a distribution tree forwarding entry according to the RB identification information in the second DC received by the receiver 1001, and the transmitter 1003 sends the RB identification information received by the receiver 1001 to other RBs in the first DC, so that the other The processor 1002 of the RB establishes a distribution tree forwarding entry according to the received RB identification information in the second DC, which may be implemented on the premise that the first edge RB and the second edge RB do not need to decapsulate and encapsulate the packet. The packet is successfully sent to the RB of another DC, so that the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the edge RB to support packet encapsulation. The amount of allocated hardware resources is reconciled and the packet forwarding efficiency is high. In addition, the processor 1002 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Can support large-scale interconnection between DCs.
进一步的, 所述接收器 1001还用于接收所述第二边缘 RB发送的扩展 信息,所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应关系。  Further, the receiver 1001 is further configured to receive the extended information sent by the second edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID in the second DC relationship.
第二边缘 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 transmitting the same information as the content type in the prior art, the second additional information, as shown in Table 3, is also sent. The 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. The RB identification information of the root RB and the root RB The correspondence with the VLAN is extended information.
所述处理器 1002还用于根据 VLAN ID建立所述第一 DC中树根 RB的 RB 标识信息和所述第二 DC中树根 RB的 RB标识信息的对应关系。  The processor 1002 is further configured to establish, according to the VLAN ID, 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.
当接收器 1001接收到第二 DC的第二边缘 RB发送的第二附加信息后, 处理器 1002根据其中的扩展信息,即 VLAN ID ,寻找第一 DC内与该 VLAN ID 对应 RB的 RB标识信息, 并将该 RB标识信息与第二附加信息中的树根 RB 的 RB标识信息以及 VLAN ID作为一条分发树转发表项保存到存储器 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 VLAN ID in the first DC according to the extended information, that is, the VLAN ID. And storing the RB identification information and the RB identification information of the root RB in the second additional information and the VLAN ID as a distribution tree forwarding entry to the memory 1004.
处理器 1002将 TRILL 艮文头中出口 RB名称更改为与原出口 RB名称即 VLAN ID对应的第一 DC内树根 RB的 RB标识信息, 以便第一 DC内的 RB根 据处理器 1002封装后的 TRILL ·^艮文头可将转发至第一 DC内的 RB中。  The processor 1002 changes the name of the egress RB in the TRILL header to the RB identification information of the first DC inner root RB corresponding to the original egress RB name, that is, the VLAN ID, so that the RB in the first DC is encapsulated according to the processor 1002. The TRILL ·^艮 header can be forwarded to the RB 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 packet by the first edge RB of the first DC and the second edge RB of the second DC in the second technology, the sending process of the foregoing packet only needs to pass the The processor 1002 of the edge RB of a DC encapsulates the header of the RB, and the processor 1002 of the RB other than the first edge RB of the first DC does not need to perform the next jump distribution tree for the RBs in other DCs. The calculation of the forwarding entry reduces the allocation of hardware resources that the edge RB is used to support packet encapsulation and decapsulation. The packet forwarding efficiency is high, and the workload of other RBs is further reduced. In addition, the processor 1002 of the first edge RB manages the routing table of the first DC, as compared with the first routing RB or the second edge RB managing all routing tables in the first DC and the second DC, Can support large-scale interconnection between DCs.
进一步的, 所述处理器 1002还可根据接收器 1001接收到的 RB标识信 息随机的建立分发树转发表项。 所述随机的建立为第一边缘 RB将接收到的 第二 DC内的 RB标识信息与第一 DC内任意树根 RB标识信息作为一组对应 关系。 由于第一 DC内任意一个 RB均可通过该 RB的某个端口将报文发送至 VLAN ID对应的 VLAN内, 因此, 通过上述方式也可实现不同 DC间互联的技 术效果。  Further, the processor 1002 may also randomly establish a distribution tree forwarding entry according to the RB identification information received by the receiver 1001. The random establishment is that the first edge RB associates the received RB identification information in the second DC with any tree root RB identification information in the first DC as a set of correspondence. The RBs in the first DC can send packets to the VLAN corresponding to the VLAN ID through a certain port of the RB. Therefore, the technical effects of interconnecting between different DCs can also be implemented in the foregoing manner.
实施例八  Example eight
本发明实施例提供一种 TRILL 网络互联装置, 所述装置为第二数据中 心 DC中的第二边缘 RB, 如图 11所示, 所述第二边缘 RB包括: An embodiment of the present invention provides a TRILL network interconnection device, where the device is in the second data. The second edge RB in the heart 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 the first edge RB of the first DC.
其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合。  The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
发射器 1101向第一 DC的第一边缘 RB发送的 RB标识信息可区分第一 The RB identification information sent by the transmitter 1101 to the first edge RB of the first DC can distinguish the first
DC内 RB和第二 DC内 RB, 使得第一 DC内和第二 DC内各 RB具有唯一的标 识信息。 The intra-DC RB and the second intra-RB RB have unique identification information in each of the first DC and the second DC.
所述发射器 11 01还用于通过边界网关协议 BGP向所述第一边缘 RB发 送所述 RB标识信息。  The transmitter 101 is further configured to send the RB identification information to the first edge RB by using a border gateway protocol BGP.
发射器 1101通过 BGP向所述第一边缘 RB发送所述 RB标识信息时, 除 了发送与现有技术中 BGP内容类型相同的信息外, 还发送如表 2所示的第 一附加信息,所述第一附加信息用于表示附加信息中 RB标识信息对应的 RB 是否为分发树树根 RB , 所述第一附加信息还包含有 RB标识信息。 可选的, 在第一附加信息中还包含有与 RB标识信息对应的 VLAN ID , 用于匹配第一 DC内的数据格式。 以便当第二 DC的第二边缘 RB的发射器 1101向第一 DC 的第一边缘 RB的接收器 1 001发送所述第一附加信息后, 作为接收端的第 一边缘 RB的处理器 1002根据接收器 1001接收到的第二 DC内的 RB标识信 息建立分发树转发表项, 发射器 1003将接收器 1001接收到的 RB标识信息 发送至第一 DC内的其他 RB ,以便其他 RB的处理器 1002根据接收到的第二 DC内的 RB标识信息建立分发树转发表项, 可实现在第一边缘 RB和第二边 缘 RB无需对报文进行解封装和封装的前提下, 将报文成功发送至另一 DC 的 RB中, 以便所述 RB检查 TRILL报文头中的 "M"字段, 根据分发树表项 对报文进行组播, 减小边缘 RB用于支持报文封装和解封装的硬件资源的分 配量, 报文转发效率高。  When transmitting the RB identification information to the first edge RB by using the BGP, the transmitter 1101 sends the first additional information as shown in Table 2, in addition to the information of 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 a distribution tree root RB, and the first additional information further includes RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, and is used to match the data format in the first DC. So that when the transmitter 1101 of the second edge RB of the second DC transmits the first additional information to the receiver 1 001 of the first edge RB of the first DC, the processor 1002 as the first edge RB of the receiving end receives according to the receiving The RB identification information in the second DC received by the device 1001 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 processor 1002 of the other RBs And establishing the distribution tree forwarding entry according to the received RB identification information in the second DC, so that the first edge RB and the second edge RB can successfully send the packet to the first edge RB and the second edge RB without decapsulating and encapsulating the packet. In the RB of the other DC, the RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the hardware resources used by the edge RB to support packet encapsulation and decapsulation. The amount of allocation, the message forwarding efficiency is high.
进一步的, 所述发射器 1101还用于向所述第一边缘 RB发送扩展信息, 所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 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的工作量。 Further, the transmitter 1101 is further configured to send the extended information to the first edge RB, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC. . When transmitting the RB identification information to the first edge RB by using the BGP, the transmitter 1101 sends the second additional information as shown in Table 3, in addition to the information of the content type in the prior art. The 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. The RB identification information of the root RB and the correspondence 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 transmits 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 first DC The processor 1002 of the edge RB encapsulates the header of the RB, and the processor 1002 of the RB other than the first edge RB of the first DC does not need to perform the next jump distribution tree forwarding entry for the RBs in other DCs. The calculation reduces the allocation of hardware resources to support packet encapsulation and decapsulation, and the packet forwarding efficiency is high, which further reduces the workload of other RBs.
实施例九  Example nine
本发明实施例提供了一种 TRILL网络互联系统, 如图 12所示, 所述系 统由第一边缘 RB1201和所述的第二边缘 RB1202组成。  The embodiment of the present invention provides a TRILL network interconnection system. As shown in FIG. 12, the system is composed of a first edge RB1201 and a second edge RB1202.
所述第二边缘 RB1202 , 例如第二 DC的第二边缘 RB1202 , 向第一边缘 The second edge RB1202, such as the second edge RB1202 of the second DC, to the first edge
RB1201 , 例如第一 DC的第一边缘 RB1201 , 发送 RB标识信息。 RB1201, for example, the first edge RB1201 of the first DC, sends the RB identification information.
其中, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标 识 ID和所述第二 DC身份标识 ID的组合。  The RB identifier information carries a combination of the RB identity identifier ID of the root RB in the second DC and the second DC identity identifier.
所述第一边缘 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 RB 1202 may send the RB identification information to the first edge RB 1201 by using a border gateway protocol BGP.
第二边缘 RB1202通过 BGP向所述第一边缘 RB1201发送所述 RB标识信 息时, 除了发送与现有技术中 BGP 内容类型相同的信息外, 还发送如表 1 所示的第一附加信息, 所述第一附加信息用于表示附加信息中 RB标识信息 对应的 RB是否为分发树树根 RB ,所述第一附加信息还包含有 RB标识信息。 可选的, 在第一附加信息中还包含有与 RB标识信息对应的 VLAN ID, 用于 匹配第一 DC内的数据格式。 When the second edge RB 1202 sends the RB identification information to the first edge RB 1201 by using BGP, in addition to transmitting the same information as the BGP content type in the prior art, the first additional information shown in Table 1 is also sent. The first additional information is used to indicate whether the RB corresponding to the RB identification information in the additional information is a distribution tree root RB, and the first additional information further includes RB identification information. Optionally, the first additional information further includes a VLAN ID corresponding to the RB identification information, where Matches the data format within the first DC.
所述第一边缘 RB 1201接收到的所述 RB标识信息建立分发树转发表项。 所述第一边缘 RB1201除了根据第一 DC内 RB标识信息建立针对第一 DC 内部的分发树转发表项以外, 还根据接收到的第二 DC内的 RB标识信息建 立针对第二 DC内各树根 RB的分发树转发表项。  The RB identification information received by the first edge RB 1201 establishes a distribution tree forwarding entry. The first edge RB 1201 establishes, according to the RB identification information in the first DC, the tree in the second DC, according to the RB identification information in the second DC. The distribution tree forwarding entry of the root RB.
所述第一边缘 RB1201根据接收到的所述 RB标识信息通过最短路径 SPF 算法建立所述分发树转发表项。  The first edge RB 1201 establishes the distribution tree forwarding entry by using a 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 calculates the distance to each target RB by using a certain RB as the root (ROOT). Each RB calculates the topology structure of the routing domain according to a unified database during calculation. The structure is similar to a tree. In the SPF algorithm, it is called the shortest path tree. The first edge RB1201 is operated by the SPF algorithm to obtain a path with the least number of hops between the root RB and the destination RB of the shortest path tree, and the RB identification information of the path closest to the root RB is used as the distribution tree. Forward the entry to save. In addition, the first edge RB 1201 may also save the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, so that the port number can be simultaneously sent to multiple destination RBs through the port number. Text. That is, the first edge RB1201 obtains the port number corresponding to the next hop RB, and adds the port number of the corresponding next hop RB to the distribution tree forwarding entry.
所述第一边缘 RB1201将接收到的所述 RB标识信息转发给所述第一 DC 中的其他 RB。  The first edge RB 1201 forwards the received RB identification information to other RBs in the first DC.
为了使第一 DC 内各 RB均可向第二 DC 内的 RB发送报文, 第一边缘 In order to enable each RB in the first DC to send a message to the RB in the second DC, the first edge
RB1201将接收到的 RB标识信息发送给第一 DC内的其他 RB。 其他 RB可得 到向第二 DC内 RB发送 ^艮文用的下一跳 RB的 RB标识信息, 并将该 RB标识 信息进行保存。 The RB 1201 sends the received RB identification information to other RBs in the first DC. The other RBs may obtain the RB identification information of the next hop RB for the RB in the second DC, and save the RB identification information.
所述第一边缘 RB1201还用于获取对应下一跳 RB的端口号, 将所述对 应下一跳 RB的端口号添加到所述分发树转发表项中。  The first edge RB1201 is further configured to obtain 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.
所述第一边缘 RB1201还可将 SPF算法计算得到的作为树根 RB上的端 口号组成的端口列表作为分发树转发表项进行保存, 通过端口号可同时向 多个目的 RB发送报文, 即所述其他 RB获取对应下一跳 RB的端口号, 将所 述对应下一跳 RB的端口号添加到自身建立的分发树转发表项中。 The first edge RB 1201 may also save the port list formed by the SPF algorithm as a port number on the root RB as a distribution tree forwarding entry, and the port number may be simultaneously The multiple destination RBs send the packet, that is, the other RBs obtain the port number corresponding to the next hop RB, and add 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标识信息建立分发树转发表项, 可实现 在第一边缘 RB1 201和第二边缘 RB1202无需对 ^艮文进行解封装和封装的前 提下, 将报文成功发送至另一 DC的 RB中, 以便所述 RB检查 TRILL报文头 中的 "M"字段, 根据分发树表项对报文进行组播, 减小边缘 RB用于支持 报文封装和解封装的硬件资源的分配量, 报文转发效率高。 此外, 与现有 技术一中通过第一边缘 RB1201或第二边缘 RB1202管理第一 DC和第二 DC 内全部路由表相比, 第一边缘 RB1201管理第一 DC的路由表, 因此可支持 大规模的 DC间的互联。  Compared with the first edge RB1201 of the first DC of the first DC and the second edge RB1202 of the second DC, the above-mentioned transmission process passes through the second edge of the second DC. The RB identification information sent by the RB 1202 to the first edge RB 1201 of the first DC may distinguish the first intra-DC intra-RB and the second intra-DC RB such that each RB in the first DC and the second DC has unique identification information. The first edge RB 1201 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 the other DC receives the second DC. The RB identification information is used to establish a distribution tree forwarding entry, and the RB can be successfully sent to another DC without the decapsulation and encapsulation of the first edge RB1 201 and the second edge RB 1202. The RB checks the "M" field in the TRILL packet header, and multicasts the packet according to the distribution tree entry, and reduces the allocation amount of the hardware resources supported by the edge RB to support packet encapsulation and decapsulation. The text forwarding efficiency is high. In addition, the first edge RB 1201 manages the routing table of the first DC by using the first edge RB 1201 or the second edge RB 1202 to manage all the routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
进一步的, 第一边缘 RB1201还用于接收所述第二边缘 RB1202发送的 扩展信息,所述扩展信息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应关系。  Further, the first edge RB 1201 is further configured to receive the extended information sent by the second edge RB 1202, where the extended information is used to describe a correspondence between the RB identification information of the root RB and the VLAN ID of the second DC. .
第二边缘 RB1202通过 BGP向第一边缘 RB1201发送所述 RB标识信息时, 除了发送与现有技术中内容类型相同的信息外, 还发送如表 3 所示的第二 附加信息, 第二附加信息用于表示是否为树根 RB、 树根 RB的 RB标识信息 以及树根 RB与 VLAN的对应关系。 其中, 树根 RB的 RB标识信息以及树根 RB与 VLAN的对应关系为扩展信息。  When the second edge RB 1202 sends the RB identification information to the first edge RB 1201 through BGP, in addition to transmitting the same information as the content type in the prior art, the second additional information, as shown in Table 3, is also sent. It 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. The RB identification information of the root RB and the correspondence between the root RB and the VLAN are extended information.
第一边缘 RB1201还用于根据 VLAN ID建立所述第一 DC中树根 RB的 RB 标识信息和所述第二 DC中树根 RB的 RB标识信息的对应关系。  The first edge RB 1201 is further configured to establish, according to the VLAN ID, 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.
当第一边缘 RB1201接收到第二 DC的第二边缘 RB1202发送的第二附加 信息后, 根据其中的扩展信息, 即 VLAN ID , 寻找第一 DC内与该 VLAN ID 对应 RB的 RB标识信息, 并将该 RB标识信息与第二附加信息中的树根 RB 的 RB标识信息以及 VLAN I D作为一条分发树转发表项进行保存。 When the first edge RB 1201 receives the second attachment sent by the second edge RB 1202 of the second DC After the information, the RB identification information of the RB corresponding to the VLAN ID in the first DC is searched according to the extended information, that is, the VLAN ID, and the RB identification information of the root RB in the RB identification information and the second additional information is The VLAN ID is saved as a distribution tree forwarding entry.
第一边缘 RB1201将 TRILL报文头中出口 RB名称更改为与原出口 RB名 称即 VLAN ID对应的第一 DC内树根 RB的 RB标识信息, 以便第一 DC内的 第一边缘 RB1201封装后的 TRILL 4艮文头可转发至第一 DC内的 RB中。  The first edge RB 1201 changes the name of the egress RB 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, that is, the VLAN ID, so that the first edge RB1201 in the first DC is encapsulated. The TRILL 4 header can be forwarded to the RB in the first DC.
作为进一步的技术方案, 与现有技术二中第一 DC 的第一边缘 RB1201 和第二 DC的第二边缘 RB1202对 ^艮文进行解封装和封装相比, 上述 4艮文的 发送过程只需通过第一 DC的边缘 RB对 ·^艮文头进行封装, 同时, 第一 DC的 第一边缘 RB1201以外的其他 RB无需对其他 DC内的 RB进行下一跳转分发 树转发表项的计算, 减小边缘 RB用于支持报文封装和解封装的硬件资源的 分配量, 报文转发效率高, 进一步的减少其他 RB的工作量。 此外, 与现有 技术一中通过第一边缘 RB1201或第二边缘 RB1202管理第一 DC和第二 DC 内全部路由表相比, 第一边缘 RB1201管理第一 DC的路由表, 因此可支持 大规模的 DC间的互联。  As a further technical solution, compared with the first edge RB 1201 of the first DC in the second DC and the second edge RB 1202 of the second DC, the sending process of the foregoing message is only required. The RB of the first DC is encapsulated by the edge RB of the first DC, and the RBs other than the first edge RB1201 of the first DC do not need to perform calculation of the next jump distribution tree forwarding entry for the RBs in other DCs. The edge RB is used to support the allocation of hardware resources for packet encapsulation and decapsulation, and the packet forwarding efficiency is high, thereby further reducing the workload of other RBs. In addition, the first edge RB 1201 manages the routing table of the first DC by using the first edge RB 1201 or the second edge RB 1202 to manage all the routing tables in the first DC and the second DC, thereby supporting large-scale The interconnection between the DCs.
本发明实施例提供的 TRILL网络互联系统为第二边缘 RB1202 , 例如第 二 DC的第二边缘 RB1202 , 向第一边缘 RB1201 , 例如第一 DC的第一边缘 RB1201 ,发送 RB标识信息时单向的技术方案,当第一 DC的第一边缘 RB1201 向第二 DC 的第二边缘 RB1202发送 RB标识信息, 和第一 DC 的第一边缘 RB1201向其他 DC的其他边缘 RB发送 RB标识信息时, 可实现多 DC间的网 络互联。  The TRILL network interconnection system provided by the embodiment of the present invention is a second edge RB 1202, for example, the second edge RB 1202 of the second DC, and is unidirectional when transmitting the RB identification information to the first edge RB 1201, for example, the first edge RB 1201 of the first DC. The technical solution is that when the first edge RB 1201 of the first DC sends the RB identification information to the second edge RB 1202 of the second DC, and the first edge RB 1201 of the first DC sends the RB identification information to other edge RBs of other DCs, Network interconnection between multiple DCs.
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 仅以 上述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上 述功能分配由不同的功能模块完成, 即将装置的内部结构划分成不同的功 能模块, 以完成以上描述的全部或者部分功能。 上述描述的系统, 装置和 单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再 赘述。 在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅 是示意性的, 例如, 所述模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以结合或者可 以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示 或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装 置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本实施例方案的目的。 It can be clearly understood by those skilled in the art that for the convenience and cleanness of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软 件功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销 售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方 案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存储 在一个存储介质中, 包括若干指令用于使得一台计算机设备(可以是个人 计算机, 服务器, 或者网络设备等)或处理器(proces sor )执行本发明各 个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘、 移动 硬盘、只读存储器(ROM, Read-Only Memory ),随机存取存储器(RAM, Random Acces s Memory ), 磁碟或者光盘等各种可以存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. The instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (proces sor) to perform all or part of the steps of the methods of the various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acces s Memory), a magnetic disk or an optical disk, and the like, which can store program codes. medium.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应以所述权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the present invention The scope of protection shall be subject to the scope of protection of the claims.

Claims

权利要求 Rights request
1、 一种多链接半透明互联 TRILL网络互联方法, 其特征在于, 所述方 法包括: 1. A multi-link semi-transparent interconnection TRILL network interconnection method, characterized in that the method includes:
第一数据中心 DC的第一边缘路由桥 RB接收第二 DC的第二边缘 RB发 送的 RB标识信息, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB 身份标识 ID和所述第二 DC身份标识 ID的组合; 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. The RB identification information carries the RB identity ID of the tree root RB in the second DC and The combination of the second DC identity ID;
所述第一边缘 RB根据所述 RB标识信息建立分发树转发表项, 以便根 据所述分发树转发表项发送报文。 The first edge RB establishes a distribution tree forwarding entry based on the RB identification information, so as to send messages according to the distribution tree forwarding entry.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述第一数据中心 DC 的第一边缘 RB接收第二 DC的第二边缘 RB发送的 RB标识信息, 具体包括: 所述第一边缘 RB接收所述第二边缘 RB通过边界网关协议 BGP发送的 所述 RB标识信息。 2. The method according to claim 1, characterized in that, 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 The RB receives the RB identification information sent by the second edge RB through the Border Gateway Protocol BGP.
3、 根据权利要求 2所述的方法, 其特征在于, 所述第一边缘 RB根据 所述 RB标识信息建立分发树转发表项, 具体包括: 3. The method according to claim 2, characterized in that the first edge RB establishes a distribution tree forwarding entry based on the RB identification information, specifically including:
所述第一边缘 RB根据所述 RB标识信息通过最短路径优先算法 SPF算 法建立所述分发树转发表项; 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 based on the RB identification information.
4、 根据权利要求 3所述的方法, 其特征在于, 所述第一边缘 RB根据 所述 RB标识信息通过最短路径 SPF算法建立所述分发树转发表项, 具体包 括: 4. The method according to claim 3, wherein the first edge RB establishes the distribution tree forwarding entry through the shortest path SPF algorithm according to the RB identification information, specifically including:
所述第一边缘 RB获取对应下一跳 RB的端口号, 将所述对应下一跳 RB 的端口号添加到所述分发树转发表项中; 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;
所述其他 RB根据所述 RB标识信息通过所述 SPF算法建立自身的分发 树转发表项, 具体包括: The other RBs establish their own distribution tree forwarding entries through the SPF algorithm based on the RB identification information, specifically including:
所述其他 RB获取对应下一跳 RB的端口号, 将所述对应下一跳 RB的端 口号添加到自身建立的分发树转发表项中。 The other RB obtains the port number corresponding to the next hop RB, and sets the port number corresponding to the next hop RB. The slogan is added to the distribution tree forwarding entry created by itself.
5、 根据权利要求 1 所述的方法, 其特征在于, 所述第一数据中心 DC 的第一边缘 RB接收第二 DC的第二边缘 RB发送的 RB标识信息中还携带有: 虚拟局域网 VLAN身份标识 ID , 所述 VLAN ID用于标识所述第一 DC中 树根 RB和所述第二 DC中树根 RB同属的 VLAN; 5. The method according to claim 1, wherein the RB identification information sent by the first edge RB of the first data center DC and received by the second edge RB of the second DC also carries: Virtual LAN VLAN identity. Identification 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;
所述第一数据中心 DC的第一边缘 RB接收第二 DC的第二边缘 RB发送 的 RB标识信息, 具体包括: 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, which specifically includes:
所述第一边缘 RB接收所述第二边缘 RB发送的扩展信息, 所述扩展信 息用于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应 关系。 The first edge RB receives the extended information sent by the second edge RB, and the extended information is used to describe the correspondence between the RB identification information and the VLAN ID of the tree root RB in the second DC.
6、 根据权利要求 5所述的方法, 其特征在于, 所述第一边缘 RB根据 所述 RB标识信息建立分发树转发表项, 具体包括: 6. The method according to claim 5, characterized in that the first edge RB establishes a distribution tree forwarding entry based on the RB identification information, specifically including:
所述第一边缘 RB根据 VLAN ID建立所述第一 DC中树根 RB的 RB标识 信息和所述第二 DC中树根 RB的 RB标识信息的对应关系, 由此将所述扩展 信息转化为本地分发树转发表项。 The first edge RB establishes 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, thereby converting the extended information into Local distribution tree forwarding entries.
7、 一种多链接半透明互联 TRILL网络互联方法, 其特征在于, 所述方 法包括: 7. A multi-link semi-transparent interconnection TRILL network interconnection method, characterized in that the method includes:
第二数据中心 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 routing bridge RB of the first DC. The RB identification information carries the RB identity ID of the root RB in the second DC and the RB identification information. The combination of the second DC identity ID is used so that the first edge RB establishes a distribution tree forwarding entry based on the RB identification information, and sends a message based on the distribution tree forwarding entry.
8、 根据权利要求 7 所述的方法, 其特征在于, 所述第二数据中心 DC 的第二边缘 RB向第一 DC的第一边缘 RB发送 RB标识信息, 具体包括: 所述第二边缘 RB通过边界网关协议 BGP向所述第一边缘 RB发送所述 RB标识信息。 8. The method according to claim 7, characterized in that, 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 Send the RB identification information to the first edge RB through Border Gateway Protocol BGP.
9、 根据权利要求 8所述的方法, 其特征在于, 所述第二边缘 RB向所 述第一边缘 RB发送的所述 RB标识信息中还携带有: 虚拟局域网 VLAN身份标识 ID , 所述 VLAN ID用于标识所述第一 DC中 树根 RB和所述第二 DC中树根 RB同属的 VLAN; 9. The method according to claim 8, wherein the RB identification information sent by the second edge RB to the first edge RB also carries: Virtual LAN VLAN identity 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;
所述第二数据中心 DC的第二边缘 RB向第一 DC的第一边缘 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, which specifically includes:
所述第二边缘 RB向所述第一边缘 RB发送扩展信息, 所述扩展信息用 于描述所述第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应关系。 The second edge RB sends 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.
10、 一种多链接半透明互联 TRILL 网络互联装置, 所述装置为第一数 据中心 DC中的第一边缘路由桥 RB , 其特征在于, 所述第一边缘 RB包括: 接收单元, 用于接收第二 DC的第二边缘 RB发送的 RB标识信息, 所述 RB标识信息中携带有所述第二 DC中树根 RB的 RB身份标识 ID和所述第二 DC身份标识 ID的组合; 10. A multi-link translucent interconnection TRILL network interconnection device, the device is the first edge routing bridge RB in the first data center DC, characterized in that the first edge RB includes: a receiving unit, used for receiving RB identification information sent by the second edge RB of the second DC, where the RB identification information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID;
处理单元, 用于根据所述接收单元接收到的所述 RB标识信息建立分发 树转发表项。 A processing unit, configured to establish a distribution tree forwarding entry based on the RB identification information received by the receiving unit.
11、 根据权利要求 10所述的第一边缘 RB, 其特征在于, 所述接收单元 还用于接收所述第二边缘 RB通过边界网关协议 BGP发送的所述 RB标识信 息。 11. The first edge RB according to claim 10, wherein the receiving unit is further configured to receive the RB identification information sent by the second edge RB through the Border Gateway Protocol BGP.
12、 根据权利要求 11所述的第一边缘 RB, 其特征在于, 所述处理单元 具体包括: 12. The first edge RB according to claim 11, characterized in that 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。 A sending subunit, configured to forward the RB identification information received by the receiving unit to other RBs in the first DC.
1 3、 根据权利要求 12所述的第一边缘 RB, 其特征在于, 所述计算子单 元还用于获取对应下一跳 RB的端口号, 将所述对应下一跳 RB的端口号添 加到所述分发树转发表项中。 13. The first edge RB according to claim 12, characterized in that, the calculation subunit is also used to obtain the port number corresponding to the next hop RB, and add the port number corresponding to the next hop RB to in the distribution tree forwarding entry.
14、 根据权利要求 10所述的第一边缘 RB, 其特征在于, 所述接收单元 还用于接收所述第二边缘 RB发送的扩展信息, 所述扩展信息用于描述所述 第二 DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应关系。 14. The first edge RB according to claim 10, wherein the receiving unit is further configured to receive extended information sent by the second edge RB, and 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.
15、 根据权利要求 14所述的第一边缘 RB, 其特征在于, 所述处理单元 还用于根据 VLAN ID建立所述第一 DC中树根 RB的 RB标识信息和所述第二 DC中树根 RB的 RB标识信息的对应关系。 15. The first edge RB according to claim 14, wherein the processing unit is further configured to establish the RB identification information of the tree root RB in the first DC and the tree root RB in the second DC according to the VLAN ID. The corresponding relationship between the RB identification information of the root RB.
16、 一种多链接半透明互联 TRILL 网络互联装置, 所述装置为第二数 据中心 DC中的第二边缘路由桥 RB, 其特征在于, 所述第二边缘 RB包括: 发送单元, 用于向第一 DC的第一边缘 RB发送 RB标识信息, 所述 RB 标识信息中携带有所述第二 DC中树根 RB的 RB身份标识 ID和所述第二 DC 身份标识 ID的组合。 16. A multi-link translucent interconnection TRILL network interconnection device, the device is a second edge routing bridge RB in the second data center DC, characterized in that the second edge RB includes: a sending unit, used to send The first edge RB of the first DC sends RB identification information, and the RB identification information carries a combination of the RB identity ID of the root RB in the second DC and the second DC identity ID.
17、 根据权利要求 16所述的第二边缘 RB, 其特征在于, 所述发送单元 还用于通过边界网关协议 BGP向所述第一边缘 RB发送所述 RB标识信息。 17. The second edge RB according to claim 16, wherein the sending unit is further configured to send the RB identification information to the first edge RB through Border Gateway Protocol BGP.
18、 根据权利要求 17所述的第二边缘 RB, 其特征在于, 所述发送单元 还用于向所述第一边缘 RB发送扩展信息, 所述扩展信息用于描述所述第二 18. The second edge RB according to claim 17, wherein the sending unit is further configured to send extended information to the first edge RB, and the extended information is used to describe the second edge RB.
DC中树根 RB的 RB标识信息 和 VLAN ID之间的对应关系。 The correspondence between the RB identification information and the VLAN ID of the root RB in the DC.
19、 一种多链接半透明互联 TRILL网络互联系统, 其特征在于, 所述系 统由权利要求 10至权利要求 15中任意一项所述的第一边缘路由桥 RB和权利 要求 16至权利要求 18中任意一项所述的第二边缘 RB组成。 19. A multi-link translucent interconnection TRILL network interconnection system, characterized in that the system consists of the first edge routing bridge RB according to any one of claims 10 to 15 and claims 16 to 18 The second edge RB is composed of any one of them.
PCT/CN2014/070124 2013-01-18 2014-01-04 Trill network interconnection method, device and system WO2014110986A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2014110986A1 true WO2014110986A1 (en) 2014-07-24

Family

ID=48207732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/070124 WO2014110986A1 (en) 2013-01-18 2014-01-04 Trill network interconnection method, device 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
CN103095579A (en) * 2013-01-18 2013-05-08 华为技术有限公司 TRILL network interconnection method and device 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
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
CN103095579A (en) * 2013-01-18 2013-05-08 华为技术有限公司 TRILL network interconnection method and device and system

Also Published As

Publication number Publication date
CN103095579A (en) 2013-05-08
CN103095579B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN108476160B (en) switch interconnect based on layered overlay tunneling
JP6189942B2 (en) Routing VLAN-tagged packets to the far-end address of a virtual forwarding instance using an individual management scheme
EP2945320B1 (en) Method, device and routing system for data transmission of network virtualization
CN102035729B (en) Multicast data forwarding method
WO2022100554A1 (en) Method for forwarding bier message, and device and system
US9929936B2 (en) Method for sending multicast packet and switch
US20160043941A1 (en) Method and system for controlling an underlying physical network by a software defined network
US8730979B2 (en) Method and system for increasing forwarding efficiency of virtual private LAN service network
WO2014201974A1 (en) Service routing packet processing method, device and network system
WO2018214809A1 (en) Message transmission method and device, and storage medium
WO2013026384A1 (en) Service data transmission method, network node and system
CN114465946B (en) Method, device and system for acquiring forwarding table item
WO2012119390A1 (en) Virtual machine migration notification method and system
WO2015144018A1 (en) Information transmission method, device and communication system
WO2014121468A1 (en) Method and device for establishing multicast data channel in network virtualization system
WO2014110986A1 (en) Trill network interconnection method, device and system
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2015180120A1 (en) Packet forwarding method, forwarding entry delivery method, and network device
CN102045250B (en) Forwarding method for multicast message in VPLS, and service provider edge equipment
CN102255787B (en) Message processing method based on quality of service and operator network edge equipment
WO2014139157A1 (en) Method for packet processing and packet device and system
WO2022117018A1 (en) Packet transmission method and apparatus
CN112822097A (en) Message forwarding method, first network device and first device group
WO2012113251A1 (en) Trill network interconnection method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14740601

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14740601

Country of ref document: EP

Kind code of ref document: A1