[go: up one dir, main page]

CN101488862B - 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
CN101488862B
CN101488862B CN2009100784588A CN200910078458A CN101488862B CN 101488862 B CN101488862 B CN 101488862B CN 2009100784588 A CN2009100784588 A CN 2009100784588A CN 200910078458 A CN200910078458 A CN 200910078458A CN 101488862 B CN101488862 B CN 101488862B
Authority
CN
China
Prior art keywords
mac address
mac
ply
yarn drill
ethernet switch
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
CN2009100784588A
Other languages
Chinese (zh)
Other versions
CN101488862A (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

Landscapes

  • Small-Scale Networks (AREA)

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 gets into from a port of Ethernet switch; Ethernet switch is based on the purpose medium access control (MAC in the packet; Media AccessControl) 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 through Ethernet switch and fall all inactive MAC Addresss 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 get into by a port from 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 get into by a port from 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 after study, is shared with other ply-yarn drills; 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 ", and " common study is concentrated 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 of in distributed Ethernet switch, realizing " common study is concentrated aging " mode 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, after study, is shared with other ply-yarn drills; 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 this MAC Address data sent bag 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, let ply-yarn drill X also carry out refresh operation with the aging effect on the opposing ply-yarn drill X.In practical application, this type 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 the processing messages logic complicated.In addition, each ply-yarn drill all need be announced the MAC address entries of all the SELF types of self to other ply-yarn drills with certain cycle, and not only waste bandwidth, and processing logic is complicated.
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 inner medium access control MAC Address maintaining method of a kind of distributed Ethernet switch, 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 said ply-yarn drill transmitted upgrade, and the learning information of said MAC Address is announced to the main control card in the said distributed Ethernet switch and other ply-yarn drills; When said 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 said distributed Ethernet switch is transmitted self MAC is carried out burin-in process; And the ageing information of said MAC Address announced to the main control card in the said distributed Ethernet switch and other ply-yarn drills; By said main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to said MAC Address.
Said MAC Address is the source MAC or the target MAC (Media Access Control) address of packet.
The MAC Address that said basis is learnt from packet is transmitted the MAC of ply-yarn drill and to be upgraded, and specifically comprises:
Said ply-yarn drill is according to the MAC Address of from packet, learning, and the MAC that searches self transmits;
If there is the list item that matees with said MAC Address during said MAC transmits, then check the tag field in the said list item, if be first sign in the said tag field, then refresh the timestamp in the said list item; If in the said tag field be second sign, then said second sign is replaced with first sign, refresh the timestamp in the said list item, and upgrade the port information in the said list item;
If there is not list item during said MAC transmits with said MAC Address coupling; Then, creates said MAC newly-increased list item in transmitting; Tag field in the said newly-increased list item is filled to first sign; Refresh the timestamp of said newly-increased list item, and the port information that will learn is filled in the said newly-increased list item.
Comprise in the learning information of said MAC Address: mac address information of learning and port information.
After main control card in the said distributed Ethernet switch and other ply-yarn drills are received the learning information of MAC Address of announcement,, carry out the update processing that MAC separately transmits, be specially according to the learning information of said MAC Address:
According to the MAC Address in the learning information of said MAC Address, the MAC that searches self transmits;
If there is the list item that matees with said MAC Address during said MAC transmits, then upgrade said list item according to the port information in the said learning information, refresh the timestamp in the said list item, and the tag field of said list item is filled to second sign;
If there is not list item during said MAC transmits with said MAC Address coupling; Then, creates said MAC newly-increased list item in transmitting; Tag field in the said newly-increased list item is filled to second sign; Refresh the timestamp of said newly-increased list item, and the port information in the learning information is filled in the said 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 said ply-yarn drill, and link to each other through interconnect port between main control card and the ply-yarn drill, and each ply-yarn drill comprises a plurality of switching ports, wherein,
Said ply-yarn drill is used for when switching port receives packet, according to the MAC Address of from packet, learning, the MAC of said ply-yarn drill is transmitted upgrade, and the learning information of said MAC Address is announced to said main control card and other ply-yarn drills; When said 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 said MAC Address is announced to the main control card in the said distributed Ethernet switch and other ply-yarn drills;
Said 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.
Said ply-yarn drill further comprises:
Switching Module is used to carry out the transmission of said 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 drill announcement MAC Addresss and the ageing information of MAC Address to said distributed Ethernet switch.
Said main control card further comprises:
Second announcement module is used to receive learning information and the ageing information of MAC Address of the MAC Address of said ply-yarn drill announcement;
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 from packet, learning; 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 inner MAC Address maintaining method of a kind of distributed Ethernet switch of the present invention;
Fig. 3 is the flow chart of MAC address learning of the present invention;
Fig. 4 is the sketch map one of the MAC address learning of the embodiment of the invention;
Fig. 5 is the sketch map two of the MAC address learning of the embodiment of the invention;
Fig. 6 is the sketch map 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
Below in conjunction with accompanying drawing and specific embodiment technical scheme of the present invention is further set forth in detail.
As shown in Figure 1, the distributed Ethernet switch that MAC Address maintaining method of the present invention is suitable for need possess following characteristic:
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 through interconnect port (like 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.
By the MAC Address maintaining method that 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 gets into 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 gets into.Thereby a packet only allows its MAC Address of ply-yarn drill study of first this packet of processing from getting into 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 carry out update 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 (possibly 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, can find out; 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 to the learning information and the ageing information of main control card, with the consistency of safeguarding that MAC transmits on all integrated circuit boards with other these MAC Addresss of ply-yarn drills announcement.And through 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 is further set forth in detail, 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 from packet, learning, 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 said MAC exists the list item that matees 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, show that the corresponding MAC Address of this list item is that ply-yarn drill X learns from switching port, ply-yarn drill X can carry out burin-in process to this list item voluntarily; For the list item that is designated UNAGING, show that the corresponding MAC Address of this list item is not that ply-yarn drill X learns from switching port, 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 matees 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 the packet from corresponding MAC Address the coupling list item from its switching port; Show that then migration has taken place MAC Address; For example: originally the packet of MAC1 gets into distributed Ethernet switch from the port one of ply-yarn drill Y, and the packet of present MAC1 is from the distributed Ethernet switch of port 3 entering 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 matees with the MAC Address of learning in MAC in transmitting; Explain that then the MAC Address of learning is a new MAC Address, thereby in MAC transmits, create newly-increased list item, the 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 that carries 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 set forth in detail below.Like Fig. 4 and shown in 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.
Get into 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.
Get into 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, get into 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 need be to the learning information of main control card and ply-yarn drill 2 announcement MAC1.
Get into 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, shows 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 that MAC2 is corresponding replaces 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 that structure carries the MAC Address of MAC1 announces 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 matees 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 the above-mentioned MAC Address maintaining method of realization, and a kind of distributed Ethernet switch that is provided is 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 through 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 from packet, learning, self MAC is transmitted upgrade, and the learning information of said 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 drill announcement MAC Addresss 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 learning information and the ageing information of MAC Address of the MAC Address of ply-yarn drill 10 announcements.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 merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.

Claims (9)

1. the MAC Address maintaining method that distributed Ethernet switch is inner 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 medium access control of from packet, learning (MAC) address; The MAC of said ply-yarn drill transmitted upgrade, and the learning information of said MAC Address is announced to the main control card in the said distributed Ethernet switch and other ply-yarn drills; When said 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 said distributed Ethernet switch is transmitted self MAC is carried out burin-in process; And the ageing information of said MAC Address announced to the main control card in the said distributed Ethernet switch and other ply-yarn drills; By said main control card and other ply-yarn drills ageing information, carry out the burin-in process that MAC separately transmits according to said MAC Address.
2. according to the inner MAC Address maintaining method of the said distributed Ethernet switch of claim 1, it is characterized in that said MAC Address is the source MAC or the target MAC (Media Access Control) address of packet.
3. according to claim 1 or the inner MAC Address maintaining method of 2 said distributed Ethernet switches, it is characterized in that the MAC Address that said basis is learnt is transmitted the MAC of ply-yarn drill and to be upgraded, and specifically comprises from packet:
Said ply-yarn drill is according to the MAC Address of from packet, learning, and the MAC that searches self transmits;
If there is the list item that matees with said MAC Address during said MAC transmits, then check the tag field in the said list item, if be first sign in the said tag field, then refresh the timestamp in the said list item; If in the said tag field be second sign, then said second sign is replaced with first sign, refresh the timestamp in the said list item, and upgrade the port information in the said list item;
If there is not list item during said MAC transmits with said MAC Address coupling; Then, creates said MAC newly-increased list item in transmitting; Tag field in the said newly-increased list item is filled to first sign; Refresh the timestamp of said newly-increased list item, and the port information that will learn is filled in the said newly-increased list item.
4. according to the inner MAC Address maintaining method of the said distributed Ethernet switch of claim 3, it is characterized in that, comprise in the learning information of said MAC Address: mac address information of learning and port information.
5. according to the inner MAC Address maintaining method of the said distributed Ethernet switch of claim 3; It is characterized in that; After main control card in the said distributed Ethernet switch and other ply-yarn drills are received the learning information of MAC Address of announcement; According to the learning information of said MAC Address, carry out the update processing that MAC separately transmits, be specially:
According to the MAC Address in the learning information of said MAC Address, the MAC that searches self transmits;
If there is the list item that matees with said MAC Address during said MAC transmits, then upgrade said list item according to the port information in the said learning information, refresh the timestamp in the said list item, and the tag field of said list item is filled to second sign;
If there is not list item during said MAC transmits with said MAC Address coupling; Then, creates said MAC newly-increased list item in transmitting; Tag field in the said newly-increased list item is filled to second sign; Refresh the timestamp of said newly-increased list item, and the port information in the learning information is filled in the said newly-increased list item.
6. a distributed Ethernet switch is characterized in that, comprising: a main control card and a plurality of ply-yarn drill, between the said ply-yarn drill, and link to each other through interconnect port between main control card and the ply-yarn drill, and each ply-yarn drill comprises a plurality of switching ports, wherein,
Said ply-yarn drill is used for when switching port receives packet, according to the MAC Address of from packet, learning, the MAC of said ply-yarn drill is transmitted upgrade, and the learning information of said MAC Address is announced to said main control card and other ply-yarn drills; When said 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 said MAC Address is announced to the main control card in the said distributed Ethernet switch and other ply-yarn drills;
Said 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 said distributed Ethernet switch of claim 6, it is characterized in that said ply-yarn drill further comprises:
Switching Module is used to carry out the transmission of said 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 drill announcement MAC Addresss and the ageing information of MAC Address to said distributed Ethernet switch.
8. according to the said distributed Ethernet switch of claim 6, it is characterized in that said main control card further comprises:
Second announcement module is used to receive learning information and the ageing information of MAC Address of the MAC Address of said ply-yarn drill announcement;
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.
9. according to the said distributed Ethernet switch of claim 6, it is characterized in that said main control card further comprises:
Second announcement module is used to receive learning information and the ageing information of MAC Address of the MAC Address of said ply-yarn drill announcement;
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 CN101488862A (en) 2009-07-22
CN101488862B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692716B2 (en) 2013-07-03 2017-06-27 Hewlett Packard Enterprise Development Lp Interoperation of switch line card and programmable line card

Families Citing this family (21)

* 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
CN102195952B (en) * 2010-03-17 2015-05-13 杭州华三通信技术有限公司 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
CN103139084B (en) * 2011-12-02 2016-01-20 迈普通信技术股份有限公司 In distributed communication equipment, main control card obtains flux of multicast method and apparatus
US8953619B2 (en) * 2012-03-14 2015-02-10 International Business Machines Corporation Dynamic optimization of a multicast tree hierarchy for a distributed switch
CN102624943B (en) * 2012-04-12 2014-09-17 广东省电力调度中心 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports
US9792559B2 (en) * 2012-06-01 2017-10-17 Nec Corporation Switching system, line card, switch card, FDB learning method, FDB learning arbitration method and program
CN103685587B (en) * 2012-09-07 2018-07-17 深圳市腾讯计算机系统有限公司 The method and device of allocation medium access control MAC address
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
US9773036B2 (en) * 2014-05-28 2017-09-26 Cavium, Inc. 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
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
CN108777723B (en) * 2018-06-11 2021-07-27 深圳市风云实业有限公司 ARL table management system
CN113364685B (en) * 2021-05-17 2023-03-14 中国人民解放军国防科技大学 Distributed MAC table item processing device and method
CN113709273B (en) * 2021-08-31 2023-10-24 迈普通信技术股份有限公司 Address migration method, communication equipment and dual-activity system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451215A (en) * 2000-03-06 2003-10-22 先进微装置公司 Selective address table aging in a network switch
CN1722707A (en) * 2004-07-16 2006-01-18 阿尔卡特公司 Method for securing communication in a local area network switch
CN1722705A (en) * 2004-12-30 2006-01-18 杭州华为三康技术有限公司 Method for controlling communication transmission path in stacked device domain
CN1741499A (en) * 2005-09-13 2006-03-01 中兴通讯股份有限公司 Virtual circuit exchanging method based on MAC studying
CN101080903A (en) * 2005-07-27 2007-11-28 西门子公司 Network node unit and method for forwarding data packets

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451215A (en) * 2000-03-06 2003-10-22 先进微装置公司 Selective address table aging in a network switch
CN1722707A (en) * 2004-07-16 2006-01-18 阿尔卡特公司 Method for securing communication in a local area network switch
CN1722705A (en) * 2004-12-30 2006-01-18 杭州华为三康技术有限公司 Method for controlling communication transmission path in stacked device domain
CN101080903A (en) * 2005-07-27 2007-11-28 西门子公司 Network node unit and method for forwarding data packets
CN1741499A (en) * 2005-09-13 2006-03-01 中兴通讯股份有限公司 Virtual circuit exchanging method based on MAC studying

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692716B2 (en) 2013-07-03 2017-06-27 Hewlett Packard Enterprise Development Lp Interoperation of switch line card and programmable line card

Also Published As

Publication number Publication date
CN101488862A (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN101488862B (en) Distributed Ethernet switch and internal MAC address maintaining method thereof
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
US6128296A (en) Method and apparatus for distributed packet switching using distributed address tables
CN101517981B (en) Multi-chassis emulated switch
CN103929461B (en) Mac address information synchronous method and device in pile system
EP1443723B1 (en) Method of communication for a media independent interface for a highly integrated ethernet network element
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
JP2014519249A (en) Port expansion topology information acquisition method, system, control bridge, and uplink port processing method and system
CN101179507A (en) Communication apparatus and retrieval table management method used for communication apparatus
WO2007135666A3 (en) Mac address learning in a distributed bridge
CN102104555B (en) Method for accessing USB equipment of home gateway, home gateway and terminal
CN103329469A (en) Method of shrinking a data loss window in a packet network device
EP2012547A1 (en) Topology scan method and scan system
AU2003299454A8 (en) Integrated circuit and method for exchanging data
CN102160328A (en) Central controller for coordinating multicast message transmissions in distributed virtual network switch environment
CN103404084A (en) MAC address forced forwarding device and method
CN100492984C (en) Method for realizing data transfer backup through address interpretation protocol messages
CN103166826A (en) Methods and apparatus for implementing a fibre channel zone policy
CN100420224C (en) Network appiliance and method of realizing service sharing
CN100550763C (en) The management method of the network equipment and network management system
CN101785283A (en) Methods and devices for communicating diagnosis data in a real time communication network
CN101019380B (en) Systems and methods for accelerated learning in ring networks
JP2010177752A (en) Network communication node
CN101437050A (en) Player remote control system and player remote control method

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