CN103414801B - The method and apparatus of Media Access Controlled address synchronization in a kind of pile system - Google Patents

The method and apparatus of Media Access Controlled address synchronization in a kind of pile system Download PDF

Info

Publication number
CN103414801B
CN103414801B CN201310350354.4A CN201310350354A CN103414801B CN 103414801 B CN103414801 B CN 103414801B CN 201310350354 A CN201310350354 A CN 201310350354A CN 103414801 B CN103414801 B CN 103414801B
Authority
CN
China
Prior art keywords
mac address
mac
synchronize
member device
information
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
CN201310350354.4A
Other languages
Chinese (zh)
Other versions
CN103414801A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310350354.4A priority Critical patent/CN103414801B/en
Publication of CN103414801A publication Critical patent/CN103414801A/en
Application granted granted Critical
Publication of CN103414801B publication Critical patent/CN103414801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

This application discloses a kind of method of Media Access Controlled (MAC) address synchronization in pile system, the method includes: member device know need synchronize MAC Address time, batch reads MAC Address to be synchronized, and synchronize the MAC Address needing to synchronize in MAC Address to be synchronized, when synchronizing the MAC Address needing to synchronize, according to this MAC Address, and VLAN ID corresponding to this MAC Address and port information build broadcasting packet and carry out the synchronization of MAC Address;This member device, when receiving the broadcasting packet that MAC Address passes through, carries out hardware mac address study according to the content of broadcasting packet.Based on same inventive concept, the application also proposes a kind of equipment, can reduce the consumption of CPU when MAC Address synchronizes.

Description

The method and apparatus of Media Access Controlled address synchronization in a kind of pile system
Technical field
The application relates to communication technical field, particularly to Media Access Controlled (MAC) address in a kind of pile system The method and apparatus synchronized.
Background technology
Ethernet switch Stack Technology, can be interconnected at together by multiple stage switch, forms distributed switching architecture, And run as a logic switching entity.
From the point of view of management and configuration, a distributed switching architecture appears like a switching equipment;From performance From the point of view of, every switch in distributed switching architecture can be for the second layer on its port, third layer flow Local forwarding decision is formulated in communication service.
The multiple stage switching equipment supporting stacking can be interconnected one combination plant of formation, and this is combined by we Equipment is referred to as a pile system (Stacking), and each equipment of composition Stacking is referred to as a member device (Slot).After multiple Slot composition Stacking, no matter in management or on using, just become an entirety. It is managed it is to say, these multiple devices can be regarded as single equipment by user and uses.The most both can be by having increased Oil (gas) filling device comes ECP Extended Capabilities Port quantity and exchange capacity, adds whole simultaneously also by the mutually backup between multiple Slot The reliability of Stacking.
Seeing Fig. 1, Fig. 1 is 3 equipment chain pile system schematic diagrams.In Fig. 1, Slot1 and Slot3 has outside one group Portion's stacking opening, Slot2 has two groups of outside stacking opening, respectively P1, P2.Stacking opening P1 of adjacent two equipment and P2 It is connected, composition annular stacking.If forming annular stacking between member device, then the member device of both link ends is respectively arranged with Two groups of outside stacking opening.
In Fig. 1, switch (SW1) is MAC1 to SW2 transmission source MAC Address, and target MAC (Media Access Control) address is The unicast message of MAC2, SW1 carries out Hash in this locality, selects the link arriving Slot1 to send, and Slot1 receives This unicast message carries out source MAC study, and this unicast message is transmitted to SW2.SW2 receives this clean culture report The port of literary composition is aggregation port, therefore, learns the source MAC of this unicast message to this aggregation port place In the aggregation group mark of aggregation group.
SW2 is MAC2 to SW1 transmission source MAC Address, and target MAC (Media Access Control) address is the unicast message of MAC1 Time, SW2 also can carry out Hash calculation, selects port to send in this aggregation group, it is assumed that selection be with The port that Slot2 is connected, this unicast message would be sent on Slot2, and on Slot2, study is not arrived MAC1, therefore, this unicast message will be carried out broadcast process as unknown unicast message by Slot2.Add extra The consumption of bandwidth, and many parts of possible forwardings.
In order to avoid the generation of above-mentioned situation, pile system is carried out by interprocess communication (Inter-process Communication, IPC) communication technology, carry out the MAC Address synchronization process that member device learns.Mainly There are regular batch synchronization mode, event triggered fashion.It is implemented as follows:
Periodically batch synchronization mode is periodically to read all MAC Address that this member device is learnt, by relevant letter Breath, by IPC means of communication, transmits other member device.Other member device receives synchronization After mac address information, it is determined whether synchronize.When needs synchronize, then to specifying MAC to carry out hardware FDB's Add.
Event triggered fashion, refers to that software receives the new MAC Address event that forwarding chip reports, or MAC Address is old Change event, synchronizes specifying the MAC Address synchronized to stack interior MAC Address, and process is with regular batch synchronization. Being designated the MAC Address synchronized can be the MAC Address learnt in aggregation group mark, it is also possible to study is arrived MAC Address on any single-port.
MAC Address synchronous method in existing pile system, it is necessary to carry out IPC message communicating transmission between plate same Step.Synchronizing originating end and need the MAC data bag of tissue synchronization, being synchronized end needs to resolve MAC data bag, and by Bar issues hardware forwarding database (Forwarding Database, FDB) list item, and whole process seriously consumes CPU Disposal ability.When MAC Address increases, very big on equipment performance impact, take CPU up to more than 80%. Because of MAC Address size limit, have a strong impact on the actual deployment of stacking.
Summary of the invention
In view of this, the application provides the method and apparatus of Media Access Controlled address synchronization in a kind of pile system, MAC Address can reduce the consumption of CPU when synchronizing.
For solving above-mentioned technical problem, the technical scheme is that and be achieved in that:
A kind of method that in pile system, Media Access Controlled address MAC synchronizes, is applied in described pile system appoint On one member device, including:
This member device know need synchronize MAC Address time, batch read the MAC that this member device hardware learns Address, the MAC Address after the MAC Address of port numbers that corresponding ports information is other member devices is deleted as MAC Address to be synchronized;
If it is determined that need to synchronize the MAC Address of the port numbers that corresponding ports information is this member device, and asynchronous right The MAC Address answering port information to be aggregation group mark, then, from described MAC Address to be synchronized, filter out and be in State of activation and the MAC Address of port numbers that corresponding ports information is this member device, and according to being filtered out MAC Address and port information corresponding to the MAC Address filtered out and VLAN ID VLAN ID, builds broadcasting packet and other member devices in pile system send;
If it is determined that need to synchronize the MAC Address of the port numbers that corresponding ports information is this member device, and synchronize correspondence Port information is the MAC Address of aggregation group mark, according to described to be synchronized, and the MAC being active Address, and port information corresponding to MAC Address that is described to be synchronized and that be active and VLAN ID, Build broadcasting packet and other member devices in pile system send;
When this member device receives, by stacking opening, the broadcasting packet that other member devices synchronize MAC Address, according to The content of the broadcasting packet received carries out hardware mac address study.
A kind of equipment, can be applicable in pile system on any member equipment, and this equipment includes: know unit, reading Unit and reception unit and processing unit;
Described know unit, be used for knowing whether to need to synchronize MAC Address;
Described reading unit, for when described know unit know need synchronize MAC Address time, batch read this one-tenth Member's MAC Address of learning of device hardware, by the MAC of port numbers that corresponding ports information is other member devices MAC Address after the deletion of address is as MAC Address to be synchronized;
Described reception unit, synchronizes the broadcasting packet of MAC Address for receiving other member devices by stacking opening;
Described processing unit, for if it is determined that need to synchronize the MAC of the port numbers that corresponding ports information is this member device Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark, then obtain from described reading unit In MAC Address to be synchronized, filter out and be active and corresponding ports information is the port numbers of this member device MAC Address, and according to port corresponding to the MAC Address filtered out and the MAC Address filtered out Information and VLAN ID VLAN ID, build broadcasting packet and other member devices in pile system are sent out Send;Unit is known if it is determined that need to synchronize the MAC ground of the port numbers that corresponding ports information is this member device when described Location, and synchronize the MAC Address that corresponding ports information is aggregation group mark, treat together according to what described reading unit obtained Step, and the MAC Address being active, and MAC Address that is described to be synchronized and that be active Corresponding port information and VLAN ID, build broadcasting packet and other member devices in pile system send;When When described reception unit receives the broadcasting packet that other member devices synchronize MAC Address, according to the broadcast received The content of message carries out hardware mac address study.
In sum, the application known by member device need synchronize MAC Address time, batch read to be synchronized MAC Address, and synchronize the MAC Address needing to synchronize in MAC Address to be synchronized, synchronizing what needs synchronized During MAC Address, according to this MAC Address, and VLAN ID corresponding to this MAC Address and port information structure Build broadcasting packet and carry out the synchronization of MAC Address;This member device when receiving the broadcasting packet that MAC Address passes through, Content according to broadcasting packet carries out hardware mac address study, uses the method, can when MAC Address synchronizes Reduce the consumption of CPU.
Accompanying drawing explanation
Fig. 1 is 3 equipment annular stacking system schematic;
Fig. 2 is the method flow schematic diagram synchronizing MAC Address in the embodiment of the present invention one;
Fig. 3 is pile system schematic diagram in the embodiment of the present invention three;
Fig. 4 is the structural representation of the equipment being applied to above-mentioned technology in the specific embodiment of the invention.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, develop simultaneously enforcement referring to the drawings Example, is described in further detail scheme of the present invention.
The embodiment of the present invention proposes a kind of method that in pile system, MAC synchronizes, is applied in described pile system On any member equipment, member device know need synchronize MAC Address time, batch read MAC Address to be synchronized, And synchronize the MAC Address needing to synchronize in MAC Address to be synchronized, when synchronizing the MAC Address needing to synchronize, According to this MAC Address, and VLAN ID corresponding to this MAC Address and port information build broadcasting packet and carry out The synchronization of MAC Address;This member device is when receiving the broadcasting packet that MAC Address passes through, according to broadcasting packet Content carry out hardware mac address study, use the method, can reduce CPU's when MAC Address synchronizes Consume.
Embodiment one
When the present embodiment describes the member device in pile system in detail as non-master member device, how to carry out MAC Address synchronization.
Seeing Fig. 2, Fig. 2 is the method flow schematic diagram synchronizing MAC Address in the embodiment of the present invention one.Concrete steps For:
Step 201, the member device in pile system knows that when needing to synchronize MAC Address, batch reads this member and sets The MAC Address that standby hardware learns, deletes the MAC Address of the port numbers that corresponding ports information is other member devices MAC Address after removing is as MAC Address to be synchronized.
It is the port of other member devices that this member device deletes port information in all MAC Address that batch reads Number MAC Address, i.e. get rid of and synchronized by MAC Address, and learn on the common port of other member devices MAC Address.
In the specific embodiment of the invention, common port defines relative to aggregation port.Any member equipment this locality adds The port of aggregation group is referred to as aggregation port, and the port not adding aggregation group is referred to as common port.
The port information that MAC Address is corresponding is port numbers or aggregation group mark ID, and wherein, port numbers passes through chip id Identifying with physical port number, chip id is the port on which member device for distinguishing this port.
How member device is known needs to synchronize MAC Address, for this member device as main member device and non-master During member device, it is achieved different.Describe main member device separately below and non-master member device knows what needs synchronized The process of MAC Address:
When this member device is as main member device, configure the first Preset Time and the second Preset Time;Wherein, One Preset Time is less than the MAC address aging time, and the second Preset Time is more than the MAC address aging time.
There is above-mentioned configuration visible within a MAC address aging cycle, MAC Address repeatedly can be carried out and synchronize, The most main member device repeatedly sends stacking message, triggers each member device and synchronizes MAC Address.In pile system Each member device carries out aging ageing time to MAC Address and is configured to identical.
Main member device arranges the second Preset Time more than the MAC address aging time, is i.e. poly-to make port information The synchronizing cycle of the MAC Address of charge-coupled mark is more than the ageing time of MAC Address, it is to avoid corresponding ports information is poly- The MAC Address of charge-coupled mark, because each member device in pile system is mutually synchronized MAC Address, and the oldest Change.
When the first Preset Time then, know need synchronize MAC Address, and determine need synchronize corresponding ports information For the MAC Address of the port numbers of this member device, and the MAC that asynchronous corresponding ports information is aggregation group mark Address;And send the port numbers that stacking other member devices of message informing synchronization corresponding ports information is this member device MAC Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark.
When the second Preset Time then, know need synchronize MAC Address, determine need synchronize corresponding ports information be The MAC Address of the port numbers of this member device, and synchronize the MAC Address that corresponding ports information is aggregation group mark; And send the MAC of the port numbers that stacking other member devices of message informing synchronization corresponding ports information is this member device Address, and synchronize the MAC Address that corresponding ports information is aggregation group mark.
When this member device is as non-master member device, when receiving the stacking message that main member device sends, know Need to synchronize MAC Address.
When in this stacking message, notice synchronizes the MAC Address of the port numbers that corresponding ports information is this member device, and When asynchronous corresponding ports information is the MAC Address of aggregation group mark, determines and need to synchronize corresponding ports information for this The MAC Address of the port numbers of member device, and the MAC Address that asynchronous corresponding ports information is aggregation group mark.
When this stacking message notifying, other member devices synchronize the port numbers that corresponding ports information is this member device MAC Address, and when synchronization corresponding ports information is the MAC Address that aggregation group identifies, determines and need to synchronize corresponding end Message breath is the MAC Address of the port numbers of this member device, and synchronization corresponding ports information is aggregation group mark MAC Address.
As can be seen here, when main member device synchronizes MAC Address, main member device first arranged is preset Time and the second Preset Time are to triggering constantly.Main member device triggers when synchronizing MAC Address, sends stacking simultaneously Message trigger non-master member device synchronizes MAC Address.
Step 202, this member device is if it is determined that need to synchronize the port numbers that corresponding ports information is this member device MAC Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark, then from described to be synchronized In MAC Address, filter out and be active and the MAC ground of port numbers that corresponding ports information is this member device Location, and according to port information corresponding to the MAC Address filtered out and the MAC Address filtered out and VLAN ID, builds broadcasting packet and other member devices in pile system send.
On determining the only synchronous study MAC Address to the common port in this locality, asynchronous study to aggregation group identifies MAC Address time, only by MAC Address learning that is all to be synchronized and that be active to local common end On mouth rather than aggregation group mark on MAC Address be synchronized to other member devices.
The MAC Address that each is filtered out by this member device, and should as the source MAC of broadcasting packet Port information that the MAC Address that filtered out is corresponding and VLAN ID, carry hardware in the broadcasting packet built Practise on the position that MAC Address can learn.
Step 203, this member device is if it is determined that need to synchronize the port numbers that corresponding ports information is this member device MAC Address, and synchronize the MAC Address that corresponding ports information is aggregation group mark, according to described to be synchronized, and The MAC Address being active, and the end that MAC Address that is described to be synchronized and that be active is corresponding Message breath and VLAN ID, build broadcasting packet and other member devices in pile system send and make other members set For being learnt by hardware mac address.
This member device determines the both synchronous study MAC Address to the common port in this locality, and also synchronous study is to polymerization During the MAC Address that group identifies, by all to be synchronized, and the MAC Address being active is synchronized to other Member device.
This member device, when synchronizing MAC Address, synchronizes MAC ground to be synchronized by the way of building broadcasting packet Location.
This member device is to be synchronized by each, and the MAC Address being active is as the source of broadcasting packet MAC Address, port information that this MAC Address that is to be synchronized and that be active is corresponding and VLAN ID, On the position that can learn when carrying hardware study MAC Address in the broadcasting packet built.
So, build a broadcasting packet respectively for all MAC Address to be synchronized, be sent in pile system Other member devices so that it is his member device can learn to the MAC Address synchronized.
No matter step 202 and step 203 determine which MAC Address of synchronization, is all the MAC that will be active Address synchronization, the MAC Address being in ageing state is the most asynchronous.
Each member device, when study is to a MAC Address, all can arrange ageing time for this MAC Address, always In the change time, the state that this MAC Address is corresponding is state of activation, ageing time then, by this MAC Address swash Status modifier of living is ageing state, then waits Preset Time, deletes the list item that this MAC Address is corresponding.
Embodiment two
After each member device sends the broadcasting packet synchronizing MAC Address, other member devices can be received by stacking opening To this broadcasting packet.
When each member device receives, by stacking opening, the broadcasting packet that other member devices synchronize MAC Address, according to The content of the broadcasting packet received carries out hardware mac address study.Detailed process is as follows:
When member device receives, by stacking opening, the broadcasting packet that other member devices synchronize MAC Address, according to this The source MAC of broadcasting packet, and the VLAN ID that carries in broadcasting packet and port information are at local mac Address list item mates.
If mated completely, if the state of MAC Address corresponding to this source MAC is ageing state, it is updated to swash The state of living;If matching source MAC and VLAN ID, and do not match the end that this source MAC is corresponding Message ceases, and carries out MAC Move process;Otherwise, learnt by hardware mac address, by the source of this broadcasting packet MAC address learning is in MAC Address list item, and the state of this source MAC is set to state of activation.
When the VLAN ID carried in the source MAC of this broadcasting packet, and this broadcasting packet and port information, When local mac address table is fully able to match, if this source MAC is located in MAC Address list item In state of activation, do not process;If this source MAC is in ageing state in MAC Address list item, Then the state that this source MAC is corresponding in MAC Address list item is updated to state of activation.
If the VLAN ID carried in the source MAC of this broadcasting packet, and this broadcasting packet and port information, Local mac address table is only capable of match source MAC and VLAN ID completely, and port information does not mates, Illustrate to there occurs MAC Move situation.Carry out MAC Move process, implement and be deletion this source MAC ground The list item that location is corresponding in mac address table.
If the source MAC only matched in broadcasting packet, and this source MAC would be right in mac address table The VLAN ID answered, inconsistent with the VLAN ID that broadcasting packet carries;Or, not in mac address table It is fitted on the source MAC of this broadcasting packet, then this broadcasting packet is learnt by hardware mac address, by this broadcast The source MAC of message learns in MAC Address list item.
This member device is learnt by hardware mac address, learns the source MAC of this broadcasting packet to MAC In address list item, including:
This member device by the source MAC of this broadcasting packet, and the port information that carries of this broadcasting packet and VLAN ID binding learns in described MAC Address list item.
Embodiment three
Seeing Fig. 3, Fig. 3 is pile system schematic diagram in the embodiment of the present invention three.Slot1 in Fig. 3, Slot2, Slot3 Forming a stacking, Slot2 is main member device.Slot1, Slot3 are in the group of common port Yu aggregation group port place In charge-coupled aggregation group mark, some MAC Address are arrived in study respectively.
As a example by the MAC Address that Slot1 and Slot3 learns.Seeing table 1, table 1 is the MAC Address of Slot1 The content comprised in table.Seeing table 2, table 2 is the content comprised in the mac address table of Slot3.
MAC Address VLAN ID Port information State
MAC1 2 Slot1 Port3 Activate
MAC2 1 Slot1 Port2 Activate
MAC3 2 Slot1 Port6 Aging
MAC6 100 LAG1 Activate
Table 1
MAC Address VLAN ID Port information State
MAC9 2 Slot3 Port3 Activate
MAC7 1 Slot3 Port2 Activate
MAC5 2 Slot3 Port6 Activate
MAC8 100 LAG1 Aging
Table 2
When Slot1 receives the stacking message that Slot2 sends, and this stacking message informing synchronous study is to local common port On MAC Address and study to MAC Address in aggregation group mark time, when Slot1 batch reads the institute in table 1 Have in the MAC Address in MAC Address, and this table 1 and there is not port that port information is other member devices MAC Address, therefore, by the MAC Address being active in table 1, i.e. MAC1, MAC2 and MAC6 All synchronize, as a example by MAC1, using MAC as the source MAC of a broadcasting packet, and by VLAN On the position that ID2 and Slot1Port3 can learn when carrying hardware study MAC Address in this broadcasting packet.
When Slot3 receives each bar broadcasting packet that Slot1 sends, it is respectively processed.With source MAC it is As a example by the broadcasting packet of MAC1.In the mac address table of Slot3, table 2 i.e. mates MAC1+VLAN2+Slot1 Port3, from table 2, it is known that can not match MAC1+VLAN2+Slot1 Port3, can not match MAC1+VLAN2, therefore, this broadcasting packet carries out hardware mac address study, by MAC1, VLAN2, Slot1 Port3 binding learns in table 2.
See table 3, after the MAC Address that table 3 synchronizes for Slot3 study Slot1, local mac address table comprises Content.
MAC Address VLAN ID Port information State
MAC9 2 Slot3 Port3 Activate
MAC7 1 Slot3 Port2 Activate
MAC5 2 Slot3 Port6 Activate
MAC8 100 LAG1 Aging
MAC1 2 Slot1 Port3 Activate
MAC2 1 Slot1 Port2 Activate
MAC6 100 LAG1 Activate
Table 3
Receive, with Slot3, the stacking message that Slot2 sends again, and this stacking message informing synchronous study is general to this locality MAC Address on the mouth of go side, but asynchronous study to aggregation group identify on MAC Address time, batch read table 3 In all MAC Address, as seen from Table 3, port information corresponding for MAC1 with MAC2 is on Slot1 Port numbers, is not the port numbers on this member device, is therefore deleted by MAC1 and MAC2.
Due to the MAC Address in asynchronous study to aggregation group mark, therefore, asynchronous MAC8 and MAC6. Finally, MAC9, MAC7, the MAC5 in table 3 is synchronized.
Based on same inventive concept in the specific embodiment of the invention, it is also proposed that a kind of equipment, can be applicable to stacking system In system on any member equipment.Seeing Fig. 4, Fig. 4 is to be applied to setting of above-mentioned technology in the specific embodiment of the invention Standby structural representation.This equipment includes: knows unit 401, reads unit 402 and receive unit 403 and place Reason unit 404.
Know unit 401, be used for knowing whether to need to synchronize MAC Address.
Read unit 402, for when know unit 401 know need synchronize MAC Address time, batch read this The MAC Address that member device hardware learns, by port numbers that corresponding ports information is other member devices MAC Address after MAC Address deletion is as MAC Address to be synchronized.
Receive unit 403, synchronize the broadcasting packet of MAC Address for receiving other member devices by stacking opening.
Processing unit 404, for if it is determined that need to synchronize the port numbers that corresponding ports information is this member device MAC Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark, then from reading unit 402 In the MAC Address to be synchronized obtained, filter out and be active and corresponding ports information is this member device The MAC Address of port numbers, and according to the MAC Address filtered out and the MAC filtered out ground Port information that location is corresponding and VLAN ID VLAN ID, build broadcasting packet and in pile system Other member devices send;When knowing unit 401 if it is determined that needing to synchronize corresponding ports information is this member device The MAC Address of port numbers, and synchronize the MAC Address that corresponding ports information is aggregation group mark, according to reading Take that unit 402 obtains is to be synchronized, and the MAC Address being active, and described to be synchronized and Port information that the MAC Address that is active is corresponding and VLAN ID VLAN ID, build wide Report other member devices in Wen Bingxiang pile system to send;Set when reception unit 403 receives other members Standby synchronize MAC Address broadcasting packet time, carry out hardware MAC ground according to the content of the broadcasting packet received Location learns.
It is preferred that
Processing unit 404, specifically for the MAC Address that each filtered out as the source of broadcasting packet MAC Address, and by port information corresponding for this MAC Address filtered out and VLAN ID, carry at structure On the position that in the broadcasting packet built, hardware study MAC Address can learn;Each is described to be synchronized , and the MAC Address being active is as the source MAC of broadcasting packet, and this is to be synchronized And port information corresponding to the MAC Address that is active and VLAN ID, carry at the broadcast report built On the position that in literary composition, hardware study MAC Address can learn.
It is preferred that this equipment farther includes: dispensing unit 405.
Dispensing unit 405, for this equipment as main member device time, configure the first Preset Time and second preset Time;Wherein, the first Preset Time is less than the MAC address aging time, and the second Preset Time is more than MAC ground Location ageing time.
Know unit 401, be further used for when dispensing unit 405 configuration the first Preset Time then, know need MAC Address to be synchronized, and determine the MAC needing to synchronize the port numbers that corresponding ports information is this member device Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark;And send stacking message informing its His member device synchronizes the MAC Address of the port numbers that corresponding ports information is this member device, and asynchronous correspondence Port information is the MAC Address of aggregation group mark;When dispensing unit 405 configuration the second Preset Time then, Know and need to synchronize MAC Address, determine and need to synchronize the port numbers that corresponding ports information is this member device MAC Address, and synchronize the MAC Address that corresponding ports information is aggregation group mark;And it is logical to send stacking message Know that other member devices synchronize the MAC Address of port numbers that corresponding ports information is this member device, and synchronize right The MAC Address answering port information to be aggregation group mark.
It is preferred that
Know unit 401, during specifically for this member device as non-master member device, receive main member device During the stacking message sent, know and need to synchronize MAC Address;When in this stacking message, notice synchronizes corresponding ports Information is the MAC Address of the port numbers of this member device, and asynchronous corresponding ports information is aggregation group mark During MAC Address, determine the MAC Address needing to synchronize the port numbers that corresponding ports information is this member device, And the MAC Address that asynchronous corresponding ports information is aggregation group mark;When this stacking message notifies other members Equipment synchronizes the MAC Address of the port numbers that corresponding ports information is this member device, and synchronizes corresponding ports information For aggregation group mark MAC Address time, determine need synchronize corresponding ports information be the port numbers of this member device MAC Address, and synchronize corresponding ports information be aggregation group mark MAC Address.
It is preferred that
Processing unit 404, the source MAC of the broadcasting packet specifically for receiving according to reception unit 403, And VLAN ID and the port information carried in broadcasting packet mates in local mac address list item; If mated completely, if the state of MAC Address corresponding to this source MAC is ageing state, it is updated to swash The state of living;If matching source MAC and VLAN ID, and it being corresponding not match this source MAC Port information, carries out MAC Move process;Otherwise, by the source MAC of this broadcasting packet, and should Port information and VLAN ID binding that broadcasting packet carries learn in described MAC Address list item.
The unit of above-described embodiment can be integrated in one, it is also possible to separates and disposes;A unit can be merged into, Multiple subelement can also be further split into.
In sum, in the specific embodiment of the invention member device know need synchronize MAC Address time, batch read Take MAC Address to be synchronized, and synchronize the MAC Address needing to synchronize in MAC Address to be synchronized, When synchronizing the MAC Address needing to synchronize, according to this MAC Address, and the VLAN that this MAC Address is corresponding ID and port information build broadcasting packet and carry out the synchronization of MAC Address;This member device is receiving MAC ground During the broadcasting packet that location is passed through, carry out hardware mac address study according to the content of broadcasting packet, use the party Method, can reduce the consumption of CPU when MAC Address synchronizes.
The specific embodiment of the invention gives member device simultaneously and receives the broadcasting packet synchronizing MAC Address After, how to carry out MAC address learning by hardware.
Whole synchronizing process does not the most use the communication between plates means such as IPC, synchronizes without software organization's MAC Address Packet, without resolving MAC Address synchronization packets.Fundamentally reduce MAC Address synchronization CPU to disappear Consumption.Solve under MAC hardware learning style, MAC Address high efficiency synchronous method, effectively support that pile system exists The robustness of big MAC application scenarios.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention. All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included in this Within the protection domain of invention.

Claims (10)

1. the method that in pile system, medium access control MAC addresses synchronizes, is applied in described pile system On any member equipment, it is characterised in that including:
This member device know need synchronize MAC Address time, batch read the MAC that this member device hardware learns Address, the MAC Address after the MAC Address of port numbers that corresponding ports information is other member devices is deleted as MAC Address to be synchronized;
If it is determined that need to synchronize the MAC Address of the port numbers that corresponding ports information is this member device, and asynchronous right The MAC Address answering port information to be aggregation group mark, then, from described MAC Address to be synchronized, filter out and be in State of activation and the MAC Address of port numbers that corresponding ports information is this member device, and according to being filtered out MAC Address and port information corresponding to the MAC Address filtered out and VLAN ID VLAN ID, Build broadcasting packet and other member devices in pile system send;
If it is determined that need to synchronize the MAC Address of the port numbers that corresponding ports information is this member device, and synchronize correspondence Port information is the MAC Address of aggregation group mark, according to described to be synchronized, and the MAC being active Address, and port information corresponding to MAC Address that is described to be synchronized and that be active and VLAN ID, Build broadcasting packet and other member devices in pile system send;
When this member device receives, by stacking opening, the broadcasting packet that other member devices synchronize MAC Address, according to The content of the broadcasting packet received carries out hardware mac address study.
Method the most according to claim 1, it is characterised in that
The described port information corresponding according to the MAC Address filtered out and the MAC Address filtered out and void Intend LAN ID VLAN ID, build broadcasting packet and other member devices in pile system send, build wide Report literary composition, including: the MAC Address that each is filtered out as the source MAC of broadcasting packet, and should Port information that the MAC Address that filtered out is corresponding and VLAN ID, carry hardware in the broadcasting packet built Practise on the position that MAC Address can learn;
Described according to described to be synchronized, and the MAC Address being active and described to be synchronized and place In port information corresponding to the MAC Address of state of activation and VLAN ID, build broadcasting packet, including: by each Individual described to be synchronized, and the MAC Address being active is as the source MAC of broadcasting packet, and should Port information that MAC Address to be synchronized and that be active is corresponding and VLAN ID, carry wide build Report on the position that in literary composition, hardware study MAC Address can learn.
Method the most according to claim 1 and 2, it is characterised in that described method farther includes: this member Equipment, as main member device, configures the first Preset Time and the second Preset Time;Wherein, the first Preset Time is less than The MAC address aging time, the second Preset Time is more than the MAC address aging time;
When the first Preset Time then, know need synchronize MAC Address, and determine need synchronize corresponding ports information For the MAC Address of the port numbers of this member device, and the MAC that asynchronous corresponding ports information is aggregation group mark Address;And send the port numbers that stacking other member devices of message informing synchronization corresponding ports information is this member device MAC Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark;
When the second Preset Time then, know need synchronize MAC Address, determine need synchronize corresponding ports information be The MAC Address of the port numbers of this member device, and synchronize the MAC Address that corresponding ports information is aggregation group mark; And send the MAC of the port numbers that stacking other member devices of message informing synchronization corresponding ports information is this member device Address, and synchronize the MAC Address that corresponding ports information is aggregation group mark.
Method the most according to claim 3, it is characterised in that
When this member device is as non-master member device, described in know need synchronize MAC Address, including: receive During the stacking message that main member device sends, know and need to synchronize MAC Address;
When in this stacking message, notice synchronizes the MAC Address of the port numbers that corresponding ports information is this member device, and When asynchronous corresponding ports information is the MAC Address of aggregation group mark, determines and need to synchronize corresponding ports information for this The MAC Address of the port numbers of member device, and the MAC Address that asynchronous corresponding ports information is aggregation group mark;
When this stacking message notifying, other member devices synchronize the port numbers that corresponding ports information is this member device MAC Address, and when synchronization corresponding ports information is the MAC Address that aggregation group identifies, determines and need to synchronize corresponding end Message breath is the MAC Address of the port numbers of this member device, and synchronization corresponding ports information is aggregation group mark MAC Address.
Method the most according to claim 1 and 2, it is characterised in that this member device described is connect by stacking opening When receiving the broadcasting packet that other member devices synchronize MAC Address, carry out according to the content of the broadcasting packet received Hardware mac address learns, including:
When receiving, by stacking opening, the broadcasting packet that other member devices synchronize MAC Address, according to this broadcasting packet Source MAC, and the VLAN ID that carries in broadcasting packet and port information are at local mac address list item In mate;
If mated completely, if the state of MAC Address corresponding to this source MAC is ageing state, it is updated to swash The state of living;
If matching source MAC and VLAN ID, and do not match the port letter that this source MAC is corresponding Breath, carries out MAC Move process;
Otherwise, by the source MAC of this broadcasting packet, and the port information that carries of this broadcasting packet and VLAN ID Binding learns in MAC Address list item, and the state arranging this source MAC is state of activation.
6. an equipment, can be applicable in pile system on any member equipment, it is characterised in that this equipment includes: Know unit, read unit and receive unit and processing unit;
Described know unit, be used for knowing whether to need synchronous medium access control MAC addresses;
Described reading unit, for when described know unit know need synchronize MAC Address time, batch read this one-tenth Member's MAC Address of learning of device hardware, by the MAC of port numbers that corresponding ports information is other member devices MAC Address after the deletion of address is as MAC Address to be synchronized;
Described reception unit, synchronizes the broadcasting packet of MAC Address for receiving other member devices by stacking opening;
Described processing unit, for if it is determined that need to synchronize the MAC of the port numbers that corresponding ports information is this member device Address, and the MAC Address that asynchronous corresponding ports information is aggregation group mark, then obtain from described reading unit In MAC Address to be synchronized, filter out and be active and corresponding ports information is the port numbers of this member device MAC Address, and according to port corresponding to the MAC Address filtered out and the MAC Address filtered out Information and VLAN ID VLAN ID, build broadcasting packet and other member devices in pile system are sent out Send;Unit is known if it is determined that need to synchronize the MAC ground of the port numbers that corresponding ports information is this member device when described Location, and synchronize the MAC Address that corresponding ports information is aggregation group mark, treat together according to what described reading unit obtained Step, and the MAC Address being active, and MAC Address that is described to be synchronized and that be active Corresponding port information and VLAN ID, build broadcasting packet and other member devices in pile system send;When When described reception unit receives the broadcasting packet that other member devices synchronize MAC Address, according to the broadcast received The content of message carries out hardware mac address study.
Equipment the most according to claim 6, it is characterised in that
Described processing unit, specifically for the MAC Address that each filtered out as the source MAC of broadcasting packet Address, and by port information corresponding for this MAC Address filtered out and VLAN ID, carry in the broadcast built On the position that in message, hardware study MAC Address can learn;Each is described to be synchronized, and it is in sharp The MAC Address of the state of living is as the source MAC of broadcasting packet and this is to be synchronized and is active Port information that MAC Address is corresponding and VLAN ID, carry hardware study MAC ground in the broadcasting packet built On the position that location can learn.
8. according to the equipment described in claim 6 or 7, it is characterised in that described equipment farther includes: configuration is single Unit;
Described dispensing unit, for this equipment as main member device time, configure the first Preset Time and second when presetting Between;Wherein, the first Preset Time is less than the MAC address aging time, and the second Preset Time is more than MAC address aging Time;
Described know unit, be further used for the first Preset Time of configuring when described dispensing unit then, know needs Synchronize MAC Address, and determine the MAC Address needing to synchronize the port numbers that corresponding ports information is this member device, And the MAC Address that asynchronous corresponding ports information is aggregation group mark;And send stacking other members of message informing set Standby synchronization corresponding ports information is the MAC Address of the port numbers of this member device, and asynchronous corresponding ports information is The MAC Address of aggregation group mark;The second Preset Time configured when described dispensing unit then, is known and is needed to synchronize MAC Address, determines the MAC Address needing to synchronize the port numbers that corresponding ports information is this member device, and synchronizes Corresponding ports information is the MAC Address of aggregation group mark;And it is right to send stacking other member devices of message informing synchronization The MAC Address of the port numbers answering port information to be this member device, and synchronize corresponding ports information be aggregation group mark MAC Address.
Equipment the most according to claim 8, it is characterised in that
Described know unit, during specifically for this member device as non-master member device, receive main member device and send out During the stacking message sent, know and need to synchronize MAC Address;When in this stacking message, notice synchronizes corresponding ports information For the MAC Address of the port numbers of this member device, and the MAC that asynchronous corresponding ports information is aggregation group mark During address, determine the MAC Address needing to synchronize the port numbers that corresponding ports information is this member device, and asynchronous Corresponding ports information is the MAC Address of aggregation group mark;It is right when this stacking message notifying, other member devices synchronize The MAC Address of the port numbers answering port information to be this member device, and synchronize corresponding ports information be aggregation group mark MAC Address time, determine and need to synchronize the MAC Address of port numbers that corresponding ports information is this member device, and Synchronize the MAC Address that corresponding ports information is aggregation group mark.
10. according to the equipment described in claim 6 or 7, it is characterised in that
Described processing unit, the source MAC of the broadcasting packet specifically for receiving according to described reception unit, And VLAN ID and the port information carried in broadcasting packet mates in local mac address list item;If Mate completely, if the state of MAC Address corresponding to this source MAC is ageing state, be updated to state of activation; If matching source MAC and VLAN ID, and do not match the port information that this source MAC is corresponding, Carry out MAC Move process;Otherwise, by the source MAC of this broadcasting packet, and this broadcasting packet carries Port information and VLAN ID binding learn in described MAC Address list item.
CN201310350354.4A 2013-08-12 2013-08-12 The method and apparatus of Media Access Controlled address synchronization in a kind of pile system Active CN103414801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310350354.4A CN103414801B (en) 2013-08-12 2013-08-12 The method and apparatus of Media Access Controlled address synchronization in a kind of pile system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310350354.4A CN103414801B (en) 2013-08-12 2013-08-12 The method and apparatus of Media Access Controlled address synchronization in a kind of pile system

Publications (2)

Publication Number Publication Date
CN103414801A CN103414801A (en) 2013-11-27
CN103414801B true CN103414801B (en) 2016-08-17

Family

ID=49607785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310350354.4A Active CN103414801B (en) 2013-08-12 2013-08-12 The method and apparatus of Media Access Controlled address synchronization in a kind of pile system

Country Status (1)

Country Link
CN (1) CN103414801B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254243A (en) * 2016-09-30 2016-12-21 杭州华三通信技术有限公司 A kind of message forwarding method and device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016033785A1 (en) * 2014-09-04 2016-03-10 华为技术有限公司 Method for synchronizing forwarding tables, network device, and system
CN105704257A (en) * 2014-11-28 2016-06-22 中兴通讯股份有限公司 Media access control (MAC) address election method and device
CN105991450B (en) * 2015-03-02 2019-05-07 杭州迪普科技股份有限公司 Mac address table update method and device
CN106790703B (en) * 2017-02-24 2019-11-12 烽火通信科技股份有限公司 A kind of MAC Address synchronous method of distribution datacom device
CN107124369B (en) * 2017-04-21 2020-01-03 新华三技术有限公司 Method and device for acquiring number of MAC (media Access control) table entries
CN109194777B (en) * 2018-09-10 2021-08-31 苏州盛科通信股份有限公司 Method and device for aging MAC address in stacking system
CN111107182B (en) * 2019-12-31 2022-09-20 瑞斯康达科技发展股份有限公司 MAC address synchronization method, device, system, equipment and medium
CN113839875B (en) * 2021-10-26 2022-12-23 浪潮思科网络科技有限公司 Method, device, equipment and medium for synchronizing MAC (media Access control) addresses in stacking system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445709B1 (en) * 1999-05-13 2002-09-03 Advanced Micro Devices, Inc. Method and apparatus for finding a match entry using receive port number embedded in the port vector
JP2004193821A (en) * 2002-12-10 2004-07-08 Fujitsu Ltd Bridge instrument and its address learning method
CN100334849C (en) * 2003-07-31 2007-08-29 华为技术有限公司 Method for realizing address synchronization in independant virtual LAN learning mode
US7593400B2 (en) * 2006-05-19 2009-09-22 Corrigent Systems Ltd. MAC address learning in a distributed bridge
CN101179514B (en) * 2007-12-18 2010-08-18 杭州华三通信技术有限公司 Method and device of maintaining MAC item of distributed network processing system
CN101820435A (en) * 2009-02-27 2010-09-01 华为技术有限公司 Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101834788B (en) * 2010-04-16 2011-11-09 福建星网锐捷网络有限公司 Storage operation method, device and equipment of media access control address table items

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445709B1 (en) * 1999-05-13 2002-09-03 Advanced Micro Devices, Inc. Method and apparatus for finding a match entry using receive port number embedded in the port vector
JP2004193821A (en) * 2002-12-10 2004-07-08 Fujitsu Ltd Bridge instrument and its address learning method
CN100334849C (en) * 2003-07-31 2007-08-29 华为技术有限公司 Method for realizing address synchronization in independant virtual LAN learning mode
US7593400B2 (en) * 2006-05-19 2009-09-22 Corrigent Systems Ltd. MAC address learning in a distributed bridge
CN101179514B (en) * 2007-12-18 2010-08-18 杭州华三通信技术有限公司 Method and device of maintaining MAC item of distributed network processing system
CN101820435A (en) * 2009-02-27 2010-09-01 华为技术有限公司 Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101834788B (en) * 2010-04-16 2011-11-09 福建星网锐捷网络有限公司 Storage operation method, device and equipment of media access control address table items

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254243A (en) * 2016-09-30 2016-12-21 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN106254243B (en) * 2016-09-30 2019-09-06 新华三技术有限公司 A kind of message forwarding method and device

Also Published As

Publication number Publication date
CN103414801A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN103414801B (en) The method and apparatus of Media Access Controlled address synchronization in a kind of pile system
CN103338161B (en) A kind of method and apparatus realizing cross-equipment aggregation
CN103929461B (en) Mac address information synchronous method and device in pile system
CN104426681B (en) The distributed multicast of endpoint
CN101056224B (en) A loop detection method and device for the network device
CN100407704C (en) Method of dynamically learning address on MAC layer
CN101286990B (en) Forwarding method and apparatus of double-layer multicast
CN101702672A (en) Forwarding method and forwarding device for multicast data message
CN101478496B (en) Data packet forwarding method and switching device
CN102347881A (en) Method and device for restoring unicast forwarding business flow during Ethernet ring failover
RU2007111857A (en) RING NETWORK, COMMUNICATION DEVICE AND OPERATIONAL MANAGEMENT METHOD USED FOR THE RING NETWORK AND COMMUNICATION DEVICE
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
CN101841432A (en) Port backup method, device and system for service access router
CN105991445A (en) Link aggregation group setting method and device
CN101834783A (en) Method and device for forwarding messages and network equipment
CN109088819A (en) A kind of message forwarding method, interchanger and computer readable storage medium
CN104125083A (en) Active/standby switchover method, device, equipment and system for network equipment
CN106330786A (en) MAC address synchronization method, apparatus and system
CN104734953A (en) Method and device for achieving message layer-2 isolation based on VLAN and interchanger
CN103532851B (en) Data flow processing method in distributed aggregated link network and device
CN108933744A (en) A kind of message forwarding method and device
CN100488118C (en) Method for preventing MAC address cheat
CN105227456B (en) A kind of aggregated link failures restore the method and device of transmission
CN102215112B (en) Method applied to FCoE (Fiber Channel over Ethernet) networking and used for optimizing FSPE (Fiber Shortest Path First) protocol and switchboards
EP3534577A1 (en) Method of forwarding multicast data packet

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230602

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.