WO2016050096A1 - Method for forwarding message in trill network and route bridge - Google Patents

Method for forwarding message in trill network and route bridge Download PDF

Info

Publication number
WO2016050096A1
WO2016050096A1 PCT/CN2015/081675 CN2015081675W WO2016050096A1 WO 2016050096 A1 WO2016050096 A1 WO 2016050096A1 CN 2015081675 W CN2015081675 W CN 2015081675W WO 2016050096 A1 WO2016050096 A1 WO 2016050096A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
destination
data packet
trill
rbridge
Prior art date
Application number
PCT/CN2015/081675
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 WO2016050096A1 publication Critical patent/WO2016050096A1/en

Links

Images

Definitions

  • the present invention relates to communication network technologies, and in particular, to a method and a routing bridge for forwarding messages in a TRILL network.
  • TRILL Transparent Interconnection of Lots of Links
  • IEIF Internet Engineering Task Force
  • the device running the TRILL protocol is called A routing bridge (English: Route Bridge, RB for short), a network composed of RBs is called a TRILL network.
  • the forwarding in the TRILL network is essentially Layer 2 forwarding. You need to find the Media Access Control Address (MAC) address table. If the ingress RB receives the packet, the ingress RB can be unicast and forwarded on the TRILL network if it can find the MAC address corresponding to the egress RB in the packet. If the MAC address corresponding to the Egress RB in the packet is not found in the MAC address table stored in the RB (the MAC address is aged or deleted, or the sending and receiving paths of the packet are inconsistent and the MAC address cannot be learned), The ingress RB sends the packet in the TRILL network in the multicast mode. The scheme of forwarding the unicast packet through the multicast mode wastes the bandwidth of the multicast traffic of the TRILL network and reduces the bandwidth utilization of the TRILL network.
  • MAC Media Access Control Address
  • the present invention provides a method and a routing bridge for forwarding a message in a TRILL network, which overcomes the problem of wasting the bandwidth of the multicast traffic of the TRILL network and reducing the bandwidth utilization of the TRILL network.
  • a first aspect of the present invention provides a method for forwarding a message in a multi-link transparent interconnect TRILL network, including:
  • the first RBridge sends the MAC address to other RBridges in the TRILL network by using the TRILL multicast mode.
  • An address request message where the payload of the MAC address request message carries the destination MAC address of the first data packet;
  • the first routing bridge sends the subsequently received second data packet including the destination MAC address to the second routing bridge in the TRILL unicast mode according to the information of the second routing bridge.
  • the method before the sending, by the first RB, the MAC address request packet to the other RBs in the TRILL network, the method further includes:
  • the first routing bridge determines whether the forwarding manner of the first data packet is a TRILL multicast mode.
  • the first data packet is determined to be a unicast packet whose MAC address search fails.
  • the first RBridge is unicast by TRILL according to the information of the second RBridge And sending, by the second routing bridge, the subsequently received second data packet that includes the destination MAC address, including:
  • the first routing bridge sends, according to the entry, the second received data packet including the destination MAC address to the second routing bridge in a TRILL unicast mode.
  • the inner layer destination media access of the MAC address request message The control DMAC address is a customized multicast MAC address, and the inner layer source media access control SMAC address is the MAC address of the first RBridge, and the target MAC address in the load of the MAC address request packet is the first The destination MAC address of the data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
  • the customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
  • the inner layer destination media access control DMAC address of the MAC address response packet is the first RBridge of The MAC address
  • the inner source media access control SMAC address is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs
  • the nickname of the egress routing bridge is The nickname of the first RBridge
  • the nickname of the ingress RBridge is the nickname of the second RBridge.
  • a second aspect of the present invention provides a method for forwarding a message in a multi-link transparent interconnect TRILL network, including:
  • the second routing bridge receives the media access control MAC address request packet sent by the first routing bridge in the TRILL multicast mode, where the load of the MAC address request packet includes the target MAC address;
  • the second RB bridge sends a MAC address response message to the first RB through the TRILL unicast mode, where the MAC address response message is sent. Carrying the information of the second RBridge, so that the first RB bridge sends the subsequently received PDCCH including the target MAC to the second RB through TRILL unicast mode according to the information of the second RBridge.
  • the second data message of the address is the first RB bridge.
  • the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address
  • the inner layer source media access control SMAC address is the first a MAC address of the RB
  • the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs
  • the text and the second data message include the same destination MAC address.
  • the inner layer destination medium access control DMAC address of the MAC address response message is the first RBridge MAC address
  • the inner source media access control SMAC address is the target MAC address
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs
  • the nickname of the egress RB in the TRILL unicast header is the first RBridge Nickname
  • the nickname of the ingress RBridge is the nickname of the second RBridge.
  • a third aspect of the present invention provides a routing bridge, including:
  • a first receiving module configured to receive a first data packet, where the first data packet includes a destination media access control MAC address
  • the first sending module is configured to search the MAC address table, and if the entry including the destination MAC address is not found in the MAC address table, send the MAC address to other routing bridges in the TRILL network by using the TRILL multicast mode.
  • a request packet where the payload of the MAC address request packet carries the destination MAC address of the first data packet;
  • a second receiving module configured to receive a MAC address response message sent by another RB, the MAC address
  • the response message carries the information of the another RBridge
  • a second sending module configured to send, according to the information about the another RB bridge received by the second receiving module, the subsequently received destination MAC address by using the TRILL unicast mode to the another RBridge Second data message.
  • the method further includes: a determining module, configured to send, by the first sending module, a MAC address request packet to other routing bridges in the TRILL network by using a TRILL multicast mode Before determining whether the destination MAC address of the first data packet is a unicast MAC address, and determining the first data packet when the destination MAC address of the first data packet is a unicast address
  • the forwarding mode is the TRILL multicast mode.
  • the forwarding mode of the first data packet is the TRILL multicast mode, the first data packet is determined to be a unicast packet with the MAC address search failure.
  • the RBridge further includes:
  • An acquiring unit configured to acquire information about the another RB bridge carried in the MAC address response packet
  • An adding unit configured to add, in the MAC address table, an entry that includes a correspondence between the destination MAC address and the information of the another RBridge;
  • the second sending module is configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
  • the inner layer destination media access of the MAC address request message Controlling the DMAC address as a custom multicast MAC address, the inner layer source media access control SMAC address being the MAC address of the RBridge, and the destination MAC address in the load of the MAC address request message being the first datagram
  • the destination MAC address of the text, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
  • the customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
  • the inner layer destination medium access control DMAC address of the MAC address response message is the MAC of the RBridge The address
  • the inner layer source media access control SMAC address is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs
  • the nickname of the egress routing bridge is the The nickname of the routing bridge
  • the nickname of the ingress routing bridge is the nickname of the other routing bridge.
  • a fourth aspect of the present invention provides a routing bridge, including:
  • a receiving module configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address;
  • a sending module configured to send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC address of the RB is a destination MAC address, where the MAC address response message carries the message Decoding the information of the bridge, so that the another RB bridge sends the subsequently received second data packet including the target MAC address to the RB through TRILL unicast mode according to the information of the RBridge.
  • the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address
  • the inner layer source media access control SMAC address is the other one.
  • a MAC address of the RB the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs
  • the first datagram The text and the second data message include the same destination MAC address.
  • the inner layer destination medium access control DMAC address of the MAC address response message is the another RBridge MAC address
  • the inner source media access control SMAC address is the target MAC address
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs
  • the nickname of the egress routing bridge in the TRILL unicast header is the another RBridge Nickname
  • the nickname of the ingress RBridge is the nickname of the RBridge.
  • the first routing bridge receives the first data packet including the destination media access control MAC address, and if the first routing bridge does not find the entry including the destination MAC address in the MAC address table,
  • the TRILL multicast mode sends a MAC address request packet carrying the destination MAC address of the first data packet to the other RBs in the TRILL network, and receives the second RB bridge that is sent by the second RBridge.
  • the MAC address response message of the information is sent to the second RB through the TRILL unicast mode to send the subsequently received second data packet including the destination MAC address according to the information of the second RBridge.
  • the first routing bridge does not store the entry including the destination MAC address in the discovery MAC address table, and does not unicast the first data packet, and actively sends the destination MAC address of the first data packet.
  • the address is used as the MAC address request packet of the target MAC address, and the information of the second RBridge corresponding to the destination MAC address of the first data packet is quickly obtained, so that the first RB bridge can be according to the second RBridge
  • the information is sent in the TRILL unicast mode to the second received data packet including the destination MAC address, which effectively reduces the TRILL multicast traffic in the TRILL network, saves the multicast bandwidth of the TRILL network, and increases the bandwidth utilization. rate.
  • FIG. 1 is a schematic flowchart of a method for forwarding a message in a TRILL network according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for forwarding a packet in another TRILL network according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram 1 of a routing bridge according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram 2 of a routing bridge according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram 3 of a routing bridge according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another RBridge according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of still another RBridge according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of still another routing bridge according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for forwarding a packet in a TRILL network according to an embodiment of the present disclosure. As shown in FIG. 1 , the method in this embodiment may include:
  • Step 101 The first RBridge receives the first data packet, where the first data packet includes a destination media access control MAC address.
  • Step 102 If the first RB bridge does not find the entry including the destination MAC address in the MAC address table, the first RBridge passes the TRILL multicast mode to other RBridges in the TRILL network. Sending a MAC address request message, where the payload of the MAC address request message carries the destination MAC address of the first data packet.
  • the first RBridge performs the following operations:
  • the first data packet is sent to other routing bridges in the TRILL network by using a multicast mode
  • the sending the first data packet to the other RBs in the TRILL network by using the multicast mode can avoid the service interruption problem caused by the delay sending the first data packet. And sending, by using the TRILL multicast mode, a MAC address request packet to the other RBs in the TRILL network, and acquiring the RB corresponding to the destination MAC address, so that the first RB learns to include the MAC address.
  • the entry, and the TRILL unicast forwards the subsequently received second data packet including the MAC address.
  • the load of the MAC address request packet carries the destination MAC address included in the first data packet received by the first RBridge.
  • Each entry of the MAC address table includes at least a correspondence between a MAC address and an identifier of the source.
  • the source may be a port or other RBridge, and the entry may also include other information.
  • Table 1 it is a schematic diagram of a MAC address table.
  • the first routing bridge directly forwards the first data packet according to the information in the MAC address table.
  • the first The routing bridge determines whether the received packet is a unicast packet with a MAC address search failure.
  • the specific process is: first, the first RB bridge determines whether the destination MAC address of the received first data packet is a unicast MAC address, and then The first RB also needs to determine whether the forwarding manner of the first data packet is TRILL multicast forwarding, if the destination MAC address of the received first data packet is a unicast MAC address, and the If the forwarding mode of a data packet is TRILL multicast mode, the first data packet received is a unicast packet with a MAC address search failure. Only the first data packet is a unicast packet with a MAC address search failure, and the first RBridge sends a MAC address request packet to other RBridges in the TRILL network through the TRILL multicast mode.
  • the first RB bridge passes the TRILL multicast mode to the TRILL network. Other routes The bridge sends a MAC address request message.
  • the first routing bridge determines that the MAC address table maintained by itself does not store the entry including the destination MAC address included in the received first data packet, and the received first data packet fails to be searched for the MAC address.
  • the first RBridge sends a MAC address request packet to the other RBs in the TRILL network through the TRILL multicast mode.
  • the MAC address request packet of the other RBridge is used to make the MAC address
  • the routing bridge of the destination MAC address sends a MAC address response message to the first routing bridge, so that the first routing bridge can send the information of the routing bridge of the MAC address response message and the destination MAC address.
  • the relationship is added to the MAC address table maintained by the user.
  • the MAC address table can be directly searched and TRILL unicast forwarding is performed.
  • the MAC address request packet is a TRILL-encapsulated packet
  • the inner-layer destination media access control DMAC address of the MAC address request packet is a customized multicast MAC address
  • the inner-layer source media access control SMAC address is The MAC address of the first RBridge
  • the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
  • the customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails. And the customized multicast MAC address is further used to enable the second RB that receives the MAC address request packet and the MAC address is the target MAC address to return a MAC address response report to the first RBridge. Text.
  • the MAC address table is used to store a correspondence between the MAC address and the information of the RBridge.
  • the information of the RBridge may be an alias of the RBridge.
  • Step 103 The first routing bridge receives a MAC address response message sent by the second routing bridge, where the MAC address response message carries the information of the second routing bridge.
  • the other routing bridges in the TRILL network receive the MAC address request packet of the first routing bridge multicast forwarding, determine whether the destination MAC address in the MAC address request packet is its own MAC address, if The second RB in the TRILL network determines that its MAC address is the destination MAC address in the MAC address request packet, and the second RBridge generates a MAC address response packet and sends the generated MAC address response packet.
  • the first RB is configured to enable the first RB to forward the second data packet whose destination MAC address is the MAC address of the second RB to the second RB according to the information carried in the MAC address response packet.
  • the MAC address response message generated by the second routing bridge is a TRILL encapsulated packet
  • the inner layer destination media access control DMAC address is the MAC address of the first RBridge
  • the inner layer source media access control SMAC address is the MAC address of the first RBridge
  • a destination MAC address of the first data packet that is, a destination MAC address in the MAC address request packet, that is, a MAC address of the second RBridge
  • the virtual local area network VLAN is the first datagram.
  • the destination MAC address belongs to the VLAN
  • the nickname of the egress RBridge is the nickname of the first RBridge
  • the nickname of the ingress RBridge is the nickname of the second RBridge.
  • Step 104 The first RB bridge sends the subsequently received second data packet including the destination MAC address to the second RB through the TRILL unicast mode according to the information of the second RBridge.
  • FIG. 2 is a flowchart of another TRILL network communication method according to an embodiment of the present invention. As shown in FIG. 2, the method in this embodiment may include:
  • Step 201 The second routing bridge receives the media access control MAC address request packet sent by the first RB through the TRILL multicast mode, where the load of the MAC address request packet includes a target MAC address, and the MAC address request packet
  • the purpose of the media access control DMAC address is a custom multicast MAC address.
  • the second routing bridge receives the packets of different types of TRILL encapsulation in the process of communication. After receiving the packet sent by the first RBridge, the second RB needs to first determine the type of the received packet, that is, You need to determine whether the received packet is a MAC address request packet.
  • the method for determining whether the received packet is a MAC address request packet is:
  • the inner layer DMAC of the packet is a customized multicast MAC address, it is determined that the received packet is a MAC address request packet.
  • the inner layer destination media access control DMAC address of the TRILL multicast packet is a customized multicast MAC address
  • the inner layer source media access control SMAC address is the MAC address of the first RBridge
  • the MAC address request packet is The destination MAC address in the load is the destination MAC address of the first data packet received by the first RB
  • the virtual LAN VLAN is the VLAN to which the target MAC address belongs.
  • Step 202 If the MAC address of the second RBridge is the target MAC address, the second RBridge Sending a MAC address response message to the first RB through the TRILL unicast mode, where the MAC address response message carries information of the second RBridge, so that the first RB bridge is according to the second RBridge
  • the second received data message including the target MAC address is sent to the second RB through the TRILL unicast mode.
  • the MAC address in the second RB bridge is the target MAC address, specifically: the MAC address table of the second RBridge includes the target MAC address, and the target MAC address is from the Learned on the port of the second routing bridge itself.
  • the information of the second routing bridge includes a nickname nickname of the second routing bridge.
  • the MAC address response message is a TRILL encapsulated message
  • the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the first RBridge
  • the inner layer source media access Controlling the SMAC address as the target MAC address ie, the MAC address of the second RBridge, that is, the MAC address of the first data packet received by the first RBridge
  • the virtual local area network VLAN is the target MAC address.
  • the nickname of the egress RB in the TRILL unicast header is the nickname of the first RBridge
  • the nickname of the ingress RBridge is the nickname of the second RBridge.
  • the first routing bridge receives the first data packet including the destination media access control MAC address, and if the first RB is not found in the MAC address table, the entry including the destination MAC address is not found. Transmitting, by the TRILL multicast mode, a MAC address request message carrying the destination MAC address of the first data packet to the other RBs in the TRILL network, and receiving the second RBridge carrying the second RB The MAC address response message of the information of the RB bridge is sent to the second RB through the TRILL unicast mode to send the subsequently received second data packet including the destination MAC address according to the information of the second RBridge.
  • the first routing bridge does not store the entry including the destination MAC address in the discovery MAC address table, and does not unicast the first data packet, and actively sends the destination MAC address of the first data packet.
  • the address is used as the MAC address request packet of the target MAC address, and the information of the second RBridge corresponding to the destination MAC address of the first data packet is quickly obtained, so that the first RB bridge can be according to the second RBridge
  • the information is sent in the TRILL unicast mode to the second received data packet including the destination MAC address, which effectively reduces the TRILL multicast traffic in the TRILL network, saves the multicast bandwidth of the TRILL network, and increases the bandwidth utilization. rate.
  • FIG. 3 is a schematic structural diagram 1 of a RBridge according to an embodiment of the present invention.
  • the RBridge 300 includes:
  • the first receiving module 301 is configured to receive a first data packet, where the first data packet includes a destination media access control MAC address.
  • the first sending module 302 is configured to look up a MAC address table, if not found in the MAC address table
  • the destination MAC address entry sends a MAC address request packet to the other RBs in the TRILL network by using the TRILL multicast mode, where the load of the MAC address request packet carries the first data packet.
  • the second receiving module 303 is configured to receive a MAC address response message sent by another routing bridge, where the MAC address response message carries the information of the another routing bridge;
  • the second sending module 304 is configured to send the subsequently received destination MAC address to the another RB through the TRILL unicast mode according to the information about the another RBridge received by the second receiving module 303.
  • the second data message of the address is configured to send the subsequently received destination MAC address to the another RB through the TRILL unicast mode according to the information about the another RBridge received by the second receiving module 303. The second data message of the address.
  • the RBridge 300 further includes: a determining module 305, configured to send, by the first sending module 302, a MAC address request report to other RBridges in the TRILL network by using a TRILL multicast mode. Before determining whether the destination MAC address of the first data packet is a unicast MAC address, and determining the first data packet when the destination MAC address of the first data packet is a unicast address If the forwarding mode of the first data packet is the TRILL multicast mode, the first data packet is determined to be a unicast packet with the MAC address search failure.
  • the RBridge 300 further includes:
  • the obtaining module 306 is configured to obtain information about the another RB bridge carried in the MAC address response packet.
  • An adding module 307 configured to add, in the MAC address table, an entry that includes a correspondence between the destination MAC address and the information of the another RBridge;
  • the second sending module 304 is specifically configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
  • the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address
  • the inner layer source media access control SMAC address is a MAC address of the RBridge
  • the MAC address is The destination MAC address in the payload of the request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
  • the customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
  • the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the RB
  • the inner source media access control SMAC address is a destination MAC address of the first data packet.
  • the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, and the egress route
  • the nickname of the bridge is the nickname of the routing bridge, and the nickname of the ingress routing bridge is the nickname of the other routing bridge.
  • the RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of another RBridge according to an embodiment of the present invention.
  • the RBridge 400 includes:
  • the receiving module 401 is configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address;
  • the sending module 402 is configured to: when the MAC address of the RB bridge is the target MAC address, send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC address response message is carried. And the routing bridge information, so that the another RB bridge sends the subsequently received second data packet including the target MAC address to the RB through TRILL unicast mode according to the information of the RBridge.
  • the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address
  • the inner layer source media access control SMAC address is the MAC address of the another RBridge
  • the MAC address is The destination MAC address in the load of the request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs
  • the first data packet and the second data packet include The same destination MAC address.
  • the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the another RBridge
  • the inner layer source media access control SMAC address is the target MAC address
  • the virtual local area network VLAN is The nickname of the egress RB in the TRILL unicast header is the nickname of the other RBridge
  • the nickname of the ingress RB is the nickname of the RBridge.
  • the RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of still another RBridge according to an embodiment of the present invention.
  • the RBridge 500 includes:
  • the receiver 501 is configured to receive a first data packet, where the first data packet includes a destination media access control MAC address.
  • the processor 502 is configured to look up a MAC address table.
  • the sender 503 is configured to send a MAC address request to other routing bridges in the TRILL network by using the TRILL multicast mode if the processor 502 does not find an entry including the destination MAC address in the MAC address table. a packet, where the payload of the MAC address request packet carries the destination MAC address of the first data packet address.
  • the receiver 501 is further configured to receive a MAC address response message sent by another RB, where the MAC address response message carries the information of the another RBridge;
  • the transmitter 503 is further configured to send, according to the received information of the another RBridge, a subsequently received second PDCCH including the destination MAC address to the another RB through TRILL unicast mode. Data message.
  • the processor 502 is further configured to determine the first data packet before the sender 503 sends a MAC address request message to other routing bridges in the TRILL network by using the TRILL multicast mode. Whether the destination MAC address is a unicast MAC address, and when the destination MAC address of the first data packet is a unicast address, it is further used to determine whether the forwarding manner of the first data packet is TRILL multicast. In a manner, when the first data packet is forwarded in the TRILL multicast mode, the first data packet is determined to be a unicast packet whose MAC address search fails.
  • the processor 502 is further configured to obtain information about the another RB bridge carried in the MAC address response packet, and add the destination MAC address and the MAC address table to the MAC address table. An entry of a correspondence relationship of information of another RBridge.
  • the transmitter 503 is specifically configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
  • the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address
  • the inner layer source media access control SMAC address is a MAC address of the RBridge
  • the MAC address is The destination MAC address in the payload of the request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
  • the customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
  • the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the RB
  • the inner source media access control SMAC address is a destination MAC address of the first data packet.
  • the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs
  • the nickname of the egress RBridge is the nickname of the RBridge
  • the nickname of the ingress RBridge is the nickname of the other RBridge.
  • the RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of still another routing bridge according to an embodiment of the present invention.
  • the routing bridge 600 includes:
  • the receiver 601 is configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address.
  • the processor 602 is configured to determine whether a MAC address in the RB bridge is the target MAC address.
  • the transmitter 603 is configured to: when the processor 602 determines that the MAC address of the RBridge is the target MAC address, send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC The address response message carries the information of the RB bridge, so that the another RB bridge sends the subsequently received destination MAC address including the target MAC address to the RB through the TRILL unicast mode according to the information of the RBridge. Second data message.
  • the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address
  • the inner layer source media access control SMAC address is a MAC address of the another RBridge.
  • the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet
  • the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the first data packet and the second datagram.
  • the text includes the same destination MAC address.
  • the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the another RBridge
  • the inner layer source media access control SMAC address is the target MAC address
  • the virtual local area network VLAN is The nickname of the egress RB in the TRILL unicast header is the nickname of the other RBridge
  • the nickname of the ingress RB is the nickname of the RBridge.
  • the RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

Provided are a method for forwarding a message in a TRILL network and a route bridge. The method comprises: when a first route bridge discovers that a table entry comprising a destination MAC address is not stored in a MAC address table and a first data message cannot be forwarded in a unicast manner, actively sending a MAC address request message taking the destination MAC address of the first data message as a target MAC address, and quickly acquiring information about a second route bridge corresponding to the destination MAC address of the first data message, so that the first route bridge can send a second data message which is subsequently received and comprises the destination MAC address in a TRILL unicast manner according to the information about the second route bridge, thereby effectively reducing the TRILL multicast traffic in the TRILL network, saving a multicast bandwidth of the TRILL network and improving the utilization rate of bandwidth.

Description

TRILL网络中转发报文的方法和路由桥Method and routing bridge for forwarding messages in a TRILL network
本申请要求于2014年9月29日提交中国专利局、申请号为201410513418.2、发明名称为“TRILL网络中转发报文的方法和路由桥”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201410513418.2, filed on Sep. 29, 2014, entitled "Method and Routing Bridge for Forwarding Messages in the TRILL Network", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及通信网络技术,尤其涉及一种TRILL网络中转发报文的方法和路由桥。The present invention relates to communication network technologies, and in particular, to a method and a routing bridge for forwarding messages in a TRILL network.
背景技术Background technique
多链接透明互联(英文:Transparent Interconnection of Lots of Links,简称:TRILL)是互联网工程任务组(英文:Internet Engineering Task Force,简称:IEIF)推荐的二层网络标准,其中,运行TRILL协议的设备叫做路由桥(英文:Route Bridge,简称:RB),由RB组成的网络叫做TRILL网络。The Transparent Interconnection of Lots of Links (TRILL) is a Layer 2 network standard recommended by the Internet Engineering Task Force (IEIF). The device running the TRILL protocol is called A routing bridge (English: Route Bridge, RB for short), a network composed of RBs is called a TRILL network.
TRILL网络中的转发本质上属于二层转发,需要查找媒体访问控制(英文:Media Access Control Address,简称为:MAC)地址表。当入口路由桥(英文:Ingress RB)接收到报文后,如果能够查找到报文中的出口路由桥(英文:Egress RB)对应的MAC地址,则在TRILL网络中单播转发,而如果Ingress RB中存储的MAC地址表中查找不到所述报文中Egress RB对应的MAC地址(MAC地址被老化或者删除,或者报文的发送和接收路径不一致而无法学习到MAC地址),则所述Ingress RB采用组播方式在TRILL网络内发送所述报文,上述通过组播方式转发单播报文的方案会浪费TRILL网络的组播流量带宽,降低TRILL网络的带宽利用率。The forwarding in the TRILL network is essentially Layer 2 forwarding. You need to find the Media Access Control Address (MAC) address table. If the ingress RB receives the packet, the ingress RB can be unicast and forwarded on the TRILL network if it can find the MAC address corresponding to the egress RB in the packet. If the MAC address corresponding to the Egress RB in the packet is not found in the MAC address table stored in the RB (the MAC address is aged or deleted, or the sending and receiving paths of the packet are inconsistent and the MAC address cannot be learned), The ingress RB sends the packet in the TRILL network in the multicast mode. The scheme of forwarding the unicast packet through the multicast mode wastes the bandwidth of the multicast traffic of the TRILL network and reduces the bandwidth utilization of the TRILL network.
发明内容Summary of the invention
本发明提供一种TRILL网络中转发报文的方法和路由桥,以克服现有技术中存在的浪费TRILL网络的组播流量带宽,降低TRILL网络的带宽利用率的问题。The present invention provides a method and a routing bridge for forwarding a message in a TRILL network, which overcomes the problem of wasting the bandwidth of the multicast traffic of the TRILL network and reducing the bandwidth utilization of the TRILL network.
本发明第一方面提供一种多链接透明互联TRILL网络中转发报文的方法,包括:A first aspect of the present invention provides a method for forwarding a message in a multi-link transparent interconnect TRILL network, including:
第一路由桥接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址;Receiving, by the first RB, a first data packet, where the first data packet includes a destination media access control MAC address;
若所述第一路由桥在MAC地址表中未查找到包括所述目的MAC地址的表项,则所述第一路由桥通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地 址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC地址;If the first RB bridge does not find the entry including the destination MAC address in the MAC address table, the first RBridge sends the MAC address to other RBridges in the TRILL network by using the TRILL multicast mode. An address request message, where the payload of the MAC address request message carries the destination MAC address of the first data packet;
所述第一路由桥接收第二路由桥发送的MAC地址应答报文,所述MAC地址应答报文中携带所述第二路由桥的信息;Receiving, by the first routing bridge, a MAC address response message sent by the second routing bridge, where the MAC address response message carries the information of the second routing bridge;
所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The first routing bridge sends the subsequently received second data packet including the destination MAC address to the second routing bridge in the TRILL unicast mode according to the information of the second routing bridge.
在第一方面的第一种可能实现方式中,所述第一路由桥通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文之前,所述方法还包括:In a first possible implementation manner of the first aspect, before the sending, by the first RB, the MAC address request packet to the other RBs in the TRILL network, the method further includes:
判断所述第一数据报文的目的MAC地址是否为单播MAC地址,Determining whether the destination MAC address of the first data packet is a unicast MAC address,
当所述第一数据报文的目的MAC地址为单播地址时,所述第一路由桥判断所述第一数据报文的转发方式是否为TRILL组播方式,When the destination MAC address of the first data packet is a unicast address, the first routing bridge determines whether the forwarding manner of the first data packet is a TRILL multicast mode.
当所述第一数据报文的转发方式为TRILL组播方式时,确定所述第一数据报文为所述MAC地址查找失败的单播报文。When the first data packet is forwarded in the TRILL multicast mode, the first data packet is determined to be a unicast packet whose MAC address search fails.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first RBridge is unicast by TRILL according to the information of the second RBridge And sending, by the second routing bridge, the subsequently received second data packet that includes the destination MAC address, including:
所述第一路由桥获取所述MAC地址应答报文中携带的所述第二路由桥的信息;Obtaining, by the first routing bridge, information about the second routing bridge carried in the MAC address response message;
所述第一路由桥在所述MAC地址表中添加包括所述目的MAC地址与所述第二路由桥的信息的对应关系的表项;Adding, by the first routing bridge, an entry including a correspondence between the destination MAC address and the information of the second RBridge in the MAC address table;
所述第一路由桥根据所述表项,通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。And the first routing bridge sends, according to the entry, the second received data packet including the destination MAC address to the second routing bridge in a TRILL unicast mode.
结合第一方面、第一方面的第一或第二种任一种可能的实现方式,在第一方面的第三种可能的实现方式中,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述第一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,With reference to the first aspect, the first or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the inner layer destination media access of the MAC address request message The control DMAC address is a customized multicast MAC address, and the inner layer source media access control SMAC address is the MAC address of the first RBridge, and the target MAC address in the load of the MAC address request packet is the first The destination MAC address of the data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述第一路由桥的 MAC地址,内层源媒体访问控制SMAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由桥的nickname为所述第一路由桥的nickname,入口路由桥的nickname为所述第二路由桥的nickname。In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the inner layer destination media access control DMAC address of the MAC address response packet is the first RBridge of The MAC address, the inner source media access control SMAC address is the destination MAC address of the first data packet, the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, and the nickname of the egress routing bridge is The nickname of the first RBridge, the nickname of the ingress RBridge is the nickname of the second RBridge.
本发明第二方面提供一种多链接透明互联TRILL网络中转发报文的方法,包括:A second aspect of the present invention provides a method for forwarding a message in a multi-link transparent interconnect TRILL network, including:
第二路由桥接收第一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址;The second routing bridge receives the media access control MAC address request packet sent by the first routing bridge in the TRILL multicast mode, where the load of the MAC address request packet includes the target MAC address;
若所述第二路由桥的MAC地址为所述目标MAC地址,则所述第二路由桥通过TRILL单播方式向所述第一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带所述第二路由桥的信息,以使所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。If the MAC address of the second RBridge is the target MAC address, the second RB bridge sends a MAC address response message to the first RB through the TRILL unicast mode, where the MAC address response message is sent. Carrying the information of the second RBridge, so that the first RB bridge sends the subsequently received PDCCH including the target MAC to the second RB through TRILL unicast mode according to the information of the second RBridge. The second data message of the address.
在第二方面的第一种可能的实现方式中,MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述第一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,所述第一数据报文与所述第二数据报文包括相同的目的MAC地址。In a first possible implementation manner of the second aspect, the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is the first a MAC address of the RB, the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the first datagram The text and the second data message include the same destination MAC address.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述第一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述第一路由桥的nickname,入口路由桥的nickname为所述第二路由桥的nickname。With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the inner layer destination medium access control DMAC address of the MAC address response message is the first RBridge MAC address, the inner source media access control SMAC address is the target MAC address, the virtual local area network VLAN is the VLAN to which the target MAC address belongs, and the nickname of the egress RB in the TRILL unicast header is the first RBridge Nickname, the nickname of the ingress RBridge is the nickname of the second RBridge.
本发明第三方面提供一种路由桥,包括:A third aspect of the present invention provides a routing bridge, including:
第一接收模块,用于接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址;a first receiving module, configured to receive a first data packet, where the first data packet includes a destination media access control MAC address;
第一发送模块,用于查找MAC地址表,如果在MAC地址表中未查找到包括所述目的MAC地址的表项,则通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC地址;The first sending module is configured to search the MAC address table, and if the entry including the destination MAC address is not found in the MAC address table, send the MAC address to other routing bridges in the TRILL network by using the TRILL multicast mode. a request packet, where the payload of the MAC address request packet carries the destination MAC address of the first data packet;
第二接收模块,用于接收另一路由桥发送的MAC地址应答报文,所述MAC地址 应答报文中携带所述另一路由桥的信息;a second receiving module, configured to receive a MAC address response message sent by another RB, the MAC address The response message carries the information of the another RBridge;
第二发送模块,用于根据所述第二接收模块接收到的所述另一路由桥的信息,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。a second sending module, configured to send, according to the information about the another RB bridge received by the second receiving module, the subsequently received destination MAC address by using the TRILL unicast mode to the another RBridge Second data message.
在第三方面的第一种可能的实现方式中,还包括:判断模块,用于在所述第一发送模块通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文之前,判断所述第一数据报文的目的MAC地址是否为单播MAC地址,并且,当所述第一数据报文的目的MAC地址为单播地址时,判断所述第一数据报文的转发方式是否为TRILL组播方式,当所述第一数据报文的转发方式为TRILL组播方式时,确定所述第一数据报文为所述MAC地址查找失败的单播报文。In a first possible implementation manner of the third aspect, the method further includes: a determining module, configured to send, by the first sending module, a MAC address request packet to other routing bridges in the TRILL network by using a TRILL multicast mode Before determining whether the destination MAC address of the first data packet is a unicast MAC address, and determining the first data packet when the destination MAC address of the first data packet is a unicast address The forwarding mode is the TRILL multicast mode. When the forwarding mode of the first data packet is the TRILL multicast mode, the first data packet is determined to be a unicast packet with the MAC address search failure.
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述路由桥还包括:With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the RBridge further includes:
获取单元,用于获取所述MAC地址应答报文中携带的所述另一路由桥的信息;和An acquiring unit, configured to acquire information about the another RB bridge carried in the MAC address response packet; and
添加单元,用于在所述MAC地址表中添加包括所述目的MAC地址与所述另一路由桥的信息的对应关系的表项;An adding unit, configured to add, in the MAC address table, an entry that includes a correspondence between the destination MAC address and the information of the another RBridge;
所述第二发送模块具体用于根据所述表项,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The second sending module is configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
结合第三方面、第三方面的第一或第二种任一种可能的实现方式,在第三方面的第三种可能的实现方式中,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,In conjunction with the third aspect, the first or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the inner layer destination media access of the MAC address request message Controlling the DMAC address as a custom multicast MAC address, the inner layer source media access control SMAC address being the MAC address of the RBridge, and the destination MAC address in the load of the MAC address request message being the first datagram The destination MAC address of the text, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
结合第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由桥的nickname为所述路由桥的nickname,入口路由桥的nickname为所述另一路由桥的nickname。With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the inner layer destination medium access control DMAC address of the MAC address response message is the MAC of the RBridge The address, the inner layer source media access control SMAC address is the destination MAC address of the first data packet, the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, and the nickname of the egress routing bridge is the The nickname of the routing bridge, the nickname of the ingress routing bridge is the nickname of the other routing bridge.
本发明第四方面提供了一种路由桥,包括: A fourth aspect of the present invention provides a routing bridge, including:
接收模块,用于接收另一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址;a receiving module, configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address;
发送模块,用于若所述路由桥的MAC地址为所述目标MAC地址时,通过TRILL单播方式向所述另一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带所述路由桥的信息,以使所述另一路由桥根据所述路由桥的信息通过TRILL单播方式向所述路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。a sending module, configured to send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC address of the RB is a destination MAC address, where the MAC address response message carries the message Decoding the information of the bridge, so that the another RB bridge sends the subsequently received second data packet including the target MAC address to the RB through TRILL unicast mode according to the information of the RBridge.
在第四方面的第一种可能的实现方式中,MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述另一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,所述第一数据报文与所述第二数据报文包括相同的目的MAC地址。In a first possible implementation manner of the fourth aspect, the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is the other one. a MAC address of the RB, the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the first datagram The text and the second data message include the same destination MAC address.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述另一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述另一路由桥的nickname,入口路由桥的nickname为所述路由桥的nickname。In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation manner of the fourth aspect, the inner layer destination medium access control DMAC address of the MAC address response message is the another RBridge MAC address, the inner source media access control SMAC address is the target MAC address, the virtual local area network VLAN is the VLAN to which the target MAC address belongs, and the nickname of the egress routing bridge in the TRILL unicast header is the another RBridge Nickname, the nickname of the ingress RBridge is the nickname of the RBridge.
本发明中:第一路由桥接收包括目的媒体访问控制MAC地址的第一数据报文,若所述第一路由桥在MAC地址表中未查找到包括所述目的MAC地址的表项,则通过TRILL组播方式向所述TRILL网络内的其他路由桥发送负载中携带所述第一数据报文的目的MAC地址的MAC地址请求报文,并接收第二路由桥发送的携带第二路由桥的信息的MAC地址应答报文,根据所述第二路由桥的信息通过TRILL单播方式向第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。通过上述方法,第一路由桥在发现MAC地址表中未存储包括目的MAC地址的表项,不能单播转发第一数据报文的时候,会主动发送将所述第一数据报文的目的MAC地址作为目标MAC地址的MAC地址请求报文,迅速获取所述第一数据报文的目的MAC地址对应的第二路由桥的信息,从而所述第一路由桥可根据所述第二路由桥的信息采用TRILL单播方式发送后续接收到的包括所述目的MAC地址的第二数据报文,有效减少了TRILL网络内的TRILL组播流量,节约了TRILL网络的组播带宽,增加了带宽的利用率。In the present invention, the first routing bridge receives the first data packet including the destination media access control MAC address, and if the first routing bridge does not find the entry including the destination MAC address in the MAC address table, The TRILL multicast mode sends a MAC address request packet carrying the destination MAC address of the first data packet to the other RBs in the TRILL network, and receives the second RB bridge that is sent by the second RBridge. The MAC address response message of the information is sent to the second RB through the TRILL unicast mode to send the subsequently received second data packet including the destination MAC address according to the information of the second RBridge. The first routing bridge does not store the entry including the destination MAC address in the discovery MAC address table, and does not unicast the first data packet, and actively sends the destination MAC address of the first data packet. The address is used as the MAC address request packet of the target MAC address, and the information of the second RBridge corresponding to the destination MAC address of the first data packet is quickly obtained, so that the first RB bridge can be according to the second RBridge The information is sent in the TRILL unicast mode to the second received data packet including the destination MAC address, which effectively reduces the TRILL multicast traffic in the TRILL network, saves the multicast bandwidth of the TRILL network, and increases the bandwidth utilization. rate.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1为本发明实施例提供的一种TRILL网络中转发报文的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for forwarding a message in a TRILL network according to an embodiment of the present disclosure;
图2为本发明实施例提供的另一种TRILL网络中转发报文的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for forwarding a packet in another TRILL network according to an embodiment of the present disclosure;
图3为本发明实施例提供的一种路由桥的结构示意图一;3 is a schematic structural diagram 1 of a routing bridge according to an embodiment of the present invention;
图4为本发明实施例提供的一种路由桥的结构示意图二;4 is a schematic structural diagram 2 of a routing bridge according to an embodiment of the present invention;
图5为本发明实施例提供的一种路由桥的结构示意图三;FIG. 5 is a schematic structural diagram 3 of a routing bridge according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种路由桥的的结构示意图;FIG. 6 is a schematic structural diagram of another RBridge according to an embodiment of the present disclosure;
图7为本发明实施例提供的再一种路由桥的结构示意图;FIG. 7 is a schematic structural diagram of still another RBridge according to an embodiment of the present invention;
图8为本发明实施例提供的又一种路由桥的结构示意图。FIG. 8 is a schematic structural diagram of still another routing bridge according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1为本发明实施例提供的一种TRILL网络中转发报文的方法的流程示意图,如图1所示,本实施例的方法可以包括:FIG. 1 is a schematic flowchart of a method for forwarding a packet in a TRILL network according to an embodiment of the present disclosure. As shown in FIG. 1 , the method in this embodiment may include:
步骤101:第一路由桥接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址。Step 101: The first RBridge receives the first data packet, where the first data packet includes a destination media access control MAC address.
步骤102:若所述第一路由桥在MAC地址表中未查找到包括所述目的MAC地址的表项,则所述第一路由桥通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC地址。Step 102: If the first RB bridge does not find the entry including the destination MAC address in the MAC address table, the first RBridge passes the TRILL multicast mode to other RBridges in the TRILL network. Sending a MAC address request message, where the payload of the MAC address request message carries the destination MAC address of the first data packet.
具体的,如果第一路由桥自身所维护的MAC地址表中,没有存储包括所接收的第一数据报文中包含的目的MAC地址的表项,则第一路由桥会执行以下操作:Specifically, if the MAC address table maintained by the first RBridge itself does not store the entry including the destination MAC address included in the received first data packet, the first RBridge performs the following operations:
A、通过组播方式向TRILL网络内的其他路由桥发送所述第一数据报文;以及 A. The first data packet is sent to other routing bridges in the TRILL network by using a multicast mode;
B、通过TRILL组播方式向TRILL网络内的其他路由桥发送MAC地址请求报文。B. Sends a MAC address request packet to other RBs in the TRILL network through the TRILL multicast mode.
其中,所述通过组播方式向TRILL网络内的其他路由桥发送所述第一数据报文能够避免延时发送所述第一数据报文所带来的业务中断问题。而所述通过TRILL组播方式向TRILL网络内的其他路由桥发送MAC地址请求报文,能够获取到与所述目的MAC地址对应的RB,使所述第一路由桥学习到包括所述MAC地址的表项,并TRILL单播转发后续接收到的包括所述MAC地址的第二数据报文。The sending the first data packet to the other RBs in the TRILL network by using the multicast mode can avoid the service interruption problem caused by the delay sending the first data packet. And sending, by using the TRILL multicast mode, a MAC address request packet to the other RBs in the TRILL network, and acquiring the RB corresponding to the destination MAC address, so that the first RB learns to include the MAC address. The entry, and the TRILL unicast forwards the subsequently received second data packet including the MAC address.
可选的,所述MAC地址请求报文的负载中携带所述第一路由桥接收的第一数据报文中所包含的目的MAC地址。所述MAC地址表的每个表项至少包括MAC地址与其来源的标识的对应关系。所述来源可以是端口或者其他路由桥,所述表项还可以包括其他信息。如表1所示,为MAC地址表的示意图。Optionally, the load of the MAC address request packet carries the destination MAC address included in the first data packet received by the first RBridge. Each entry of the MAC address table includes at least a correspondence between a MAC address and an identifier of the source. The source may be a port or other RBridge, and the entry may also include other information. As shown in Table 1, it is a schematic diagram of a MAC address table.
表1 MAC地址表Table 1 MAC address table
MAC地址MAC address 来源source
MAC1MAC1 Port:1Port: 1
MAC2MAC2 RB:2RB: 2
MAC3MAC3 RB:3RB: 3
……...... ……......
可选的,当所述第一路由桥接收到包括目的媒体访问控制MAC地址的第一数据报文后,若所述第一路由桥在MAC地址表中查找到包括所述目的MAC地址的表项,则所述第一路由桥直接根据MAC地址表中的信息转发所述第一数据报文。Optionally, after the first RB receives the first data packet including the destination media access control MAC address, if the first RB is found in the MAC address table, the table includes the destination MAC address. And the first routing bridge directly forwards the first data packet according to the information in the MAC address table.
可选的,在第一路由桥接收到包括目的MAC地址的第一数据报文后,所述通过TRILL组播方式向TRILL网络内的其他路由桥发送MAC地址请求报文之前,所述第一路由桥判断所接收的报文是否为MAC地址查找失败的单播报文,具体过程为:首先第一路由桥判断所接收到的第一数据报文的目的MAC地址是否为单播MAC地址,然后所述第一路由桥还需判断所述第一数据报文的转发方式是否为TRILL组播转发,如果所接收到的第一数据报文的目的MAC地址是单播MAC地址,且所述第一数据报文的转发方式为TRILL组播方式则说明接收到的第一数据报文为MAC地址查找失败的单播报文。只有所述第一数据报文为MAC地址查找失败的单播报文,所述第一路由桥才通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文。Optionally, after the first RB receives the first data packet including the destination MAC address, and sends the MAC address request packet to the other RBs in the TRILL network by using the TRILL multicast mode, the first The routing bridge determines whether the received packet is a unicast packet with a MAC address search failure. The specific process is: first, the first RB bridge determines whether the destination MAC address of the received first data packet is a unicast MAC address, and then The first RB also needs to determine whether the forwarding manner of the first data packet is TRILL multicast forwarding, if the destination MAC address of the received first data packet is a unicast MAC address, and the If the forwarding mode of a data packet is TRILL multicast mode, the first data packet received is a unicast packet with a MAC address search failure. Only the first data packet is a unicast packet with a MAC address search failure, and the first RBridge sends a MAC address request packet to other RBridges in the TRILL network through the TRILL multicast mode.
在一个具体的实现方式中,所述第一路由桥在设定的时间内收到设定个数的MAC地址查找失败的单播报文后,才通过TRILL组播方式向所述TRILL网络内的其他路由 桥发送MAC地址请求报文。In a specific implementation manner, after the first RB receives the unicast packet with the configured MAC address search failure within the set time, the first RB bridge passes the TRILL multicast mode to the TRILL network. Other routes The bridge sends a MAC address request message.
当第一路由桥确定自身所维护的MAC地址表中,没有存储包括所接收的第一数据报文中包含的目的MAC地址的表项,并且所接收的第一数据报文为MAC地址查找失败的单播报文后,第一路由桥就会通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,其他路由桥所述MAC地址请求报文用于使MAC地址为所述目的MAC地址的路由桥向所述第一路由桥发送MAC地址应答报文,使得第一路由桥可以将发送所述MAC地址应答报文的路由桥的信息以及所述目的MAC地址的对应关系添加至自身维护的MAC地址表中,在以后接收到相同的目的MAC地址的第二数据报文后,就可直接查找MAC地址表,然后进行TRILL单播转发。When the first routing bridge determines that the MAC address table maintained by itself does not store the entry including the destination MAC address included in the received first data packet, and the received first data packet fails to be searched for the MAC address. After the unicast packet, the first RBridge sends a MAC address request packet to the other RBs in the TRILL network through the TRILL multicast mode. The MAC address request packet of the other RBridge is used to make the MAC address The routing bridge of the destination MAC address sends a MAC address response message to the first routing bridge, so that the first routing bridge can send the information of the routing bridge of the MAC address response message and the destination MAC address. The relationship is added to the MAC address table maintained by the user. After receiving the second data packet of the same destination MAC address, the MAC address table can be directly searched and TRILL unicast forwarding is performed.
其中,所述MAC地址请求报文为TRILL封装的报文,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为第一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,The MAC address request packet is a TRILL-encapsulated packet, and the inner-layer destination media access control DMAC address of the MAC address request packet is a customized multicast MAC address, and the inner-layer source media access control SMAC address is The MAC address of the first RBridge, the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。并且,所述自定义的组播MAC地址还用于使接收到所述MAC地址请求报文且MAC地址为所述目标MAC地址的第二路由桥向所述第一路由桥返回MAC地址应答报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails. And the customized multicast MAC address is further used to enable the second RB that receives the MAC address request packet and the MAC address is the target MAC address to return a MAC address response report to the first RBridge. Text.
进一步的,MAC地址表用于存储MAC地址与路由桥的信息的对应关系。具体来说,路由桥的信息可以是路由桥的别名。Further, the MAC address table is used to store a correspondence between the MAC address and the information of the RBridge. Specifically, the information of the RBridge may be an alias of the RBridge.
步骤103:所述第一路由桥接收第二路由桥发送的MAC地址应答报文,所述MAC地址应答报文中携带所述第二路由桥的信息。Step 103: The first routing bridge receives a MAC address response message sent by the second routing bridge, where the MAC address response message carries the information of the second routing bridge.
可选的,当TRILL网络内的其他路由桥接收到第一路由桥组播转发的MAC地址请求报文后,确定所述MAC地址请求报文中的目标MAC地址是否为自身的MAC地址,若TRILL网络内的第二路由桥确定自身的MAC地址为所述MAC地址请求报文中的目标MAC地址,则第二路由桥会生成MAC地址应答报文,并将生成的MAC地址应答报文发送至第一路由桥,以使第一路由桥可以根据MAC地址应答报文中携带的信息向第二路由桥转发目的MAC地址为所述第二路由桥的MAC地址的第二数据报文。Optionally, after the other routing bridges in the TRILL network receive the MAC address request packet of the first routing bridge multicast forwarding, determine whether the destination MAC address in the MAC address request packet is its own MAC address, if The second RB in the TRILL network determines that its MAC address is the destination MAC address in the MAC address request packet, and the second RBridge generates a MAC address response packet and sends the generated MAC address response packet. The first RB is configured to enable the first RB to forward the second data packet whose destination MAC address is the MAC address of the second RB to the second RB according to the information carried in the MAC address response packet.
其中,第二路由桥生成的MAC地址应答报文为TRILL封装的报文,其内层目的媒体访问控制DMAC地址为第一路由桥的MAC地址,内层源媒体访问控制SMAC地址 为所述第一数据报文的目的MAC地址(即所述MAC地址请求报文中的目标MAC地址,也即所述第二路由桥的MAC地址),虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由桥的nickname为第一路由桥的nickname,入口路由桥的nickname为第二路由桥的nickname。The MAC address response message generated by the second routing bridge is a TRILL encapsulated packet, and the inner layer destination media access control DMAC address is the MAC address of the first RBridge, and the inner layer source media access control SMAC address. a destination MAC address of the first data packet, that is, a destination MAC address in the MAC address request packet, that is, a MAC address of the second RBridge, and the virtual local area network VLAN is the first datagram. The destination MAC address belongs to the VLAN, the nickname of the egress RBridge is the nickname of the first RBridge, and the nickname of the ingress RBridge is the nickname of the second RBridge.
步骤104:所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。Step 104: The first RB bridge sends the subsequently received second data packet including the destination MAC address to the second RB through the TRILL unicast mode according to the information of the second RBridge.
可选的,所述第一路由桥接收到所述第二路由桥发送的MAC地址应答报文后,获取所述MAC地址应答报文中携带的第二路由桥的信息,然后所述第一路由桥在所述MAC地址表中添加包括所述目的MAC地址与所述第二路由桥的信息的对应关系添加至MAC地址表中,并根据所述MAC地址表(具体是根据所述添加的表项),采用TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。图2为本发明实施例提供的另一种TRILL网络通信方法的流程图,如图2所示,本实施例的方法可以包括:Optionally, after receiving the MAC address response message sent by the second routing bridge, the first RB obtains the information of the second RB bridge carried in the MAC address response message, and then the first The routing bridge adds a correspondence between the MAC address table and the information including the destination MAC address and the second RBridge to the MAC address table, and according to the MAC address table (specifically, according to the added In the TRILL unicast mode, the second received data packet including the destination MAC address is sent to the second routing bridge. FIG. 2 is a flowchart of another TRILL network communication method according to an embodiment of the present invention. As shown in FIG. 2, the method in this embodiment may include:
步骤201:第二路由桥接收第一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址,所述MAC地址请求报文的目的媒体访问控制DMAC地址为自定义的组播MAC地址。Step 201: The second routing bridge receives the media access control MAC address request packet sent by the first RB through the TRILL multicast mode, where the load of the MAC address request packet includes a target MAC address, and the MAC address request packet The purpose of the media access control DMAC address is a custom multicast MAC address.
第二路由桥在通信的过程中会接收到不同类型的TRILL封装的报文,当第二路由桥接收到第一路由桥发送的报文后,需要首先判断接收的报文的类型,也即,需要判断接收到的报文是否为MAC地址请求报文。The second routing bridge receives the packets of different types of TRILL encapsulation in the process of communication. After receiving the packet sent by the first RBridge, the second RB needs to first determine the type of the received packet, that is, You need to determine whether the received packet is a MAC address request packet.
具体判断所接收的报文是否为MAC地址请求报文的方法为:The method for determining whether the received packet is a MAC address request packet is:
判断所述报文是否为TRILL组播报文,Determining whether the packet is a TRILL multicast packet,
若所述报文为TRILL组播报文,判断所述报文的内层DMAC是否为自定义的组播MAC地址,If the packet is a TRILL multicast packet, determine whether the inner layer DMAC of the packet is a customized multicast MAC address.
若所述报文的内层DMAC为自定义的组播MAC地址,则确定所接收的报文为MAC地址请求报文。If the inner layer DMAC of the packet is a customized multicast MAC address, it is determined that the received packet is a MAC address request packet.
其中,TRILL组播报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为第一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一路由桥接收到的第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN。The inner layer destination media access control DMAC address of the TRILL multicast packet is a customized multicast MAC address, and the inner layer source media access control SMAC address is the MAC address of the first RBridge, and the MAC address request packet is The destination MAC address in the load is the destination MAC address of the first data packet received by the first RB, and the virtual LAN VLAN is the VLAN to which the target MAC address belongs.
步骤202:若第二路由桥的MAC地址为所述目标MAC地址,则所述第二路由桥 通过TRILL单播方式向所述第一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带第二路由桥的信息,以使所述第一路由桥根据所述第二路由桥信息的通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。Step 202: If the MAC address of the second RBridge is the target MAC address, the second RBridge Sending a MAC address response message to the first RB through the TRILL unicast mode, where the MAC address response message carries information of the second RBridge, so that the first RB bridge is according to the second RBridge The second received data message including the target MAC address is sent to the second RB through the TRILL unicast mode.
其中,所述第二路由桥中的MAC地址为所述目标MAC地址,具体是指:所述第二路由桥的MAC地址表中包括所述目标MAC地址,并且所述目标MAC地址是从所述第二路由桥自身的端口上学习到的。The MAC address in the second RB bridge is the target MAC address, specifically: the MAC address table of the second RBridge includes the target MAC address, and the target MAC address is from the Learned on the port of the second routing bridge itself.
可选的,第二路由桥的信息包括所述第二路由桥的昵称nickname。Optionally, the information of the second routing bridge includes a nickname nickname of the second routing bridge.
可选的,所述MAC地址应答报文为TRILL封装的报文,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述第一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址(即所述第二路由桥的MAC地址,也即所述第一路由桥接收的第一数据报文的MAC地址),虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述第一路由桥的nickname,入口路由桥的nickname为所述第二路由桥的nickname。Optionally, the MAC address response message is a TRILL encapsulated message, and the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the first RBridge, and the inner layer source media access Controlling the SMAC address as the target MAC address (ie, the MAC address of the second RBridge, that is, the MAC address of the first data packet received by the first RBridge), and the virtual local area network VLAN is the target MAC address. The nickname of the egress RB in the TRILL unicast header is the nickname of the first RBridge, and the nickname of the ingress RBridge is the nickname of the second RBridge.
本发明上述实施例中:第一路由桥接收包括目的媒体访问控制MAC地址的第一数据报文,若所述第一路由桥在MAC地址表中未查找到包括所述目的MAC地址的表项,则通过TRILL组播方式向所述TRILL网络内的其他路由桥发送负载中携带所述第一数据报文的目的MAC地址的MAC地址请求报文,并接收第二路由桥发送的携带第二路由桥的信息的MAC地址应答报文,根据所述第二路由桥的信息通过TRILL单播方式向第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。通过上述方法,第一路由桥在发现MAC地址表中未存储包括目的MAC地址的表项,不能单播转发第一数据报文的时候,会主动发送将所述第一数据报文的目的MAC地址作为目标MAC地址的MAC地址请求报文,迅速获取所述第一数据报文的目的MAC地址对应的第二路由桥的信息,从而所述第一路由桥可根据所述第二路由桥的信息采用TRILL单播方式发送后续接收到的包括所述目的MAC地址的第二数据报文,有效减少了TRILL网络内的TRILL组播流量,节约了TRILL网络的组播带宽,增加了带宽的利用率。In the above embodiment of the present invention, the first routing bridge receives the first data packet including the destination media access control MAC address, and if the first RB is not found in the MAC address table, the entry including the destination MAC address is not found. Transmitting, by the TRILL multicast mode, a MAC address request message carrying the destination MAC address of the first data packet to the other RBs in the TRILL network, and receiving the second RBridge carrying the second RB The MAC address response message of the information of the RB bridge is sent to the second RB through the TRILL unicast mode to send the subsequently received second data packet including the destination MAC address according to the information of the second RBridge. The first routing bridge does not store the entry including the destination MAC address in the discovery MAC address table, and does not unicast the first data packet, and actively sends the destination MAC address of the first data packet. The address is used as the MAC address request packet of the target MAC address, and the information of the second RBridge corresponding to the destination MAC address of the first data packet is quickly obtained, so that the first RB bridge can be according to the second RBridge The information is sent in the TRILL unicast mode to the second received data packet including the destination MAC address, which effectively reduces the TRILL multicast traffic in the TRILL network, saves the multicast bandwidth of the TRILL network, and increases the bandwidth utilization. rate.
图3为本发明实施例提供的路由桥的结构示意图一,该路由桥300包括:FIG. 3 is a schematic structural diagram 1 of a RBridge according to an embodiment of the present invention. The RBridge 300 includes:
第一接收模块301,用于接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址;The first receiving module 301 is configured to receive a first data packet, where the first data packet includes a destination media access control MAC address.
第一发送模块302,用于查找MAC地址表,如果在MAC地址表中未查找到包括 所述目的MAC地址的表项,则通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC地址;The first sending module 302 is configured to look up a MAC address table, if not found in the MAC address table The destination MAC address entry sends a MAC address request packet to the other RBs in the TRILL network by using the TRILL multicast mode, where the load of the MAC address request packet carries the first data packet. Destination MAC address;
第二接收模块303,用于接收另一路由桥发送的MAC地址应答报文,所述MAC地址应答报文中携带所述另一路由桥的信息;The second receiving module 303 is configured to receive a MAC address response message sent by another routing bridge, where the MAC address response message carries the information of the another routing bridge;
第二发送模块304,用于根据所述第二接收模块303接收到的所述另一路由桥的信息,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The second sending module 304 is configured to send the subsequently received destination MAC address to the another RB through the TRILL unicast mode according to the information about the another RBridge received by the second receiving module 303. The second data message of the address.
进一步的,如图4所示,上述路由桥300还包括:判断模块305,用于在所述第一发送模块302通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文之前,判断所述第一数据报文的目的MAC地址是否为单播MAC地址,并且,当所述第一数据报文的目的MAC地址为单播地址时,判断所述第一数据报文的转发方式是否为TRILL组播方式,当所述第一数据报文的转发方式为TRILL组播方式时,确定所述第一数据报文为所述MAC地址查找失败的单播报文。Further, as shown in FIG. 4, the RBridge 300 further includes: a determining module 305, configured to send, by the first sending module 302, a MAC address request report to other RBridges in the TRILL network by using a TRILL multicast mode. Before determining whether the destination MAC address of the first data packet is a unicast MAC address, and determining the first data packet when the destination MAC address of the first data packet is a unicast address If the forwarding mode of the first data packet is the TRILL multicast mode, the first data packet is determined to be a unicast packet with the MAC address search failure.
进一步的,如图5所示,上述路由桥300还包括:Further, as shown in FIG. 5, the RBridge 300 further includes:
获取模块306,用于获取所述MAC地址应答报文中携带的所述另一路由桥的信息;和The obtaining module 306 is configured to obtain information about the another RB bridge carried in the MAC address response packet; and
添加模块307,用于在所述MAC地址表中添加包括所述目的MAC地址与所述另一路由桥的信息的对应关系的表项;An adding module 307, configured to add, in the MAC address table, an entry that includes a correspondence between the destination MAC address and the information of the another RBridge;
所述第二发送模块304具体用于根据所述表项,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The second sending module 304 is specifically configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
可选的,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,Optionally, the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is a MAC address of the RBridge, and the MAC address is The destination MAC address in the payload of the request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
可选的,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由 桥的nickname为所述路由桥的nickname,入口路由桥的nickname为所述另一路由桥的nickname。Optionally, the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the RB, and the inner source media access control SMAC address is a destination MAC address of the first data packet. The virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, and the egress route The nickname of the bridge is the nickname of the routing bridge, and the nickname of the ingress routing bridge is the nickname of the other routing bridge.
本实施例的路由桥,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1. The implementation principle and technical effects are similar, and details are not described herein again.
图6为本发明实施例提供的另一路由桥的结构示意图,该路由桥400包括:FIG. 6 is a schematic structural diagram of another RBridge according to an embodiment of the present invention. The RBridge 400 includes:
接收模块401,用于接收另一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址;The receiving module 401 is configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address;
发送模块402,用于若所述路由桥的MAC地址为所述目标MAC地址时,通过TRILL单播方式向所述另一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带所述路由桥的信息,以使所述另一路由桥根据所述路由桥的信息通过TRILL单播方式向所述路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。The sending module 402 is configured to: when the MAC address of the RB bridge is the target MAC address, send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC address response message is carried. And the routing bridge information, so that the another RB bridge sends the subsequently received second data packet including the target MAC address to the RB through TRILL unicast mode according to the information of the RBridge.
可选的,MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述另一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,所述第一数据报文与所述第二数据报文包括相同的目的MAC地址。Optionally, the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is the MAC address of the another RBridge, and the MAC address is The destination MAC address in the load of the request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs, and the first data packet and the second data packet include The same destination MAC address.
可选的,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述另一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述另一路由桥的nickname,入口路由桥的nickname为所述路由桥的nickname。Optionally, the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the another RBridge, and the inner layer source media access control SMAC address is the target MAC address, and the virtual local area network VLAN is The nickname of the egress RB in the TRILL unicast header is the nickname of the other RBridge, and the nickname of the ingress RB is the nickname of the RBridge.
本实施例的路由桥,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
图7为本发明实施例提供的再一路由桥的结构示意图,该路由桥500包括:FIG. 7 is a schematic structural diagram of still another RBridge according to an embodiment of the present invention. The RBridge 500 includes:
接收器501,用于接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址;The receiver 501 is configured to receive a first data packet, where the first data packet includes a destination media access control MAC address.
处理器502,用于查找MAC地址表;The processor 502 is configured to look up a MAC address table.
发送器503,用于如果所述处理器502在MAC地址表中未查找到包括所述目的MAC地址的表项,则通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC 地址。The sender 503 is configured to send a MAC address request to other routing bridges in the TRILL network by using the TRILL multicast mode if the processor 502 does not find an entry including the destination MAC address in the MAC address table. a packet, where the payload of the MAC address request packet carries the destination MAC address of the first data packet address.
所述接收器501,还用于接收另一路由桥发送的MAC地址应答报文,所述MAC地址应答报文中携带所述另一路由桥的信息;The receiver 501 is further configured to receive a MAC address response message sent by another RB, where the MAC address response message carries the information of the another RBridge;
所述发送器503,还用于根据所述接收到的所述另一路由桥的信息,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The transmitter 503 is further configured to send, according to the received information of the another RBridge, a subsequently received second PDCCH including the destination MAC address to the another RB through TRILL unicast mode. Data message.
可选的,所述处理器502,还用于在所述发送器503通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文之前,判断所述第一数据报文的目的MAC地址是否为单播MAC地址,并且,当所述第一数据报文的目的MAC地址为单播地址时,还用于判断所述第一数据报文的转发方式是否为TRILL组播方式,当所述第一数据报文的转发方式为TRILL组播方式时,确定所述第一数据报文为所述MAC地址查找失败的单播报文。Optionally, the processor 502 is further configured to determine the first data packet before the sender 503 sends a MAC address request message to other routing bridges in the TRILL network by using the TRILL multicast mode. Whether the destination MAC address is a unicast MAC address, and when the destination MAC address of the first data packet is a unicast address, it is further used to determine whether the forwarding manner of the first data packet is TRILL multicast. In a manner, when the first data packet is forwarded in the TRILL multicast mode, the first data packet is determined to be a unicast packet whose MAC address search fails.
可选的,所述处理器502,还用于获取所述MAC地址应答报文中携带的所述另一路由桥的信息,并在所述MAC地址表中添加包括所述目的MAC地址与所述另一路由桥的信息的对应关系的表项。Optionally, the processor 502 is further configured to obtain information about the another RB bridge carried in the MAC address response packet, and add the destination MAC address and the MAC address table to the MAC address table. An entry of a correspondence relationship of information of another RBridge.
所述发送器503具体用于根据所述表项,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The transmitter 503 is specifically configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
可选的,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,Optionally, the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is a MAC address of the RBridge, and the MAC address is The destination MAC address in the payload of the request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
可选的,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由桥的nickname为所述路由桥的nickname,入口路由桥的nickname为所述另一路由桥的nickname。Optionally, the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the RB, and the inner source media access control SMAC address is a destination MAC address of the first data packet. The virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, the nickname of the egress RBridge is the nickname of the RBridge, and the nickname of the ingress RBridge is the nickname of the other RBridge.
本实施例的路由桥,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1. The implementation principle and technical effects are similar, and details are not described herein again.
图8为本发明实施例提供的又一路由桥的结构示意图,该路由桥600包括: FIG. 8 is a schematic structural diagram of still another routing bridge according to an embodiment of the present invention. The routing bridge 600 includes:
接收器601,用于接收另一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址;The receiver 601 is configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address.
处理器602,用于确定所述路由桥中的MAC地址是否为所述目标MAC地址;The processor 602 is configured to determine whether a MAC address in the RB bridge is the target MAC address.
发送器603,用于当所述处理器602确定所述路由桥的MAC地址为所述目标MAC地址时,通过TRILL单播方式向所述另一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带所述路由桥的信息,以使所述另一路由桥根据所述路由桥的信息通过TRILL单播方式向所述路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。The transmitter 603 is configured to: when the processor 602 determines that the MAC address of the RBridge is the target MAC address, send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC The address response message carries the information of the RB bridge, so that the another RB bridge sends the subsequently received destination MAC address including the target MAC address to the RB through the TRILL unicast mode according to the information of the RBridge. Second data message.
可选的,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述另一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,所述第一数据报文与所述第二数据报文包括相同的目的MAC地址。Optionally, the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is a MAC address of the another RBridge. The destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the first data packet and the second datagram. The text includes the same destination MAC address.
可选的,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述另一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述另一路由桥的nickname,入口路由桥的nickname为所述路由桥的nickname。Optionally, the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the another RBridge, and the inner layer source media access control SMAC address is the target MAC address, and the virtual local area network VLAN is The nickname of the egress RB in the TRILL unicast header is the nickname of the other RBridge, and the nickname of the ingress RB is the nickname of the RBridge.
本实施例的路由桥,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The RB of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (16)

  1. 一种多链接透明互联TRILL网络中转发报文的方法,其特征在于,包括:A method for forwarding a message in a multi-link transparent interconnection TRILL network, comprising:
    第一路由桥接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址;Receiving, by the first RB, a first data packet, where the first data packet includes a destination media access control MAC address;
    若所述第一路由桥在MAC地址表中未查找到包括所述目的MAC地址的表项,则所述第一路由桥通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC地址;If the first RB bridge does not find an entry including the destination MAC address in the MAC address table, the first RBridge sends a MAC address to other RBridges in the TRILL network by using TRILL multicast mode. a request packet, where the payload of the MAC address request packet carries the destination MAC address of the first data packet;
    所述第一路由桥接收第二路由桥发送的MAC地址应答报文,所述MAC地址应答报文中携带所述第二路由桥的信息;Receiving, by the first routing bridge, a MAC address response message sent by the second routing bridge, where the MAC address response message carries the information of the second routing bridge;
    所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The first routing bridge sends the subsequently received second data packet including the destination MAC address to the second routing bridge in the TRILL unicast mode according to the information of the second routing bridge.
  2. 根据权利要求1所述的方法,其特征在于,所述第一路由桥通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文之前,所述方法还包括:The method according to claim 1, wherein the method further includes: before the first RB sends a MAC address request message to the other RBs in the TRILL network by using the TRILL multicast mode, the method further includes:
    判断所述第一数据报文的目的MAC地址是否为单播MAC地址,Determining whether the destination MAC address of the first data packet is a unicast MAC address,
    当所述第一数据报文的目的MAC地址为单播地址时,所述第一路由桥判断所述第一数据报文的转发方式是否为TRILL组播方式,When the destination MAC address of the first data packet is a unicast address, the first routing bridge determines whether the forwarding manner of the first data packet is a TRILL multicast mode.
    当所述第一数据报文的转发方式为TRILL组播方式时,确定所述第一数据报文为所述MAC地址查找失败的单播报文。When the first data packet is forwarded in the TRILL multicast mode, the first data packet is determined to be a unicast packet whose MAC address search fails.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文,包括:The method according to claim 1 or 2, wherein the first routing bridge sends the subsequently received information to the second routing bridge in a TRILL unicast manner according to the information of the second routing bridge, including the The second data packet of the destination MAC address, including:
    所述第一路由桥获取所述MAC地址应答报文中携带的所述第二路由桥的信息;Obtaining, by the first routing bridge, information about the second routing bridge carried in the MAC address response message;
    所述第一路由桥在所述MAC地址表中添加包括所述目的MAC地址与所述第二路由桥的信息的对应关系的表项;Adding, by the first routing bridge, an entry including a correspondence between the destination MAC address and the information of the second RBridge in the MAC address table;
    所述第一路由桥根据所述表项,通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。And the first routing bridge sends, according to the entry, the second received data packet including the destination MAC address to the second routing bridge in a TRILL unicast mode.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述第一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标 MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,The method according to any one of claims 1 to 3, wherein the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC The address is the MAC address of the first RBridge, and the target of the load of the MAC address request packet The MAC address is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs.
    其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
  5. 根据权利要求4所述的方法,其特征在于,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述第一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由桥的nickname为所述第一路由桥的nickname,入口路由桥的nickname为所述第二路由桥的nickname。The method according to claim 4, wherein the inner layer destination media access control DMAC address of the MAC address response message is the MAC address of the first RBridge, and the inner layer source media access control SMAC address is The destination MAC address of the first data packet, the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, the nickname of the egress RBridge is the nickname of the first RBridge, and the nickname of the ingress RBridge Is the nickname of the second routing bridge.
  6. 一种多链接透明互联TRILL网络中转发报文的方法,其特征在于,包括:A method for forwarding a message in a multi-link transparent interconnection TRILL network, comprising:
    第二路由桥接收第一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址;The second routing bridge receives the media access control MAC address request packet sent by the first routing bridge in the TRILL multicast mode, where the load of the MAC address request packet includes the target MAC address;
    若所述第二路由桥的MAC地址为所述目标MAC地址,则所述第二路由桥通过TRILL单播方式向所述第一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带所述第二路由桥的信息,以使所述第一路由桥根据所述第二路由桥的信息通过TRILL单播方式向所述第二路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。If the MAC address of the second RBridge is the target MAC address, the second RB bridge sends a MAC address response message to the first RB through the TRILL unicast mode, where the MAC address response message is sent. Carrying the information of the second RBridge, so that the first RB bridge sends the subsequently received PDCCH including the target MAC to the second RB through TRILL unicast mode according to the information of the second RBridge. The second data message of the address.
  7. 根据权利要求6所述的方法,其特征在于,MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述第一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,所述第一数据报文与所述第二数据报文包括相同的目的MAC地址。The method according to claim 6, wherein the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is the first route. The MAC address of the bridge, the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the first data packet The same destination MAC address is included with the second data message.
  8. 根据权利要求7所述的方法,其特征在于,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述第一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述第一路由桥的nickname,入口路由桥的nickname为所述第二路由桥的nickname。The method according to claim 7, wherein the inner layer destination media access control DMAC address of the MAC address response message is the MAC address of the first RBridge, and the inner layer source media access control SMAC address is The destination MAC address, the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the nickname of the egress RB in the TRILL unicast header is the nickname of the first RBridge, and the nickname of the ingress RB is the second route. The nickname of the bridge.
  9. 一种路由桥,其特征在于,包括:A routing bridge, comprising:
    第一接收模块,用于接收第一数据报文,所述第一数据报文包括目的媒体访问控制MAC地址; a first receiving module, configured to receive a first data packet, where the first data packet includes a destination media access control MAC address;
    第一发送模块,用于查找MAC地址表,如果在MAC地址表中未查找到包括所述目的MAC地址的表项,则通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文,所述MAC地址请求报文的负载中携带所述第一数据报文的目的MAC地址;The first sending module is configured to search the MAC address table, and if the entry including the destination MAC address is not found in the MAC address table, send the MAC address to other routing bridges in the TRILL network by using the TRILL multicast mode. a request packet, where the payload of the MAC address request packet carries the destination MAC address of the first data packet;
    第二接收模块,用于接收另一路由桥发送的MAC地址应答报文,所述MAC地址应答报文中携带所述另一路由桥的信息;a second receiving module, configured to receive a MAC address response message sent by another routing bridge, where the MAC address response message carries information of the another routing bridge;
    第二发送模块,用于根据所述第二接收模块接收到的所述另一路由桥的信息,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。a second sending module, configured to send, according to the information about the another RB bridge received by the second receiving module, the subsequently received destination MAC address by using the TRILL unicast mode to the another RBridge Second data message.
  10. 根据权利要求9所述的路由桥,其特征在于,还包括:判断模块,用于在所述第一发送模块通过TRILL组播方式向所述TRILL网络内的其他路由桥发送MAC地址请求报文之前,判断所述第一数据报文的目的MAC地址是否为单播MAC地址,并且,当所述第一数据报文的目的MAC地址为单播地址时,判断所述第一数据报文的转发方式是否为TRILL组播方式,当所述第一数据报文的转发方式为TRILL组播方式时,确定所述第一数据报文为所述MAC地址查找失败的单播报文。The RBridge according to claim 9, further comprising: a determining module, configured to send, by the first sending module, a MAC address request message to other RBridges in the TRILL network by using a TRILL multicast mode Before determining whether the destination MAC address of the first data packet is a unicast MAC address, and determining the first data packet when the destination MAC address of the first data packet is a unicast address The forwarding mode is the TRILL multicast mode. When the forwarding mode of the first data packet is the TRILL multicast mode, the first data packet is determined to be a unicast packet with the MAC address search failure.
  11. 根据权利要求9或10所述的路由桥,其特征在于,所述路由桥还包括:The RBridge according to claim 9 or 10, wherein the RBridge further comprises:
    获取模块,用于获取所述MAC地址应答报文中携带的所述另一路由桥的信息;和An acquiring module, configured to acquire information about the another RB bridge carried in the MAC address response packet; and
    添加模块,用于在所述MAC地址表中添加包括所述目的MAC地址与所述另一路由桥的信息的对应关系的表项;And an adding module, configured to add, in the MAC address table, an entry that includes a correspondence between the destination MAC address and the information of the another RBridge;
    所述第二发送模块具体用于根据所述表项,通过TRILL单播方式向所述另一路由桥发送后续接收到的包括所述目的MAC地址的第二数据报文。The second sending module is configured to send a subsequently received second data packet including the destination MAC address to the another RB through the TRILL unicast mode according to the entry.
  12. 根据权利要求9至11任一项所述的路由桥,其特征在于,所述MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,The routing bridge according to any one of claims 9 to 11, wherein the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control The SMAC address is the MAC address of the RB, the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs. ,
    其中,所述自定义的组播MAC地址用于指示目的MAC地址为所述自定义的组播MAC地址的报文为MAC地址查找失败的单播报文。The customized multicast MAC address is used to indicate that the packet whose destination MAC address is the customized multicast MAC address is a unicast packet whose MAC address search fails.
  13. 根据权利要求12所述的路由桥,其特征在于,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述路由桥的MAC地址,内层源媒体访问控制SMAC 地址为所述第一数据报文的目的MAC地址,虚拟局域网VLAN为所述第一数据报文的目的MAC地址所属的VLAN,出口路由桥的nickname为所述路由桥的nickname,入口路由桥的nickname为所述另一路由桥的nickname。The RBridge according to claim 12, wherein the inner layer destination media access control DMAC address of the MAC address response message is a MAC address of the RBridge, and the inner layer source media access control SMAC The address is the destination MAC address of the first data packet, the virtual local area network VLAN is the VLAN to which the destination MAC address of the first data packet belongs, the nickname of the egress routing bridge is the nickname of the routing bridge, and the entrance routing bridge is Nickname is the nickname of the other RBridge.
  14. 一种路由桥,其特征在于,包括:A routing bridge, comprising:
    接收模块,用于接收另一路由桥通过TRILL组播方式发送的媒体访问控制MAC地址请求报文,所述MAC地址请求报文的负载中包括目标MAC地址;a receiving module, configured to receive a media access control MAC address request message sent by another RB through the TRILL multicast mode, where the load of the MAC address request message includes a target MAC address;
    发送模块,用于若所述路由桥的MAC地址为所述目标MAC地址时,通过TRILL单播方式向所述另一路由桥发送MAC地址应答报文,所述MAC地址应答报文中携带所述路由桥的信息,以使所述另一路由桥根据所述路由桥的信息通过TRILL单播方式向所述路由桥发送后续接收到的包括所述目标MAC地址的第二数据报文。a sending module, configured to send a MAC address response message to the another RB through the TRILL unicast mode, where the MAC address of the RB is a destination MAC address, where the MAC address response message carries the message Decoding the information of the bridge, so that the another RB bridge sends the subsequently received second data packet including the target MAC address to the RB through TRILL unicast mode according to the information of the RBridge.
  15. 根据权利要求14所述的路由桥,其特征在于,MAC地址请求报文的内层目的媒体访问控制DMAC地址为自定义的组播MAC地址,内层源媒体访问控制SMAC地址为所述另一路由桥的MAC地址,所述MAC地址请求报文的负载中的目标MAC地址为第一数据报文的目的MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,所述第一数据报文与所述第二数据报文包括相同的目的MAC地址。The RBridge according to claim 14, wherein the inner layer destination media access control DMAC address of the MAC address request message is a customized multicast MAC address, and the inner layer source media access control SMAC address is the other one. a MAC address of the RB, the destination MAC address in the payload of the MAC address request packet is the destination MAC address of the first data packet, and the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the first datagram The text and the second data message include the same destination MAC address.
  16. 根据权利要求15所述的路由桥,其特征在于,所述MAC地址应答报文的内层目的媒体访问控制DMAC地址为所述另一路由桥的MAC地址,内层源媒体访问控制SMAC地址为所述目标MAC地址,虚拟局域网VLAN为所述目标MAC地址所属的VLAN,TRILL单播报头中的出口路由桥的nickname为所述另一路由桥的nickname,入口路由桥的nickname为所述路由桥的nickname。 The RBridge according to claim 15, wherein the inner layer destination media access control DMAC address of the MAC address response message is the MAC address of the another RBridge, and the inner layer source media access control SMAC address is The destination MAC address, the virtual local area network VLAN is the VLAN to which the target MAC address belongs, the nickname of the egress RB in the TRILL unicast header is the nickname of the other RB, and the nickname of the ingress RB is the RB Nickname.
PCT/CN2015/081675 2014-09-29 2015-06-17 Method for forwarding message in trill network and route bridge WO2016050096A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410513418.2A CN105530189B (en) 2014-09-29 2014-09-29 Method for forwarding message in TRILL network and routing bridge
CN201410513418.2 2014-09-29

Publications (1)

Publication Number Publication Date
WO2016050096A1 true WO2016050096A1 (en) 2016-04-07

Family

ID=55629407

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081675 WO2016050096A1 (en) 2014-09-29 2015-06-17 Method for forwarding message in trill network and route bridge

Country Status (2)

Country Link
CN (1) CN105530189B (en)
WO (1) WO2016050096A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737279A (en) * 2017-04-25 2018-11-02 成都鼎桥通信技术有限公司 The transmission method and device of broadcasting packet
CN108199960B (en) * 2018-02-11 2021-07-16 迈普通信技术股份有限公司 Multicast data message forwarding method, entrance routing bridge, exit routing bridge and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130812A (en) * 2011-03-18 2011-07-20 中兴通讯股份有限公司 Method, device and system for processing unknown unicast data frame
US20110299532A1 (en) * 2010-06-08 2011-12-08 Brocade Communications Systems, Inc. Remote port mirroring
CN102801622A (en) * 2012-08-14 2012-11-28 神州数码网络(北京)有限公司 Transmitting method and device for data messages

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3239865B2 (en) * 1998-12-11 2001-12-17 日本電気株式会社 Method and system for automatically joining a multicast group
CN102307144B (en) * 2011-08-19 2014-06-11 杭州华三通信技术有限公司 Dynamic host configuration protocol (DHCP) message forwarding method for transparent interconnection of lots of links (TRILL) network and routing bridge
CN102882760B (en) * 2012-09-27 2015-05-06 华为技术有限公司 Method, module, equipment and system for message processing in virtual private local area network service network
CN103269299B (en) * 2013-04-22 2016-03-09 杭州华三通信技术有限公司 Message forwarding method in SPBM network and device
CN103346962B (en) * 2013-06-20 2016-08-17 杭州华三通信技术有限公司 Unknown unicast message forwarding method and routing bridge
CN103532858B (en) * 2013-10-31 2016-09-28 福建星网锐捷网络有限公司 Treating method and apparatus based on the data message in TRILL network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110299532A1 (en) * 2010-06-08 2011-12-08 Brocade Communications Systems, Inc. Remote port mirroring
CN102130812A (en) * 2011-03-18 2011-07-20 中兴通讯股份有限公司 Method, device and system for processing unknown unicast data frame
CN102801622A (en) * 2012-08-14 2012-11-28 神州数码网络(北京)有限公司 Transmitting method and device for data messages

Also Published As

Publication number Publication date
CN105530189A (en) 2016-04-27
CN105530189B (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US11601296B2 (en) Bit indexed explicit replication for layer 2 networking
US10050877B2 (en) Packet forwarding method and apparatus
US8675522B2 (en) Conveying the VLAN/L2 VSN/bridging-domain of the incoming interface (IIF) when transporting multicast traffic over a shortest path bridged (SPB) network
WO2017114196A1 (en) Packet processing method, related apparatus and nvo3 network system
US8446914B2 (en) Method and system for link aggregation across multiple switches
US20170149583A1 (en) Encoding Control Plane Information in Transport Protocol Source Port Field and Applications Thereof in Network Virtualization
US10397023B2 (en) Packet forwarding
WO2016198016A2 (en) Method, device and system for transmitting bier control information
US20150023352A1 (en) Implement equal cost multiple path of trill network
US8879569B2 (en) Virtual network connection method, network system, and network device
EP3028434B1 (en) Packet forwarding
WO2016198017A1 (en) Method and apparatus for transmitting multicast address
US9294292B2 (en) Optimized multicast routing in a Clos-like network
WO2015143879A1 (en) Method for sending multicast packet and switch
WO2016023499A1 (en) Method and apparatus for processing modified packet
WO2016086713A1 (en) Equal-cost multi-path outbound interface update method and apparatus
EP3095216B1 (en) Single hop overlay architecture for line rate performance in campus networks
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
WO2022021818A1 (en) Method and device for processing data message, storage medium, and electronic device
WO2018001339A1 (en) Method and apparatus for forwarding packet in virtual extensible local area network (vxlan)
US20130279513A1 (en) Systems and methods for pseudo-link creation
WO2013166911A1 (en) Method for processing conflict of identifiers of device groups in network, and route bridge
WO2016050096A1 (en) Method for forwarding message in trill network and route bridge
US10680931B2 (en) Ingress gateway selection for a shortest path bridging network to support inter domain multicast routing

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: 15846225

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: 15846225

Country of ref document: EP

Kind code of ref document: A1