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.