CN101488862A - Distributed Ethernet switch and internal MAC address maintaining method thereof - Google Patents

Distributed Ethernet switch and internal MAC address maintaining method thereof Download PDF

Info

Publication number
CN101488862A
CN101488862A CNA2009100784588A CN200910078458A CN101488862A CN 101488862 A CN101488862 A CN 101488862A CN A2009100784588 A CNA2009100784588 A CN A2009100784588A CN 200910078458 A CN200910078458 A CN 200910078458A CN 101488862 A CN101488862 A CN 101488862A
Authority
CN
China
Prior art keywords
mac address
mac
ply
ethernet switch
yarn drill
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2009100784588A
Other languages
Chinese (zh)
Other versions
CN101488862B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009100784588A priority Critical patent/CN101488862B/en
Publication of CN101488862A publication Critical patent/CN101488862A/en
Application granted granted Critical
Publication of CN101488862B publication Critical patent/CN101488862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a distributed type medium access control (MAC) address maintenance method inside of Ethernet switch, the method comprises following steps: when a certain line card receives a data packet from an switching port, according to the MAC address learned from the data packet, the MAC forwarding list of the line card is updated according to the MAC address learned from the data packet, and the learning information of the MAC address is notified to the main control card and other line cards; when the line card receives the data packet from the interconnecting port, the learning of the MAC address can not performed; the line card performs aging process for the MAC address learned from the switching port in the oneself MAC forwarding list, and notifies the aging information of the MAC address to the main control card and other line cards, the aging process of each MAC forwarding list can be performed according to the aging information of the MAC address. The invention also discloses a distributed Ethernet switch capable of conveniently implementing the MAC address maintenance inside of the distributed Ethernet switch, the communication between boards can be reduced, and the processing logic can be simplified.

Description

Distributed Ethernet switch and inner MAC Address maintaining method thereof
Technical field
The present invention relates to the study and the aging technology of medium access control (MAC) address in the distributed Ethernet switch, relate in particular to a kind of distributed Ethernet switch and inner MAC Address maintaining method thereof.
Background technology
Ethernet switch is the multiport networking equipment that is operated in the second layer (data link layer) of open system interconnection (OSI, Open System Interconnection).Packet enters from a port of Ethernet switch, Ethernet switch is based on the purpose medium access control (MAC in the packet, MediaAccessControl) MAC of address and self internal maintenance transmits, obtain output port of data packet, then packet is forwarded from outbound port.It is that Ethernet switch is realized the core component that packet is transmitted that the MAC of Ethernet switch internal maintenance transmits, and MAC transmits and learns each newfound MAC Address and automatic aging automatically by Ethernet switch and fall all inactive MAC Address and set up.
High-end Ethernet switch adopts distributed structure/architecture more at present, is called distributed Ethernet switch, promptly includes a plurality of ply-yarn drills, and a plurality of ports and an exchange chip are arranged on each ply-yarn drill.Packet can enter from a port on one of them ply-yarn drill, and another port from same ply-yarn drill exchanges away, and this exchange is called local switch mode; Packet also can enter from a port on one of them ply-yarn drill, and a port from another ply-yarn drill exchanges away, and this exchange is called strides the card switch mode.This shows, must keep identical MAC to transmit on each ply-yarn drill of distributed Ethernet switch.
At present, be used for realizing distributed Ethernet switch MAC address learning and aging technology, mainly comprise two types.
A kind of is " common study is concentrated aging " type, and each ply-yarn drill in the promptly distributed Ethernet switch can be learnt MAC Address, and is shared with other ply-yarn drills after study; Inactive MAC Address during MAC in each distributed Ethernet switch on responsible concentrated aging all ply-yarn drills of personal module of existence transmits.
For example: Chinese patent is disclosed on May 14th, 2008, publication number is CN101179514, denomination of invention is the patent application of " MAC item of distributed network processing system maintaining method and attending device ", " common study; concentrate aging " technology is applied to comprise the distributed network processing system of an interface board and a plurality of business boards, have only ports having on the interface board in this system, MAC transmits on each plate to be had.Each business board can be learnt MAC Address in this system, and the aging of MAC Address then is responsible for by interface board.Because in the specific environment that this patent application was suitable for, interface board finally is responsible for receiving and dispatching all packets, so every the record of interface board in can transmitting MAC maintains easily.But for this applied environment of distributed Ethernet switch, do not have no matter which independent card (is ply-yarn drill, still be main control card) can touch all packets through system forwards, thereby the MAC Address that realizes " common study is concentrated aging " mode in distributed Ethernet switch safeguards it is the comparison difficulty.
Another kind is " common study, common aging " type, and each ply-yarn drill in the promptly distributed Ethernet switch can be learnt MAC Address, is shared with other ply-yarn drills after study; And each ply-yarn drill can wear out oneself MAC transmit in inactive MAC Address, no matter this inactive MAC Address is ply-yarn drill oneself study, is still shared by other ply-yarn drills.
For example: United States Patent (USP) is disclosed on November 22nd, 2007, publication number is US2007268915, denomination of invention is the patent application of " MAC address learning in the distributed bridge ", the MAC address learning mode is distinguished:, adopt SELF to mark in the corresponding list item of ply-yarn drill X by the MAC Address that certain ply-yarn drill X oneself learns; The information of being learnt and will being learnt by other ply-yarn drill Y is shared with the MAC Address of ply-yarn drill X, adopts SYNC to mark in the corresponding list item of ply-yarn drill X.What is called " common study, common aging " is each list item during each ply-yarn drill is shown own MAC, no matter is the SELF type or the MAC Address of SYNC type, all wears out.Yet when ply-yarn drill Y received from packet that this MAC Address is sent once more, ply-yarn drill Y not only will refresh the corresponding MAC address entries of self maintained, also will send out announcement and give ply-yarn drill X, allowed ply-yarn drill X also carry out refresh operation with the aging effect on the opposing ply-yarn drill X.In actual applications, this class refresh operation is very frequent, can bring great communication between plates burden.Each ply-yarn drill independence wears out to the MAC Address of the SYNC type of self, can cause processing messages logic complexity.In addition, each ply-yarn drill all need announce the MAC address entries of all the SELF types of self to other ply-yarn drills with certain cycle not only waste bandwidth, and processing logic complexity.
In sum, be used to realize the method for MAC Address maintenance in the distributed Ethernet switch at present, comprise " common study; concentrate aging " type and " common study, common aging " type, existence realizes difficulty, over-burden for communication between plates, and the processing logic complicated problems.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of distributed Ethernet switch and inner MAC Address maintaining method thereof, with the convenient MAC Address maintenance that realizes in the distributed Ethernet switch, reduces the communication between plates burden, simplifies processing logic.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides the medium access control MAC Address maintaining method of a kind of distributed Ethernet switch inside, be applicable to the distributed Ethernet switch that comprises a main control card and a plurality of ply-yarn drills, this method comprises:
When the ply-yarn drill in the distributed Ethernet switch when switching port receives packet, according to the MAC Address of from packet, learning, the MAC of described ply-yarn drill transmitted upgrade, and the learning information of described MAC Address is announced to the main control card in the described distributed Ethernet switch and other ply-yarn drills; When described ply-yarn drill when interconnect port receives packet, do not carry out the study of MAC Address;
The MAC Address of learning from switching port during ply-yarn drill in the described distributed Ethernet switch is transmitted self MAC is carried out burin-in process, and the ageing information of described MAC Address announced to the main control card in the described distributed Ethernet switch and other ply-yarn drills, by described main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to described MAC Address.
Described MAC Address is the source MAC or the target MAC (Media Access Control) address of packet.
The MAC Address that described basis is learnt from packet is transmitted the MAC of ply-yarn drill and to be upgraded, and specifically comprises:
Described ply-yarn drill is according to the MAC Address of learning from packet, and the MAC that searches self transmits;
If there is the list item that mates with described MAC Address during described MAC transmits, then check the tag field in the described list item, if be first sign in the described tag field, then refresh the timestamp in the described list item; If in the described tag field be second sign, then described second sign is replaced with first sign, refresh the timestamp in the described list item, and upgrade the port information in the described list item;
If there is not list item during described MAC transmits with described MAC Address coupling, then in transmitting, creates described MAC newly-increased list item, tag field in the described newly-increased list item is filled to first sign, refresh the timestamp of described newly-increased list item, and the port information that will learn is filled in the described newly-increased list item.
Comprise in the learning information of described MAC Address: mac address information of learning and port information.
After main control card in the described distributed Ethernet switch and other ply-yarn drills are received the learning information of MAC Address of announcement,, carry out the renewal that MAC separately transmits and handle, be specially according to the learning information of described MAC Address:
According to the MAC Address in the learning information of described MAC Address, the MAC that searches self transmits;
If there is the list item that mates with described MAC Address during described MAC transmits, then upgrade described list item according to the port information in the described learning information, refresh the timestamp in the described list item, and the tag field of described list item is filled to second sign;
If there is not list item during described MAC transmits with described MAC Address coupling, then in transmitting, creates described MAC newly-increased list item, tag field in the described newly-increased list item is filled to second sign, refresh the timestamp of described newly-increased list item, and the port information in the learning information is filled in the described newly-increased list item.
The present invention also provides a kind of distributed Ethernet switch, comprising: a main control card and a plurality of ply-yarn drill, between the described ply-yarn drill, and link to each other by interconnect port between main control card and the ply-yarn drill, and each ply-yarn drill comprises a plurality of switching ports, wherein,
Described ply-yarn drill is used for when switching port receives packet, according to the MAC Address of learning from packet, the MAC of described ply-yarn drill is transmitted upgrade, and the learning information of described MAC Address is announced to described main control card and other ply-yarn drills; When described ply-yarn drill when interconnect port receives packet, do not carry out the study of MAC Address; Also be used for self MAC is transmitted the MAC Address execution burin-in process of learning from switching port, and the ageing information of described MAC Address is announced to the main control card in the described distributed Ethernet switch and other ply-yarn drills;
Described main control card is used for the learning information according to the MAC Address of ply-yarn drill announcement, carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address of ply-yarn drill announcement, carry out the burin-in process that self MAC is transmitted.
Described ply-yarn drill further comprises:
Switching Module is used to carry out the transmission of described packet;
First maintenance module is used for the MAC Address that basis is learnt from the packet of switching port, upgrades self MAC and transmits; Also be used for self MAC is transmitted the MAC Address execution burin-in process of learning from switching port;
First announcement module is used for main control card and the learning information of other ply-yarn drills announcement MAC Address and the ageing information of MAC Address to described distributed Ethernet switch.
Described first maintenance module also is used for the learning information according to the MAC Address that receives from interconnect port, carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address that receives from interconnect port, carry out the burin-in process that self MAC is transmitted.
Described main control card further comprises:
Second announcement module is used to receive the learning information of MAC Address of described ply-yarn drill announcement and the ageing information of MAC Address;
Second maintenance module is used for the learning information according to the MAC Address that is received, and carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address that is received, carry out the burin-in process that self MAC is transmitted.
Distributed Ethernet switch provided by the present invention and inner MAC Address maintaining method thereof, the packet that receives for switching port from ply-yarn drill, ply-yarn drill is according to the MAC Address of learning from packet, the MAC of this ply-yarn drill transmitted upgrade, and the learning information of MAC Address is announced to main control card and other ply-yarn drills; For the packet that receives from interconnect port, ply-yarn drill does not carry out the study of MAC Address; The MAC Address of learning from switching port during ply-yarn drill is only transmitted self MAC is carried out burin-in process, and the ageing information of MAC Address announced to main control card and other ply-yarn drills, by main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to MAC Address.The present invention has conveniently realized the MAC Address maintenance in the distributed Ethernet switch, has reduced the communication between plates burden in the distributed Ethernet switch, simplifies processing logic.
Description of drawings
Fig. 1 is the structural representation of the distributed Ethernet switch of the present invention;
Fig. 2 is the flow chart of the MAC Address maintaining method of a kind of distributed Ethernet switch of the present invention inside;
Fig. 3 is the flow chart of MAC address learning of the present invention;
Fig. 4 is the schematic diagram one of the MAC address learning of the embodiment of the invention;
Fig. 5 is the schematic diagram two of the MAC address learning of the embodiment of the invention;
Fig. 6 is the schematic diagram of the MAC address aging of the embodiment of the invention;
Fig. 7 is the composition structural representation of a kind of distributed Ethernet switch of the present invention.
Embodiment
The technical solution of the present invention is further elaborated below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, the distributed Ethernet switch that is suitable for of MAC Address maintaining method of the present invention need possess following feature:
A, distributed Ethernet switch inside comprise N (N 〉=1) individual ply-yarn drill and 1 main control card;
Comprise a plurality of switching ports on b, each ply-yarn drill, for example: port one, port 2, port 3, port 4, port 5 and port 6; Between ply-yarn drill and the main control card, and communicate by interconnect port (as port 0) between the ply-yarn drill, and ply-yarn drill is supported this locality exchange of packet and is striden the card exchange;
Safeguard all on c, each ply-yarn drill and the main control card that a MAC transmits.
MAC Address maintaining method by the present invention's distributed Ethernet switch shown in Figure 1 is realized as shown in Figure 2, mainly may further comprise the steps:
Step 201, when the ply-yarn drill in the distributed Ethernet switch when switching port receives packet, according to the MAC Address of from packet, learning, the MAC of ply-yarn drill transmitted upgrade, and the learning information of MAC Address is announced to the main control card in the distributed Ethernet switch and other ply-yarn drills; When ply-yarn drill when interconnect port receives packet, do not carry out the study of MAC Address.
That is to say that the packet that the ply-yarn drill in the distributed Ethernet switch only enters the switching port from this ply-yarn drill is learnt its MAC Address; And, do not learn its MAC Address to the data that the interconnect port from this ply-yarn drill enters.Thereby a packet only allows the ply-yarn drill of first this packet of processing to learn its MAC Address from entering distributed Ethernet switch to the process that is forwarded away (leaving distributed Ethernet switch).
The ply-yarn drill of learning MAC Address is constructed the learning information of corresponding MAC Address, and main control card and other ply-yarn drills in the distributed Ethernet switch are given in announcement.The learning information of the MAC Address of structure comprises: MAC Address of learning and port information.Main control card and other ply-yarn drills are according to the learning information of the MAC Address of being announced, and separately MAC is transmitted upgrade processing.
In addition, MAC Address among the present invention can be the source MAC or the target MAC (Media Access Control) address of packet, but be preferably the source MAC of packet,, can show more that just the owner of this source MAC is movable because when only receiving a packet from source MAC; And receive a packet of going to target MAC (Media Access Control) address, whether the owner that but can not reflect this target MAC (Media Access Control) address more accurately movable (may not exist).
Step 202, the MAC Address of learning from switching port during ply-yarn drill in the distributed Ethernet switch is transmitted self MAC is carried out burin-in process, and the ageing information of MAC Address announced to the main control card in the distributed Ethernet switch and other ply-yarn drills, by main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to MAC Address.
From MAC Address maintaining method shown in Figure 2 as can be seen, the strategy that the present invention adopts a kind of " whose study; who is aging; whose announcement ", after promptly learning MAC Address by certain ply-yarn drill, to be responsible for wearing out by this ply-yarn drill, and be responsible for announcing the learning information and the ageing information of this MAC Address, with the consistency of safeguarding that MAC transmits on all integrated circuit boards to main control card and other ply-yarn drills.And by adopting above-mentioned strategy, its operation that realizes the MAC Address maintenance is simple relatively, can simplify the processing logic of distributed Ethernet switch; Because it is little to be used to safeguard that MAC on each integrated circuit board transmits conforming communication overhead, therefore can reduce the communication between plates burden in the distributed Ethernet switch.
Be example with a certain ply-yarn drill X in the distributed Ethernet switch below, the learning process of MAC Address further elaborated, as shown in Figure 3, mainly may further comprise the steps:
Certain ply-yarn drill X in the step 301, distributed Ethernet switch receives packet from switching port, and according to the MAC Address of learning from packet, the MAC that searches self transmits.
MAC Address in the embodiment of the invention is the source MAC of packet.
Step 302, ply-yarn drill X judges whether described MAC exists the list item that mates with the MAC Address of learning in transmitting, if there is execution in step 303; Otherwise, execution in step 307.
Step 303, ply-yarn drill X checks the tag field in the list item of coupling, if in this tag field be first sign, execution in step 304; If in this tag field be second sign, execution in step 305.
In an embodiment of the present invention, can wear out (AGING) identifies as first, and can not wear out (UNAGING) is as second sign.For the list item that is designated AGING, the MAC Address that shows this list item correspondence is that ply-yarn drill X learns from switching port, and ply-yarn drill X can carry out burin-in process to this list item voluntarily; For the list item that is designated UNAGING, the MAC Address that shows this list item correspondence is not that ply-yarn drill X learns from switching port, and ply-yarn drill X can not carry out burin-in process to this list item voluntarily, and can only be according to the announcement of other ply-yarn drills, passive execution burin-in process.
Thereby if ply-yarn drill X judges that in the list item that mates be AGING, then execution in step 304; Otherwise, execution in step 305.
Step 304 is AGING in the list item of ply-yarn drill X judgement coupling, shows that corresponding MAC Address is that ply-yarn drill X learns from switching port, only need refresh the timestamp in this list item, and is refreshing the whole flow process of back end that finishes.
Step 305, ply-yarn drill X replaces with AGING with the UNAGING in the list item, refreshes the timestamp in the list item, and upgrades the port information in the list item.
Be UNAGING in the tag field of list item, and ply-yarn drill X receives from the packet that mates corresponding MAC Address the list item from its switching port, show that then migration has taken place MAC Address, for example: originally the packet of MAC1 enters distributed Ethernet switch from the port one of ply-yarn drill Y, and now the packet of MAC1 enters distributed Ethernet switch from the port 3 of ply-yarn drill X.
Step 306, the learning information of ply-yarn drill X structure MAC Address is announced to the main control card in the distributed Ethernet switch and other ply-yarn drills, finishes whole flow process then.
The learning information of the MAC Address of structure need comprise: mac address information of learning and port information.
Step 307, ply-yarn drill X judges that there is not the list item that mates with the MAC Address of learning in MAC in transmitting, illustrate that then the MAC Address of learning is a new MAC Address, thereby in transmitting, creates MAC newly-increased list item, tag field in the newly-increased list item is filled to first sign (AGING), refresh the timestamp of newly-increased list item, and the port information that will learn is filled in the newly-increased list item.
Step 308, the learning information of ply-yarn drill X structure MAC Address is announced to the main control card in the distributed Ethernet switch and other ply-yarn drills, finishes whole flow process then.
Tag field was the MAC Address of AGING during ply-yarn drill X transmitted the MAC of its maintenance, can carry out burin-in process voluntarily: stab according to these MAC Address time corresponding and calculate expired time, and when expired time exceeds the ageing time of setting, judge that MAC Address is expired; Thereby expired MAC Address is carried out burin-in process, and the ageing information of constructing the MAC Address of carrying expired MAC Address is announced to main control card and other ply-yarn drills, by main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to MAC Address.
For example MAC Address maintaining method of the present invention is described in detail below.As shown in Figure 4 and Figure 5, the distributed Ethernet switch among this embodiment is made up of a main control card and ply-yarn drill 1, ply-yarn drill 2.
Enter distributed Ethernet switch from the packet 100 of MAC1 from the port 3 of ply-yarn drill 1, and exchange away from the port 6 of ply-yarn drill 1.Ply-yarn drill 1 is learnt new MAC Address from packet 100 be MAC1, creates newly-increased list item, and the record port information is (card1, port3), tag field is filled to AGING, and refreshes the timestamp time100 of newly-increased list item, thereby obtains the forwarding-table item of corresponding MAC1 in the ply-yarn drill 1 shown in Figure 4.Subsequently, ply-yarn drill 1 structure carries MAC1 and (card1, the learning information of MAC Address port3) is announced to main control card and ply-yarn drill 2, transmit by main control card and 2 couples of MAC of ply-yarn drill and upgrade, and the MAC of main control card and ply-yarn drill 2 transmit in the tag field of corresponding MAC1 be UNAGING.
Enter distributed Ethernet switch from the packet 200 of MAC2 from the port 5 of ply-yarn drill 2, and exchange away from the port one of ply-yarn drill 1.Ply-yarn drill 2 is learnt new MAC Address from packet 200 be MAC2, creates newly-increased list item, and the record port information is (card2, port5), tag field is filled to AGING, and refreshes the timestamp time200 of newly-increased list item, thereby obtains the forwarding-table item of corresponding MAC2 in the ply-yarn drill 2 shown in Figure 4.Subsequently, ply-yarn drill 2 structures carry MAC2 and (card2, the learning information of MAC Address port5) is announced to main control card and ply-yarn drill 1, transmit by main control card and 1 couple of MAC of ply-yarn drill and upgrade, and the MAC of main control card and ply-yarn drill 1 transmit in the tag field of corresponding MAC2 be UNAGING.
Afterwards, enter distributed Ethernet switch from the packet 300 of MAC1 from the port 3 of ply-yarn drill 1, and exchange away from the port 6 of ply-yarn drill 1.Ply-yarn drill 1 finds the list item with the MAC1 coupling in the MAC of its maintenance transmits, and corresponding tag field is AGING, then only need refresh MAC transmit in the MAC1 time corresponding stab and be time300, thereby obtain the forwarding-table item of corresponding MAC1 in the ply-yarn drill 1 shown in Figure 5.At this moment, ply-yarn drill 1 does not need the learning information to main control card and ply-yarn drill 2 announcement MAC1.
Enter distributed Ethernet switch from the packet 400 of MAC2 from the port 2 of ply-yarn drill 1, and exchange away from the port one of ply-yarn drill 1.Ply-yarn drill 1 finds the list item with the MAC2 coupling in the MAC of its maintenance transmits, and corresponding tag field is UNAGING, show that then migration has taken place MAC2, thereby MAC is transmitted middle MAC2 corresponding port information by (card2, port5) be updated to (card1, port2), refresh MAC transmit in the MAC2 time corresponding stab and to be time400, the tag field of MAC2 correspondence is replaced with AGING.The forwarding-table item that obtains corresponding MAC2 is shown in ply-yarn drill among Fig. 51.Subsequently, ply-yarn drill 1 structure carries MAC2 and (card1, the learning information of MAC Address port2) is announced to main control card and ply-yarn drill 2, transmit by main control card and 2 couples of MAC of ply-yarn drill and upgrade, and the MAC of main control card and ply-yarn drill 2 transmit in the tag field of corresponding MAC2 be UNAGING.
As shown in Figure 5, the list item of corresponding MAC1 is expired in the MAC of ply-yarn drill 1 discovery self maintained transmits, then delete self MAC transmit in the list item of corresponding MAC1, and the ageing information of constructing the MAC Address of carrying MAC1 is announced to main control card and ply-yarn drill 2, by main control card and ply-yarn drill 2 according to ageing information, search the list item that mates with MAC1 during MAC transmits separately, and with the list item deletion that finds.After the burin-in process, the MAC in ply-yarn drill 1, ply-yarn drill 2 and the main control card transmits as shown in Figure 6.
The present invention is for realizing above-mentioned MAC Address maintaining method, and a kind of distributed Ethernet switch that is provided as shown in Figure 7, comprising: a plurality of ply-yarn drills 10 and a main control card 20.Between the ply-yarn drill 10, and link to each other by interconnect port between ply-yarn drill 10 and the main control card 20, and each ply-yarn drill 10 comprises a plurality of switching ports.
Wherein, ply-yarn drill 10 is used for when switching port receives packet, according to the MAC Address of learning from packet, self MAC is transmitted upgrade, and the learning information of described MAC Address is announced to main control card 20 and other ply-yarn drills; When ply-yarn drill 10 when interconnect port receives packet, do not carry out the study of MAC Address; Also be used for self MAC is transmitted the MAC Address execution burin-in process of learning from switching port, and the ageing information of MAC Address is announced to the main control card in the distributed Ethernet switch 20 and other ply-yarn drills.
Main control card 20 is used for the learning information according to the MAC Address of ply-yarn drill 10 announcements, carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address of ply-yarn drill 10 announcement, carry out the burin-in process that self MAC is transmitted.
Ply-yarn drill 10 further comprises: Switching Module 11, first maintenance module 12 and first announcement module 13.Switching Module 11 is used to carry out the transmission of packet.First maintenance module 12 connects Switching Module 11, is used for the MAC Address that basis is learnt from the packet of switching port, upgrades self MAC and transmits; Also be used for self MAC is transmitted the MAC Address execution burin-in process of learning from switching port.First announcement module 13 connects first maintenance module 12, is used for main control card 20 and the learning information of other ply-yarn drills announcement MAC Address and the ageing information of MAC Address to distributed Ethernet switch.In addition, first maintenance module 12 also is used for the learning information according to the MAC Address that receives from interconnect port, carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address that receives from interconnect port, carry out the burin-in process that self MAC is transmitted.
Main control card 20 further comprises: second announcement module 21 and second maintenance module 22.Second announcement module 21 is used to receive the learning information of MAC Address of ply-yarn drill 10 announcements and the ageing information of MAC Address.Second maintenance module 22 connects second announcement module 21, is used for the learning information according to the MAC Address that is received, and carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address that is received, carry out the burin-in process that self MAC is transmitted.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (9)

1, the medium access control MAC Address maintaining method of a kind of distributed Ethernet switch inside is applicable to the distributed Ethernet switch that comprises a main control card and a plurality of ply-yarn drills, it is characterized in that this method comprises:
When the ply-yarn drill in the distributed Ethernet switch when switching port receives packet, according to the MAC Address of from packet, learning, the MAC of described ply-yarn drill transmitted upgrade, and the learning information of described MAC Address is announced to the main control card in the described distributed Ethernet switch and other ply-yarn drills; When described ply-yarn drill when interconnect port receives packet, do not carry out the study of MAC Address;
The MAC Address of learning from switching port during ply-yarn drill in the described distributed Ethernet switch is transmitted self MAC is carried out burin-in process, and the ageing information of described MAC Address announced to the main control card in the described distributed Ethernet switch and other ply-yarn drills, by described main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to described MAC Address.
According to the MAC Address maintaining method of the described distributed Ethernet switch of claim 1 inside, it is characterized in that 2, described MAC Address is the source MAC or the target MAC (Media Access Control) address of packet.
According to the MAC Address maintaining method of claim 1 or 2 described distributed Ethernet switch inside, it is characterized in that 3, the MAC Address that described basis is learnt is transmitted the MAC of ply-yarn drill and to be upgraded, and specifically comprises from packet:
Described ply-yarn drill is according to the MAC Address of learning from packet, and the MAC that searches self transmits;
If there is the list item that mates with described MAC Address during described MAC transmits, then check the tag field in the described list item, if be first sign in the described tag field, then refresh the timestamp in the described list item; If in the described tag field be second sign, then described second sign is replaced with first sign, refresh the timestamp in the described list item, and upgrade the port information in the described list item;
If there is not list item during described MAC transmits with described MAC Address coupling, then in transmitting, creates described MAC newly-increased list item, tag field in the described newly-increased list item is filled to first sign, refresh the timestamp of described newly-increased list item, and the port information that will learn is filled in the described newly-increased list item.
4, according to the MAC Address maintaining method of the described distributed Ethernet switch of claim 3 inside, it is characterized in that, comprise in the learning information of described MAC Address: mac address information of learning and port information.
5, according to the MAC Address maintaining method of the described distributed Ethernet switch of claim 3 inside, it is characterized in that, after main control card in the described distributed Ethernet switch and other ply-yarn drills are received the learning information of MAC Address of announcement, learning information according to described MAC Address, carry out the renewal that MAC separately transmits and handle, be specially:
According to the MAC Address in the learning information of described MAC Address, the MAC that searches self transmits;
If there is the list item that mates with described MAC Address during described MAC transmits, then upgrade described list item according to the port information in the described learning information, refresh the timestamp in the described list item, and the tag field of described list item is filled to second sign;
If there is not list item during described MAC transmits with described MAC Address coupling, then in transmitting, creates described MAC newly-increased list item, tag field in the described newly-increased list item is filled to second sign, refresh the timestamp of described newly-increased list item, and the port information in the learning information is filled in the described newly-increased list item.
6, a kind of distributed Ethernet switch is characterized in that, comprising: a main control card and a plurality of ply-yarn drill, between the described ply-yarn drill, and link to each other by interconnect port between main control card and the ply-yarn drill, and each ply-yarn drill comprises a plurality of switching ports, wherein,
Described ply-yarn drill is used for when switching port receives packet, according to the MAC Address of learning from packet, the MAC of described ply-yarn drill is transmitted upgrade, and the learning information of described MAC Address is announced to described main control card and other ply-yarn drills; When described ply-yarn drill when interconnect port receives packet, do not carry out the study of MAC Address; Also be used for self MAC is transmitted the MAC Address execution burin-in process of learning from switching port, and the ageing information of described MAC Address is announced to the main control card in the described distributed Ethernet switch and other ply-yarn drills;
Described main control card is used for the learning information according to the MAC Address of ply-yarn drill announcement, carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address of ply-yarn drill announcement, carry out the burin-in process that self MAC is transmitted.
7, according to the described distributed Ethernet switch of claim 6, it is characterized in that described ply-yarn drill further comprises:
Switching Module is used to carry out the transmission of described packet;
First maintenance module is used for the MAC Address that basis is learnt from the packet of switching port, upgrades self MAC and transmits; Also be used for self MAC is transmitted the MAC Address execution burin-in process of learning from switching port;
First announcement module is used for main control card and the learning information of other ply-yarn drills announcement MAC Address and the ageing information of MAC Address to described distributed Ethernet switch.
According to the described distributed Ethernet switch of claim 7, it is characterized in that 8, described first maintenance module also is used for the learning information according to the MAC Address that receives from interconnect port, carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address that receives from interconnect port, carry out the burin-in process that self MAC is transmitted.
9, according to the described distributed Ethernet switch of claim 6, it is characterized in that described main control card further comprises:
Second announcement module is used to receive the learning information of MAC Address of described ply-yarn drill announcement and the ageing information of MAC Address;
Second maintenance module is used for the learning information according to the MAC Address that is received, and carries out the renewal that self MAC is transmitted; According to the ageing information of the MAC Address that is received, carry out the burin-in process that self MAC is transmitted.
CN2009100784588A 2009-02-23 2009-02-23 Distributed Ethernet switch and internal MAC address maintaining method thereof Active CN101488862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100784588A CN101488862B (en) 2009-02-23 2009-02-23 Distributed Ethernet switch and internal MAC address maintaining method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100784588A CN101488862B (en) 2009-02-23 2009-02-23 Distributed Ethernet switch and internal MAC address maintaining method thereof

Publications (2)

Publication Number Publication Date
CN101488862A true CN101488862A (en) 2009-07-22
CN101488862B CN101488862B (en) 2012-02-08

Family

ID=40891553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100784588A Active CN101488862B (en) 2009-02-23 2009-02-23 Distributed Ethernet switch and internal MAC address maintaining method thereof

Country Status (1)

Country Link
CN (1) CN101488862B (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195952A (en) * 2010-03-17 2011-09-21 杭州华三通信技术有限公司 Method and device terminal for triggering 802.1X Authentication
CN102231699A (en) * 2011-06-13 2011-11-02 迈普通信技术股份有限公司 Route processing method in distributed system and distributed system
CN102624943A (en) * 2012-04-12 2012-08-01 广东省电力调度中心 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports
CN101729420B (en) * 2009-12-15 2012-11-14 杭州迪普科技有限公司 Data processing method and data processing device
CN101656676B (en) * 2009-09-18 2013-03-20 杭州华三通信技术有限公司 Method and equipment for updating media access control (MAC) address list items
CN103019858A (en) * 2012-12-03 2013-04-03 中兴通讯股份有限公司 Media access control ageing method and network processor
CN103139084A (en) * 2011-12-02 2013-06-05 迈普通信技术股份有限公司 Method and device for multicast flow acquiring by main control card in distributed communication equipment
CN103685587A (en) * 2012-09-07 2014-03-26 深圳市腾讯计算机系统有限公司 Method and device for assigning MAC (Media Access Control) address
CN104125174A (en) * 2013-04-24 2014-10-29 上海斐讯数据通信技术有限公司 Data transmission method for stacked switching system
CN104283817A (en) * 2013-07-03 2015-01-14 杭州华三通信技术有限公司 Method for achieving communication of switching line card and logic line card and packet transmitting equipment
CN104350709A (en) * 2012-06-01 2015-02-11 日本电气株式会社 Switching system, line card, switch card, fdb learning method, and method and program for mediating fdb learning
CN105282037A (en) * 2014-05-28 2016-01-27 凯为公司 Method and apparatus for table aging in a network switch
CN105721315A (en) * 2016-04-06 2016-06-29 烽火通信科技股份有限公司 Control method for centralized mac address learning
CN105991783A (en) * 2015-02-06 2016-10-05 中兴通讯股份有限公司 MAC (Media Access Control) address learning method, device and system
CN104247341B (en) * 2012-03-14 2017-06-23 国际商业机器公司 The dynamic optimization method of distribution switch and its multicast tree hierarchical structure
CN107819684A (en) * 2016-09-12 2018-03-20 南京中兴新软件有限责任公司 synchronization processing method and device
CN108111637A (en) * 2017-12-25 2018-06-01 锐捷网络股份有限公司 A kind of method, line card and the switching equipment of aging MAC Address
CN108173753A (en) * 2017-12-28 2018-06-15 迈普通信技术股份有限公司 Message forwarding method, switching card, service card and distribution switch
CN108616614A (en) * 2018-04-28 2018-10-02 深圳市风云实业有限公司 MAC Address management method, device and electronic equipment
CN108777723A (en) * 2018-06-11 2018-11-09 深圳市风云实业有限公司 ARL list management systems
CN113364685A (en) * 2021-05-17 2021-09-07 中国人民解放军国防科技大学 Distributed MAC table item processing device and method
CN113709273A (en) * 2021-08-31 2021-11-26 迈普通信技术股份有限公司 Address migration method, communication equipment and dual-active system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002955B1 (en) * 2000-03-06 2006-02-21 Advanced Micro Devices, Inc. Selective address table aging in a network switch based on application state determined from a received data packet
ES2285379T3 (en) * 2004-07-16 2007-11-16 Alcatel Lucent METHOD TO ENSURE COMMUNICATION IN AN LCAL AREA NETWORK SWITCH.
CN100403731C (en) * 2004-12-30 2008-07-16 杭州华三通信技术有限公司 Method for controlling communication transmission path in stacked equipment domain
DE102005035201B4 (en) * 2005-07-27 2009-02-26 Siemens Ag Network node unit and method for forwarding data packets
CN100382541C (en) * 2005-09-13 2008-04-16 中兴通讯股份有限公司 Virtual circuit exchanging method based on MAC studying

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656676B (en) * 2009-09-18 2013-03-20 杭州华三通信技术有限公司 Method and equipment for updating media access control (MAC) address list items
CN101729420B (en) * 2009-12-15 2012-11-14 杭州迪普科技有限公司 Data processing method and data processing device
CN102195952A (en) * 2010-03-17 2011-09-21 杭州华三通信技术有限公司 Method and device terminal for triggering 802.1X Authentication
CN102231699B (en) * 2011-06-13 2015-06-03 迈普通信技术股份有限公司 Route processing method in distributed system and distributed system
CN102231699A (en) * 2011-06-13 2011-11-02 迈普通信技术股份有限公司 Route processing method in distributed system and distributed system
CN103139084A (en) * 2011-12-02 2013-06-05 迈普通信技术股份有限公司 Method and device for multicast flow acquiring by main control card in distributed communication equipment
CN103139084B (en) * 2011-12-02 2016-01-20 迈普通信技术股份有限公司 In distributed communication equipment, main control card obtains flux of multicast method and apparatus
CN104247341B (en) * 2012-03-14 2017-06-23 国际商业机器公司 The dynamic optimization method of distribution switch and its multicast tree hierarchical structure
CN102624943A (en) * 2012-04-12 2012-08-01 广东省电力调度中心 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports
CN102624943B (en) * 2012-04-12 2014-09-17 广东省电力调度中心 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports
CN104350709B (en) * 2012-06-01 2018-03-13 日本电气株式会社 Switch system, Line cards, switching card, FDB learning methods and FDB study mediation methods
CN104350709A (en) * 2012-06-01 2015-02-11 日本电气株式会社 Switching system, line card, switch card, fdb learning method, and method and program for mediating fdb learning
CN103685587B (en) * 2012-09-07 2018-07-17 深圳市腾讯计算机系统有限公司 The method and device of allocation medium access control MAC address
CN103685587A (en) * 2012-09-07 2014-03-26 深圳市腾讯计算机系统有限公司 Method and device for assigning MAC (Media Access Control) address
CN103019858A (en) * 2012-12-03 2013-04-03 中兴通讯股份有限公司 Media access control ageing method and network processor
CN103019858B (en) * 2012-12-03 2016-08-17 中兴通讯股份有限公司 Media interviews control aging method and network processing unit
CN104125174A (en) * 2013-04-24 2014-10-29 上海斐讯数据通信技术有限公司 Data transmission method for stacked switching system
CN104283817B (en) * 2013-07-03 2017-10-27 新华三技术有限公司 Line card and the method and message forwarding equipment of logic line card intercommunication are exchanged for realizing
CN104283817A (en) * 2013-07-03 2015-01-14 杭州华三通信技术有限公司 Method for achieving communication of switching line card and logic line card and packet transmitting equipment
CN105282037A (en) * 2014-05-28 2016-01-27 凯为公司 Method and apparatus for table aging in a network switch
CN105991783A (en) * 2015-02-06 2016-10-05 中兴通讯股份有限公司 MAC (Media Access Control) address learning method, device and system
CN105721315B (en) * 2016-04-06 2018-11-23 烽火通信科技股份有限公司 A kind of control method of centralization mac address learning
CN105721315A (en) * 2016-04-06 2016-06-29 烽火通信科技股份有限公司 Control method for centralized mac address learning
CN107819684A (en) * 2016-09-12 2018-03-20 南京中兴新软件有限责任公司 synchronization processing method and device
CN107819684B (en) * 2016-09-12 2022-08-02 中兴通讯股份有限公司 Synchronous processing method and device
CN108111637A (en) * 2017-12-25 2018-06-01 锐捷网络股份有限公司 A kind of method, line card and the switching equipment of aging MAC Address
CN108173753A (en) * 2017-12-28 2018-06-15 迈普通信技术股份有限公司 Message forwarding method, switching card, service card and distribution switch
CN108616614B (en) * 2018-04-28 2021-04-06 深圳市风云实业有限公司 MAC address management method and device and electronic equipment
CN108616614A (en) * 2018-04-28 2018-10-02 深圳市风云实业有限公司 MAC Address management method, device and electronic equipment
CN108777723A (en) * 2018-06-11 2018-11-09 深圳市风云实业有限公司 ARL list management systems
CN113364685A (en) * 2021-05-17 2021-09-07 中国人民解放军国防科技大学 Distributed MAC table item processing device and method
CN113364685B (en) * 2021-05-17 2023-03-14 中国人民解放军国防科技大学 Distributed MAC table item processing device and method
CN113709273A (en) * 2021-08-31 2021-11-26 迈普通信技术股份有限公司 Address migration method, communication equipment and dual-active system
CN113709273B (en) * 2021-08-31 2023-10-24 迈普通信技术股份有限公司 Address migration method, communication equipment and dual-activity system

Also Published As

Publication number Publication date
CN101488862B (en) 2012-02-08

Similar Documents

Publication Publication Date Title
CN101488862B (en) Distributed Ethernet switch and internal MAC address maintaining method thereof
CN103929461B (en) Mac address information synchronous method and device in pile system
US6128296A (en) Method and apparatus for distributed packet switching using distributed address tables
EP1443723B1 (en) Method of communication for a media independent interface for a highly integrated ethernet network element
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
JP4763791B2 (en) Optimized synchronization of MAC address tables in network interconnect devices
CN103490966B (en) A kind of dual-redundant CAN bus method for receiving and processing data
CN1586065B (en) Peer to peer network communication with network address translation
CN100550763C (en) The management method of the network equipment and network management system
CN101179507A (en) Communication apparatus and retrieval table management method used for communication apparatus
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
WO2007135666A3 (en) Mac address learning in a distributed bridge
CN101019380B (en) Systems and methods for accelerated learning in ring networks
JP2014519249A (en) Port expansion topology information acquisition method, system, control bridge, and uplink port processing method and system
CN102104555B (en) Method for accessing USB equipment of home gateway, home gateway and terminal
AU2003299454A1 (en) Integrated circuit and method for exchanging data
CN103329469A (en) Method of shrinking a data loss window in a packet network device
CN102035688B (en) Design method for rapidly controlling network link access
CN100592711C (en) Integrated circuit and method for packet switching control
CN101510882A (en) Method and apparatus for learning medium access control address
CN102377657A (en) External data connection system for flight information integration management system
CN101247663B (en) Considerable routing system and its forwarding table generation method
CN102215112A (en) Method applied to FCoE (Fiber Channel over Ethernet) networking and used for optimizing FSPE (Fiber Shortest Path First) protocol and switchboards
CN102907061A (en) Multiplexed serial media independent interface
CN104486256A (en) Multi-plane exchange network equipment of converged infrastructure-oriented server

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