The present application relates to the field of communications technologies and, in particular embodiments, to a method and a device for managing a media access control (MAC) address entry in a Transparent Interconnection of Lots of Links (TRILL) network.
The Ethernet adopts a Spanning Tree Protocol (STP) on a data forwarding layer. The STP is a data link layer (a second layer) communication protocol based on an open system interconnect reference model (OSI). The STP can be applied in a loop network. By using a certain algorithm to implement path redundancy, the STP trims the loop network as a loop-free tree network, thereby avoiding proliferation and endless cycling of a packet in the loop network, and solving a “broadcast storm” problem in a loop Ethernet network. In a sense, the STP is a network protection technique that can eliminate a cycling connection caused by a mistake or an accident.
However, the STP has the following obvious disadvantages. First, the STP prevents a loop by blocking some ports and does not allow multipath routing, so all traffic is transmitted on one tree, and even if an idle link exists, the idle link cannot be used, leading to bandwidth underutilization. Second, the traffic is transmitted along an non-optimal path (for example, a non-shortest path), which increases transmission delay. Third, in the STP, a traditional Internet Ethernet packet does not have a time to live (TTL) field, so when a loop occurs due to a communication failure, the broadcast storm problem may still occur, which seriously damages the network. In order to overcome the disadvantages of the STP, a Transparent Interconnection of Lots of Links (TRILL) protocol is proposed.
The TRILL protocol is a solution proposed by the Internet Engineering Task Force (IETF) for Internet layer 2 (for example, Ethernet) multipath routing that is being standardized. In 2005, the IETF established a TRILL working group to boost a standardization process of the TRILL protocol.
By introducing an Intermediate System To Intermediate System Routing Protocol (IS-IS) on the second layer (data link layer) of an Internet protocol stack, the TRILL protocol implements routing from a bridge to another bridge, so as to replace the traditional STP. Therefore, data may be forwarded along the shortest path and the multipath routing is made possible, which improves bandwidth utilization efficiency.
In a customer edge (CE) network, local area networks constituted by hubs and switches and connected through traditional bridges are called local area network links (LAN link). For a TRILL network, these local area network links are called local links. The local links can be connected to different routing bridges (RBridge) to constitute a multi-homing situation. In the TRILL network, a designated RBridge (DRB) appoints a unique appointed forwarder for a virtual local area network (VLAN) in the local link, and only the RBridge appointed as the appointed forwarder are authorized to forward data.
Embodiments of the present application provide a method and a device for managing a MAC address entry in a TRILL network, so as to solve a problem of data packet loss in an existing TRILL network and increase a success rate of data packet forwarding in the TRILL network.
A first embodiment of the present application provides a method for managing a MAC address entry in a TRILL network. A first routing bridge obtains a topology change notification (TCN) message through a switch connected to the first routing bridge. The first routing bridge clears a MAC address entry of the first routing bridge taking the first routing bridge as an egress bridge. The MAC address entry is cleared according to the TCN message. The first routing bridge sends a link state protocol data unit (LSP) packet to a second routing bridge in the TRILL network, so as to enable the second routing bridge to clear a MAC address entry of the second routing bridge taking the first routing bridge as an egress bridge. The second routing bridge and the first routing bridge are located in a same virtual local area network (VLAN).
Another aspect of an embodiment of the present application provides a method for managing a MAC address entry in a TRILL network. A second routing bridge receives a link state protocol data unit LSP packet sent by a first routing bridge. The first routing bridge and the second routing bridge are located in a same virtual local area network VLAN. The second routing bridge clears a MAC address entry of the second routing bridge taking the first routing bridge as an egress bridge.
According to an aspect of an embodiment of the present application, a routing bridge is provided. An obtaining unit is configured to obtain a topology change notification (TCN) message through a switch connected to the routing bridge. A clearing unit is configured to clear, according to the TCN message, a media access control (MAC) address entry of the routing bridge taking the routing bridge as an egress bridge. A sending unit is configured to send a link state protocol data unit LSP packet to a second routing bridge in a Transparent Interconnection of Lots of Links (TRILL) network, so as to enable the second routing bridge to clear a MAC address entry of the second routing bridge taking the routing bridge as an egress bridge. The second routing bridge and the routing bridge are located in a same virtual local area network (VLAN).
According to an aspect of an embodiment of the present application, a routing bridge is provided. A receiving unit is configured to receive a link state protocol data unit (LSP) packet sent by a first routing bridge. The first routing bridge and the routing bridge are located in a same virtual local area network (VLAN). A clearing unit is configured to clear a media access control (MAC) address entry of the routing bridge taking the first routing bridge as an egress bridge.
In the embodiments of the present application, the first routing bridge first obtains the TCN message through the switch connected to the first routing bridge, clears the MAC address entry of the first routing bridge according to the obtained TCN message, and sends the LSP packet to the second routing bridge in the TRILL network, so that the second routing bridge that is located in a same VLAN as the first routing bridge can clear the MAC address entry taking the first routing bridge as an egress bridge. Because the embodiments of the present application can clear the old MAC address entries in the routing bridges, other routing bridges in the TRILL network are prevented from forwarding data packets to the old appointed forwarder. As a result, a problem of data packet loss that exists in an existing TRILL network can be solved, and a success rate of data packet forwarding in the TRILL network is increased.
To illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of the present application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
However, the following defects of the prior art are discovered by the inventor of the present application. In the architecture of the CE network shown in
Embodiments of the present application provide a method and a device for managing a MAC address entry in a TRILL network, so as to solve a problem of data packet loss in an existing TRILL network and increase a success rate of data packet forwarding in the TRILL network.
To make the objectives, features, and advantages of the present application more comprehensible, the following clearly describes the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
An embodiment of the present application provides a method for managing a MAC address entry in a TRILL network. In the description about the method, an action is executed by a first routing bridge, which is an appointed forwarder before a network topology of a local link changes. It may be understood that the first routing bridge represents only a type of routing bridge in the TRILL network to be differentiated from another routing bridge (that is, a second routing bridge) that is subsequently involved in the embodiment of the present application, but is not intended to limit the present application.
As shown in
201: A first routing bridge obtains a topology change notification message through a switch connected to the first routing bridge.
In the embodiment of the present application, the first routing bridge in the TRILL network first obtains the topology change notification (TCN) message through the switch connected to the first routing bridge in a local link. The TCN message is used for notifying the switch that a network topology in the local link changes. However, the TCN message is transmitted only among the switches in the local link, and a routing bridge cannot perceive the change of the network topology in the local link. Therefore, the embodiment of the present application proposes that the first routing bridge obtains the TCN message through the switch connected to the first routing bridge. In practical application, the first routing bridge obtains the TCN message in a plurality of manners, which are described in the following. One possible implementation is that the first routing bridge listens to the switch connected to the first routing bridge in the local link, to obtain the TCN message. Another possible implementation is that: the switch in the local link broadcasts the TCN message, and the first routing bridge can receive the TCN message through an interface connected to the switch.
202: The first routing bridge clears, according to the TCN message, a media access control address entry of the first routing bridge taking the first routing bridge as an egress bridge.
In the embodiment of the present application, after receiving the TCN message, the first routing bridge clears, according to the TCN message, the MAC address entry of the first routing bridge taking the first RBridge as the egress bridge. For example, before the change of the network topology of the local link occurs, the MAC address entry of the first routing bridge e records a host in the local link and a MAC address of the host. After receiving the TCN message, the first routing bridge clears the MAC address entry of the first routing bridge taking the first routing bridge as the egress bridge. After the MAC address entry is cleared, the MAC address entry of the first routing bridge does not record the host that takes the first routing bridge as the egress bridge in the local link and the MAC address of the host.
203: The first routing bridge sends a link state protocol data unit packet to a second routing bridge in the TRILL network, so that the second routing bridge clears a MAC address entry of the second routing bridge taking the first routing bridge as an egress bridge, where the second routing bridge and the first routing bridge are located in a same virtual local area network.
In the embodiment of the present application, the first routing bridge sends the link state protocol date unit (LSP) packet to the second routing bridge in the TRILL network. A routing bridge (for example, the second routing bridge) that is located in the same VLAN as the first routing bridge in the TRILL network can receive and process the LSP packet, so that the second routing bridge that receives the LSP packet clears the MAC address entry of the second routing bridge taking the first routing bridge as an egress bridge. However, a routing bridge that is located in a different VLAN from the first routing bridge in the TRILL network cannot process the LSP packet. The second routing bridge refers to one or more of other routing bridges that are located in the same VLAN as the first routing bridge. The first routing bridge may send the LSP packet to the second routing bridge in the TRILL network in a broadcast, multicast, or unicast manner. It should be noted that the first routing bridge and the second routing bridge mentioned in the embodiment of the present application are only naming methods adopted to differentiate two different routing bridges, but are not intended to limit the routing bridges in terms of time sequence or logic. It may be understood that routing bridge A and routing bridge B may also be adopted as naming methods to differentiate the two routing bridges, which is not limited herein.
It should be noted that there is no sequential order between operation 202 and operation 203. After the first RBridge obtains the TCN message, operation 202 may be executed prior to operation 203, or operation 203 may be executed prior to operation 202, or operation 202 and operation 203 are executed simultaneously, which is not limited herein.
In the embodiment of the present application, the first routing bridge first obtains the TCN message through the switch connected to the first routing bridge, clears the MAC address entry of the first routing bridge taking the first routing bridge as an egress bridge according to the obtained TCN message, and sends the LSP packet to the second routing bridge in the TRILL network, so that the second routing bridge that is located in the same VLAN as the first routing bridge can clear the MAC address entry taking the first routing bridge as the egress bridge. Because the embodiment of the present application can clear the old MAC address entries in the routing bridges, other routing bridges in the TRILL network are prevented from forwarding data packets to the old appointed forwarder. As a result, a problem of data packet loss that exists in an existing TRILL network can be solved, and a success rate of data packet forwarding in the TRILL network is increased.
The foregoing embodiment introduces the method for managing the MAC address entry in the TRILL network implemented on a first routing bridge side, and the following introduces a method for managing the MAC address entry in the TRILL network implemented on a second routing bridge side that interacts with the first routing bridge side. Referring to
301: A second routing bridge receives a link state protocol data unit packet sent by a first routing bridge, where the first routing bridge and the second routing bridge are located in the same virtual local area network.
In the embodiment of the present application, when a network topology in a local link changes, after obtaining a TCN message, the first routing bridge may send the LSP packet to the second routing bridge in a TRILL network. Because the second routing bridge and the first routing bridge are located in the same VLAN, the second routing bridge may receive the LSP packet sent by the first routing bridge. The second routing bridge refers to one or more of other routing bridges that are located in the same VLAN as the first routing bridge. The first routing bridge may send the LSP packet to the second routing bridge in the TRILL network in a broadcast or multicast, or unicast manner.
302: The second routing bridge clears a MAC address entry of the second routing bridge taking the first routing bridge as an egress bridge.
In the embodiment of the present application, after receiving the LSP packet sent by the first routing bridge, the second routing bridge in the TRILL network clears the MAC address entry of the second routing bridge taking the first routing bridge as the egress bridge (egress), to prevent the second RBridge from still forwarding a data packet to the old appointed forwarder after the network topology of the local link changes. In this way, loss of the data packet forwarded by the second routing bridge is prevented, and therefore occurrence of traffic black holing is prevented.
In the embodiment of the present application, after receiving the LSP packet sent by the first routing bridge, the second routing bridge that is located in the same VLAN as the first routing bridge can clear the MAC address entry taking the first routing bridge as the egress bridge. Because the embodiment of the present application can clear the old MAC address entries in the routing bridges, other routing bridges in the TRILL network are prevented from forwarding data packets to the old appointed forwarder. As a result, a problem of data packet loss that exists in an existing TRILL network can be solved, and a success rate of data packet forwarding in the TRILL network is increased.
In the embodiments introduced with reference to
In
After operations are performed according to the methods of the embodiments of the present application shown in
The foregoing embodiments introduce the methods for managing a MAC address entry in a TRILL network provided in the embodiments of the present application, and the following introduces a routing bridge in a TRILL network provided in an embodiment of the present application.
Referring to
It should be noted that the routing bridge 500 provided in the embodiment of the present application actually refers to the first routing bridge introduced in the foregoing embodiments shown in
It should be noted that in a specific implementation of the obtaining unit 501 in the embodiment of the present application, an optional implementation is that the obtaining unit 501 is specifically configured to listen to the switch connected to the routing bridge 500 in the local link to obtain the TCN message.
It should be noted that in the specific implementation of the obtaining unit 501 in the embodiment of the present application, another optional implementation is that the obtaining unit 501 is specifically configured to receive the TCN message broadcast by the switch connected to the routing bridge 500.
It should be noted that content such as information interaction among the modules/units and execution processes of the device are based on the same idea as the methods in the embodiments of the present application, so technical effects of the device are the same as the methods in the embodiments of the present application. For details, reference may be made to descriptions of the method in the embodiment of the present application shown in
In the embodiment of the present application, the obtaining unit 501 first obtains the TCN message through the switch connected to the routing bridge 500; the clearing unit 502 clears, according to the obtained TCN message, the MAC address entry of the routing bridge 500 taking the routing bridge 500 as the egress bridge; and the sending unit 503 sends the LSP packet to the second routing bridge in the TRILL network, so that the second routing bridge that is located in the same VLAN as the routing bridge 500 can clear the MAC address entry of the second routing bridge taking the routing bridge 500 as the egress bridge. Because the embodiment of the present application can clear the old MAC address entries in the routing bridges, other routing bridges in the TRILL network are prevented from forwarding data packets to the old appointed forwarder. As a result, a problem of data packet loss that exists in an existing TRILL network can be solved, and a success rate of data packet forwarding in the TRILL network is increased.
The following introduces another routing bridge in a TRILL network provided in an embodiment of the present application. Referring to
It should be noted that the routing bridge 600 provided in the embodiment of the present application actually refers to the second routing bridge introduced in the foregoing embodiments shown in
It should be noted that content such as information interaction among the modules/units and execution processes of the device are based on the same idea as the methods in the embodiments of the present application, so technical effects of the device are the same as the methods in the embodiments of the present application. For details, reference may be made to descriptions of the method in the embodiment of the present application shown in
In the embodiment of the present application, the receiving unit 601 in the routing bridge 600 that is located in the same VLAN as the first routing bridge can receive the LSP packet sent by the first routing bridge, and the clearing unit 602 can clear the MAC address entry taking the first routing bridge as the egress bridge. Because the embodiment of the present application can clear the old MAC address entries in the routing bridges, other routing bridges in the TRILL network are prevented from forwarding data packets to the old appointed forwarder. As a result, a problem of data packet loss that exists in an existing TRILL network can be solved, and a success rate of data packet forwarding in the TRILL network is increased.
A person of ordinary skill in the art may understand that all or a part of the steps of the methods in the foregoing embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disc.
The method and the device for managing the MAC address entry in the TRILL network are described in detail above. For a person of ordinary skill in the art, variations and modifications may be made to the present application in terms of specific implementations or application scopes according to the ideas of the embodiments of the present application. Therefore, the specification shall not be construed as limitations to the present application.
Number | Date | Country | Kind |
---|---|---|---|
201110249205.X | Aug 2011 | CN | national |
This application is a continuation of International Application No. PCT/CN2012/073773, filed on Apr. 11, 2012, which claims priority to Chinese Patent Application No. 201110249205.X, filed on Aug. 26, 2011, both of which are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2012/073773 | Apr 2012 | US |
Child | 14189516 | US |