CN102821169B - A kind of method that in network, MAC Address list item creates and the network equipment - Google Patents

A kind of method that in network, MAC Address list item creates and the network equipment Download PDF

Info

Publication number
CN102821169B
CN102821169B CN201210284918.4A CN201210284918A CN102821169B CN 102821169 B CN102821169 B CN 102821169B CN 201210284918 A CN201210284918 A CN 201210284918A CN 102821169 B CN102821169 B CN 102821169B
Authority
CN
China
Prior art keywords
network equipment
mac address
list item
address list
network
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.)
Active
Application number
CN201210284918.4A
Other languages
Chinese (zh)
Other versions
CN102821169A (en
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 CN201210284918.4A priority Critical patent/CN102821169B/en
Publication of CN102821169A publication Critical patent/CN102821169A/en
Application granted granted Critical
Publication of CN102821169B publication Critical patent/CN102821169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of method creating MAC Address list item in network, the method comprises: described first network equipment receives the two-layer protocol message that described second network sends, and described two-layer protocol message carries the MAC Address of described second network equipment; Described first network equipment creates the second MAC Address list item of corresponding described second network equipment at control plane, and the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item.The embodiment of the present invention additionally provides a kind of network equipment, by the technical scheme that the embodiment of the present invention provides, when described first network equipment initiates MAC to described second network equipment? during Trace, after the MAC Address list item of the correspondence of forwarding plane described second network equipment is aging, LTM forwarding is carried out by the MAC Address list item of the described second network equipment of the correspondence of control plane, thus increase the possibility that LTM normally forwards, improve MAC? the accuracy of Trace fault location.

Description

A kind of method that in network, MAC Address list item creates and the network equipment
Technical field
The embodiment of the present invention relates to communication technical field, particularly relate to medium education in a kind of network (English full name is MediaAccessControl, and English abbreviation is MAC) address list item create method and the network equipment.
Background technology
Along with the appearance of carrier ethernet, Ethernet has now become a kind of carrier class networks standard.Extremely important to abort situation location in ethernet networks.The network equipment in Ethernet is in order to fast-forwarding message, need learn at forwarding plane and safeguard mac address table, the MAC Address that the list item of mac address table comprises other network equipments be connected with this network equipment, the port numbers of this network equipment be connected with other network equipments and the VLAN identify label (VLANID, VirtualLocalAreaNetworkIdentify) belonging to other network equipments.Mac address table makes this network equipment can accurately find outgoing interface for the message forwarded, and need not carry out broadcast forwarding.The mac address table be stored on this network equipment is provided with ageing time, the effect arranging this ageing time is: when certain MAC Address list item does not receive the message upgrading this MAC Address list item again in the ageing time arranged, then delete this MAC Address list item, namely aging fall this MAC Address list item.Because this mac address table of forwarding plane will be used to guide forwarding, after the network equipment that MAC Address in certain MAC Address list item is corresponding breaks down, this MAC Address list item reality is invalid, the problem of network storm that guidance in order to avoid invalid MAC Address list item mistake in a network forwards and brings, this invalid MAC Address list item needs aging as early as possible, so the ageing time of the mac address table arranged in prior art is general all shorter, the shortlyest about 60 seconds can be arranged on.In the abort situation position fixing process of Ethernet, usual use medium education follows the tracks of (MACTrace), specifically can see the definition of IEEE802.1ag, for example, network equipment A initiates MACTrace to network equipment D in ethernet networks, network equipment A can send connection tracking request message to network equipment D, and (English full name is LinktraceMessage, English abbreviation is LTM), detect from the malfunctioning node position network equipment A to network equipment D, successively also through network equipment B and network equipment C between network equipment A and network equipment D, when network equipment C breaks down, the MAC Address list item of the network equipment D of the correspondence stored at the forwarding plane of network equipment A and network equipment B also do not have aging before, described LTM is sent to network equipment B by the MAC Address list item of the map network equipment D inquiring about forwarding plane by network equipment A, (English full name is LinktraceReply to send connection tracking response to network equipment A after network equipment B receives described LTM, English abbreviation is LTR) message, the MAC Address list item of the map network equipment D that network equipment B is stored by the forwarding plane of inquiry own, described LTM is forwarded to network equipment C, due to network equipment C fault, network equipment C can not respond LTR message, network equipment A judges the LTR message receiving network equipment B transmission, and do not receive the LTR message of network equipment C transmission, then determine that network equipment C breaks down.But the accuracy of MACTrace fault location is confined to the ageing time of mac address table, because the guidance wrong in a network in order to avoid invalid MAC Address list item forwards the problem of the network storm caused, the ageing time of the mac address table arranged in prior art is all shorter, when the ageing time of mac address table is shorter, after network equipment C breaks down, the MAC Address list item of the map network equipment C that network equipment A and network equipment B stores can be aging very soon, after the MAC Address list item of map network equipment C is aging, when network equipment A initiates MACTrace to network equipment D again, the LTR message of network equipment B can not be received again, can not accurate locating network fault position.
Summary of the invention
Embodiments provide method and the network equipment that in a kind of network, MAC Address list item creates, by creating the MAC Address list item of map network equipment at control plane, be conducive to the accuracy improving MACTrace fault location in prior art.
First aspect, the method that the MAC Address list item providing a kind of network central control preparative layer face creates, described network at least comprises first network equipment and second network equipment, the forwarding plane of described first network equipment preserves the first MAC Address list item of corresponding described second network equipment, and described method comprises:
Described first network equipment receives the two-layer protocol message that described second network sends, and described two-layer protocol message carries the MAC Address of described second network equipment;
Described first network equipment creates the second MAC Address list item of corresponding described second network equipment at control plane, and the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item.
In the first possible implementation of described first aspect; described first network equipment and described second network equipment run described two-layer protocol in advance, and described two-layer protocol is Huawei Group Management Protocol HGMP or Spanning-Tree Protocol STP or rapid ring protection protocol RRPP.
In the first possible implementation of described first aspect or described first aspect, additionally provide the implementation that the second of described first aspect is possible, described two-layer protocol message carries the device name of described second network equipment, correspondingly, the device name of described second network equipment is also preserved in described second MAC Address list item.
In the implementation that the second of described first aspect is possible, additionally provide the third possible implementation of described first aspect, the device name that described two-layer protocol message carries described second network equipment comprises:
The device name of described second network equipment is carried in the message net load Payload field of the Ether frame structure of described two-layer protocol message.
In any one possible implementation aforementioned of described first aspect or described first aspect, additionally provide the 4th kind of possible implementation of described first aspect, the target MAC (Media Access Control) address of described two-layer protocol message is multicast mac address or broadcast MAC address.
In any one possible implementation aforementioned of described first aspect or described first aspect, additionally provide the 5th kind of possible implementation of described first aspect, described method also comprises:
Described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment by described first network equipment.
Described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment.
Second aspect, the first network equipment that the MAC Address list item providing a kind of network central control preparative layer face creates, described network at least comprises described first network equipment and second network equipment, the forwarding plane of described first network equipment preserves the first MAC Address list item of corresponding described second network equipment, and described first network equipment comprises:
Receiving element, for receiving the two-layer protocol message that described second network sends, described two-layer protocol message carries the MAC Address of described second network equipment;
Processing unit, create the second MAC Address list item of corresponding described second network equipment at control plane for the described two-layer protocol message that receives according to described receiving element, the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item;
Memory cell, for storing the described second MAC Address list item that described processing unit creates.
In the first possible implementation of described second aspect, described first network equipment also comprises:
Transmitting element, for being forwarded to other network equipments be connected with described first network equipment by described two-layer protocol message.
To sum up, embodiments provide method and the network equipment that in a kind of network, MAC Address list item creates, by the technical scheme that the embodiment of the present invention provides, in network, first network equipment creates the MAC Address list item of corresponding second network at control plane, the ageing time point of the MAC Address list item at the corresponding described second network equipment of forwarding plane is later than at the ageing time point of the described MAC Address list item of control plane establishment, when described first network equipment initiates MACTrace to described second network equipment, or described first network equipment receives other network equipments when initiating the LTM of MACTrace to described second network equipment, after the MAC Address list item of the correspondence of forwarding plane described second network equipment is aging, LTM forwarding is carried out by the MAC Address list item of the described second network equipment of the correspondence of control plane, thus increase the possibility that LTM normally forwards, improve the accurate fault location possibility of MACTrace.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is MAC Address list item creation method schematic flow sheet in a kind of network of providing of the embodiment of the present invention;
Fig. 2 is Ether frame structure network schematic diagram in the HGMP message that provides of the embodiment of the present invention;
Fig. 3 is a kind of networking structure of the network schematic diagram that the embodiment of the present invention provides
Fig. 4 is the first network equipment schematic diagram in a kind of network of providing of the embodiment of the present invention;
Fig. 5 is a kind of implementation schematic diagram of the first network in a kind of network of providing of the embodiment of the present invention shown in Fig. 4;
Fig. 6 is the first network equipment schematic diagram in the another kind of network that provides of the embodiment of the present invention;
Fig. 7 is a kind of implementation schematic diagram of the first network in the another kind of network that provides of the embodiment of the present invention shown in Fig. 6.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, 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 described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, embodiments provide a kind of method that in network, MAC Address list item creates, described network at least comprises first network equipment and second network equipment, the forwarding plane of described first network equipment preserves the first MAC Address list item of corresponding described second network equipment, and described method comprises content.
102, described first network equipment receives the two-layer protocol message that described second network sends, and described two-layer protocol message carries the MAC Address of described second network equipment;
104, described first network equipment creates the second MAC Address list item of corresponding described second network equipment at control plane, and the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item.
Described first network equipment and described second network equipment run described two-layer protocol in advance; alternatively; described two-layer protocol can (English full name be HuaweiGroupManagementProtocol for Huawei Group Management Protocol; English abbreviation is HGMP) or Spanning-Tree Protocol (English full name is SpanningTreeProtocol; English abbreviation is STP) or rapid ring protection protocol (English full name is RapidRingProtectionProtocol, and English abbreviation is RRPP).
Alternatively, described two-layer protocol message carries the device name of described second network equipment, correspondingly, also preserves the device name of described second network equipment in described second MAC Address list item.The benefit of preserving the device name of described second network equipment in described second MAC Address list item is, when network manager initiates MACTrace by described first network equipment to described second network equipment, when order line input command, network manager can use the device name of described second network equipment that is easy to use and that remember to act on behalf of the MAC Address of described second network equipment, thus avoid the problem difficult in maintenance using the MAC Address being difficult to the network equipment remembered and identify to bring, improve the flexibility of network operation.
Alternatively, the device name that described two-layer protocol message carries described second network equipment comprises:
The device name of described second network equipment is carried in the message net load Payload field of the Ether frame structure of described two-layer protocol message.
Carry the device name of described second network equipment for HGMP message, as shown in Figure 2, Fig. 2 is the ethernet frame structural representation in HGMP message, wherein:
MAC Address field for the purpose of DA_MAC, takies 6 bytes (bytes);
SA_MAC is source MAC field, takies 6bytes, in embodiments of the present invention SA_MAC field value be embodiment illustrated in fig. 1 in the MAC Address of described second network equipment;
MgmtVLANTag is administrative vlan label (English full name is ManagementVirtualLocalAreaNetworkTag) field, takies 4bytes;
ProtocolType is protocol type field, takies 2bytes, and for HGMP message, described ProtocolType field value is 0x88A7;
PacketType is type of message field, take 4bytes, described packet type field value is the value being different from other existing type of messages in embodiments of the present invention, such as, described PacketType can value be 0x00080000, for identify embodiment illustrated in fig. 1 in described two-layer protocol message comprise the device name of described second network equipment;
Payload is message net load field, takies byte number variable, and described Payload field deposits the device name of described second network equipment in embodiments of the present invention;
FSC is Frame Check Sequence (English full name is FrameCheckSequence), takies 4bytes.
The device name of described second network equipment is carried on the mode of the two-layer protocol message of other types and HGMP message bearing mode seemingly, is also the device name carrying the described egress network equipment in Payload field.
Alternatively, the MAC Address of described second network equipment can be advertised to by the mode initiatively noticed other network equipments comprising described first network equipment by described second network equipment, or the device name of the MAC Address of described second network equipment and described second network equipment is advertised to other network equipments comprising described first network equipment, in this manner, DA_MAC field in described two-layer protocol message can value be multicast mac address or broadcast MAC address, the mode that described second network equipment can adopt timing to notice, such as, initiatively notice once every 10 minutes or 20 minutes.
Alternatively, the described second MAC Address list item created at control plane can be stored in internal memory, also can be stored in the external memory storage of described first network equipment in the mode of file, described external memory storage can be: hard disk or flash memory (English full name is CompactFlash, and English abbreviation is CF) card etc.
Alternatively, described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment by described first network equipment.After receiving the described two-layer protocol message that described second network equipment sends with multicast or the forms of broadcasting, described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment by described first network equipment, thus the network equipment that can realize in whole network can realize the MAC Address list item setting up corresponding described second network equipment at control plane.
Because described second MAC Address list item leaves control plane in, be not used in traffic forwarding, after described second network equipment breaks down, also can not store due to control plane the problem that invalid described second MAC Address list item causes network storm for a long time, therefore, the ageing time that can arrange described second MAC Address list item when specific implementation can be longer than the ageing time of described first MAC Address list item a lot, specifically, if the ageing time of described first MAC Address list item is 1 minute, the ageing time of described second MAC Address list item can be set to 1 day or 1 week or 1 month, ensure that the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item, when described first network equipment initiates MACTrace to described second network equipment, or described first network equipment receives other network equipments when initiating the LTM of MACTrace to described second network equipment, after the MAC Address list item of the correspondence described second network equipment preserved at forwarding plane is aging, the MAC Address list item of correspondence described second network equipment preserved at control plane also do not have aging before, the MAC Address list item of the described second network of the correspondence of being preserved by control plane carries out LTM forwarding, thus increase the possibility that LTM normally forwards, improve the accurate fault location possibility of MACTrace.
For the beneficial effect of the more detailed description embodiment of the present invention, for example bright below, as shown in Figure 3, Fig. 3 is a kind of common internetwork connection mode in network, network equipment A is connected with network equipment C by network equipment B with network equipment D, network equipment A, network equipment B and network equipment C creates the MAC Address list item of corresponding described network equipment D in advance respectively at respective forwarding plane, the MAC Address of network equipment D is sent to network equipment A by two-layer protocol message by network equipment D, network equipment B and network equipment C, network equipment A, network equipment B and network equipment C creates the MAC Address list item of corresponding described network equipment D respectively at control plane, and the ageing time arranging the MAC Address list item of the map network equipment D of control plane is respectively longer than the MAC Address list item of forwarding plane map network equipment D, ensure that the ageing time point of the MAC Address list item of the map network equipment D of control plane is later than the ageing time point of the MAC Address list item of forwarding plane map network equipment D, such as, the ageing time of the MAC Address list item of the map network equipment D of forwarding plane is 1 minute, the ageing time of the MAC Address list item of the map network equipment D of control plane is 1 month, after network equipment C breaks down 10 minutes and in 1 month, network equipment A, on network equipment B and network equipment C, the MAC Address list item of the described network equipment D of correspondence that forwarding plane is preserved will be aging, network manager finds there is problem from network equipment A to the communication of network equipment D, network equipment A initiates MACTrace to network equipment D and carrys out fault location, network equipment A can send LTM to network equipment D, due to network equipment A, on network equipment B and network equipment C, the MAC Address list item of the correspondence described network equipment D that control plane creates is also not aging, described LTM message can be sent to network equipment B normally, network equipment B can respond LTR message to network equipment A, described LTM is forwarded to network equipment C according to the MAC Address list item of the map network equipment D that its control plane is preserved by network equipment B, but because network equipment C breaks down, network equipment C can not send LTR message to network equipment A, network manager receives the LTR message of network equipment B, and do not receive the LTR of network equipment C, can judge that network equipment C breaks down or link failure between network equipment B and network equipment C.
Visible, the method that in a kind of network provided by the embodiment of the present invention, MAC Address list item creates, the mac address table of corresponding described second network equipment is preserved at control plane at described first network equipment, and ensure that the ageing time point of the MAC Address of the correspondence described second network equipment that control plane is preserved is later than the ageing time point of the MAC Address list item of the described second network equipment of correspondence preserved at forwarding plane, when described first network equipment initiates MACTrace to described second network equipment, or described first network equipment receives other network equipments when initiating the LTM of MACTrace to described second network equipment, after the MAC Address list item of the correspondence described second network equipment preserved at forwarding plane is aging, the MAC Address list item of correspondence described second network equipment preserved at control plane also do not have aging before, the MAC Address list item of the described second network equipment of the correspondence of being preserved by control plane carries out LTM forwarding, thus increase the possibility that LTM normally forwards, improve the accurate fault location possibility of MACTrace.
See Fig. 4, embodiments provide the first network equipment 402 that in a kind of network, MAC Address list item creates, described network at least comprises described first network equipment 402 and second network equipment, the forwarding plane of described first network equipment 402 preserves the first MAC Address list item of corresponding described second network equipment in advance, and described first network equipment 402 comprises:
Receiving element 404, for receiving the two-layer protocol message that described second network sends, described two-layer protocol message carries the MAC Address of described second network equipment;
Processing unit 406, create the second MAC Address list item of corresponding described second network equipment at control plane for the described two-layer protocol message that receives according to described receiving element, the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item;
Memory cell 408, for storing the described second MAC Address list item that described processing unit 406 creates.
Described first network equipment 402 and described second network equipment run described two-layer protocol in advance, and alternatively, described two-layer protocol can HGMP or STP or RRPP.
Alternatively, described two-layer protocol message carries the device name of described second network equipment, correspondingly, also preserves the device name of described second network equipment in described second MAC Address list item.The benefit of preserving the device name of described second network equipment in described second MAC Address list item is, when network manager initiates MACTrace by described first network equipment 402 to described second network equipment, when order line input command, network manager can use the device name of described second network equipment that is easy to use and that remember to act on behalf of the MAC Address of described second network equipment, thus avoid the problem difficult in maintenance using the MAC Address being difficult to the network equipment remembered and identify to bring, improve the flexibility of network operation.
Alternatively, the device name that described two-layer protocol message carries described second network equipment comprises:
The device name of described second network equipment is carried in the message net load Payload field of the Ether frame structure of described two-layer protocol message, and concrete bearing mode describes in the embodiment that Fig. 1 is corresponding, is not repeating herein.
Alternatively, the MAC Address of described second network equipment can be advertised to by the mode initiatively noticed other network equipments comprising described first network equipment 402 by described second network equipment, or the device name of the MAC Address of described second network equipment and described second network equipment is advertised to other network equipments comprising described first network equipment 402, in this manner, DA_MAC field in described two-layer protocol message can value be multicast mac address or broadcast MAC address, the mode that described second network equipment can adopt timing to notice, such as, initiatively notice once every 10 minutes or 20 minutes.
Alternatively, the described second MAC Address list item created at control plane can be stored in internal memory, and also can be stored in the external memory storage of described first network equipment 402 in the mode of file, described external memory storage can be: hard disk or CF card etc.
Alternatively, see Fig. 5, described first network equipment 502 also comprises:
Transmitting element 502, for being forwarded to other network equipments be connected with described first network equipment 402 by described two-layer protocol message.After receiving the described two-layer protocol message that described second network equipment sends with multicast or the forms of broadcasting, described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment 402 by described transmitting element 502, thus the network equipment that can realize in whole network can realize the MAC Address list item setting up corresponding described second network equipment at control plane.
Because described second MAC Address list item leaves control plane in, be not used in traffic forwarding, after described second network equipment breaks down, also can not store due to control plane the problem that invalid described second MAC Address list item causes network storm for a long time, therefore, the ageing time that can arrange described second MAC Address list item when specific implementation can be longer than the ageing time of described first MAC Address list item a lot, specifically, if the ageing time of described first MAC Address list item is 1 minute, the ageing time of described second MAC Address list item can be set to 1 day or 1 week or 1 month, ensure that the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item, when described first network equipment 402 initiates MACTrace to described second network equipment, or described first network equipment 402 receives other network equipments when initiating the LTM of MACTrace to described second network equipment, after the MAC Address list item of the correspondence described second network equipment preserved at forwarding plane is aging, the MAC Address list item of correspondence described second network equipment preserved at control plane also do not have aging before, the MAC Address list item of the described second network of the correspondence of being preserved by control plane carries out LTM forwarding, thus increase the possibility that LTM normally forwards, improve the accurate fault location possibility of MACTrace.
See Fig. 6, embodiments provide the first network equipment 602 that in a kind of network, MAC Address list item creates, described network at least comprises described first network equipment 602 and second network equipment, the forwarding plane of described first network equipment 602 preserves the first MAC Address list item of corresponding described second network equipment in advance, and described first network equipment 602 comprises:
Receiver 604, for receiving the two-layer protocol message that described second network sends, described two-layer protocol message carries the MAC Address of described second network equipment;
Processor 606, for the described two-layer protocol message received according to described receiver 604, create the second MAC Address list item of corresponding described second network equipment at control plane, the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item;
Memory 608, for storing the described second MAC Address list item that described processor 606 creates.
Described first network equipment 602 and described second network equipment run described two-layer protocol in advance, and alternatively, described two-layer protocol can HGMP or STP or RRPP.
Alternatively, described two-layer protocol message carries the device name of described second network equipment, correspondingly, also preserves the device name of described second network equipment in described second MAC Address list item.The benefit of preserving the device name of described second network equipment in described second MAC Address list item is, when network manager initiates MACTrace by described first network equipment 602 to described second network equipment, when order line input command, network manager can use the device name of described second network equipment that is easy to use and that remember to act on behalf of the MAC Address of described second network equipment, thus avoid the problem difficult in maintenance using the MAC Address being difficult to the network equipment remembered and identify to bring, improve the flexibility of network operation.
Alternatively, the device name that described two-layer protocol message carries described second network equipment comprises:
The device name of described second network equipment is carried in the message net load Payload field of the Ether frame structure of described two-layer protocol message, and concrete bearing mode describes in the embodiment that Fig. 1 is corresponding, is not repeating herein.
Alternatively, the MAC Address of described second network equipment can be advertised to by the mode initiatively noticed other network equipments comprising described first network equipment 602 by described second network equipment, or the device name of the MAC Address of described second network equipment and described second network equipment is advertised to other network equipments comprising described first network equipment 602, in this manner, DA_MAC field in described two-layer protocol message can value be multicast mac address or broadcast MAC address, the mode that described second network equipment can adopt timing to notice, such as, initiatively notice once every 10 minutes or 20 minutes.
Alternatively, described first network equipment 602 also comprises:
Transmitter 702, for being forwarded to other network equipments be connected with described first network equipment 702 by described two-layer protocol message.After receiving the described two-layer protocol message that described second network equipment sends with multicast or the forms of broadcasting, described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment 702 by described transmitter 702, thus the network equipment that can realize in whole network can realize the MAC Address list item setting up corresponding described second network equipment at control plane.
Because described second MAC Address list item leaves control plane in, be not used in traffic forwarding, after described second network equipment breaks down, also can not store due to control plane the problem that invalid described second MAC Address list item causes network storm for a long time, therefore, the ageing time that can arrange described second MAC Address list item when specific implementation can be longer than the ageing time of described first MAC Address list item a lot, specifically, if the ageing time of described first MAC Address list item is 1 minute, the ageing time of described second MAC Address list item can be set to 1 day or 1 week or 1 month, ensure that the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item, when described first network equipment 602 initiates MACTrace to described second network equipment, or described first network equipment 602 receives other network equipments when initiating the LTM of MACTrace to described second network equipment, after the MAC Address list item of the correspondence described second network equipment preserved at forwarding plane is aging, the MAC Address list item of correspondence described second network equipment preserved at control plane also do not have aging before, the MAC Address list item of the described second network of the correspondence of being preserved by control plane carries out LTM forwarding, thus increase the possibility that LTM normally forwards, improve the accurate fault location possibility of MACTrace.
Described first network equipment 602 can be router or switch.
Alternatively, above-mentioned processor 606 can (English full name be CentralProcessingUnit for central processing unit, English abbreviation is CPU), memory 608 can (English full name be RandomAccessMemory for random access memory, English abbreviation is RAM) internal storage of type also can be hard disk or CF card.Above-mentioned receiver 604 and transmitter 702 can comprise General Physics interface, described physical interface can be ether (Ethernet) interface or asynchronous transfer mode (English full name is AsynchronousTransferMode, and English abbreviation is ATM) interface.The receiver 604 of above-mentioned first network equipment 602, processor 606 and transmitter 608 can be integrated into one or more independently circuit or hardware, as: application-specific integrated circuit (ASIC) (English full name is ApplicationSpecificIntegratedCircuit, and English abbreviation is ASIC).
Visible, the first network equipment 602 that in a kind of network provided by the embodiment of the present invention, MAC Address list item creates, the mac address table of corresponding described second network equipment is preserved at control plane at described first network equipment 602, and the ageing time time point arranging the MAC Address of the correspondence described second network equipment that control plane is preserved is later than the ageing time point of the MAC Address list item of the described second network equipment of correspondence preserved at forwarding plane, when described first network equipment 602 initiates MACTrace to described second network equipment, or described first network equipment 602 receives other network equipments when initiating the LTM of MACTrace to described second network equipment, after the MAC Address list item of the correspondence described second network equipment preserved at forwarding plane is aging, the MAC Address list item of correspondence described second network equipment preserved at control plane also do not have aging before, the MAC Address list item of the described second network equipment of the correspondence of being preserved by control plane carries out LTM forwarding, thus increase the possibility that LTM normally forwards, improve the accurate fault location possibility of MACTrace.
" first " in the first network equipment mentioned in the embodiment of the present invention, the first MAC Address list item is only used to do name identification, does not represent first in order; " second " of second network equipment and the second MAC Address list item is also only used to do name identification, does not represent second in order.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, foregoing routine can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: read-only memory (English full name is read-onlymemory, and English abbreviation is ROM), RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to exemplary illustration technical scheme of the present invention, be not intended to limit; Although be described in detail the beneficial effect that the present invention and the present invention bring with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.

Claims (5)

1. the method that in a network, MAC address list item creates, it is characterized in that, described network at least comprises first network equipment and second network equipment, the forwarding plane of described first network equipment preserves the first MAC Address list item of corresponding described second network equipment, and described method comprises:
Described first network equipment receives the two-layer protocol message that described second network equipment sends, described two-layer protocol message carries the MAC Address of described second network equipment, and the target MAC (Media Access Control) address of described two-layer protocol message is multicast mac address or broadcast MAC address;
Described first network equipment creates the second MAC Address list item of corresponding described second network equipment at control plane, and the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item;
Described two-layer protocol message is forwarded to other network equipments be connected with described first network equipment by described first network equipment.
2. method according to claim 1; it is characterized in that; described first network equipment and described second network equipment run described two-layer protocol in advance, and described two-layer protocol is Huawei Group Management Protocol HGMP or Spanning-Tree Protocol STP or rapid ring protection protocol RRPP.
3. method according to claim 1 and 2, is characterized in that, described two-layer protocol message carries the device name of described second network equipment, correspondingly, also preserves the device name of described second network equipment in described second MAC Address list item.
4. method according to claim 3, is characterized in that, the device name that described two-layer protocol message carries described second network equipment comprises:
The device name of described second network equipment is carried in the message net load Payload field of the Ether frame structure of described two-layer protocol message.
5. the first network equipment in a network, it is characterized in that, described network at least comprises described first network equipment and second network equipment, and the forwarding plane of described first network equipment preserves the first MAC Address list item of corresponding described second network equipment, and described first network equipment comprises:
Receiving element, for receiving the two-layer protocol message that described second network equipment sends, described two-layer protocol message carries the MAC Address of described second network equipment, and the target MAC (Media Access Control) address of described two-layer protocol message is multicast mac address or broadcast MAC address;
Processing unit, create the second MAC Address list item of corresponding described second network equipment at control plane for the described two-layer protocol message that receives according to described receiving element, the ageing time point of described second MAC Address list item is later than the ageing time point of described first MAC Address list item;
Memory cell, for storing the described second MAC Address list item that described processing unit creates;
Transmitting element, for being forwarded to other network equipments be connected with described first network equipment by described two-layer protocol message.
CN201210284918.4A 2012-08-10 2012-08-10 A kind of method that in network, MAC Address list item creates and the network equipment Active CN102821169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210284918.4A CN102821169B (en) 2012-08-10 2012-08-10 A kind of method that in network, MAC Address list item creates and the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210284918.4A CN102821169B (en) 2012-08-10 2012-08-10 A kind of method that in network, MAC Address list item creates and the network equipment

Publications (2)

Publication Number Publication Date
CN102821169A CN102821169A (en) 2012-12-12
CN102821169B true CN102821169B (en) 2015-12-09

Family

ID=47305021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210284918.4A Active CN102821169B (en) 2012-08-10 2012-08-10 A kind of method that in network, MAC Address list item creates and the network equipment

Country Status (1)

Country Link
CN (1) CN102821169B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426858B (en) * 2013-08-26 2018-03-23 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107528929B (en) * 2016-06-21 2021-05-14 中兴通讯股份有限公司 ARP (Address resolution protocol) entry processing method and device
CN113075487A (en) * 2021-03-31 2021-07-06 读书郎教育科技有限公司 Method for controlling aging test duration in factory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466340A (en) * 2002-06-24 2004-01-07 �人��������������ι�˾ Method for forwarding data by strategic stream mode and data forwarding equipment
CN101043329A (en) * 2006-06-15 2007-09-26 华为技术有限公司 Method and system for protecting network attack
CN101958938A (en) * 2010-06-01 2011-01-26 福建星网锐捷网络有限公司 Learning method and device of MAC address table based on network processor
CN102123106A (en) * 2011-04-21 2011-07-13 杭州华三通信技术有限公司 MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233867A1 (en) * 2006-03-28 2007-10-04 Narasimhan Ganapathiraman Method and apparatus for preserving MAC addresses across a reboot
JP4918862B2 (en) * 2007-01-05 2012-04-18 富士通株式会社 Link trace frame transfer program, link trace frame transfer apparatus, and link trace frame transfer method
CN101610221B (en) * 2009-07-23 2011-08-03 杭州华三通信技术有限公司 IP unicast smoothly switching method during STP switch and device thereof
US8660132B2 (en) * 2010-06-28 2014-02-25 Avaya Inc. Control plane packet processing and latency control
CN102111313A (en) * 2010-12-23 2011-06-29 中兴通讯股份有限公司 Method and device for automatically recovering access user table

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466340A (en) * 2002-06-24 2004-01-07 �人��������������ι�˾ Method for forwarding data by strategic stream mode and data forwarding equipment
CN101043329A (en) * 2006-06-15 2007-09-26 华为技术有限公司 Method and system for protecting network attack
CN101958938A (en) * 2010-06-01 2011-01-26 福建星网锐捷网络有限公司 Learning method and device of MAC address table based on network processor
CN102123106A (en) * 2011-04-21 2011-07-13 杭州华三通信技术有限公司 MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network

Also Published As

Publication number Publication date
CN102821169A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
US10693765B2 (en) Failure protection for traffic-engineered bit indexed explicit replication
CN103179228B (en) Internet Protocol address analytic method and fringe node
US8374164B2 (en) Detection of specific BFD path failures
US9001644B2 (en) Ethernet virtual private network system for providing fast protection for access rings
CN102422600B (en) Method provided in mixed nodes, network thereof and network units thereof
CN102301648B (en) Scaled ethernet OAM for mesh and hub-and-spoke networks
WO2018054397A1 (en) Service function chain detection path method and device
US10063464B2 (en) Protection switched source routing
CN101286922B (en) Signalling control method, system and apparatus
US20080101241A1 (en) Ethernet OAM at intermediate nodes in a PBT network
CN107231307B (en) Method, system and device for preventing traffic switching between subnetworks in data center architecture
CN102625986A (en) Method, device and network equipment for processing loops in two layer network
CN110601983A (en) Method and system for forwarding routing without sensing source of protocol
US10771374B2 (en) Delay measurement method and device
CN105024985A (en) Message processing method and apparatus
CN103475583B (en) The method and apparatus for removing medium education forwarding-table item
US7596083B2 (en) Network element recovery process
US10652145B2 (en) Managing data frames in switched networks
CN107026790B (en) A kind of transmission control method and equipment
JP2019521619A (en) Packet forwarding
CN101631069A (en) Method, system and equipment for pseudo wire parameter negotiation
CN110545229B (en) Message sending method and device in VXLAN axis networking mode
CN102821169B (en) A kind of method that in network, MAC Address list item creates and the network equipment
CN103457756B (en) A kind of loop path detection, Apparatus and system
US20080130503A1 (en) Method and system for forwarding ethernet frames over redundant networks with all links enabled

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant