CN102821169A - Method and network device for creating MAC (multi-access computer) address table items in network - Google Patents

Method and network device for creating MAC (multi-access computer) address table items in network Download PDF

Info

Publication number
CN102821169A
CN102821169A CN2012102849184A CN201210284918A CN102821169A CN 102821169 A CN102821169 A CN 102821169A CN 2012102849184 A CN2012102849184 A CN 2012102849184A CN 201210284918 A CN201210284918 A CN 201210284918A CN 102821169 A CN102821169 A CN 102821169A
Authority
CN
China
Prior art keywords
network equipment
mac address
network
list item
address list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102849184A
Other languages
Chinese (zh)
Other versions
CN102821169B (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

Images

Abstract

The embodiment of the invention provides a method for creating MAC (multi-access computer) address table items in a network, and the method comprises following steps that a first network device receives a layer-2 protocol message transmitted by a second network, and the layer-2 protocol message carries an MAC address of the second network device; and a first network device creates a second MAC address table item of the second network device on a control layer, and an aging time point of the second MAC address table item is later than that of the first MAC address items. The embodiment of the invention also provides a network device. Through the technical scheme provided by the embodiment of the invention, when the first network device launches a MAC trace to the second network device, after the MAC address table item of the second network device corresponding to the forwarding layer is already aged, and LTM (long-term memory) forwarding is conducted for the MAC address table items corresponding to the second network device on the control layer, so that the possibility for normal LTM forwarding can be improved, and the accuracy for MAC Trace to localize a fault position can be improved.

Description

The MAC Address list item is created in a kind of network the method and the network equipment
Technical field
The embodiment of the invention relates to communication technical field, relate in particular to that medium access control in a kind of network (English full name is Media Access Control, and English abbreviates MAC as) address list item creates the method and the network equipment.
Background technology
Along with the appearance of carrier class Ethernet, Ethernet has become a kind of carrier class networks standard at present.Extremely important to the abort situation location in Ethernet.The network equipment in the Ethernet is in order to E-Packet fast; Need and safeguard mac address table in forwarding plane study; The list item of mac address table comprises the MAC Address of other network equipments that link to each other with this network equipment, the port numbers and the VLAN identify label under other network equipments (VLAN ID, Virtual Local Area Network Identify) of this network equipment of being connected with other network equipments.Mac address table makes this network equipment accurately to find outgoing interface for the message of transmitting, and needn't broadcast forwarding.The mac address table that is stored on this network equipment is provided with ageing time; The effect that this ageing time is set is: when not receiving the message that upgrades this MAC Address list item again in the ageing time that certain MAC Address list item is being provided with; Then delete this MAC Address list item, this MAC Address list item promptly wears out.Because will being used for instructing, transmits this mac address table of forwarding plane; After the corresponding network equipment of MAC Address in certain MAC Address list item breaks down; This MAC Address list item reality is invalid, transmits and the problem of the network storm that brings for fear of the wrong guidance in network of invalid MAC Address list item, and it is aging as early as possible that this invalid MAC Address list item needs; So the ageing time of the mac address table that is provided with in the prior art is generally all shorter, weak point can be arranged on about 60 seconds.In the abort situation position fixing process of Ethernet, use the medium access control to follow the tracks of (MAC Trace) usually, specifically can be referring to the definition of IEEE 802.1ag; For instance; Network equipment A initiates MAC Trace to network equipment D in Ethernet, and network equipment A can send connection tracking request message (English full name is Linktrace Message, and English abbreviates LTM as) to network equipment D; Detection from network equipment A to the malfunctioning node position the network equipment D; Also pass through network equipment B and network equipment C between network equipment A and the network equipment D successively, when network equipment C breaks down, before the MAC Address list item of the network equipment D of the correspondence of the forwarding plane of network equipment A and network equipment B storage is also not aging; Network equipment A sends to network equipment B through the MAC Address list item of the map network equipment D of inquiry forwarding plane with said LTM; Network equipment B can send connection tracking response (English full name is Linktrace Reply, and English abbreviates LTR as) message to network equipment A after receiving said LTM, and network equipment B is through the MAC Address list item of the map network equipment D of the forwarding plane storage of inquiry own; Said LTM is forwarded to network equipment C; Because network equipment C fault, network equipment C will can not respond LTR message, and network equipment A judges the LTR message that receives network equipment B transmission; And do not receive the LTR message that network equipment C sends, confirm that then network equipment C breaks down.But the accuracy of MAC Trace fault location position is confined to the ageing time of mac address table; Owing to transmit the problem of the network storm that causes for fear of the wrong guidance in network of invalid MAC Address list item; The ageing time of the mac address table that is provided with in the prior art is all shorter; When the ageing time of mac address table more in short-term, after network equipment C broke down, the MAC Address list item of the map network equipment C of network equipment A and network equipment B storage can wear out very soon; After the MAC Address list item of map network equipment C wears out; Network equipment A when network equipment D initiates MAC Trace, can not receive the LTR message of network equipment B, accurately the locating network fault position more again.
Summary of the invention
The embodiment of the invention provides the method and the network equipment that the MAC Address list item is created in a kind of network, through create the MAC Address list item of map network equipment in the control aspect, helps improving the accuracy of MAC Trace fault location position in the prior art.
First aspect; The method of the MAC Address list item establishment of control aspect in a kind of network is provided; Said network comprises first network equipment and second network equipment at least; The forwarding plane of said first network equipment is preserved the first MAC Address list item of corresponding said second network equipment, and said method comprises:
Said first network equipment receives the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
Said first network equipment is at the second MAC Address list item of corresponding said second network equipment of control aspect establishment, and the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item.
In first kind of said first aspect possible implementation; Said first network equipment and said second network equipment move said two-layer protocol in advance, and said two-layer protocol is Huawei Group Management Protocol HGMP or Spanning-Tree Protocol STP or rapid ring protection protocol RRPP.
In first kind of said first aspect or said first aspect possible implementation; Second kind of possible implementation of said first aspect also is provided; Said two-layer protocol message is carried the device name of said second network equipment; The device name of correspondingly, also preserving said second network equipment in the said second MAC Address list item.
In second kind of said first aspect possible implementation, the third possible implementation of said first aspect also is provided, the device name that said two-layer protocol message is carried said second network equipment comprises:
The device name of said second network equipment is carried in the message net load Payload field of Ether frame structure of said two-layer protocol message.
In aforementioned any one possible implementation of said first aspect or said first aspect, the 4th kind of possible implementation of said first aspect also is provided, the target MAC (Media Access Control) address of said two-layer protocol message is multicast mac address or broadcasting MAC Address.
In aforementioned any one possible implementation of said first aspect or said first aspect, the 5th kind of possible implementation of said first aspect also is provided, said method also comprises:
Said first network equipment is forwarded to said two-layer protocol message other network equipments that link to each other with said first network equipment.
Said two-layer protocol message is forwarded to other network equipments that link to each other with said first network equipment.
Second aspect; First network equipment of the MAC Address list item establishment of control aspect in a kind of network is provided; Said network comprises said first network equipment and second network equipment at least; The forwarding plane of said first network equipment is preserved the first MAC Address list item of corresponding said second network equipment, and said first network equipment comprises:
Receiving element is used to receive the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
Processing unit; The said two-layer protocol message that is used for receiving according to said receiving element is created the second MAC Address list item of corresponding said second network equipment in the control aspect, and the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item;
Memory cell is used to store the said second MAC Address list item that said processing unit is created.
In first kind of said second aspect possible implementation, said first network equipment also comprises:
Transmitting element is used for said two-layer protocol message is forwarded to other network equipments that link to each other with said first network equipment.
To sum up; The embodiment of the invention provides the method and the network equipment that the MAC Address list item is created in a kind of network; The technical scheme that provides through the embodiment of the invention; First network equipment is created the MAC Address list item of corresponding second network in the network in the control aspect; The ageing time point of the said MAC Address list item of creating in the control aspect is later than the ageing time point at the MAC Address list item of corresponding said second network equipment of forwarding plane, and when said first network equipment is initiated MAC Trace to said second network equipment, perhaps said first network equipment receives other network equipments when said second network equipment is initiated the LTM of MAC Trace; After the MAC Address list item of corresponding said second network equipment of forwarding plane is aging; The MAC Address list item of corresponding said second network equipment through the control aspect carries out LTM to be transmitted, thereby has increased the normal possibility of transmitting of LTM, has improved the accurate fault location of MAC Trace position possibility.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; To do to introduce simply to the accompanying drawing of required use among the embodiment below; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a MAC Address list item creation method schematic flow sheet in a kind of network of providing of the embodiment of the invention;
Fig. 2 is an Ether frame structure network sketch map in the HGMP message that provides of the embodiment of the invention;
Fig. 3 is a kind of networking structure of the network sketch map that the embodiment of the invention provides
Fig. 4 is first network equipment sketch map in a kind of network of providing of the embodiment of the invention;
Fig. 5 is a kind of implementation sketch map of first network in a kind of network of providing of the embodiment of the invention shown in Figure 4;
Fig. 6 is first network equipment sketch map in the another kind of network that provides of the embodiment of the invention;
Fig. 7 is a kind of implementation sketch map of first network in the another kind of network that provides of the embodiment of the invention shown in Figure 6.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention will clearly be described, obviously; Described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Referring to Fig. 1; The embodiment of the invention provides the method that the MAC Address list item is created in a kind of network; Said network comprises first network equipment and second network equipment at least; The forwarding plane of said first network equipment is preserved the first MAC Address list item of corresponding said second network equipment, and said method comprises content.
102, said first network equipment receives the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
104, said first network equipment is at the second MAC Address list item of corresponding said second network equipment of control aspect establishment, and the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item.
Said first network equipment and said second network equipment move said two-layer protocol in advance; Alternatively; Said two-layer protocol can (English full name be Huawei Group Management Protocol for Huawei Group Management Protocol; English abbreviates HGMP as) or Spanning-Tree Protocol (English full name is Spanning Tree Protocol, and English abbreviates STP as) or rapid ring protection protocol (English full name is Rapid Ring Protection Protocol, and English abbreviates RRPP as).
Alternatively, said two-layer protocol message is carried the device name of said second network equipment, correspondingly, and the device name of also preserving said second network equipment in the said second MAC Address list item.The benefit of preserving the device name of said second network equipment in the said second MAC Address list item is; When the network manager passes through said first network equipment when said second network equipment is initiated MAC Trace; When the order line input command; The network manager can use the device name with said second network equipment of remembering easy to use to act on behalf of the MAC Address of said second network equipment; Thereby the problem difficult in maintenance that the MAC Address of having avoided using the network equipment that is difficult to remember and discerns brings, the flexibility that improved network operation.
Alternatively, the said two-layer protocol message device name of carrying said second network equipment comprises:
The device name of said second network equipment is carried in the message net load Payload field of Ether frame structure of said two-layer protocol message.
The device name of carrying said second network equipment with the HGMP message is example, and is as shown in Figure 2, and Fig. 2 is the ethernet frame structural representation in the HGMP message, wherein:
DA_MAC is the target MAC (Media Access Control) address field, takies 6 bytes (bytes);
SA_MAC is the source MAC field, takies 6bytes, and SA_MAC field value is the MAC Address of described second network equipment in embodiment illustrated in fig. 1 in embodiments of the present invention;
MgmtVLANTag is administrative vlan label (English full name is a Management Virtual Local Area Network Tag) field, takies 4bytes;
ProtocolType is a protocol type field, takies 2bytes, and for the HGMP message, said ProtocolType field value is 0x88A7;
PacketType is the type of message field; Take 4bytes; Said in embodiments of the present invention packet type field value is the value that is different from other existing type of messages; For example, said PacketType can value be 0x00080000, is used for identifying the device name that said two-layer protocol message embodiment illustrated in fig. 1 comprises said second network equipment;
Payload is a message net load field, and it is variable to take byte number, and said in embodiments of the present invention Payload field is deposited the device name of said second network equipment;
FSC is Frame Check Sequence (English full name is Frame Check Sequence), takies 4bytes.
The device name of said second network equipment be carried on other types two-layer protocol message mode and HGMP message bearing mode seemingly, also be the device name of in the Payload field, carrying the said place end network equipment.
Alternatively; Said second network equipment can be announced the MAC Address of said second network equipment to other network equipments that comprise said first network equipment through the mode of initiatively announcement; Perhaps the MAC Address of said second network equipment and the device name of said second network equipment are announced to other network equipments that comprise said first network equipment; Under this mode, the DA_MAC field in the said two-layer protocol message can value be multicast mac address or broadcasting MAC Address, and said second network equipment can adopt the regularly mode of announcement; For example, whenever initiatively announced once at a distance from 10 minutes or 20 minutes.
Alternatively; The said second MAC Address list item of creating in the control aspect can be stored in the internal memory; Also can be stored in the mode of file in the external memory storage of said first network equipment; Said external memory storage can for: hard disk or flash memory (English full name is Compact Flash, and English abbreviates CF as) card etc.
Alternatively, said first network equipment is forwarded to said two-layer protocol message other network equipments that link to each other with said first network equipment.After receiving the said two-layer protocol message of said second network equipment with multicast or forms of broadcasting transmission; Said first network equipment is forwarded to other network equipments that link to each other with said first network equipment with said two-layer protocol message, thereby can realize that the network equipment in the whole network can both be implemented in the MAC Address list item that the control aspect is set up corresponding said second network equipment.
Because the said second MAC Address list item leaves the control aspect in; Being not used in flow transmits; After said second network equipment breaks down; The problem that also can not cause network storm owing to the invalid said second MAC Address list item of key-course face length time storage; Therefore, the ageing time that the said second MAC Address list item can be set when concrete the realization can be long more a lot of than the ageing time of the said first MAC Address list item, specifically; If the ageing time of the said first MAC Address list item is 1 minute; The ageing time of the said second MAC Address list item can be set to 1 day or 1 week or 1 month, guaranteed that the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item, when said first network equipment is initiated MAC Trace to said second network equipment; Perhaps said first network equipment receives other network equipments when said second network equipment is initiated the LTM of MAC Trace; After the MAC Address list item of corresponding said second network equipment that forwarding plane is preserved was aging, before the MAC Address list item of corresponding said second network equipment that the control aspect is preserved was also not aging, the MAC Address list item of corresponding said second network through the preservation of control aspect carried out the LTM forwarding; Thereby increased the normal possibility of transmitting of LTM, improved the accurate fault location of MAC Trace position possibility.
Beneficial effect for the more detailed explanation embodiment of the invention; Bright for instance below; As shown in Figure 3; Fig. 3 is a kind of common internetwork connection mode in the network; Network equipment A is connected with network equipment C through network equipment B with network equipment D; Network equipment A, network equipment B and network equipment C have created the MAC Address list item of corresponding said network equipment D in advance respectively at forwarding plane separately; Network equipment D sends to network equipment A, network equipment B and network equipment C through two-layer protocol message with the MAC Address of network equipment D, and network equipment A, network equipment B and network equipment C create the MAC Address list item of corresponding said network equipment D respectively in the control aspect, and the ageing time of MAC Address list item that the map network equipment D of control aspect is set respectively is longer than the MAC Address list item of forwarding plane map network equipment D; The ageing time point of the MAC Address list item of the map network equipment D of assurance control aspect is later than the ageing time point of the MAC Address list item of forwarding plane map network equipment D; For example, the ageing time of the MAC Address list item of the map network equipment D of forwarding plane is 1 minute, and the ageing time of the MAC Address list item of the map network equipment D of control aspect is 1 month; After network equipment C broke down 10 minutes and in 1 month; The MAC Address list item that network equipment A, network equipment B and network equipment C go up the corresponding said network equipment D of forwarding plane preservation will be worn out, and the network manager finds that the communication from network equipment A to network equipment D has problem, on network equipment A, initiates MAC Trace to network equipment D and comes the fault location position; Network equipment A can send LTM to network equipment D; Because network equipment A, network equipment B and network equipment C go up the MAC Address list item of the corresponding said network equipment D of control aspect establishment and also do not wear out, said LTM message can send to network equipment B normally, and network equipment B can respond LTR message to network equipment A; Network equipment B is forwarded to network equipment C according to the MAC Address list item of the map network equipment D that its control aspect is preserved with said LTM; But because network equipment C breaks down, network equipment C will can not send LTR message to network equipment A, and the 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 network equipment B and network equipment C between link break down.
It is thus clear that; The method that the MAC Address list item is created in a kind of network that provides through the embodiment of the invention; Preserve the mac address table of corresponding said second network equipment in the control aspect at said first network equipment; And the ageing time point that guarantees the MAC Address of corresponding said second network equipment that the control aspect is preserved is later than the ageing time point of the MAC Address list item of corresponding said second network equipment of preserving at forwarding plane; When said first network equipment is initiated MAC Trace to said second network equipment; Perhaps said first network equipment receives other network equipments when said second network equipment is initiated the LTM of MAC Trace; After the MAC Address list item of corresponding said second network equipment that forwarding plane is preserved was aging, before the MAC Address list item of corresponding said second network equipment that the control aspect is preserved was also not aging, the MAC Address list item of corresponding said second network equipment through the preservation of control aspect carried out the LTM forwarding; Thereby increased the normal possibility of transmitting of LTM, improved the accurate fault location of MAC Trace position possibility.
Referring to Fig. 4; The embodiment of the invention provides first network equipment 402 that the MAC Address list item is created in a kind of network; Said network comprises said first network equipment 402 and second network equipment at least; The forwarding plane of said first network equipment 402 is preserved the first MAC Address list item of corresponding said second network equipment in advance, and said first network equipment 402 comprises:
Receiving element 404 is used to receive the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
Processing unit 406; The said two-layer protocol message that is used for receiving according to said receiving element is created the second MAC Address list item of corresponding said second network equipment in the control aspect, and the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item;
Memory cell 408 is used to store the said second MAC Address list item that said processing unit 406 is created.
Said first network equipment 402 moves said two-layer protocol in advance with said second network equipment, and alternatively, said two-layer protocol can HGMP or STP or RRPP.
Alternatively, said two-layer protocol message is carried the device name of said second network equipment, correspondingly, and the device name of also preserving said second network equipment in the said second MAC Address list item.The benefit of preserving the device name of said second network equipment in the said second MAC Address list item is; When the network manager passes through said first network equipment 402 when said second network equipment is initiated MAC Trace; When the order line input command; The network manager can use the device name with said second network equipment of remembering easy to use to act on behalf of the MAC Address of said second network equipment; Thereby the problem difficult in maintenance that the MAC Address of having avoided using the network equipment that is difficult to remember and discerns brings, the flexibility that improved network operation.
Alternatively, the said two-layer protocol message device name of carrying said second network equipment comprises:
The device name of said second network equipment is carried in the message net load Payload field of Ether frame structure of said two-layer protocol message, and concrete bearing mode is described in the corresponding embodiment of Fig. 1, is not giving unnecessary details here.
Alternatively; Said second network equipment can be announced the MAC Address of said second network equipment to other network equipments that comprise said first network equipment 402 through the mode of initiatively announcement; Perhaps the MAC Address of said second network equipment and the device name of said second network equipment are announced to other network equipments that comprise said first network equipment 402; Under this mode, the DA_MAC field in the said two-layer protocol message can value be multicast mac address or broadcasting MAC Address, and said second network equipment can adopt the regularly mode of announcement; For example, whenever initiatively announced once at a distance from 10 minutes or 20 minutes.
Alternatively, the said second MAC Address list item of creating in the control aspect can be stored in the internal memory, also can be stored in the mode of file in the external memory storage of said first network equipment 402, and said external memory storage can be hard disk or CF card etc.
Alternatively, referring to Fig. 5, said first network equipment 502 also comprises:
Transmitting element 502 is used for said two-layer protocol message is forwarded to other network equipments that link to each other with said first network equipment 402.After receiving the said two-layer protocol message of said second network equipment with multicast or forms of broadcasting transmission; Said transmitting element 502 is forwarded to other network equipments that link to each other with said first network equipment 402 with said two-layer protocol message, thereby can realize that the network equipment in the whole network can both be implemented in the MAC Address list item that the control aspect is set up corresponding said second network equipment.
Because the said second MAC Address list item leaves the control aspect in; Being not used in flow transmits; After said second network equipment breaks down; The problem that also can not cause network storm owing to the invalid said second MAC Address list item of key-course face length time storage; Therefore, the ageing time that the said second MAC Address list item can be set when concrete the realization can be long more a lot of than the ageing time of the said first MAC Address list item, specifically; If the ageing time of the said first MAC Address list item is 1 minute; The ageing time of the said second MAC Address list item can be set to 1 day or 1 week or 1 month, guaranteed that the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item, when said first network equipment 402 is initiated MAC Trace to said second network equipment; Perhaps said first network equipment 402 receives other network equipments when said second network equipment is initiated the LTM of MAC Trace; After the MAC Address list item of corresponding said second network equipment that forwarding plane is preserved was aging, before the MAC Address list item of corresponding said second network equipment that the control aspect is preserved was also not aging, the MAC Address list item of corresponding said second network through the preservation of control aspect carried out the LTM forwarding; Thereby increased the normal possibility of transmitting of LTM, improved the accurate fault location of MAC Trace position possibility.
Referring to Fig. 6; The embodiment of the invention provides first network equipment 602 that the MAC Address list item is created in a kind of network; Said network comprises said first network equipment 602 and second network equipment at least; The forwarding plane of said first network equipment 602 is preserved the first MAC Address list item of corresponding said second network equipment in advance, and said first network equipment 602 comprises:
Receiver 604 is used to receive the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
Processor 606; Be used for said two-layer protocol message according to said receiver 604 receptions; At the second MAC Address list item of corresponding said second network equipment of control aspect establishment, the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item;
Memory 608 is used to store the said second MAC Address list item that said processor 606 is created.
Said first network equipment 602 moves said two-layer protocol in advance with said second network equipment, and alternatively, said two-layer protocol can HGMP or STP or RRPP.
Alternatively, said two-layer protocol message is carried the device name of said second network equipment, correspondingly, and the device name of also preserving said second network equipment in the said second MAC Address list item.The benefit of preserving the device name of said second network equipment in the said second MAC Address list item is; When the network manager passes through said first network equipment 602 when said second network equipment is initiated MAC Trace; When the order line input command; The network manager can use the device name with said second network equipment of remembering easy to use to act on behalf of the MAC Address of said second network equipment; Thereby the problem difficult in maintenance that the MAC Address of having avoided using the network equipment that is difficult to remember and discerns brings, the flexibility that improved network operation.
Alternatively, the said two-layer protocol message device name of carrying said second network equipment comprises:
The device name of said second network equipment is carried in the message net load Payload field of Ether frame structure of said two-layer protocol message, and concrete bearing mode is described in the corresponding embodiment of Fig. 1, is not giving unnecessary details here.
Alternatively; Said second network equipment can be announced the MAC Address of said second network equipment to other network equipments that comprise said first network equipment 602 through the mode of initiatively announcement; Perhaps the MAC Address of said second network equipment and the device name of said second network equipment are announced to other network equipments that comprise said first network equipment 602; Under this mode, the DA_MAC field in the said two-layer protocol message can value be multicast mac address or broadcasting MAC Address, and said second network equipment can adopt the regularly mode of announcement; For example, whenever initiatively announced once at a distance from 10 minutes or 20 minutes.
Alternatively, said first network equipment 602 also comprises:
Transmitter 702 is used for said two-layer protocol message is forwarded to other network equipments that link to each other with said first network equipment 702.After receiving the said two-layer protocol message of said second network equipment with multicast or forms of broadcasting transmission; Said transmitter 702 is forwarded to other network equipments that link to each other with said first network equipment 702 with said two-layer protocol message, thereby can realize that the network equipment in the whole network can both be implemented in the MAC Address list item that the control aspect is set up corresponding said second network equipment.
Because the said second MAC Address list item leaves the control aspect in; Being not used in flow transmits; After said second network equipment breaks down; The problem that also can not cause network storm owing to the invalid said second MAC Address list item of key-course face length time storage; Therefore, the ageing time that the said second MAC Address list item can be set when concrete the realization can be long more a lot of than the ageing time of the said first MAC Address list item, specifically; If the ageing time of the said first MAC Address list item is 1 minute; The ageing time of the said second MAC Address list item can be set to 1 day or 1 week or 1 month, guaranteed that the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item, when said first network equipment 602 is initiated MAC Trace to said second network equipment; Perhaps said first network equipment 602 receives other network equipments when said second network equipment is initiated the LTM of MAC Trace; After the MAC Address list item of corresponding said second network equipment that forwarding plane is preserved was aging, before the MAC Address list item of corresponding said second network equipment that the control aspect is preserved was also not aging, the MAC Address list item of corresponding said second network through the preservation of control aspect carried out the LTM forwarding; Thereby increased the normal possibility of transmitting of LTM, improved the accurate fault location of MAC Trace position possibility.
Said first network equipment 602 can be router or switch.
Alternatively; Above-mentioned processor 606 can (English full name be Central Processing Unit for central processing unit; English abbreviates CPU as); Memory 608 can be the internal storage of random access memory (English full name is Random Access Memory, and English abbreviates RAM as) type, also can be hard disk or CF card.Above-mentioned receiver 604 can comprise the General Physics interface with transmitter 702, and said physical interface can be ether (Ethernet) interface or asynchronous transfer mode (English full name is Asynchronous Transfer Mode, and English abbreviates ATM as) 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 Application Specific Integrated Circuit, and English abbreviates ASIC as).
It is thus clear that; First network equipment 602 that the MAC Address list item is created in a kind of network that provides through the embodiment of the invention; Preserve the mac address table of corresponding said second network equipment in the control aspect at said first network equipment 602; And the ageing time time point that the MAC Address of corresponding said second network equipment that the control aspect preserves is set is later than the ageing time point at the MAC Address list item of corresponding said second network equipment of forwarding plane preservation; When said first network equipment 602 is initiated MAC Trace to said second network equipment; Perhaps said first network equipment 602 receives other network equipments when said second network equipment is initiated the LTM of MAC Trace; After the MAC Address list item of corresponding said second network equipment that forwarding plane is preserved was aging, before the MAC Address list item of corresponding said second network equipment that the control aspect is preserved was also not aging, the MAC Address list item of corresponding said second network equipment through the preservation of control aspect carried out the LTM forwarding; Thereby increased the normal possibility of transmitting of LTM, improved the accurate fault location of MAC Trace position possibility.
" first " in first network equipment of mentioning in the embodiment of the invention, the first MAC Address list item just is used for doing name identification, do not represent first on the order; " second " of second network equipment and the second MAC Address list item also just is used for doing name identification, do not represent second on the order.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforementioned program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as read-only memory (English full name is read-only memory, and English abbreviates ROM as), RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to exemplary illustration technical scheme of the present invention, but not to its restriction; Although the beneficial effect that the present invention and the present invention bring has been carried out detailed explanation with reference to previous embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the scope of the essence disengaging claim of the present invention of relevant art scheme.

Claims (8)

1. the method that the media access control MAC address list item is created in the network; It is characterized in that; Said network comprises first network equipment and second network equipment at least; The forwarding plane of said first network equipment is preserved the first MAC Address list item of corresponding said second network equipment, and said method comprises:
Said first network equipment receives the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
Said first network equipment is at the second MAC Address list item of corresponding said second network equipment of control aspect establishment, and the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item.
2. method according to claim 1; It is characterized in that; Said first network equipment and said second network equipment move said two-layer protocol in advance, and said 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 said two-layer protocol message is carried the device name of said second network equipment, correspondingly, and the device name of also preserving said second network equipment in the said second MAC Address list item.
4. according to the described method of the arbitrary claim of claim 3, it is characterized in that the device name that said two-layer protocol message is carried said second network equipment comprises:
The device name of said second network equipment is carried in the message net load Payload field of Ether frame structure of said two-layer protocol message.
5. according to the described method of the arbitrary claim of claim 1 to 4, it is characterized in that the target MAC (Media Access Control) address of said two-layer protocol message is multicast mac address or broadcasting MAC Address.
6. according to the described method of claim 1 to 5, it is characterized in that, also comprise:
Said first network equipment is forwarded to said two-layer protocol message other network equipments that link to each other with said first network equipment.
7. first network equipment in the network; It is characterized in that; Said network comprises said first network equipment and second network equipment at least, and the forwarding plane of said first network equipment is preserved the first MAC Address list item of corresponding said second network equipment, and said first network equipment comprises:
Receiving element is used to receive the two-layer protocol message that said second network sends, and said two-layer protocol message carries the MAC Address of said second network equipment;
Processing unit; The said two-layer protocol message that is used for receiving according to said receiving element is created the second MAC Address list item of corresponding said second network equipment in the control aspect, and the ageing time point of the said second MAC Address list item is later than the ageing time point of the said first MAC Address list item;
Memory cell is used to store the said second MAC Address list item that said processing unit is created.
8. first network equipment according to claim 7 is characterized in that, said first network equipment also comprises:
Transmitting element is used for said two-layer protocol message is forwarded to other network equipments that link to each other with said first network equipment.
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 true CN102821169A (en) 2012-12-12
CN102821169B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426858A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
WO2017219868A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Arp entry processing method and apparatus
CN113075487A (en) * 2021-03-31 2021-07-06 读书郎教育科技有限公司 Method for controlling aging test duration in factory

Citations (9)

* 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
US20070233867A1 (en) * 2006-03-28 2007-10-04 Narasimhan Ganapathiraman Method and apparatus for preserving MAC addresses across a reboot
US20080168120A1 (en) * 2007-01-05 2008-07-10 Fujitsu Limited Link trace frame transfer program recording medium, switching hub, and link trace frame transfer method
CN101610221A (en) * 2009-07-23 2009-12-23 杭州华三通信技术有限公司 IP unicast took over seamlessly when a kind of STP switched method and device
CN101958938A (en) * 2010-06-01 2011-01-26 福建星网锐捷网络有限公司 Learning method and device of MAC address table based on network processor
CN102111313A (en) * 2010-12-23 2011-06-29 中兴通讯股份有限公司 Method and device for automatically recovering access user table
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
US20110317699A1 (en) * 2010-06-28 2011-12-29 Avaya Inc. Method for media access control address learning and learning rate suppression

Patent Citations (9)

* 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
US20070233867A1 (en) * 2006-03-28 2007-10-04 Narasimhan Ganapathiraman Method and apparatus for preserving MAC addresses across a reboot
CN101043329A (en) * 2006-06-15 2007-09-26 华为技术有限公司 Method and system for protecting network attack
US20080168120A1 (en) * 2007-01-05 2008-07-10 Fujitsu Limited Link trace frame transfer program recording medium, switching hub, and link trace frame transfer method
CN101610221A (en) * 2009-07-23 2009-12-23 杭州华三通信技术有限公司 IP unicast took over seamlessly when a kind of STP switched method and device
CN101958938A (en) * 2010-06-01 2011-01-26 福建星网锐捷网络有限公司 Learning method and device of MAC address table based on network processor
US20110317699A1 (en) * 2010-06-28 2011-12-29 Avaya Inc. Method for media access control address learning and learning rate suppression
CN102111313A (en) * 2010-12-23 2011-06-29 中兴通讯股份有限公司 Method and device for automatically recovering access user table
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426858A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN104426858B (en) * 2013-08-26 2018-03-23 联想(北京)有限公司 A kind of information processing method and electronic equipment
WO2017219868A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Arp entry processing method and apparatus
CN107528929A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 The processing method and processing device of arp entry
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

Also Published As

Publication number Publication date
CN102821169B (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN101953120B (en) Management of topology changes in layer two networks
US20190020574A1 (en) Failure protection for traffic-engineered bit indexed explicit replication
US7593400B2 (en) MAC address learning in a distributed bridge
CN101707537B (en) Positioning method of failed link and alarm root cause analyzing method, equipment and system
US9237124B2 (en) Scaling of virtual machine addresses in datacenters
US20130259050A1 (en) Systems and methods for multi-level switching of data frames
CN102625986A (en) Method, device and network equipment for processing loops in two layer network
US10326680B2 (en) Generic operations, administration, and maintenance (OAM) function
CN107395481A (en) The Egress node protection of broadcast, unknown unicast or multicast service in EVPN topologys
CN109495320B (en) Data message transmission method and device
CN101094155A (en) Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices
JP2019521619A (en) Packet forwarding
US20150043578A1 (en) Home Network Packet Delivery
CN105187311A (en) Message forwarding method and message forwarding device
CN103828310A (en) Method, system and equipment for finding link
CN107040447A (en) IPTV group network systems, forwarding unit and access point apparatus
CN105991795A (en) ARP (address resolution protocol) table item updating method and device
CN104579973B (en) Message forwarding method and device in a kind of Virtual Cluster
CN101631060B (en) Method and device for managing edge port
CN102821169A (en) Method and network device for creating MAC (multi-access computer) address table items in network
CN102326370A (en) Message processing method, apparatus and system
CN109756411B (en) Message forwarding method and device, first VTEP device and storage medium
CN103457756A (en) Method, device and system for loop path detection
US20150381560A1 (en) Logical interface encoding
CN107896188A (en) Data forwarding method and device

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