CN103475587A - MAC address learning method and core switching nodes - Google Patents

MAC address learning method and core switching nodes Download PDF

Info

Publication number
CN103475587A
CN103475587A CN2013104038198A CN201310403819A CN103475587A CN 103475587 A CN103475587 A CN 103475587A CN 2013104038198 A CN2013104038198 A CN 2013104038198A CN 201310403819 A CN201310403819 A CN 201310403819A CN 103475587 A CN103475587 A CN 103475587A
Authority
CN
China
Prior art keywords
mac address
core switch
switch node
node
access node
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.)
Pending
Application number
CN2013104038198A
Other languages
Chinese (zh)
Inventor
程永
赫英海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2013104038198A priority Critical patent/CN103475587A/en
Publication of CN103475587A publication Critical patent/CN103475587A/en
Priority to PCT/CN2014/086050 priority patent/WO2015032349A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Landscapes

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

Abstract

The embodiment of the invention provides an MAC address learning method and core switching nodes, and relates to the communication field. The eliminating quantity of MAC addresses can be reduced, and therefore the unknown unicast amount in a network is reduced. The MAC address learning method comprises the following steps: the first core switching node receives an MAC address refreshing message sent by an access node through a standby pseudo-wire (PW), wherein a failure of the access node is detected, and an MAC address contained in the MAC address refreshing message is taken out and refreshed into an MAC address table item which is stored in an MAC address table of the first core switching node and corresponds to the standby PW; then, a hub PW is used for forwarding the MAC address refreshing message to the second core switching node so as to make the second core switching node take out the MAC address and refresh the MAC address into an MAC address table item which is stored in an MAC address table of the second core switching node and corresponds to the hub PW.

Description

A kind of MAC address learning method and core switch node
Technical field
The present invention relates to the communications field, relate in particular to a kind of MAC(Media Access Control, medium access control) address learning method and core switch node.
Background technology
VPLS (Virtual Private LAN Service, the virtual special local area network service) be a kind of MPLS (Multiple Protocol Label Switching, multiprotocol label switching) two-layer VPN (Virtual Private Network, Virtual Private Network) technology.The user side that VPLS makes to be dispersed on diverse geographic location can intercom mutually, and just as they directly interconnect, it is transparent becoming metropolitan area network and wide area network all customer locations.
As shown in Figure 1, be existing a kind of VPLS network architecture, wherein, VPLS1-VPLS4 is core switch node, between any two full mesh(full mesh) interconnected, and between interconnected, configuration level is cut apart group; VPLS5-VPLS8 as access node each by active and standby PW(Pseudo Wire, pseudo-line) dual homed is to a pair of core switch node.
As shown in Figure 1, when the main PW place of access node VPLS5 interrupt, access node VPLS5 will send MAC Address to VPLS2 by standby PW and reclaim the MAC Address that message notifying VPLS2 removes the upper subscriber equipment connected of VPLS5, simultaneously, VPLS2 forwards described MAC Address to other core switch nodes (VPLS1, VPLS3 and VPLS4) and reclaims message, after other core switch nodes receive that the MAC Address of VPLS2 forwarding reclaims message, also can remove the MAC Address of the subscriber equipment of VPLS5, VPLS6, the upper connection of VPLS7.Then all core switch nodes relearn the MAC Address of the subscriber equipment of VPLS5, VPLS6, the upper connection of VPLS7 by unknown unicast.
In the process of carrying out above-mentioned MAC Address recovery, the inventor finds when the active and standby PW of any one access node or access node breaks down, will trigger whole relevant VPLS and remove relevant MAC, the MAC Address that only need to remove the subscriber equipment connected on VPLS5 in above-mentioned situation has become the MAC Address of removing the subscriber equipment connected on VPLS5, VPLS6, VPLS7, clearing amount is excessive, the MAC Address relearned by unknown unicast is too much, causes the unknown unicast flow excessive.
Summary of the invention
Embodiments of the invention provide a kind of MAC address learning method and core switch node, can reduce the MAC Address clearing amount, and then have reduced the unknown unicast amount in the network.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, disclose a kind of MAC address learning method, comprising:
The first core switch node reception detects the access node of fault by the MAC Address update of standby pseudo-line PW transmission, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected;
Described the first core switch node takes out the MAC Address of carrying in described MAC Address update and refreshes in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding, stores the MAC Address list item that each PW is corresponding in described mac address table;
Described the first core switch node is transmitted to the second core switch node by center hub PW by described MAC Address update so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding; Described center hub PW is the PW between described the first core switch node and described the second core switch node.
In conjunction with first aspect, in the first, in possible implementation, described mac refresh address message comprises: MAC Address reclaims message;
Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MACTLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.
In conjunction with first aspect, in the first, in possible implementation, described mac refresh address message comprises: the MAC address learning protocol massages;
, described the first core switch node receives the MAC Address update by standby PW, carries the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, comprising:
Described the first core switch node receives N MAC address learning protocol massages by standby PW, the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages, wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
Possible implementation or the possible implementation of the second of first aspect in conjunction with the first of first aspect, first aspect, at the third, in possible implementation, described method also comprises:
Described the first core switch node receives the MAC Address update that described the second core switch node sends by hub PW, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, and described the second access node is different from described the first access node;
That described the first core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the first core switch node, in MAC Address list item that described hub PW is corresponding.
Second aspect, announced a kind of the first core switch node, comprising:
Receiving element, for receive the MAC Address update of the access node transmission that fault detected by standby pseudo-line PW, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected;
Refresh unit, take out and flush to for the MAC Address of carrying of described MAC Address update that described receiving element is received in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table;
Transmitting element, be transmitted to the second core switch node for the described MAC Address update described receiving element received by center hub PW, so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding, wherein, described hub PW is the PW between described the first core switch node and described the second core switch node.
In conjunction with second aspect, in the first, in possible implementation, described mac refresh address message comprises: MAC Address reclaims message;
Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MAC TLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.
In conjunction with second aspect, at the second, in possible implementation, described mac refresh address message comprises: the MAC address learning protocol massages;
Described receiving element, specifically for by described standby PW, receiving N MAC address learning protocol massages, the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages, wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
Possible implementation or the possible implementation of the second of second aspect in conjunction with the first of second aspect, second aspect, comprising in possible implementation at the third:
Described receiving element, the MAC Address update also sent by described hub PW for receiving described the second core switch node, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, and described the second access node is different from described the first access node;
Described refresh unit, also for the MAC Address of carrying of MAC Address update that described receiving element is received, take out and flush in that store in the mac address table of described the first core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
The third aspect, announced a kind of medium access control MAC address learning method, comprising:
The second core switch node receives the MAC Address update that the first core switch node sends by center pseudo-line hub PW, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node;
That described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
Fourth aspect, announced a kind of the second core switch node, comprising:
Receiving element, the MAC Address update sent by center pseudo-line hub PW for receiving the first core switch node, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node;
Refresh unit, take out and flush to for the MAC Address of carrying of MAC Address update that described receiving element is received in that store in the mac address table of described the second core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
MAC address learning method and core switch node that technique scheme provides, after described core switch node receives the MAC Address update by PW, can directly the MAC Address of carrying in described MAC Address update be taken out and flush in that store in the mac address table of core switch node, MAC Address list item that PW is corresponding.After in prior art, removing relevant MAC Address, relearn MAC Address and cause that the unknown unicast flow is excessive to be compared, the method that the embodiment of the present invention provides need not be removed MAC Address, but directly MAC Address is flushed in that store in the mac address table of described core switch node, MAC Address list item that described PW is corresponding, can reduce the MAC Address clearing amount, and then reduce the unknown unicast amount in the network.
The accompanying drawing explanation
Fig. 1 is a kind of VPLS network architecture block diagram of the prior art;
A kind of MAC address learning method flow schematic diagram that Fig. 2 provides for the embodiment of the present invention 1;
The another kind of MAC address learning method flow schematic diagram that Fig. 3 provides for the embodiment of the present invention 1;
A kind of MAC address learning method flow schematic diagram that Fig. 4 provides for the embodiment of the present invention 2;
The structured flowchart of a kind of the first core switch node that Fig. 5 provides for the embodiment of the present invention 3;
The structured flowchart of a kind of the second core switch node that Fig. 6 provides for the embodiment of the present invention 3;
The structured flowchart of another kind the first core switch node that Fig. 7 provides for the embodiment of the present invention 3;
The structured flowchart of another kind the second core switch node that Fig. 8 provides for the embodiment of the present invention 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Embodiment 1:
The embodiment of the present invention provides a kind of MAC address learning method, as shown in Figure 2, said method comprising the steps of:
201, the first core switch node reception detects the access node of fault by the MAC Address update of standby pseudo-line PW transmission, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected.
In the VPLS network, each access node is interconnected with the core switch node dual homed, by main PW, is connected to a core switch node, by standby PW, is connected to another core switch node.When the main PW of the first access node breaks down or the core switch node that is connected with the main PW of this first access node while breaking down, described the first access node can detect this fault, and to another core switch node be connected with this first access node, is that the first core switch node sends the MAC Address update by standby PW.This first core switch node just can receive the MAC Address update that the first access node that fault detected sends by standby pseudo-line PW, carries the MAC Address of the subscriber equipment be connected with the first access node that fault detected in described MAC Address update.
202, described the first core switch node takes out the MAC Address of carrying in described MAC Address update flush in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding, stores the MAC Address list item that each PW is corresponding in described mac address table.
Described MAC Address update is that the first access node that fault detected directly sends to described the first core switch node, described the first core switch node, after the MAC Address of carrying by described MAC Address update is taken out, can flush to described MAC Address that store in the mac address table of described the first core switch node, described detecting in the MAC Address list item that the first access point of fault is corresponding with standby PW between described the first core switch node.
203, described the first core switch node is transmitted to the second core switch node by center hub PW by described MAC Address update.
After described the first core switch node is got the MAC Address of carrying in described MAC Address update to refresh in the mac address table of oneself, will described MAC Address update be transmitted to described the second core switch node by center hub PW so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding; Described center hub PW is the PW between described the first core switch node and described the second core switch node, and the second core switch node described here is in other core switch nodes except described the first core switch node in described VPLS network.
Here it should be noted that, if the access node of fault detected, it not the first access node be connected with described the first core switch node, but the second access node be connected with the second core switch node, described the first core switch node will receive the MAC Address update that described the second core switch node sends by described hub PW, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, described the second access node is different from described the first access node.Described hub PW is the PW between described the first core switch node and described the second core switch node.Now, that described the first core switch node can take out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the first core switch node, in MAC Address list item that described hub PW is corresponding, do not need to forward described MAC Address update to other core switch nodes.
The embodiment of the present invention also provides a kind of MAC address learning method, as shown in Figure 3, said method comprising the steps of:
301, the second core switch node receives the MAC Address update that the first core switch node sends by the pseudo-line hubPW in center, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node.
Described the second core switch node is not to be connected with the first access node that fault detected by standby PW, and described MAC Address update is that the first core switch node is transmitted to described the second core switch node.
302, described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush in that store in the mac address table of described the second core switch node, MAC Address list item that described hub PW is corresponding, stores the MAC Address list item that each PW is corresponding in described mac address table.
After described the second core switch node receives the MAC Address update of the first core switch node transmission, the MAC Address of carrying in described MAC Address update can be taken out, and described MAC Address be flushed in the MAC Address list item of storing in the mac address table of described the second core switch node, described the first core switch node is corresponding with hub PW between described the second core switch node.At this moment, described the second core switch node is not forwarded the described MAC Address update received.
The MAC address learning method that the embodiment of the present invention provides, after core switch node receives the MAC Address update by PW, can directly the MAC Address of carrying in described MAC Address update be taken out and flush in that store in the mac address table of core switch node, MAC Address list item that PW is corresponding.After in prior art, removing relevant MAC Address, relearn a large amount of MAC Address and cause that the unknown unicast flow is excessive to be compared, the method that the embodiment of the present invention provides need not be removed MAC Address, but directly MAC Address is flushed in the MAC Address list item that store in the mac address table of core switch node, that new PW is corresponding, can reduce the MAC Address clearing amount, and then reduce the unknown unicast amount in the network.
Embodiment 2:
The embodiment of the present invention also provides a kind of MAC address learning method, as shown in Figure 4, said method comprising the steps of:
401, the first core switch node reception detects the first access node of fault by the MAC Address update of standby PW transmission.
In the VPLS network, each access node is interconnected with the core switch node dual homed, by main PW, is connected to a core switch node, by standby PW, is connected to another core switch node.When the main PW of the first access node breaks down or the core switch node that is connected with the main PW of this first access node while breaking down, described the first access node can detect this fault, and to another core switch node be connected with this first access node, be that the first core switch node sends the MAC Address update by standby PW, the core switch node at this moment be connected with standby PW is the first core switch node.
Example, as shown in Figure 1, suppose that the MAC Address of the subscriber equipment that the first access node VPLS5 connects is A& B& C, it is upper that the first access node VPLS5 is connected to core switch node VPLS1 by main PW, by standby PW, is connected on the first core switch node VPLS2.When the main PW of VPLS5 breaks down or VPLS1 while breaking down, described the first access node VPLS5 just can detect this fault, then by standby PW, to the first core switch node VPLS2, sends the MAC Address update.Carry MAC Address A&amp in described MAC Address update; B& C.
Optionally, described MAC Address update can be that MAC Address reclaims message, can be also the mac learning protocol massages.
Optionally, when described MAC Address update is MAC Address recovery message, described MAC Address reclaims in message and carries MAC TLV(Type-Length-Value, type lengths values), described MAC TLV indicates described the first core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message in that store in the mac address table of described the first core switch node, MAC Address list item that this PW is corresponding.
Perhaps, optionally, when described MAC Address update is the mac learning protocol massages, described MAC Address update comprises N MAC address learning protocol massages, the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages, wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
According to the above, the MAC Address of the subscriber equipment that the first access node VPLS5 connects is A& B& During C, it is SMAC(Source Media Access Control that described the first access node VPLS5 that fault detected will be take MAC Address A, B, C, source MAC) address sends three mac learning protocol massages to described the first core switch node VPLS2, corresponding three MAC Address that carry three subscriber equipmenies that access node VPLS5 connects respectively in described three MAC address learning protocol massages.
402, described the first core switch node takes out the MAC Address of carrying in described MAC Address update flush in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding.
Example, as shown in Figure 1, after described the first core switch node VPLS2 receives the MAC Address update of the first access node VPLS5 by standby PW transmission, by the MAC Address A&amp carried in described MAC Address update; B& C takes out, and flushes in storage in the mac address table of described the first core switch node VPLS2, MAC Address list item that described standby PW is corresponding.
403, described the first core switch node is transmitted to the second core switch node by hub PW by described MAC Address update.
404, described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush in that store in the mac address table of described the second core switch node, MAC Address list item that described hub PW is corresponding.
Described the second core switch node is in the VPLS network, the core switch node except described the first core switch node, and described hub PW refers to the PW between each core switch node.
Example, as shown in Figure 1, described the second core node can be VPLS1, one or more in VPLS3 and VPLS4, the first core switch node VPLS2 can be transmitted to the second core switch node by described MAC Address update by hub PW, preferred here, the first core switch node VPLS2 can be transmitted to the second core switch node VPLS1 by described MAC Address update by hub PW1, by hub PW2, described MAC Address update is transmitted to the second core switch node VPLS3, and by hub PW4, described MAC Address update is transmitted to the second core switch node VPLS4.Described like this second core switch node will take out the MAC Address of carrying in described MAC Address update flush to be stored in the mac address table of described the second core switch node, in the corresponding MAC Address list item of described hub PW, the second core switch node VPLS1 can take out the MAC Address of carrying in described MAC Address update flush to and store in the mac address table of VPLS1, in the corresponding MAC Address list item of described hubPW1, in like manner, VPLS3 and VPLS4 also can take out the MAC Address of carrying in described MAC Address update flush to and store in oneself mac address table, in the corresponding MAC Address list item of described hub pw2 and hub pw4.
Here, the first core node VPLS2 also needs described MAC Address update is transmitted to the second core switch node after receiving the MAC Address update that the described access node VPLS5 that fault detected sends.And the second core switch node (as VPLS1) receive as described in after the MAC Address update that forwards of core switch node VPLS2, only the MAC Address of carrying in described MAC Address update need to be taken out and flushed in that store in the mac address table of described core switch node, MAC Address list item that described hub PW is corresponding, not need described MAC Address update forwarding.
In like manner, if the access node of fault detected, not the first access node VPLS5 be connected with described the first core switch node VPLS2, but the second access node VPLS8 be connected with the second core switch node VPLS4, described the first core switch node VPLS2 will receive the MAC Address update that described the second core switch node VPLS4 sends by described hub PW3, carry the MAC Address of the subscriber equipment be connected with the second access node VPLS8 in described MAC Address update, described the second access node VPLS8 is the access node that fault detected.Described hub PW3 is the PW between described the first core switch node VPLS2 and described the second core switch node VPLS4.Now, that described the first core switch node VPLS2 can take out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the first core switch node VPLS2, in MAC Address list item that described hub PW3 is corresponding, do not need to forward described MAC Address update to other core switch nodes.
The MAC address learning method that the embodiment of the present invention provides, after core switch node receives the MAC Address update of the access node transmission that fault detected by standby PW, can directly the MAC Address of carrying in described MAC Address update be taken out and flush to and store in the mac address table of core switch node, in MAC Address list item corresponding to standby PW, and by hub PW, described MAC Address update is transmitted to other core switch nodes, so that described other core switch nodes take out the MAC Address of carrying in described MAC Address update flush to and store in the mac address table of described core switch node, in MAC Address list item corresponding to described hub PW.After in prior art, all core switch nodes are removed relevant MAC Address, relearn MAC Address and cause that the unknown unicast flow is excessive to be compared, the method that the embodiment of the present invention provides need not be removed MAC Address, but directly MAC Address is flushed in the MAC Address list item that store in the mac address table of core switch node, that new PW is corresponding, can reduce the MAC Address clearing amount, and then reduce the unknown unicast amount in the network.
Embodiment 3,
The embodiment of the present invention also provides a kind of the first core switch node, and as shown in Figure 5, described core switch node comprises: receiving element 501, refresh unit 502 and transmitting element 503.
Receiving element 501, for by standby pseudo-line PW, receiving the MAC Address update, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected.Refresh unit 502, take out and flush to for the MAC Address of carrying of described MAC Address update that described receiving element 501 is received in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding.Transmitting element 503, be transmitted to the second core switch node for the described MAC Address update that described receiving element 501 received by center hub PW so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding.
Wherein, described MAC Address update comprises: MAC Address reclaims message or mac learning protocol massages.When described MAC Address update is MAC Address recovery message, described MAC Address reclaims in message and carries MAC TLV, and described MAC TLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.When described MAC Address update is the mac learning protocol massages, described the first access node that fault detected will be take the MAC Address of connected subscriber equipment and be sent the mac learning protocol massages of corresponding number to described core switch node as SMAC, now, described receiving element 501 is just specifically for receiving N MAC address learning protocol massages, the corresponding MAC Address that carries the subscriber equipment be connected with the first access node that fault detected in each described MAC address learning protocol massages, wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
When described the first core switch node is not while directly being connected with the described access node that fault detected by standby PW, described receiving element 501, the MAC Address update also sent by hub PW for receiving the second core switch node, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, and described the second access node is different from described the first access node.Described refresh unit 502, also for the MAC Address of carrying of MAC Address update that described receiving element 501 is received, take out and flush in that store in the mac address table of described the first core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
The embodiment of the present invention also provides a kind of the second core switch node, and as shown in Figure 6, described core switch node comprises: receiving element 601 and refresh unit 602.
Described receiving element 601, the MAC Address update sent by the pseudo-line hubPW in center for receiving the first core switch node, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node; Described refresh unit 602, take out and flush to for the MAC Address of carrying of MAC Address update that described receiving element 601 is received in that store in the mac address table of described the second core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.Wherein, described mac refresh address message comprises: MAC Address reclaims message; Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MACTLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.Perhaps, described mac refresh address message comprises: the MAC address learning protocol massages; ; described receiving element 601 receives N MAC address learning protocol massages by hub PW; the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages; wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
The embodiment of the present invention also provides a kind of the first core switch node, as shown in Figure 7, described the first core switch node comprises: emission interface 701, receiving interface 702, memory 703 and the processor 704 be connected with emission interface 701, receiving interface 702 and memory 703 respectively.Certainly, the first core switch node can also comprise the universal components such as Base-Band Processing parts, middle radio frequency processing parts, input/output unit, and the embodiment of the present invention is not done any restriction at this.Wherein, storage batch processing code in memory 703, and processor 704 is for calling the program code of memory 703 storages, for carrying out following operation:
Described processor 704 utilizes receiving interface 702 to receive the MAC Address update of the first access node transmission that fault detected by standby pseudo-line PW, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected; And the MAC Address of carrying in the described described MAC Address update received is taken out and flushed in storage in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table; Then, described processor 704 utilizes emission interface 701, by center hub PW, the described MAC Address update received is transmitted to the second core switch node so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding.
Wherein, described mac refresh address message comprises: MAC Address reclaims message; Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MAC TLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.
Perhaps, described mac refresh address message comprises: the MAC address learning protocol massages; ; described processor 704 is specifically for utilizing receiving interface 702 to receive N MAC address learning protocol massages by standby PW; the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages; wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
When described the first core switch node is not while directly being connected with the described access node that fault detected by standby PW, described processor 704, also for utilizing receiving interface 702 to receive the MAC Address update that the second core switch node sends by hub PW, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, and described the second access node is different from described the first access node.Described processor 704, also for the MAC Address of carrying of the MAC Address update by receiving, take out and flush in that store in the mac address table of described the first core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
The embodiment of the present invention also provides a kind of the second core switch node, and as shown in Figure 8, described the first core switch node comprises: receiving interface 801, memory 802 and the processor 803 be connected with memory 802 with receiving interface 801 respectively.Certainly, the second core switch node can also comprise the universal components such as Base-Band Processing parts, middle radio frequency processing parts, input/output unit, and the embodiment of the present invention is not done any restriction at this.Wherein, storage batch processing code in memory 802, and processor 803 is for calling the program code of memory 802 storages, for carrying out following operation:
The MAC Address update that described processor 803 utilizes receiving interface 801 to send by center pseudo-line hub PW for receiving the first core switch node, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node; And the MAC Address of carrying in the MAC Address update received is taken out and flushed in that store in the mac address table of described the second core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
Wherein, described mac refresh address message comprises: MAC Address reclaims message; Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MAC TLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.
Perhaps, described mac refresh address message comprises: the MAC address learning protocol massages; ; described processor 803 is specifically for utilizing receiving interface 801 to receive N MAC address learning protocol massages by hub PW; the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages; wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
The core switch node that the embodiment of the present invention provides, after receiving the MAC Address update by PW, can directly the MAC Address of carrying in described MAC Address update be taken out and flush in that store in the mac address table of core switch node, MAC Address list item that PW is corresponding.After in prior art, all core switch nodes are removed relevant MAC Address, relearn MAC Address and cause that the unknown unicast flow is excessive to be compared, the method that the embodiment of the present invention provides need not be removed MAC Address, but directly MAC Address is flushed in the MAC Address list item that store in the mac address table of core switch node, that new PW is corresponding, can reduce the MAC Address clearing amount, and then reduce the unknown unicast amount in the network.
One of ordinary skill in the art will appreciate that: realize that the hardware that all or part of step of said method embodiment can be relevant by program command completes, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. a medium access control MAC address learning method, is characterized in that, comprising:
The first core switch node reception detects the access node of fault by the MAC Address update of standby pseudo-line PW transmission, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected;
Described the first core switch node takes out the MAC Address of carrying in described MAC Address update and refreshes in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding, stores the MAC Address list item that each PW is corresponding in described mac address table;
Described the first core switch node is transmitted to the second core switch node by center hub PW by described MAC Address update, so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding, wherein, described hub PW is the PW between described the first core switch node and described the second core switch node.
2. method according to claim 1, is characterized in that, described mac refresh address message comprises: MAC Address reclaims message;
Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MAC TLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.
3. method according to claim 1, is characterized in that, described mac refresh address message comprises: the MAC address learning protocol massages;
; the MAC Address update that the access node that described the first core switch node reception detects fault sends by described standby PW; carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, comprising:
Described the first core switch node receives N MAC address learning protocol massages by described standby PW, the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages, wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
4. according to the described method of claim 1-3 any one, it is characterized in that, described method also comprises:
Described the first core switch node receives the MAC Address update that described the second core switch node sends by described hubPW, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, and described the second access node is different from described the first access node;
That described the first core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the first core switch node, in MAC Address list item that described hub PW is corresponding.
5. a core switch node, is characterized in that, comprising:
Receiving element, for receive the MAC Address update of the access node transmission that fault detected by standby pseudo-line PW, carry the MAC Address of the subscriber equipment be connected with the first access node in described MAC Address update, described the first access node is the access node that fault detected;
Refresh unit, take out and flush to for the MAC Address of carrying of described MAC Address update that described receiving element is received in that store in the mac address table of described the first core switch node, MAC Address list item that described standby PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table;
Transmitting element, be transmitted to the second core switch node for the described MAC Address update described receiving element received by center hub PW, so that described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding, wherein, described hub PW is the PW between described the first core switch node and described the second core switch node.
6. the first core switch node according to claim 5, is characterized in that, described mac refresh address message comprises: MAC Address reclaims message;
Described MAC Address reclaims in message and carries MAC type lengths values TLV, and described MAC TLV indicates described core switch node to learn described MAC Address and reclaims the MAC Address of carrying in message.
7. the first core switch node according to claim 5, is characterized in that, described mac refresh address message comprises: the MAC address learning protocol massages;
Described receiving element, specifically for by described standby PW, receiving N MAC address learning protocol massages, the corresponding MAC Address that carries the subscriber equipment be connected with the access node that fault detected in each described MAC address learning protocol massages, wherein, described N is the number that the subscriber equipment that the access node of fault connects detected.
8. according to described the first core switch node of claim 5-7 any one, it is characterized in that, comprising:
Described receiving element, the MAC Address update also sent by described hub PW for receiving described the second core switch node, carry the MAC Address of the subscriber equipment be connected with the second access node in described MAC Address update, described the second access node is the access node that fault detected, and described the second access node is different from described the first access node;
Described refresh unit, also take out and flush in that store in the mac address table of described the first core switch node, MAC Address list item that described hub PW is corresponding for the MAC Address of carrying of MAC Address update that described receiving element is received.
9. a medium access control MAC address learning method, is characterized in that, comprising:
The second core switch node receives the MAC Address update that the first core switch node sends by center pseudo-line hub PW, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node;
That described the second core switch node takes out the MAC Address of carrying in described MAC Address update flush to is that store in the mac address table of described the second core switch node, in MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
10. a core switch node, is characterized in that, comprising:
Receiving element, the MAC Address update sent by center pseudo-line hub PW for receiving the first core switch node, carry the MAC Address of the subscriber equipment be connected with the access node that fault detected in described MAC Address update, described hub PW is the PW between described the first core switch node and described the second core switch node;
Refresh unit, take out and flush to for the MAC Address of carrying of MAC Address update that described receiving element is received in that store in the mac address table of described the second core switch node, MAC Address list item that described hub PW is corresponding, store the MAC Address list item that each PW is corresponding in described mac address table.
CN2013104038198A 2013-09-06 2013-09-06 MAC address learning method and core switching nodes Pending CN103475587A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2013104038198A CN103475587A (en) 2013-09-06 2013-09-06 MAC address learning method and core switching nodes
PCT/CN2014/086050 WO2015032349A1 (en) 2013-09-06 2014-09-05 Mac address learning method and core switching nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013104038198A CN103475587A (en) 2013-09-06 2013-09-06 MAC address learning method and core switching nodes

Publications (1)

Publication Number Publication Date
CN103475587A true CN103475587A (en) 2013-12-25

Family

ID=49800292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013104038198A Pending CN103475587A (en) 2013-09-06 2013-09-06 MAC address learning method and core switching nodes

Country Status (2)

Country Link
CN (1) CN103475587A (en)
WO (1) WO2015032349A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015032349A1 (en) * 2013-09-06 2015-03-12 华为技术有限公司 Mac address learning method and core switching nodes
CN113497985A (en) * 2020-04-01 2021-10-12 上海诺基亚贝尔股份有限公司 Method and device for reporting MAC (media Access control) update of user

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119252A (en) * 2006-08-01 2008-02-06 华为技术有限公司 Access network system, access device, ARP proxy and IP bridging connection forwarding method
CN101820397A (en) * 2010-05-25 2010-09-01 杭州华三通信技术有限公司 Network convergence method and device in virtual private local area network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223660B (en) * 2011-08-02 2013-10-09 华为技术有限公司 Method and device for controlling switching of active/standby pseudo wires
CN103475587A (en) * 2013-09-06 2013-12-25 华为技术有限公司 MAC address learning method and core switching nodes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119252A (en) * 2006-08-01 2008-02-06 华为技术有限公司 Access network system, access device, ARP proxy and IP bridging connection forwarding method
CN101820397A (en) * 2010-05-25 2010-09-01 杭州华三通信技术有限公司 Network convergence method and device in virtual private local area network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015032349A1 (en) * 2013-09-06 2015-03-12 华为技术有限公司 Mac address learning method and core switching nodes
CN113497985A (en) * 2020-04-01 2021-10-12 上海诺基亚贝尔股份有限公司 Method and device for reporting MAC (media Access control) update of user
CN113497985B (en) * 2020-04-01 2024-04-05 上海诺基亚贝尔股份有限公司 Method and device for reporting MAC update of user

Also Published As

Publication number Publication date
WO2015032349A1 (en) 2015-03-12

Similar Documents

Publication Publication Date Title
US9178795B2 (en) Method and ethernet switching device for detecting loop position in ethernet
WO2016023436A1 (en) Fault detection method for virtual router redundancy protocol and router device
CN101667963B (en) Link switching method and device
JP2011130155A (en) Switching hub, line card, and frame relay method
CN101710875A (en) Method and device for realizing rapid re-routing
CN104283738A (en) Link detecting method and device
CN102546389A (en) Method and device for flow trusteeship of cross-data center
CN101984600A (en) Graceful restart method, equipment and system of routing protocol
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
JP5491623B2 (en) Address refresh method and system
CN103581025A (en) Method and system for processing routing information and equipment
JP2007151041A (en) Interconnection switching hub
CN102546855A (en) MAC (Media Access Control) address withdrawing method in VPLS (Virtual Private Local Area Network Service) network and PE (Provider Edge) equipment
CN102143060A (en) Method and device for building primary pseudowire and spare pseudowire
CN103414642A (en) Maintaining method and device of information forwarding
CN101702684B (en) Method for realizing to refresh Ethernet ring network forwarding database and device
CN103475587A (en) MAC address learning method and core switching nodes
WO2016177241A1 (en) Method and device for selecting backup designated router and processing fault of designated router
CN102170384B (en) Method for processing faults of intersected Ethernet ring and nodes
JP6190281B2 (en) Relay system and switch device
JP2014140095A (en) Communication system and network relay device
CN111683160A (en) MAC address recovery method and device
CN102868616A (en) Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system
CN104601381A (en) Method and equipment for preventing flow interruption
CN101888340B (en) Method for refreshing regional addresses of subring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131225