CN103200107A - Message transmitting method and message transmitting equipment - Google Patents
Message transmitting method and message transmitting equipment Download PDFInfo
- Publication number
- CN103200107A CN103200107A CN2013101315254A CN201310131525A CN103200107A CN 103200107 A CN103200107 A CN 103200107A CN 2013101315254 A CN2013101315254 A CN 2013101315254A CN 201310131525 A CN201310131525 A CN 201310131525A CN 103200107 A CN103200107 A CN 103200107A
- Authority
- CN
- China
- Prior art keywords
- beb
- terminal device
- mac
- vlan
- mac address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000012545 processing Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000012423 maintenance Methods 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 claims description 2
- 238000012217 deletion Methods 0.000 claims 4
- 230000037430 deletion Effects 0.000 claims 4
- 101001046686 Homo sapiens Integrin alpha-M Proteins 0.000 description 10
- 101000935040 Homo sapiens Integrin beta-2 Proteins 0.000 description 10
- 102100022338 Integrin alpha-M Human genes 0.000 description 10
- 101000962498 Macropis fulvipes Macropin Proteins 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000005538 encapsulation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006855 networking Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a message transmitting method and message transmitting equipment. The message transmitting method includes the following steps. Third BEB equipment learns an MAC transmitting list item which corresponds to first terminal equipment beside a first PW. An MAC address, a subordinative VLAN and a corresponding relation with the first PW of the first terminal equipment are recorded in the MAC transmitting list item. The third BEB equipment receives an informing message which is sent by first BEB equipment after variation of topology between the first BEB equipment and the first terminal equipment is detected. The informing message is used for informing variation of the topology and contains relevant information of the first terminal equipment which is related with the topology variation. The third BEB equipment deletes the relevant MAC transmitting list item in an MAC transmitting list according to the relevant information of the first terminal equipment contained by the forming message. The message transmitting method and the message transmitting equipment can inform the BEB equipment at an opposite end of a PW of updating the MAC transmitting list item in time.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting a packet.
Background
The MAC-in-MAC protocol is also called PBB (Provider Backbone Bridge) protocol, and as a two-layer VPN (Virtual Private Network) technology, it encapsulates the user MAC address in the operator MAC address by means of MAC (Media Access Control) address nesting, thereby isolating different user services.
An SPB (Shortest Path Bridge) network using a MAC-in-MAC protocol is called an SPBM (Shortest Path Bridge in MAC Mode) network, and as shown in fig. 1, is a networking schematic diagram of the SPBM network, and a Backbone network of the SPBM network mainly includes BEB (Backbone Edge Bridge) devices, BCB (Backbone core Bridge) devices, and Backbone links therebetween. The BEB device is connected to the user network through an AC (access Circuit). The side of the BEB device facing the user network is referred to herein as the AC side.
The BEB equipment is responsible for carrying out MAC-in-MAC encapsulation on a message from a user network and forwarding the message to a backbone network; or, decapsulate the MAC-in-MAC message from the backbone network and forward the decapsulated message to the user network. When the BCB device performs MAC-in-MAC encapsulation on the packet, it marks the packet with a Virtual Local Area Network (MAC) address and a Virtual Local Area Network (VLAN) allocated by the operator, where the MAC address allocated by the operator is a Backbone MAC (B-MAC), and the VLAN allocated by the operator is a Backbone VLAN (Backbone VLAN). The BCB equipment is responsible for forwarding the MAC-in-MAC message according to the B-MAC and the B-VLAN, and only the message needs to be forwarded and the MAC address in a backbone network needs to be learned by the BCB equipment, and a large number of MAC addresses in a user network do not need to be learned.
In the prior art, as shown in fig. 2, which is a schematic view of an application scenario of message (data message) transmission in an SPBM network, a PC1 and a PC2 are respectively located in different user networks, a device a, a device B, and a device C are BEB devices in the SPBM network, and the device a and the device B are used to implement load sharing of the data message; furthermore, the BCB devices in the SPBM network are not represented in fig. 2.
When the PC1 needs to access the PC2, the PC1 sends a data packet to the device a, the data packet reaches the device C after being transmitted through the SPBM network, and the device C sends the data packet to the PC2, and the device C stores the MAC forwarding table entry shown in table 1 after receiving the data packet from the PC1 for the first time.
TABLE 1
MAC address | VLAN information | Egress port information |
MAC-1 | VLAN1 | PW1 |
In table 1, MAC-1 is a MAC address of PC1, VLAN1 is VLAN information corresponding to a data packet sent by PC1 to PC2, PW1 (Pseudowire) is learned by device C, and subsequently, egress port information is obtained when the data packet is sent to the destination MAC as MAC-1.
Based on the MAC forwarding table entry, when the PC2 needs to access the PC1, the PC2 sends a data packet to the device C, and the device C queries the MAC forwarding table entry by using the destination MAC address (i.e., MAC-1) and the VLAN information (i.e., VLAN 1) of the data packet, and obtains corresponding egress port information as PW1, so that the device C sends the data packet to the device a by using the PW1, and the device a sends the data packet to the PC 1.
However, when a link between the device a and the PC1 fails, the device C cannot sense the failure of the PW peer, and cannot update the local MAC forwarding table entry in time, so that after receiving the data packet sent by the PC2 to the PC1, the device C obtains the corresponding egress port information as the PW1 by querying the MAC forwarding table entry, and continues to send the data packet to the device a, and obviously, the device a cannot send the data packet to the PC1, thereby causing a flow break.
Disclosure of Invention
The embodiment of the invention provides a message transmission method and device, which are used for updating a local MAC forwarding table entry in time when PW opposite-end topology changes.
In order to achieve the above object, an embodiment of the present invention provides a method for transmitting a packet, where the method is applied to an SPBM network including a first BEB device and a third BEB device, where the first BEB device is connected to a first terminal device, and a first PW is created between the first BEB device and the third BEB device, and the method includes:
the third BEB device learns an MAC forwarding table item corresponding to the first terminal device from the first PW side, wherein the MAC forwarding table item records a corresponding relation among an MAC address of the first terminal device, a VLAN to which the MAC address belongs and the first PW;
the third BEB device receives an announcement message sent by the first BEB device after detecting that the topology between the first BEB device and the first terminal device changes, wherein the announcement message is used for informing that the topology changes and carries the association information of the first terminal device related to the topology change;
and the third BEB equipment deletes the associated MAC forwarding table entry in the MAC forwarding table according to the associated information of the first terminal equipment carried by the notification message.
The embodiment of the present invention further provides a method for transmitting a packet, which is applied to an SPBM network including a first BEB device and a third BEB device, where the first BEB device is connected to a first terminal device, and a first PW is created between the first BEB device and the third BEB device, and the method includes:
the first BEB device monitors whether the topology between the first BEB device and the first terminal device changes or not;
when the first BEB device monitors that the topology between the first BEB device and the first terminal device changes, the first BEB device sends a notification message to other BEB devices in the SPBM network, wherein the notification message is used for notifying that the topology changes and carries the association information of the first terminal device related to the topology change, so as to instruct the other BEB devices to delete the associated MAC forwarding table item according to the association information of the first terminal device related to the topology change.
An embodiment of the present invention further provides a BEB device, which is applied to an SPBM network including a first terminal device, a first BEB device connected to the first terminal device, and a third BEB device as a third BEB device, where a first PW is created between the first BEB device and the third BEB device, and the third BEB device includes:
a maintenance module, configured to learn, from the first PW side, an MAC forwarding entry corresponding to the first terminal device, where the MAC forwarding entry records a correspondence relationship between an MAC address of the first terminal device, a VLAN to which the MAC address belongs, and the first PW;
a receiving module, configured to receive an announcement message sent by the first BEB device after detecting that the topology between the first BEB device and the first terminal device changes, where the announcement message is used to inform that the topology changes and carries association information of the first terminal device related to the topology change;
and the processing module is used for deleting the related MAC forwarding table entry in the MAC forwarding table according to the related information of the first terminal equipment carried by the notification message.
An embodiment of the present invention further provides a BEB device, which is applied to an SPBM network including a first terminal device, the first BEB device connected to the first terminal device, and a third BEB device as a first BEB device, where a first PW is created between the first BEB device and the third BEB device, and the first BEB device includes:
the determining module is used for monitoring whether the topology between the first BEB device and the first terminal device changes;
a sending module, configured to send a notification message to other BEB devices in the SPBM network when it is monitored that the topology between the first BEB device and the first terminal device changes, where the notification message is used to notify that the topology changes and carries association information of the first terminal device related to the topology change, so as to instruct the other BEB devices to delete an associated MAC forwarding table entry according to the association information of the first terminal device related to the topology change.
Compared with the prior art, the embodiment of the invention at least has the following advantages: in the embodiment of the present invention, when the topology between the first BEB device and the first terminal device changes, the first BEB device triggers the third BEB device to delete the MAC forwarding table entry corresponding to the first terminal device, so that the third BEB device can update the local MAC forwarding table entry in time, and further send the data packet with the destination MAC address as the first terminal device in a multicast manner, thereby avoiding a flow-cutoff situation.
Drawings
FIG. 1 is a schematic diagram of a prior art SPBM network;
fig. 2 is a schematic diagram of an application scenario of message transmission in an SPBM network in the prior art;
fig. 3 is a schematic flow chart of a message transmission method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of the MAC address and VLAN information transmission by defining a new TLV format in ISIS according to the embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a BEB device provided by an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another BEB device according to an embodiment of the present invention.
Detailed Description
To solve the problems in the prior art, an embodiment of the present invention provides a method for transmitting a packet (data packet), where the method is applied in an SPBM network that includes a first terminal device, a first BEB device and a second BEB device connected to the first terminal device, a second terminal device, and a third BEB device connected to the second terminal device. In a specific implementation process, an application scenario in which the first terminal device is connected to the first BEB device includes, but is not limited to, that the first terminal device is directly connected to the first BEB device, or that the first terminal device is connected to an access layer switch on a user network side, and the access layer switch is connected to the first BEB device; the application scenario of the connection between the first terminal device and the second BEB device includes, but is not limited to, the first terminal device being directly connected to the second BEB device, or the first terminal device being connected to an access layer switch on the user network side, and the access layer switch being connected to the second BEB device; the application scenario in which the second terminal device is connected to the third BEB device includes, but is not limited to, the second terminal device being directly connected to the third BEB device, or the second terminal device being connected to an access layer switch on the user network side, and the access layer switch being connected to the third BEB device.
Fig. 2 is a schematic view of an application scenario of the embodiment of the present invention, where the first terminal device is a PC1, the first BEB device is a device a, the second BEB device is a device B, and the PC1 is directly connected to the device a and the device B; the second terminal device is a PC2, the third BEB device is a device C, and the PC2 is directly connected to the device C. Wherein a first PW (i.e., PW 1) is created between the first BEB device and the third BEB device, and a second PW (i.e., PW 2) is created between the second BEB device and the third BEB device. Specifically, a PW forwarding table may be created between two BEB devices through an IS-IS protocol, so as to form a virtual connection between the two BEB devices, that IS, a PW connection, where the PW connection can carry service traffic of an end-to-end user.
In the initial transmission process, the first terminal device sends a data message to the second terminal device through the first BEB device, based on the data message, the first terminal device sends the data message which needs to be sent to the second terminal device to the first BEB device, the first BEB device sends the data message from the first terminal device to the third BEB device, and the third BEB device sends the data message to the second terminal device.
When receiving a data packet sent by a first terminal device to a second terminal device for the first time, a third BEB device learns an MAC forwarding table entry corresponding to the first terminal device, where the MAC forwarding table entry records a corresponding relationship between an MAC address of the first terminal device, VLAN information of the data packet, and a first PW, and the MAC forwarding table entry may be as shown in table 1 for an application scenario shown in fig. 2.
Based on the MAC forwarding table, when the second terminal device accesses the first terminal device, the second terminal device sends the data packet to the third BEB device, and the third BEB device queries the MAC forwarding table by using the destination MAC address (i.e., MAC-1) and the VLAN information (i.e., VLAN 1) of the data packet, and obtains the corresponding egress port information as the first PW, so that the third BEB device sends the data packet to the first BEB device by using the first PW, and the first BEB device sends the data packet to the first terminal device.
In the above application scenario, as shown in fig. 3, the method includes the following steps:
In this embodiment of the present invention, the process of the first BEB device listening whether the topology between the first BEB device and the first terminal device changes includes, but is not limited to:
in case one, when the first BEB device detects that a link between the first BEB device and the first terminal device is failed, it determines that a topology between the first BEB device and the first terminal device is changed.
And secondly, when the first BEB device monitors that the DOWN occurs on the interface corresponding to the first terminal device on the first BEB device, determining that the topology between the first BEB device and the first terminal device changes.
And thirdly, when the first BEB device receives a TC (Topology Change) message based on STP (spanning tree Protocol) corresponding to the first terminal device, determining that the Topology between the first BEB device and the first terminal device changes.
And fourthly, when the first BEB equipment receives a FLUSH (refresh) message which is corresponding to the first terminal equipment and based on a SmartLink, determining that the topology between the first BEB equipment and the first terminal equipment is changed.
In the embodiment of the present invention, the notification packet is used to notify that the topology changes, and the notification packet carries the association information of the first terminal device involved in the topology change. Specifically, the association information of the first terminal device may be a MAC address of the first terminal device, or the MAC address of the first terminal device and the VLAN information to which the first terminal device belongs, or the VLAN information to which the first terminal device belongs.
In the embodiment of the present invention, when a link between the first BEB device and the first terminal device fails, the VLAN information carried in the notification message may specifically be a VLAN where an interface corresponding to the first terminal device is located; or, when the interface corresponding to the first terminal device goes DOWN, the VLAN information carried in the notification message may specifically be a VLAN where the interface corresponding to the first terminal device is located; or, when receiving a TC message based on STP corresponding to the first terminal device, the VLAN information carried in the notification message may specifically be a VLAN included in a specified instance in the TC message; or, when receiving the smart link-based FLUSH message corresponding to the first terminal device, the VLAN information carried in the notification message may specifically be a VLAN designated by the FLUSH message.
In a preferred embodiment of the present invention, an announcement message based on ISIS (Intermediate System to Intermediate System) is used to carry an MAC address and VLAN information corresponding to a first terminal device, or only carry VLAN information corresponding to the first terminal device; as shown in fig. 4, a new TLV (Type Length Value) format is defined in the ISIS, and the TLV carries the MAC address (i.e., the MAC address learned on the link with the changed topology) and the VLAN information corresponding to the first end device.
In the embodiment of the present invention, the notification message is used to notify that the topology changes, and the notification message carries the MAC address and the VLAN information corresponding to the first terminal device, or the notification message only carries the VLAN information corresponding to the first terminal device.
And step 304, the third BEB device deletes the associated MAC forwarding table entry in the MAC forwarding table according to the association information of the first terminal device carried in the notification message.
Specifically, after receiving the notification message, the third BEB device:
if the notification message only carries the MAC address of the first terminal equipment, the third BEB equipment queries a local MAC forwarding table item by using the MAC address of the first terminal equipment carried in the notification message; and if the corresponding record of the MAC address is matched in the MAC forwarding table entry, deleting the record.
If the notification message carries the MAC address and the VLAN information corresponding to the first terminal device, the third BEB device queries an MAC forwarding table item by using the MAC address and the VLAN information corresponding to the first terminal device carried in the notification message; if the MAC forwarding table entry is matched with the record corresponding to the MAC address and the VLAN information, deleting the record corresponding to the MAC address and the VLAN information in the MAC forwarding table entry; for example, when the MAC address and VLAN information corresponding to the first terminal device carried in the advertisement message are MAC-1 and VLAN1, respectively, when the third BEB device queries the MAC forwarding table shown in table 1, the third BEB device matches the records corresponding to MAC-1, VLAN1, and PW1, and therefore deletes the records corresponding to MAC-1, VLAN1, and PW 1. When the method is adopted, the corresponding records in the MAC forwarding table entry can be accurately matched, so that the MAC forwarding table entry needing to be deleted is accurately deleted, and the table entry maintenance efficiency is improved.
If the notification message only carries the VLAN information corresponding to the first terminal device, the third BEB device queries the MAC forwarding table entry by using the VLAN information corresponding to the first terminal device carried in the notification message; if the corresponding record of the VLAN information is matched in the MAC forwarding table entry, deleting the corresponding record of the VLAN information in the MAC forwarding table entry; for example, when the VLAN information corresponding to the first terminal device carried in the notification message is VLAN1, and when the third BEB device queries the MAC forwarding entry shown in table 1, the records corresponding to MAC-1, VLAN1, and PW1 are matched, so that the records corresponding to MAC-1, VLAN1, and PW1 are deleted. When the method is adopted, the flow of the notification message between the BEB devices can be reduced, the signaling overhead can be further saved, and the occupation of the network bandwidth can be reduced. For example, when the first BEB device learns a plurality of MAC addresses from the interface involved in the topology change, the method only needs to notify the third BEB device of the VLAN corresponding to the interface, and does not need to notify the third BEB device of each learned MAC address.
When the third BEB device deletes the corresponding MAC forwarding entry using the VLAN information corresponding to the first terminal device carried in the notification message, the MAC forwarding entry corresponding to the second terminal device may be deleted. Therefore, in the embodiment of the present invention, the third BEB device stores the MAC forwarding table learned from the SPBM network and the MAC forwarding table learned from the AC side, and only needs to delete the MAC forwarding table learned from the SPBM network when deleting the corresponding MAC forwarding table by using the VLAN information carried in the notification packet. Or, the third BEB device stores the MAC forwarding table learned from the SPBM network and the MAC forwarding table learned from the AC side together, and indicates the MAC forwarding table learned from the SPBM network and the MAC forwarding table learned from the AC side through different identifiers, and only needs to delete the MAC forwarding table learned from the SPBM network when deleting the corresponding MAC forwarding table by using the VLAN information carried in the notification message.
In the preferred embodiment of the present invention, the notification message may also carry a B-MAC, a B-VLAN, and an I-SID (Backbone Service Identifier, Backbone Service Instance number) corresponding to the first BEB device; further, the third BEB device may determine the PW between the third BEB device and the first BEB device using the B-MAC, the B-VLAN, and the I-SID corresponding to the first BEB device.
Based on this, in the second mode, after the third BEB device receives the notification message, since the notification message also carries the VLAN information corresponding to the first terminal device, the third BEB device may query the corresponding MAC forwarding entry by using the VLAN information and the PW; the specific query method is similar to the first and second methods, and is not described herein again.
In step 305, when the third BEB device receives the data packet sent by the second terminal device to the first terminal device, if there is no MAC forwarding entry corresponding to the destination MAC address of the data packet (i.e. the corresponding MAC forwarding entry has been deleted), the third BEB device sends the data packet in a multicast manner.
In summary, in the embodiment of the present invention, when the topology between the first BEB device and the first terminal device changes, the first BEB device triggers the third BEB device to delete the MAC forwarding entry corresponding to the first terminal device, so that when the third BEB device receives a data packet sent to the first terminal device by the second terminal device, the third BEB device finds that there is no MAC forwarding entry corresponding to the destination MAC address of the data packet locally, and therefore the third BEB device sends the data packet in a multicast manner, and then can send the data packet to the second BEB device, and the second BEB device sends the data packet to the first terminal device, thereby avoiding a flow interruption situation.
In the embodiment of the present invention, when a first terminal device sends a data packet to a second terminal device through a second BEB device, the third BEB device may further record an MAC forwarding table entry corresponding to the first terminal device, where the MAC forwarding table entry records a corresponding relationship between an MAC address of the first terminal device, VLAN information of the data packet, and a second PW; based on this, when receiving the data message sent by the second terminal device to the first terminal device, the third BEB device queries the MAC forwarding table entry by using the destination MAC address of the data message, obtains the output port information as the second PW, sends the data message to the second BEB device through the second PW, and sends the data message to the first terminal device by the second BEB device.
Based on the same inventive concept as the method described above, an embodiment of the present invention further provides a BEB device, which is applied to an SPBM network including a first terminal device, a first BEB device and a second BEB device connected to the first terminal device, a second terminal device, and a third BEB device connected to the second terminal device, where a first PW is created between the first BEB device and the third BEB device, and a second PW is created between the second BEB device and the third BEB device, as shown in fig. 5, where the third BEB device specifically includes:
a maintenance module 11, configured to learn, from the first PW side, an MAC forwarding entry corresponding to the first terminal device, where the MAC forwarding entry records a correspondence relationship between an MAC address of the first terminal device, a VLAN to which the MAC address belongs, and the first PW;
a receiving module 12, configured to receive an announcement message sent by the first BEB device after detecting that the topology between the first BEB device and the first terminal device changes, where the announcement message is used to inform that the topology changes and carries association information of the first terminal device related to the topology change;
the processing module 13 is configured to delete an associated MAC forwarding table entry in an MAC forwarding table according to the association information of the first terminal device carried in the notification packet;
a sending module 14, configured to send, when receiving a data packet sent by the second terminal device to the first terminal device, the data packet in a multicast manner if no MAC forwarding entry corresponding to the destination MAC address of the data packet is found.
Here, the association information of the first terminal device may be an MAC address of the first terminal device, and at this time, the processing module is further configured to delete an MAC forwarding table entry whose MAC address is the MAC address of the first terminal device;
or, the association information of the first terminal device may be an MAC address of the first terminal device and an affiliated VLAN, and at this time, the processing module is further configured to delete an MAC address and a VLAN which are an MAC address of the first terminal device and an MAC forwarding table of the affiliated VLAN, respectively;
or, the association information of the first terminal device may be VLAN information to which the first terminal device belongs, and at this time, the processing module is further configured to delete the VLAN as the MAC forwarding entry of the VLAN to which the first terminal device belongs.
The maintenance module 11 is further configured to, after the processing module deletes the associated MAC forwarding entry in the MAC forwarding table, relearn the MAC forwarding entry corresponding to the first terminal device from the second PW side, where the MAC forwarding entry records a corresponding relationship between the MAC address of the first terminal device, the VLAN to which the MAC address belongs, and the second PW;
the sending module 14 is further configured to, when receiving a data packet sent by the second terminal device to the first terminal device, query an MAC forwarding table entry by using a destination MAC address of the data packet, obtain that output port information is the second PW, send the data packet to the second BEB device through the second PW, and send the data packet to the first terminal device by the second BEB device.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Based on the same inventive concept as the method described above, an embodiment of the present invention further provides a BEB device, which is applied to an SPBM network including a first terminal device, the first BEB device and a second BEB device connected to the first terminal device, a second terminal device, and a third BEB device connected to the second terminal device, where a first PW is created between the first BEB device and the third BEB device, and a second PW is created between the second BEB device and the third BEB device, as shown in fig. 6, where the first BEB device specifically includes:
a determining module 21, configured to listen whether a topology between the first BEB device and the first terminal device changes;
a sending module 22, configured to send a notification message to other BEB devices in the SPBM network when it is monitored that the topology between the first BEB device and the first terminal device changes, where the notification message is used to notify that the topology changes and carries association information of the first terminal device related to the topology change, so as to instruct the other BEB devices to delete an associated MAC forwarding table entry according to the association information of the first terminal device related to the topology change.
Specifically, the association information of the first terminal device is the MAC address of the first terminal device, so as to instruct the other BEB devices to delete the MAC forwarding table entry whose MAC address is the MAC address of the first terminal device;
or the association information of the first terminal device is the MAC address and the VLAN of the first terminal device, so as to instruct the other BEB devices to delete the MAC address and the VLAN which are the MAC address and the MAC forwarding table entry of the VLAN of the first terminal device, respectively;
or, the association information of the first terminal device is VLAN information to which the first terminal device belongs, so as to instruct the other BEB devices to delete the VLAN as the MAC forwarding entry of the VLAN to which the first terminal device belongs.
The determining module 21 is specifically configured to determine that the topology between the first BEB device and the first terminal device changes when a link failure between the first BEB device and the first terminal device is detected; or when the interface DOWN corresponding to the first terminal device on the first BEB device is intercepted, determining that the topology between the first BEB device and the first terminal device changes; or when receiving the TC message based on the STP corresponding to the first terminal equipment, determining that the topology between the first BEB equipment and the first terminal equipment is changed; or, when receiving a smart link-based FLUSH message corresponding to the first terminal device, determining that the topology between the first BEB device and the first terminal device changes.
The VLAN information corresponding to the first terminal device carried in the notification packet specifically includes: when a link between the first BEB device and the first terminal device fails, the VLAN information carried in the notification message is specifically the VLAN where the interface corresponding to the first terminal device is located; or, when the interface corresponding to the first terminal device is DOWN, the VLAN information carried in the notification message is specifically a VLAN where the interface corresponding to the first terminal device is located; or when receiving a TC message based on STP corresponding to the first terminal device, the VLAN information carried in the advertisement message is specifically a VLAN included in the TC message; or, when receiving a smart link-based FLUSH message corresponding to the first terminal device, the VLAN information carried in the notification message is specifically a VLAN designated by the FLUSH message.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.
Claims (12)
1. A transmission method of a message is applied to an SPBM network comprising a first BEB device and a third BEB device, wherein the first BEB device is connected with a first terminal device, and a first PW is created between the first BEB device and the third BEB device, and the method comprises the following steps:
the third BEB device learns an MAC forwarding table item corresponding to the first terminal device from the first PW side, wherein the MAC forwarding table item records a corresponding relation among an MAC address of the first terminal device, a VLAN to which the MAC address belongs and the first PW;
the third BEB device receives an announcement message sent by the first BEB device after detecting that the topology between the first BEB device and the first terminal device changes, wherein the announcement message is used for informing that the topology changes and carries the association information of the first terminal device related to the topology change;
and the third BEB equipment deletes the associated MAC forwarding table entry in the MAC forwarding table according to the associated information of the first terminal equipment carried by the notification message.
2. The method of claim 1,
the correlation information of the first terminal device is the MAC address of the first terminal device, and the MAC forwarding table entry associated with the deletion in the MAC forwarding table is the MAC forwarding table entry with the deletion MAC address of the first terminal device;
or, the association information of the first terminal device is the MAC address and the VLAN to which the first terminal device belongs, and the deleting of the associated MAC forwarding entry in the MAC forwarding table is the deleting of the MAC address and the VLAN to which the MAC address of the first terminal device and the VLAN to which the MAC forwarding entry belong, respectively;
or, the association information of the first terminal device is VLAN information to which the first terminal device belongs, and the deletion of the associated MAC forwarding entry in the MAC forwarding table is a deletion of a VLAN to which the first terminal device belongs.
3. The method of claim 1 or 2, wherein the SPBM network further includes a second BEB device connected to the first terminal device, wherein a second PW is created between the second BEB device and a third BEB device, and wherein the third BEB device is connected to the second terminal device;
after deleting the associated MAC forwarding table entry in the MAC forwarding table, the method further includes:
the third BEB device learns the MAC forwarding table item corresponding to the first terminal device from the second PW side again, and the MAC forwarding table item records the corresponding relation among the MAC address of the first terminal device, the VLAN to which the MAC address belongs and the second PW;
when the third BEB device receives the data packet sent by the second terminal device to the first terminal device, the third BEB device queries the MAC forwarding table entry by using the destination MAC address of the data packet to obtain the output port information as the second PW, sends the data packet to the second BEB device through the second PW, and sends the data packet to the first terminal device by the second BEB device.
4. A transmission method of a message is applied to an SPBM network comprising a first BEB device and a third BEB device, wherein the first BEB device is connected with a first terminal device, and a first PW is created between the first BEB device and the third BEB device, and the method comprises the following steps:
the first BEB device monitors whether the topology between the first BEB device and the first terminal device changes or not;
when the first BEB device monitors that the topology between the first BEB device and the first terminal device changes, the first BEB device sends a notification message to other BEB devices in the SPBM network, wherein the notification message is used for notifying that the topology changes and carries the association information of the first terminal device related to the topology change, so as to instruct the other BEB devices to delete the associated MAC forwarding table item according to the association information of the first terminal device related to the topology change.
5. The method of claim 4,
the correlation information of the first terminal equipment is the MAC address of the first terminal equipment, so as to instruct other BEB equipment to delete the MAC forwarding table entry of which the MAC address is the MAC address of the first terminal equipment;
or the association information of the first terminal device is the MAC address and the VLAN of the first terminal device, so as to instruct the other BEB devices to delete the MAC address and the VLAN which are the MAC address and the MAC forwarding table entry of the VLAN of the first terminal device, respectively;
or, the association information of the first terminal device is VLAN information to which the first terminal device belongs, so as to instruct the other BEB devices to delete the VLAN as the MAC forwarding entry of the VLAN to which the first terminal device belongs.
6. The method according to claim 4 or 5, wherein the process of the first BEB device listening whether a topology change between the first BEB device and the first terminal device has occurred comprises:
when the first BEB device monitors the link failure between the first BEB device and the first terminal device, determining that the topology between the first BEB device and the first terminal device changes; or,
when the first BEB device monitors an interface DOWN corresponding to the first terminal device on the first BEB device, determining that the topology between the first BEB device and the first terminal device changes; or,
when the first BEB equipment receives the TC message which is corresponding to the first terminal equipment and based on the STP, determining that the topology between the first BEB equipment and the first terminal equipment is changed; or,
and when the first BEB equipment receives a FLUSH message based on SmartLink corresponding to the first terminal equipment, determining that the topology between the first BEB equipment and the first terminal equipment is changed.
7. A BEB device applied as a third BEB device in an SPBM network including a first terminal device, the first BEB device connected to the first terminal device, and the third BEB device, wherein a first PW is created between the first BEB device and the third BEB device, and the third BEB device includes:
a maintenance module, configured to learn, from the first PW side, an MAC forwarding entry corresponding to the first terminal device, where the MAC forwarding entry records a correspondence relationship between an MAC address of the first terminal device, a VLAN to which the MAC address belongs, and the first PW;
a receiving module, configured to receive an announcement message sent by the first BEB device after detecting that the topology between the first BEB device and the first terminal device changes, where the announcement message is used to inform that the topology changes and carries association information of the first terminal device related to the topology change;
and the processing module is used for deleting the related MAC forwarding table entry in the MAC forwarding table according to the related information of the first terminal equipment carried by the notification message.
8. The apparatus of claim 7,
the association information of the first terminal device is the MAC address of the first terminal device, and the processing module is further configured to delete an MAC forwarding table entry whose MAC address is the MAC address of the first terminal device;
or, the association information of the first terminal device is the MAC address of the first terminal device and the VLAN to which the first terminal device belongs, and the processing module is further configured to delete the MAC address and the VLAN which are the MAC address of the first terminal device and the MAC forwarding table entry of the VLAN to which the MAC address and the VLAN belong, respectively;
or, the association information of the first terminal device is VLAN information to which the first terminal device belongs, and the processing module is further configured to delete a VLAN as an MAC forwarding entry of the VLAN to which the first terminal device belongs.
9. The apparatus of claim 7 or 8, wherein the SPBM network further comprises a second BEB device connected to the first terminal device, wherein a second PW is created between the second BEB device and a third BEB device, and the third BEB device is connected to the second terminal device;
the maintenance module is further configured to relearn the MAC forwarding entry corresponding to the first terminal device from the second PW side after the processing module deletes the associated MAC forwarding entry in the MAC forwarding table, where the MAC forwarding entry records a corresponding relationship between the MAC address of the first terminal device, the VLAN to which the MAC address belongs, and the second PW;
the third BEB device further comprises:
and a sending module, configured to, when receiving a data packet sent by the second terminal device to the first terminal device, query an MAC forwarding table entry by using a destination MAC address of the data packet, obtain that output port information is the second PW, send the data packet to the second BEB device through the second PW, and send the data packet to the first terminal device by the second BEB device.
10. A BEB device applied as a first BEB device in an SPBM network including a first terminal device, the first BEB device connected to the first terminal device, and a third BEB device, wherein a first PW is created between the first BEB device and the third BEB device, and the first BEB device includes:
the determining module is used for monitoring whether the topology between the first BEB device and the first terminal device changes;
a sending module, configured to send a notification message to other BEB devices in the SPBM network when it is monitored that the topology between the first BEB device and the first terminal device changes, where the notification message is used to notify that the topology changes and carries association information of the first terminal device related to the topology change, so as to instruct the other BEB devices to delete an associated MAC forwarding table entry according to the association information of the first terminal device related to the topology change.
11. The apparatus of claim 10,
the correlation information of the first terminal equipment is the MAC address of the first terminal equipment, so as to instruct other BEB equipment to delete the MAC forwarding table entry of which the MAC address is the MAC address of the first terminal equipment;
or the association information of the first terminal device is the MAC address and the VLAN of the first terminal device, so as to instruct the other BEB devices to delete the MAC address and the VLAN which are the MAC address and the MAC forwarding table entry of the VLAN of the first terminal device, respectively;
or, the association information of the first terminal device is VLAN information to which the first terminal device belongs, so as to instruct the other BEB devices to delete the VLAN as the MAC forwarding entry of the VLAN to which the first terminal device belongs.
12. The apparatus of claim 10 or 11,
the determining module is specifically configured to determine that a topology between the first BEB device and the first terminal device changes when a link failure between the first BEB device and the first terminal device is detected; or when the interface DOWN corresponding to the first terminal device on the first BEB device is intercepted, determining that the topology between the first BEB device and the first terminal device changes; or when receiving the TC message based on the STP corresponding to the first terminal equipment, determining that the topology between the first BEB equipment and the first terminal equipment is changed; or, when receiving a smart link-based FLUSH message corresponding to the first terminal device, determining that the topology between the first BEB device and the first terminal device changes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310131525.4A CN103200107B (en) | 2013-04-15 | 2013-04-15 | Message transmitting method and message transmitting equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310131525.4A CN103200107B (en) | 2013-04-15 | 2013-04-15 | Message transmitting method and message transmitting equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103200107A true CN103200107A (en) | 2013-07-10 |
CN103200107B CN103200107B (en) | 2017-04-12 |
Family
ID=48722470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310131525.4A Active CN103200107B (en) | 2013-04-15 | 2013-04-15 | Message transmitting method and message transmitting equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103200107B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685029A (en) * | 2013-12-06 | 2014-03-26 | 杭州华三通信技术有限公司 | Method and equipment for forwarding messages in rapid ring protection protocol networking |
CN103746916A (en) * | 2013-12-20 | 2014-04-23 | 杭州华三通信技术有限公司 | Method and apparatus for improving forwarding strategy of SPBM network |
CN104079466A (en) * | 2014-07-03 | 2014-10-01 | 杭州华三通信技术有限公司 | Message processing method and equipment |
CN104168169A (en) * | 2014-07-15 | 2014-11-26 | 杭州华三通信技术有限公司 | MAC entry deleting method and equipment |
CN107294856A (en) * | 2016-03-31 | 2017-10-24 | 华为技术有限公司 | Determine the method, equipment and system of change in topology |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110747A (en) * | 2007-09-12 | 2008-01-23 | 华为技术有限公司 | Method, device and system for eliminating medium accesses to control address |
CN101159696A (en) * | 2007-11-21 | 2008-04-09 | 杭州华三通信技术有限公司 | PBT network flow control method and apparatus |
US20120182876A1 (en) * | 2011-01-18 | 2012-07-19 | Fujitsu Limited | Provider network and provider edge apparatus |
CN102857399A (en) * | 2012-08-20 | 2013-01-02 | 华为技术有限公司 | MAC address deleting method, device and system of VPLS dual homing network |
-
2013
- 2013-04-15 CN CN201310131525.4A patent/CN103200107B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110747A (en) * | 2007-09-12 | 2008-01-23 | 华为技术有限公司 | Method, device and system for eliminating medium accesses to control address |
CN101159696A (en) * | 2007-11-21 | 2008-04-09 | 杭州华三通信技术有限公司 | PBT network flow control method and apparatus |
US20120182876A1 (en) * | 2011-01-18 | 2012-07-19 | Fujitsu Limited | Provider network and provider edge apparatus |
CN102857399A (en) * | 2012-08-20 | 2013-01-02 | 华为技术有限公司 | MAC address deleting method, device and system of VPLS dual homing network |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685029A (en) * | 2013-12-06 | 2014-03-26 | 杭州华三通信技术有限公司 | Method and equipment for forwarding messages in rapid ring protection protocol networking |
CN103685029B (en) * | 2013-12-06 | 2016-08-17 | 杭州华三通信技术有限公司 | Message forwarding method and equipment in a kind of rapid ring protection protocol networking |
CN103746916A (en) * | 2013-12-20 | 2014-04-23 | 杭州华三通信技术有限公司 | Method and apparatus for improving forwarding strategy of SPBM network |
CN103746916B (en) * | 2013-12-20 | 2017-04-12 | 杭州华三通信技术有限公司 | Method and apparatus for improving forwarding strategy of SPBM network |
CN104079466A (en) * | 2014-07-03 | 2014-10-01 | 杭州华三通信技术有限公司 | Message processing method and equipment |
CN104079466B (en) * | 2014-07-03 | 2017-10-03 | 新华三技术有限公司 | A kind of message processing method and equipment |
CN104168169A (en) * | 2014-07-15 | 2014-11-26 | 杭州华三通信技术有限公司 | MAC entry deleting method and equipment |
CN104168169B (en) * | 2014-07-15 | 2017-11-28 | 新华三技术有限公司 | A kind of MAC address entries delet method and equipment |
CN107294856A (en) * | 2016-03-31 | 2017-10-24 | 华为技术有限公司 | Determine the method, equipment and system of change in topology |
CN107294856B (en) * | 2016-03-31 | 2020-01-21 | 华为技术有限公司 | Method, equipment and system for determining topology change |
Also Published As
Publication number | Publication date |
---|---|
CN103200107B (en) | 2017-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7787480B1 (en) | Routing frames in a trill network using service VLAN identifiers | |
CN107819677B (en) | Message forwarding method and device | |
US8509248B2 (en) | Routing frames in a computer network using bridge identifiers | |
CN101286922B (en) | Signalling control method, system and apparatus | |
US11611509B2 (en) | Communication method, communications device, and communications system | |
CN103269299B (en) | Message forwarding method in SPBM network and device | |
CN103200107B (en) | Message transmitting method and message transmitting equipment | |
CN102104520B (en) | Ring network protection method and device based on topology information | |
CN109218456B (en) | Method and device for processing aging time of MAC address table | |
KR20100114025A (en) | Evolution of ethernet networks | |
CN105162704A (en) | Multicast replication method and device in Overlay network | |
CN103944828A (en) | Method and equipment for transmitting protocol messages | |
EP3522454B1 (en) | Connectivity fault management in a communication network | |
EP1944918B1 (en) | A method and system for realizing the consistency of the virtual circuit status | |
CN103209125B (en) | A kind of transmission method of label information and equipment | |
CN107682261B (en) | Flow forwarding method and device | |
US20120224488A1 (en) | Method of connectivity monitoring by subscriber line terminating apparatus | |
CN104702498A (en) | Method and device for reducing the number of optical connections through coordination protection | |
WO2017215383A1 (en) | Network element configuration method and device, and network element management method and device | |
CN104219073A (en) | Message forwarding method and device in SPBM network | |
CN103685029A (en) | Method and equipment for forwarding messages in rapid ring protection protocol networking | |
WO2018077124A1 (en) | Method, device, and system for service alarm processing | |
JP5733473B2 (en) | Interworking apparatus, method, and program | |
CN104796345A (en) | Message transmission control method and equipment | |
CN105743762A (en) | Message forwarding method and equipment in VPLS network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |