CN100531085C - Method for accessing into control address table spacing using Ethernet switch medium - Google Patents

Method for accessing into control address table spacing using Ethernet switch medium Download PDF

Info

Publication number
CN100531085C
CN100531085C CNB2006100994277A CN200610099427A CN100531085C CN 100531085 C CN100531085 C CN 100531085C CN B2006100994277 A CNB2006100994277 A CN B2006100994277A CN 200610099427 A CN200610099427 A CN 200610099427A CN 100531085 C CN100531085 C CN 100531085C
Authority
CN
China
Prior art keywords
processing unit
mac address
sub
vlan
switch processing
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
CNB2006100994277A
Other languages
Chinese (zh)
Other versions
CN101110721A (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 CNB2006100994277A priority Critical patent/CN100531085C/en
Publication of CN101110721A publication Critical patent/CN101110721A/en
Application granted granted Critical
Publication of CN100531085C publication Critical patent/CN100531085C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A method of utilizing the ethernet network exchanger MAC address table space. The exchanger comprises a main control exchanging and processing unit and a plurality of sub-exchanging and processing units, the method comprises the following steps: a sub-exchanging and processing unit learns an MAC address, generates an MAC address item containing the virtual local area network VLAN corresponding to the MAC address and the port, and adds to the chip MAC address table of the processing unit; the sub-exchanging and processing unit informs the MAC address item to the main exchanging and processing unit, and the main exchanging and processing unit informs other sub-exchanging and processing units; the other sub-exchanging and processing units judges whether the processing unit has a VLAN membership port in the MAC address item, if the processing unit has, the MAC address item is added to the chip MAC address table of the processing unit, and if the processing unit doesn't have, the MAC address item isn't added. The present invention can effectively utilize the chip MAC address table space of the ethernet network exchanger.

Description

Utilize the method for Ethernet switch Media Access Control Address table space
Technical field
The present invention relates to the ethernet communication technology, in particular, is a kind of processing method that is used for being implemented in chip MAC (medium access control) address table that utilizes switch limited on the Ethernet switch.
Background technology
Along with the high speed development of internet, ethernet network becomes necessary tool in people's routine work and the life gradually, thereby also more and more higher to the demand and the disposal ability of Ethernet switch.As everyone knows, present still high-tech product that cost is very high of Ethernet switch.So, how could we under the certain situation of cost, make the data exchange capability of Ethernet switch obtain bigger performance?
Two layers of exchange of Ethernet switch are to be transmitted by MAC Address (physical address also is in the address that MAC Address is promptly used on the medium Access Layer) to realize at present.Switch after receiving a Frame, the source MAC of first learning data frame and Frame the VLAN (Virtual Local Area Network, VLAN) that should belong to, and Frame enters the physical port PORT of switch.Will form list item: a MAC+VLAN->PORT according to the method, source MAC through each equipment under each port of study forms a lot of such list items later on, Here it is mac address table, in data frames exchange, just can take the purpose MAC of Frame to look into these list items so, Frame is forwarded to corresponding ports fast.
As shown in Figure 1, the model of present distributed Ethernet switch is that whole switch has a plurality of little sub-switch processing units, these little sub-processing units are coupled together by a big master control switch processing unit, whole like this switch has just formed a switching network, thereby realizes the exchange of high port density high power capacity.Present way is to add the mac address table of this unit when certain sub-crosspoint is learnt certain MAC Address, notify the master control processing unit simultaneously, the master control processing unit reinforms other sub-processing unit, other sub-processing unit is write mac address table with this MAC Address again, and the mac address table content by last all these crosspoints of this way is consistent.But this way some waste under the different situation of VLAN configuration.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method of utilizing Ethernet switch mac address table space, utilizes this method can effectively utilize the mac address table space of Ethernet switch.
Ethernet switch is used for the mac address table of transmitting decision and is stored in the internal memory, and these internal memories are integrated among the Ethernet switching chip, and its space size is certain.This limited space is effectively utilized.For solving this technical problem, the invention provides a kind of method of utilizing Ethernet switch media access control MAC address table space, this Ethernet switch comprises master control switch processing unit and plurality of sub switch processing unit, this method may further comprise the steps:
(a) certain sub-switch processing unit is learnt certain MAC Address, and generation one comprises the MAC Address clauses and subclauses of this MAC Address corresponding virtual local area network (LAN) VLAN and port PO RT, the chip MAC address table of adding this processing unit to;
(b) the described sub-switch processing unit described MAC Address clauses and subclauses notice master control switch processing unit that will generate, this master control switch processing unit reinforms other sub-switch processing units;
(c) other sub-switch processing units judge respectively whether this processing unit has the member port of the VLAN in these MAC Address clauses and subclauses, if having, add these MAC Address clauses and subclauses the chip MAC address table of to this processing unit, if do not have, then do not add.
Further, said method also can have following characteristics: in the described step (b), after the master control switch processing unit is received the notice of sub-switch processing unit, also described MAC Address clauses and subclauses are added to the software mac address table of this processing unit.
Further, said method also can have following characteristics: in the described step (c), no matter whether other sub-switch processing units add described MAC Address clauses and subclauses in chip MAC address table, all these MAC Address clauses and subclauses is kept in the software mac address table of this processing unit.
Further, said method also can have following characteristics: when the member port number of variations of certain VLAN, the master control switch processing unit is notified each sub-switch processing unit with the change information of this member of vlan's port, after each sub-switch processing unit obtains notice, as judge that this VLAN grows out of nothing at the member port of this processing unit, all then that this VLAN is relevant MAC Address clauses and subclauses are added in the chip MAC address table of this processing unit.
Further, said method also can have following characteristics: when the member port number of variations of certain VLAN, the master control switch processing unit is notified each sub-switch processing unit with the change information of this member of vlan's port, after each sub-switch processing unit obtains notice, as judge this VLAN at the member port of this processing unit from having to nothing, all then that this VLAN in the chip MAC address table of this processing unit is relevant MAC Address clauses and subclauses deletions.
Further, said method also can have following characteristics: described sub-switch processing unit is to obtain all relevant MAC Address clauses and subclauses of described VLAN from the software mac address table of this processing unit, perhaps, after described master control switch processing unit is received the notice of sub-switch processing unit, also described MAC Address clauses and subclauses are added to the software mac address table of this processing unit, described master control switch processing unit is when notifying the change information of the described member of vlan's port of each sub-switch processing unit, again notify each sub-switch processing unit with all relevant with described VLAN in its software mac address table MAC Address clauses and subclauses, described sub-switch processing unit therefrom obtains all relevant MAC Address clauses and subclauses of described VLAN.
Compared with prior art, the present invention is when sub-switch processing unit adds the MAC Address forwarding entry, added in this switch processing unit whether the member belong to the VLAN at MAC Address place, if do not have then the first chip MAC address table, the confined space of having accomplished to have saved mac address table like this of not writing.Because this processing unit is the member of this VLAN not, so can not use these MAC Address clauses and subclauses transmits, thereby to two layers of forwarding of whole Ethernet switch without any influence, simultaneously can make whole Ethernet switch can learn more MAC Address, made full use of the space of mac address table more, the exchange capacity of switch is improved greatly.
Description of drawings
Fig. 1 is the switch architecture schematic diagram that master control switch processing unit and sub-switch processing unit are arranged.
Fig. 2 is that sub-switch processing unit is received master control switch processing unit MAC Address interpolation flow chart.
Fig. 3 is that sub-switch processing unit is received master control switch processing unit member of vlan modified flow figure.
Embodiment
Total inventive concept of the present invention is according to distribution switch VLAN (Virtual Local AreaNetwork, VLAN) whether the member exists the mac address table that adds sub-processing unit on each sub-switch processing unit, to utilize the limited chip MAC address table space of Ethernet switch more effectively, fully.
Below in conjunction with accompanying drawing the present invention is described by the processing method that VLAN adds MAC Address.
Present embodiment effectively utilizes the method in mac address table space to comprise following step:
The first step, certain sub-switch processing unit is learnt after certain MAC Address, generates MAC Address clauses and subclauses, adds the mac address table of this unit to, notifies the master control processing unit simultaneously;
In second step, the master control processing unit obtains notifying other sub-processing unit after the message;
In the 3rd step, other sub-processing unit is judged according to the virtual LAN VLAN in these MAC Address clauses and subclauses after the notice of receiving the master control processing unit, is divided into two kinds of situations:
This processing unit has the member port of this VLAN, i.e. this processing unit ports having belongs to this VLAN, the chip MAC address table of adding these MAC Address clauses and subclauses to this processing unit.
This processing unit is the member port of this VLAN not, these MAC Address clauses and subclauses is not added in the chip MAC address table of this processing unit.
Particularly, the master control switch processing unit is after other sub-switch processing units send the interpolation notice, and other sub-switch processing units carry out following steps by handling process shown in Figure 2:
Step 201: sub-processing unit is received the MAC notice of Main Processor Unit, and list item MAC+VLAN->PORT is added in request;
Step 202: this sub-processing unit judges whether ports having belongs to this VLAN to this processing unit, if having then execution in step 203, otherwise, do not carry out and add operation, directly execution in step 204;
Step 203: add this MAC Address clauses and subclauses to chip MAC address table;
Step 204: this sub-processing unit is kept at these MAC Address clauses and subclauses in the software mac address table of this processing unit CPU.
In addition, when the member port number of variations of certain VLAN, the master control processing unit is notified each sub-switch processing unit with the change information of this member of vlan's port, sub-processing unit obtains notifying the back whether to have the mac address table that adds or delete this VLAN according to this member of vlan on each sub-switch processing unit, to adapt to this variation.Concrete handling process may further comprise the steps as shown in Figure 3:
Step 301: sub-switch processing unit is received the notice that master control switch processing unit member of vlan port number changes;
Step 302: sub-switch processing unit judges toward this VLAN and adds member still from this VLAN removing members, if add the member then execution in step 303, if removing members execution in step 306 then;
Step 303: this member of vlan's port number adds 1;
Step 304: this sub-switch processing unit judges whether the port number of port in this VLAN of this processing unit is 1, if 1 execution in step 305, otherwise finish;
Step 305: this sub-switch processing unit is found out the MAC Address clauses and subclauses that belong to this VLAN and is added in the chip list from CPU software MAC table, finish;
Step 306: this member of vlan's port number subtracts 1;
Step 307: this sub-switch processing unit judges whether the port number of port in this VLAN of this processing unit is 0, if 0 execution in step 308, otherwise finish;
Step 308: the MAC Address clauses and subclauses of this VLAN in this sub-switch processing unit deletion chip list.
Be illustrated with an example below.
As shown in Figure 1, distributed Ethernet switch has a master control switch processing unit, four sub-switch processing units, and 16 port distribution are on four sub-switch processing units.
If a certain moment, the port one of sub-switch processing unit 1 has been learnt a MAC Address, the address is A, VLAN is 2, will generate MAC Address clauses and subclauses so: MAC A+VLAN2->port one, add the chip MAC address table of oneself, notify the master control switch processing unit this address message simultaneously.
The master control switch processing unit is received the study of sub-switch processing unit 1 after new MAC Address message, and the software MAC that MAC Address clauses and subclauses is wherein added to oneself shows, and notifies other sub-switch processing units to add this MAC Address clauses and subclauses simultaneously.
For sub-switch processing unit 2, receive add request after, judge then whether ports having belongs to VLAN 2 in the port 5,6,7,8 of this processing unit, if having, then adds this MAC Address clauses and subclauses to chip; If port 5,6,7,8 all not in VLAN 2, is then cancelled to chip and added this MAC Address, and this MAC Address is kept in the software mac address table of book processing unit CPU.
When group switch processing unit 2 is received the notice of master control switch processing unit member of vlan port number variation:
If certain VLAN such as VLAN 2 add member port, if originally VLAN 2 does not have member port at this switch processing unit, having become now has member port, and the MAC Address clauses and subclauses that then need to take out all VLAN 2 from the software MAC table of CPU are added in the chip; If originally just there is member port in VLAN 2 at this switch processing unit, then without any need for operation.
If certain VLAN such as VLAN 2 removing members ports, if originally VLAN 2 has member port at this switch processing unit, after having deleted member port now, if VLAN 2 is 0 at the port number of members of this switch processing unit, then need to delete the MAC Address clauses and subclauses of all VLAN 2 in this switch processing unit chip MAC table; Other situation is then without any need for operation.
In sum, Ethernet switch is used for the mac address table of transmitting decision and is stored in the internal memory, and these internal memories are integrated among the Ethernet switching chip, and its space size is certain.Compared with prior art, the present invention is when sub-switch processing unit adds the MAC Address forwarding entry, added in this switch processing unit whether the member belong to the VLAN at MAC Address place, if do not have then the first mac address table, the confined space of having accomplished to have saved mac address table like this of not writing.Because this processing unit is the member of this VLAN not, so can not use these MAC Address clauses and subclauses transmits, thereby to two layers of forwarding of whole Ethernet switch without any influence, simultaneously can make whole Ethernet switch can learn more MAC Address, having made full use of the space of mac address table more, is that the exchange capacity of switch improves greatly.
The present invention can also have various conversion on the basis of above-mentioned present embodiment.For example, when certain sub-processing unit does not have VLAN in the MAC Address clauses and subclauses, also can no longer these MAC Address clauses and subclauses be kept at the software mac address table of this processing unit, when member of vlan's port number changes, can notify each sub-processing unit according to all again that this VLAN is relevant MAC Address clauses and subclauses of the software mac address table of CPU by the master control crosspoint.

Claims (6)

1, a kind of method of utilizing Ethernet switch media access control MAC address table space, this Ethernet switch comprises master control switch processing unit and plurality of sub switch processing unit, this method may further comprise the steps:
(a) certain sub-switch processing unit is learnt certain MAC Address, and generation one comprises the MAC Address clauses and subclauses of this MAC Address corresponding virtual local area network (LAN) VLAN and port PO RT, the chip MAC address table of adding this processing unit to;
(b) the described sub-switch processing unit described MAC Address clauses and subclauses notice master control switch processing unit that will generate, this master control switch processing unit reinforms other sub-switch processing units;
(c) other sub-switch processing units judge respectively whether this processing unit has the member port of the VLAN in these MAC Address clauses and subclauses, if having, add these MAC Address clauses and subclauses the chip MAC address table of to this processing unit, if do not have, then do not add.
2, the method for claim 1 is characterized in that: in the described step (b), after the master control switch processing unit is received the notice of sub-switch processing unit, also described MAC Address clauses and subclauses are added to the software mac address table of this processing unit.
3, method as claimed in claim 1 or 2, it is characterized in that: in the described step (c), no matter whether other sub-switch processing units add described MAC Address clauses and subclauses in chip MAC address table, all these MAC Address clauses and subclauses is kept in the software mac address table of this processing unit.
4, method as claimed in claim 3, it is characterized in that: when the member port number of variations of certain VLAN, the master control switch processing unit is notified each sub-switch processing unit with the change information of this member of vlan's port, after each sub-switch processing unit obtains notice, as judge that this VLAN grows out of nothing at the member port of this processing unit, all then that this VLAN is relevant MAC Address clauses and subclauses are added in the chip MAC address table of this processing unit.
5, as claim 1 or 4 described methods, it is characterized in that: when the member port number of variations of certain VLAN, the master control switch processing unit is notified each sub-switch processing unit with the change information of this member of vlan's port, after each sub-switch processing unit obtains notice, as judge this VLAN at the member port of this processing unit from having to nothing, all then that this VLAN in the chip MAC address table of this processing unit is relevant MAC Address clauses and subclauses deletions.
6, method as claimed in claim 4, it is characterized in that: described sub-switch processing unit is to obtain all relevant MAC Address clauses and subclauses of described VLAN from the software mac address table of this processing unit, perhaps, after described master control switch processing unit is received the notice of sub-switch processing unit, also described MAC Address clauses and subclauses are added to the software mac address table of this processing unit, described master control switch processing unit is when notifying the change information of the described member of vlan's port of each sub-switch processing unit, again notify each sub-switch processing unit with all relevant with described VLAN in its software mac address table MAC Address clauses and subclauses, described sub-switch processing unit therefrom obtains all relevant MAC Address clauses and subclauses of described VLAN.
CNB2006100994277A 2006-07-18 2006-07-18 Method for accessing into control address table spacing using Ethernet switch medium Active CN100531085C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100994277A CN100531085C (en) 2006-07-18 2006-07-18 Method for accessing into control address table spacing using Ethernet switch medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100994277A CN100531085C (en) 2006-07-18 2006-07-18 Method for accessing into control address table spacing using Ethernet switch medium

Publications (2)

Publication Number Publication Date
CN101110721A CN101110721A (en) 2008-01-23
CN100531085C true CN100531085C (en) 2009-08-19

Family

ID=39042624

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100994277A Active CN100531085C (en) 2006-07-18 2006-07-18 Method for accessing into control address table spacing using Ethernet switch medium

Country Status (1)

Country Link
CN (1) CN100531085C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399779B (en) * 2008-10-30 2010-12-01 北京星网锐捷网络技术有限公司 Multi-chip switch and method for extending medium access control address table
CN102164091B (en) * 2011-05-13 2015-01-21 北京星网锐捷网络技术有限公司 Method for building MAC (Media Access Control) address table and provider edge device
CN103795633B (en) * 2012-10-31 2017-05-31 中兴通讯股份有限公司 A kind of layer 2 forwarding method and forwarding unit
CN104348758B (en) * 2013-07-30 2018-05-25 上海斐讯数据通信技术有限公司 The method that each chip MAC address table of interchanger is consistent
CN104468462B (en) * 2013-09-12 2017-12-15 新华三技术有限公司 The message forwarding method and equipment of the distributed virtual switch system
CN104079679B (en) * 2014-06-04 2018-04-06 上海斐讯数据通信技术有限公司 Realize the method that mac address table is consistent
CN105227452B (en) * 2015-09-14 2018-09-14 中国联合网络通信集团有限公司 data frame forwarding method and device
CN106209556B (en) * 2016-06-29 2020-01-03 新华三技术有限公司 Method and device for address learning and message transmission
CN107493245B (en) * 2017-09-22 2020-04-24 锐捷网络股份有限公司 Board card of switch and data stream forwarding method
CN109474531B (en) * 2018-12-24 2021-06-25 安徽皖兴通信息技术有限公司 Method for deleting synchronization of packet access network switching table items

Also Published As

Publication number Publication date
CN101110721A (en) 2008-01-23

Similar Documents

Publication Publication Date Title
CN100531085C (en) Method for accessing into control address table spacing using Ethernet switch medium
EP3657740B1 (en) Message forwarding
Bando et al. FlashTrie: beyond 100-Gb/s IP route lookup using hash-based prefix-compressed trie
CN101267331A (en) A search method and device for multicast forward table
CN101414973B (en) Method and apparatus for transmitting data packet
Sivaram et al. HIPIQS: A high-performance switch architecture using input queuing
CN103944974B (en) A kind of protocol message processing method, controller failure processing method and relevant device
CN101325554B (en) Method for establishing route, forwarding chip and three-layer switchboard
CN101834788B (en) Storage operation method, device and equipment of media access control address table items
CN103036817A (en) Server single-board, server single-board realization method and host processor
CN107104824A (en) A kind of network topology determines method and apparatus
CN101136782A (en) Network topology discovering method facing to data link layer
US9083725B2 (en) System and method providing hierarchical cache for big data applications
CN100496017C (en) Method for assuring two-layer Ethernet exchanger data safety in city area transmission equipment
CN1365216A (en) High speed fubber managing system of exchanging data base
CN101510837A (en) Ethernet bridge equipment, method and equipment for migrating polymerization mouth address
CN101247663B (en) Considerable routing system and its forwarding table generation method
CN100401718C (en) Data frame group broadcasting duplicating method and system
CN102868775B (en) Method for expanding capacity of address resolution protocol table, and message forwarding method and device
CN105335307A (en) ACL rule loading method and device
CN104954255A (en) Method and device for processing VPN message
CN101534218A (en) A management method, device and system for open application architecture
CN108632148B (en) Device and method for learning MAC address based on pre-reading mode
CN103004157A (en) Interface register method and device for network device to join cluster system
CN1787475A (en) Access network system and method of moving internal network relay devices

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