CN100352240C - Method for controlling number of Layer2 Ethernet ring equipment MAC address learning - Google Patents

Method for controlling number of Layer2 Ethernet ring equipment MAC address learning Download PDF

Info

Publication number
CN100352240C
CN100352240C CNB2005100709907A CN200510070990A CN100352240C CN 100352240 C CN100352240 C CN 100352240C CN B2005100709907 A CNB2005100709907 A CN B2005100709907A CN 200510070990 A CN200510070990 A CN 200510070990A CN 100352240 C CN100352240 C CN 100352240C
Authority
CN
China
Prior art keywords
mac address
vlan
message
access node
ethernet ring
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
CNB2005100709907A
Other languages
Chinese (zh)
Other versions
CN1725731A (en
Inventor
刘建峰
王玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2005100709907A priority Critical patent/CN100352240C/en
Publication of CN1725731A publication Critical patent/CN1725731A/en
Application granted granted Critical
Publication of CN100352240C publication Critical patent/CN100352240C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a method for controlling learning numbers of MAC addresses of a two-layer Ethernet ring network device, which is applied to an access node device and a convergence node device of a two-layer Ethernet ring network. The method comprises the steps that in an ascending link, the access node device judges whether the MAC addresses of received messages belong to a VLAN of the local access node device or not, and the MAC addresses of a nonlocal VLAN are forbidden to be learnt according to judgment results; the convergence node device limits the learning of the MAC addresses of all loop ports in the VLAN by setting the maximum number of the learnt MAC addresses of the loop port of each VLAN; in a descending link, the convergence node device selects the loop ports to send out the messages in a mode of reorientation of the messages. By using a learning mechanism of the MAC addresses of the two-layer Ethernet ring network device and the message reorientation technology, the problem that a large number of MAC address tables in the Ethernet ring network device in the ring network are occupied is solved.

Description

Control the method for two layers of ethernet ring network device mac address study number
Technical field
The present invention relates to the networking technology of Access Network, particularly relate to the method that (MAC, Media Access Control) address learning number is forbidden in the media interviews of two layers of ethernet ring network equipment of a kind of control;
Background technology
Along with the foundation gradually of broadband value chain and broadband services operation mode, broadband services becomes the focus that each operator branches out the field, increases income and enhance the competitiveness just gradually.Ethernet ring network is because its cost is low, easily distinguishing feature such as expansion and become mainstream technology in the broadband metropolitan area network construction.
As shown in Figure 1, be the typical networking diagram of broadband metropolitan area network Access Network, comprise: digital subscriber line access multiplex (DSLAM (Digital Subscriber Line Access Multiplexer), access vlan domain, ethernet ring network equipment (comprise and insert the ethernet ring network switch and converge the ethernet ring network switch) and BAS Broadband Access Server (BRAS, Broadband Remote Access Server).The user based on the process of the realization data message of described networking transmission is: the user is by the access via telephone line of ethernet ring network access switch or by the dial-up access of DSLAM equipment, then by the ethernet ring network switch with the traffic aggregation of user data message to concentrating the management of concentrating on the BAS Broadband Access Server BRAS that is provided with.
In the Access Network part, for all focusing on the BRAS equipment, handles the access message with the user, general equipment between from user to BRAS is the equipment of transparent transmission, does not revise user's message attribute, from the cut-in convergent layer to last one kilometer equipment work in two layers.
In addition, because the reliability of ring topology, extensibility is saved characteristics such as circuit, and on the network layer of cut-in convergent part, the network topology of annular is more common networking mode.
In ring topology, because all packets of wide band access user all need to converge to BRAS equipment by two layers of ethernet ring network and get on, when the number of users of access node apparatus on two layers of ethernet ring network and access is many, and the MAC Address that inserts in a large number in the user's message will all be learnt by the access node apparatus on the looped network, because the number of the node access device of ethernet ring network study is too many, and the MAC address entries of each access node on the ethernet ring network is caused huge impact.The MAC Address list item storage size of two layers of now general ethernet ring network equipment is about 16K, if do not take effective measures, the access customer number on the so whole ring only has 16K.
At present, in order to solve two layers of too many problem of ethernet ring network MAC address learning number, mainly contain two kinds of solutions.
A kind of is the method for MAC in MAC, promptly encapsulates the method for one deck media interviews control MAC head once more at ethernet ring network frame skin, and the schematic diagram of described MAC in mac frame form as shown in Figure 2.
Send message from the user, its destination is that the described target MAC (Media Access Control) address that sends in the message is the MAC Address of BRAS equipment, and source MAC is user's a MAC Address itself.Described message by on the access device node to the looped network before, encapsulate the new MAC Address of last layer again for the skin of user's message by access node apparatus.Target MAC (Media Access Control) address in the MAC head of new encapsulation points to the MAC Address of convergence device, and source MAC is the MAC Address of access node apparatus, and the original message information that the user sends has been encapsulated in the new message by former state.Equipment on the looped network will come message is carried out address learning and forwarding according to the information in the outer layer MAC address head of message.The message of MAC in MAC arrives after the equipment of aggregation node, finishes the action of peeling off of message MAC head by the equipment of aggregation node, and the user's that will peel off out then original message is forwarded to BRAS equipment.Reduce by two layers of too many problem of ethernet ring network MAC address learning number thereby reach.
Opposite, mail to user's message from BRAS equipment, will encapsulate the MAC head to described message by the equipment of aggregation node, remove the MAC head by the equipment of access node.Its implementation procedure is the inverse process from user's hairnet BRAS equipment.
Be not difficult to find out from above-mentioned analysis MAC in MAC processing method, the essence of this method is " tunnel " of having opened a MAC in MAC between access node apparatus on the ethernet ring network and aggregation node device, by this technology, the raw information of user and BRAS can be carried out transparent transmission by this tunnel.Simultaneously, because the mac address information of a large number of users is encapsulated in the message, and needn't be by the learning equipment of access node on the looped network, thereby reach the purpose that reduces access node apparatus study MAC Address quantity on the looped network.
But described MAC in MAC method also is in the rough draft stage at present, does not form standard, does not also have chip manufacturer to support.
Another kind is that the method (EoMPLS, Ethernet overMPLS) of ethernet ring network multiprotocol label switching sees Fig. 3 a for details, and this method is a kind of Virtual Private Network (VLL MPLS VPN) technology of virtual leased line multiprotocol label switching of two layers of mode.Its message format is shown in Fig. 3 b and Fig. 3 c, and described Fig. 3 b is the normal data frame format of user in the EoMPLS method, and Fig. 3 c is two layers of MPLS data frame format in the EoMPLS method.
In the method for ethernet ring network multiprotocol label switching, access node apparatus and aggregation node device by ethernet ring network serve as provider edge router (PE, Provider Edge router) function, between access node apparatus and aggregation node device, set up the point-to-point tunneling of a multiprotocol label switching MPLS, the data flow of last ring is by the new MPLS tag head of PE node encapsulation, and a new layer MAC address head, user's original message information has been retained in the message by former state.The data flow that goes out ring will be carried out the stripping operation of MPLS header and MAC head by corresponding PE node.Thereby reach the purpose that reduces access node apparatus study MAC Address quantity on the looped network.
From above-mentioned employing EoMPLS method handling process, be not difficult to find out, described employing EoMPLS technology reduces the principle of the last node M AC address learning quantity of ring and the principle of MAC in MAC is identical in essence, all be in the new information of user's original message information front encapsulation, arrive the effect of shielding internal layer information.
But the apparatus for network node that this method requires to insert must have the MPLS function, and node device is required than higher, and operator need drop into more fund When building their networks simultaneously.
From the above, the shortcoming of prior art is: along with the continuous increase of wide band access user quantity, described MAC in MAC method does not also form standard at present, can not get the support of chip manufacturer; And the apparatus for network node that described EoMPLS method requires to insert must have the MPLS function, the investment when this will inevitably cause operator's networking.Therefore, in the middle of practical application, described method can not effectively reduce the purpose of the ethernet ring network learning equipment MAC Address quantity of access node on the looped network.
Summary of the invention
The technical problem that the present invention solves provides the method for two layers of ethernet ring network equipment MAC address learning of a kind of control, and study mechanism by utilizing MAC Address in two layers of ethernet ring network equipment and message redirecting technology solve on the looped network that mac address table takies the too many problem of quantity in the access node apparatus and aggregation node device.
For addressing the above problem, the invention provides the method for two layers of ethernet ring network equipment MAC address learning number of a kind of control, described two layers of ethernet ring network equipment comprise access node apparatus, described method comprises:
When the user has when having in the access point apparatus address table MAC Address that does not have record in message reporting and the message, access node apparatus judges whether this MAC Address belongs to native vlan, according to judged result, forbid the study of access node apparatus to the MAC Address of non-native VLAN.
Described access node apparatus judges whether this MAC Address belongs to native vlan, according to judged result, forbids that access point apparatus comprises the detailed process of the study of non-local mac address:
The port number that the VLAN that carries in the judgement user's message comprises on this node, if the port number that comprises is greater than two, then the source MAC address information of carrying in the described message is write in the mac address table of this access node apparatus,, then forbid the MAC address learning of this VLAN if include only two ports.
After the described MAC address learning of forbidding in the non-native VLAN, non-local message directly is transmitted on the looped network other access node apparatus.
Also comprised step before the user has message reporting: each access node apparatus inserts specific VLAN (described specific VLAN can be 1 or a plurality of), utilizes different VLAN labels to divide and inserts the zone.
The present invention also provides the method for two layers of ethernet ring network equipment media interviews control of a kind of control study number, and described two layers of ethernet ring network equipment comprise access node apparatus and aggregation node device, and described method comprises:
A, in up link, access node apparatus judges that whether the MAC Address in the message receive belongs to native vlan, according to judged result, forbids the study of the MAC Address in the non-native VLAN.
B, aggregation node device limit the study of media access control address on all loop ports in the VLAN by each VLAN is set at the maximum number of the MAC address learning of self loop road port;
C, at down link, aggregation node device is selected loop port downward message by the mode of message redirecting.
The concrete learning process of steps A is: judge whether the label of the VLAN that carries in the user's message equals the VLAN of local planning, if, the source MAC address information of carrying in the described message is write in the mac address table of local access node apparatus, otherwise, forbid the MAC address learning in the non-native VLAN.
After the described MAC address learning of forbidding in the non-native VLAN, non-local message directly is forwarded on the looped network other access node apparatus, when access node apparatus is responded, then the MAC Address of carrying in the described message is write described access node apparatus.
It is 1 at the maximum number of the MAC address learning of loop port that VLAN is set described in the step B.
The implementation procedure of the mode of message redirecting described in the step C comprises:
A, default traffic classification strategy, and appointment and the redirected accordingly destination interface of described traffic classification strategy based on vlan information;
Whether comprise described redirected traffic classification strategy in the message that b, judgement need to transmit, if described message is transmitted according to the destination interface that is redirected; Otherwise, transmit according to the destination interface of message.
The destination interface of described message redirecting can dynamically be adjusted, and detailed process is:
C, when VLAN when the number of the MAC Address of loop port is zero, delete the strategy that is redirected in this VLAN; D, when VLAN in the number of the MAC Address of loop port greater than zero the time, from this MAC Address list item, take out port number information; The destination interface that is redirected whether the port number information that e, judgement are obtained equals to preset, if not, then the reorientation port information of this VLAN is adjusted to another one loop port and carried out the message forwarding.
Also comprised step before steps A: each access node apparatus inserts specific VLAN (described specific VLAN can be one or more), utilizes different VLAN labels to divide and inserts the zone.
The method of two layers of ethernet ring network device mac address study of a kind of control number, described two layers of ethernet ring network equipment comprise access node apparatus and aggregation node device, comprise: A, in up link, access node apparatus judges whether the MAC Address in the message that receives belongs to native vlan, if do not belong to, judge whether the MAC address learning number of VLAN on aggregation node device loop port reaches the number of setting, if then forbid the study of MAC Address in the non-native VLAN; Otherwise, the mac address information that carries in the described message is written in the mac address table of access node apparatus; B, aggregation node device limit the study of MAC Address on all loop ports in the VLAN by each VLAN is set at the maximum number of the MAC address learning of self loop road port; C, at down link, aggregation node device is selected loop port downward message by the mode of message redirecting.
Compared with prior art, the present invention has following beneficial effect: for the broadband access annular networking, the present invention utilizes the local accessing virtual LAN of two layers of access node apparatus in the ethernet ring network equipment in up link, forbid the study of access node apparatus MAC Address.Promptly the VLAN that carries in user's message only comprises two ports on this node, then forbid the study of MAC Address in this VLAN, if the port number that VLAN comprises, then allows the study of MAC Address in this VLAN greater than two, the MAC Address of having learnt simultaneously can wear out normally.The aggregation node access device is forbidden MAC address learning by a VLAN is set at the maximum number 1 of the MAC address learning of loop port (be recommended as 1 but be not limited to 1), and when the data message that issues, adopt the mode of message redirecting to substitute two layers of forwarding based on the data message of VLAN and draw alert forwarding capability, the promptly alternative function of transmitting according to mac address table.The present invention is by control MAC address learning mechanism, with the message redirecting technology forbid two layers on the ethernet ring network access node apparatus and the MAC Address minimum number of aggregation node device study, effectively reduce owing to insert the user too much to the impact of the MAC Address list item of access node on the looped network.Method of the present invention has on the two-layer equipment of redirection function and can realize, is a kind of effectively simple, solution with low cost.Such as, when the equipment with 16KMAC address list item uses as access node on ring, when N described access node, multipotency is supported N*16K access MAC Address, and the access user on the whole ring can support 16K access address considerably beyond prior art.
Description of drawings
Fig. 1 is the typical networking schematic diagram of broadband metropolitan area network Access Network;
Fig. 2 a is the schematic diagram of prior art MAC in MAC networking;
Fig. 2 b is the schematic diagram of frame format in the prior art MAC in MAC method;
Fig. 3 a is the networking schematic diagram of EoMPLS;
Fig. 3 b is the schematic diagram of the normal data frame format of user in the EoMPLS method;
Fig. 3 c is two layers of MPLS data frame format schematic diagram in the EoMPLS method;
Fig. 4 is the networking schematic diagram based on the method for the invention Access Network;
Fig. 5 controls the flow chart of the MAC address learning method of access node apparatus for the present invention;
Fig. 6 controls the flow chart of study number of the MAC Address of aggregation node device for the present invention;
Fig. 7 limits the flow chart of the study of the MAC Address of message on all loop ports by the maximum number that the loop port is set for aggregation node device of the present invention;
Fig. 8 is the flow chart of implementation procedure of the message redirecting mode of aggregation node device of the present invention;
The flow process that Fig. 9 adjusts dynamically for the destination interface that aggregation node of the present invention is redirected.
Figure 10 controls the flow chart of the method for two layers of ethernet ring network equipment MAC address learning for the present invention.
Embodiment
In the Access Network part of two layers of ethernet ring network, for all focusing on the BRAS equipment, handles the access message with the user, and general equipment between from user to BRAS is the equipment of transparent transmission, does not revise user's message attribute.And in the broadband metropolitan area network networking; use the ring topology of two layers of ethernet ring network equipment to bear the access of data and converge work through regular meeting; continuous increase along with wide band access user quantity; the MAC Address number that the ethernet ring network equipment of node need be learnt on the looped network is just big more; the MAC Address list item of a lot of two layers of ethernet ring network equipment does not reach requirement; therefore; the study number of the present invention's MAC Address of the study mechanism by the MAC Address in two layers of ethernet ring network equipment and message redirecting interface differential technique ingress equipment and aggregation node device on existing basis is controlled, and has reduced the study number of node device MAC Address on the looped network with effective.
For the present invention better is described, before realization the method for the invention, introduce the applied environment of the method for the invention earlier.
Please refer to Fig. 4, be the networking structure figure of Access Network of the present invention, the networking structure of described Access Network comprises three parts substantially: accessing virtual LAN vlan domain, two layers of ethernet ring network equipment and broadband access equipment BRAS.For convenience of description, the present invention inserts vlan domain respectively with A, B and C, and access node apparatus is that example describes with A, B and C respectively.Described accessing virtual LAN vlan domain specifically comprises: insert vlan domain A, insert vlan domain B and insert vlan domain C; Described ethernet ring network equipment specifically comprises: comprise access node apparatus A, access node apparatus B and access node apparatus C; And the port A of aggregation node device and port B.Described access node apparatus is meant the access node of broadband access equipment BRAS or local area network (LAN) LAN access device.By access node data flow is received on the looped network, described access node apparatus flows on the aggregation node in the data of also transmitting non-local access node on the looped network simultaneously.And after aggregation node receives data traffic, by self equipment with the data flow tandem to broadband access equipment, perhaps receive the data flow that issues on the broadband access equipment, and it be forwarded to access node apparatus or miscellaneous equipment by self equipment.Wherein, the access node apparatus of described ethernet ring network converges to customer flow and concentrates the management of concentrating on the broadband access equipment BRAS that is provided with.
In described data spread fast process, in order to prevent the generation of ethernet ring network loop broadcasting, ethernet ring network can adopt different technical methods to realize, such as, on looped network, move Spanning-Tree Protocols such as STP/RSTP/MSTP, but the present invention is not limited to described method, if the essence of its described method is exactly the existence that detects loop, just network link is disconnected in certain of looped network, if loop does not exist, the link at this place can recover voluntarily, and this also is the advantage place of adopting annular networking, because the reliability of access network ring topology, extensibility, save characteristics such as circuit, on the network layer of cut-in convergent part, the loop network topological structure is more common networking mode.It mainly is to adopt the ethernet ring network link directly to organize the network of ring, and adopts above-mentioned method Spanning-Tree Protocol, thereby prevents the generation of broadcast storm.
By among Fig. 4 as can be known, the division principle that inserts the virtual LAN VLAN of looped network is: each access device inserts specific vlan domain, this VLAN is used for the zone that tagging user inserts in actual networking, different access nodes inserts different vlan domains.The access node on looped network, have two types VLAN: a kind of is the local VLAN that inserts, and another is the VLAN that transmits, and promptly inserts from other access node, need this node to be forwarded to the VLAN of aggregation node, need the VLAN that transmits on node, generally to include only two ports.Such as, for the access node A among the figure, the user below it belongs to VLANA, and VLANA is the local VLAN that inserts, and VLANB and VLANC are for transmitting VLAN.All access VLAN need converge to aggregation node device, are forwarded to broadband access equipment BRAS by aggregation node device again.
The present invention is further illustrated below in conjunction with accompanying drawing.
The present invention is by MAC address learning mechanism, with the message redirecting technology control two layers on the ethernet ring network access node apparatus and the MAC Address minimum number of aggregation node device study, effectively reduce since the access device user too much to the impact of the MAC Address list item that encircles access node apparatus.It is minimum that the present invention realizes encircling the study of MAC Address number of ethernet ring network equipment by three technical schemes respectively.The i.e. study number of the MAC Address by control access node apparatus of two layers of ethernet ring network equipment or aggregation node device respectively, reduce since the access user increase the impact that causes the MAC Address list item of two layers of ethernet ring network equipment.Its implementation is respectively:
The invention provides the method for two layers of ethernet ring network device mac address study of a kind of control number, described two layers of ethernet ring network equipment comprise access node apparatus, and its flow chart sees Fig. 5 for details.Described method comprises: when the user has when having in the access node apparatus address table MAC Address that does not have record in message reporting and the message, access node apparatus judges whether this MAC Address belongs to the VLAN of local access node apparatus, according to judged result, forbid the study of access point apparatus to the MAC Address of non-native VLAN.
Its concrete performing step is:
Step K 10: when access node apparatus receives message, judge that port number that the VLAN that carries in the user's message comprises is two or greater than two on this node;
Step K 11:, then forbid the study of the MAC Address of this VLAN if include only two ports;
Step K 12: if the port number that comprises then writes the source MAC address information of carrying in the described message in the mac address table of this access node apparatus greater than two;
Also comprised before step K 10: each access node apparatus inserts specific VLAN (one or more), utilizes VLAN to come the different access zone of label.
Forbid that after the MAC address learning in the non-local area network, the switch of access node is directly handled according to broadcasting packet like that for the message in the non-native VLAN, promptly be forwarded to the another one interface from an interface that encircles.In addition, can also here not give unnecessary details according to VLAN being divided based on label and the 3rd layer protocol.
Adopt the present invention to control the method for the access node apparatus MAC address learning number of two layers of ethernet ring network, described method user's in access node apparatus (such as the switch of access node) is only learnt the local VLAN of access MAC Address, completely do not learn for the message in other VLAN, reduced the study quantity of MAC Address greatly, can not influence simultaneously the business under this networking condition yet, can be because of some VLAN journal literary composition and cause broadcast flooding not yet.Support that with one the access node switch of 16K MAC Address is an example, can insert N*16K user altogether on the ring of N access node composition.
The present invention also provides the method for two layers of ethernet ring network device mac address study of a kind of control number, and described two layers of ethernet ring network equipment comprise aggregation node device, and the flow chart of its method sees Fig. 6 for details.Described method comprises step:
Step L10: aggregation node device limits the study of MAC Address on all loop ports in the VLAN by each VLAN is set at the maximum number of the MAC address learning of loop port.Wherein, the described VLAN that is provided with is 1 at the maximum number of the MAC address learning of loop port (comprise 1 but be not limited to 1), the improvement that can also adapt to as required on this basis;
Step L12: at down link, aggregation node device is selected loop port downward message by the mode of message redirecting.
In described step L10, describedly forbid in the VLAN on all loop ports the flow chart of the implementation procedure of the study of the media access control address of message as described in Figure 7 by VLAN is set at the maximum number of the MAC address learning of loop port, this process comprises step:
Step L101: judge whether the MAC address learning number of VLAN on aggregation node device (switch) loop port reaches the numerical value of setting;
Step L102: if then forbid the study of MAC Address in the non-native VLAN;
Step L103: otherwise, the mac address information that carries in the described message is written in the mac address table of this access node apparatus.
In described step L11, select the flow chart of the implementation procedure of descending loop port to see Fig. 8 for details to the message that issues by the mode of message redirecting, this process comprises step:
Step L111: default one is carried out the strategy of traffic classification and appointment and the corresponding redirected destination interface of described traffic classification strategy based on vlan information;
Step L112: judge in the message that needs to transmit whether comprise described redirected traffic classification strategy;
Step L113: if described message is transmitted according to the destination interface that is redirected;
Step L114: otherwise, transmit according to the destination interface of message.
Described aggregation node device of the present invention (such as the switch of aggregation node) has said process as can be known in order to reduce the study number of MAC Address, and its processing method is than access node apparatus complexity.Its handling process that relates to mainly contains two, i.e. MAC address learning flow process and forwarding decision flow process.Its implementation procedure as mentioned above.
In addition, the present invention provides the method for two layers of ethernet ring network device mac address study of a kind of control number again, and described two layers of ethernet ring network equipment comprise access node apparatus and aggregation node device, and the flow chart of described method sees Fig. 9 for details.Described method comprises step:
Step M10: in up link, access node apparatus judges that whether the MAC Address in the message that receives belongs to the VLAN of local access node apparatus, according to judged result, forbids the study of the MAC Address in the non-native VLAN.
Step M11: aggregation node device limits the study of MAC Address on all loop ports in the VLAN by each VLAN is set at the maximum number of the MAC address learning of loop port;
Step M12: at down link, aggregation node device is selected loop port downward message by the mode of message redirecting.
The access node apparatus that the present invention controls two layers of ethernet ring network equipment is an optimum implementation with the method for compiling the MAC address learning number of node device, the process of its realization is: by adopting different mechanism to guarantee the MAC Address minimum number of this node study to access node on the ethernet ring network and aggregation node, just the study number of the MAC Address of the study mechanism by the MAC Address in two layers of ethernet ring network equipment and message redirecting interface differential technique ingress equipment and aggregation node device is controlled, and has reduced the study number of node device MAC Address on the looped network with effective.Wherein, described two layers of ethernet ring network equipment comprise access node apparatus and aggregation node device, below explanation the present invention earlier control the learning method of access node apparatus MAC Address number.
The flow chart of the specific implementation process of described step M10 with see above-mentioned Fig. 5 for details, implementation step is: when the user has when having in the access node apparatus address table MAC Address that does not have record in message reporting and the message, access node apparatus judges whether this MAC Address belongs to the VLAN of local access node apparatus, according to judged result, forbid the study of access point apparatus to the MAC Address of non-native VLAN.
Wherein, the learning method detailed process of control access node apparatus MAC Address number comprises: judge that port number that the VLAN that carries in the user's message comprises on this node is two or greater than two, if the port number that comprises is greater than two, then the source MAC address information of carrying in the described message is write in the mac address table of this access node apparatus, if include only two ports, then forbid the MAC address learning of this VLAN.
Two layer-switching technologies are to develop comparative maturity at present, two-layer equipment belongs to data link layer device, mac address information in can the recognition data bag is transmitted according to MAC Address, and these MAC Address and corresponding port are recorded in the own inner address table.The operation principle flow process of specific implementation is: when equipment is received a packet from certain port, and the source MAC in the packet header of its first read data packet, it is to be connected on the port of which looped network with regard to the equipment of knowing source MAC like this; Remove to read the target MAC (Media Access Control) address in the packet header again, and in address table, search corresponding ports; As having and this target MAC (Media Access Control) address corresponding port in the table, directly MAC Address is stored into packet on this port; Then packet is broadcast on all of the port as can not find corresponding ports in the table, when destination interface has response to source port, it is corresponding with which port that access node apparatus can be learnt this target MAC (Media Access Control) address again, with regard to no longer needing all of the port broadcasted when transmitting data next time.When the access node apparatus on the looped network when receiving new data packets, this process that constantly circulates can be learnt for the mac address information of the whole network, therefore, establishes ethernet ring network equipment for two layers and comes to this and set up and safeguard its mac address table.
In the implementation procedure of the described method of access node, the accessing virtual LAN of described local access node apparatus is stipulated when the network planning, be that each access node apparatus inserts independent vlan domain, this specific VLAN of configuration on the described access node apparatus, in implementation process, the hardware of described access node apparatus or software can write down the vlan information of oneself, when access node apparatus is received the message that the user sends, whether the VLAN of the label of the VLAN that carries in hardware by this access node apparatus or the software comparison user's message during with local access node apparatus planning be identical, if identical, then the source MAC address information of carrying in the described message is written in the mac address table of this access node apparatus; If inequality, the source MAC address information that message is carried in cancellation writes the operation of the mac address table of this access node apparatus, promptly forbids the MAC address learning in the non-local virtual local area network (LAN).Wherein, described study is exactly that the information stores of MAC Address is got off, and does not allow study, just the information of store M AC address not.After the described MAC address learning of forbidding in the non-native VLAN, the equipment that connects node is directly handled according to broadcasting for the message in this VLAN, and an access node from looped network is forwarded to the another one access node.
Adopt the present invention after the method for the study number of forbidding MAC Address on the access node apparatus, access node apparatus on two layers of ethernet ring network is only learnt the MAC Address of user in the local VLAN of access, MAC Address for the message in the non-native VLAN is not completely learned, thereby reduced the study quantity of the MAC Address of access node apparatus greatly, simultaneously this method can not influence other data service under this networking condition yet, can be because of some VLAN journal literary composition and cause broadcast flooding not yet.Simultaneously, the equipment of aggregation node is in order to reduce the study number of MAC Address, and processing method wants complicated than access node apparatus.Related handling process has two: MAC address learning flow process and forwarding decision flow process.The described flow chart that reduces the study number of MAC Address at aggregation node sees above-mentioned Fig. 6 for details, and its step comprises:
When aggregation node device receives message,, VLAN forbids the study of the media access control address of message on all loop ports in the VLAN at the maximum number of the MAC address learning of loop port by being set.Wherein, the described VLAN that is provided with is 1 at the maximum number of the MAC address learning of loop port (comprise 1 but be not limited to 1), the improvement that can also adapt to as required on this basis;
The message that issues is selected descending loop port by the mode of message redirecting, needn't from mac address table, obtain forwarding information.
Describedly forbid in the VLAN flow chart of the implementation procedure of the study of the media access control address of message such as above-mentioned shown in Figure 7 on all loop ports at the maximum number of the MAC address learning of aggregation node device loop port, comprise step by VLAN is set:
Judge whether the MAC address learning number of VLAN on aggregation node device loop port reaches the numerical value of setting; If then forbid the study of MAC Address in the non-native VLAN; Otherwise, the mac address information that carries in the described message is written in the mac address table of this access node apparatus.
In the implementation procedure of the described method of aggregation node, limit the MAC address learning number on all VLAN inner ring road ports (the port A or the B that comprise loop), the MAC Address maximum number of a VLAN at the loop port will be set arbitrarily in principle, with regard to present switch, the study number maximum of described port can be set to 1, but be not limited to 1, can wear out normally to the MAC Address of having acquired simultaneously.Under normal circumstances, switch need be learnt the MAC Address of all devices in the VLAN, by method provided by the invention, switch only need be learnt the minimum number target MAC (Media Access Control) address, according to the mac address information of learning, in conjunction with the message redirecting technology based on VLAN, switch can be transmitted MAC Address messages all in the VLAN, needn't remove to check the forwarding information of mac address table, thereby reach the purpose of saving aggregation node MAC Address list item.That is to say, under normal circumstances, switch need be learnt the MAC Address of all devices in the VLAN, by method of the present invention, switch only need be learnt the minimum number target MAC (Media Access Control) address, according to the mac address information of learning, in conjunction with message redirecting technology based on VLAN, switch can be transmitted MAC Address messages all in the VLAN, needn't remove to check the forwarding information of mac address table, thereby reaches the purpose of saving the aggregation node list item.
Reduce the MAC address learning number at aggregation node device and need the special forwarding decision flow process that realizes.The core concept of described forwarding decision flow process is for the message from BRAS equipment to subscriber equipment, information based on VLAN adopts the method for message redirecting to substitute the forwarding capability of two layers of forwarding engine, and promptly the information based on VLAN adopts the method for message redirecting to transmit according to MAC Address.Wherein, in implementation procedure, for the method for user's message or the message redirecting that data traffic adopted to the user's message forwarding decision.The method of described message redirecting is meant that the user can be based on the needs of traffic classification strategy of self, to reassign message forwarding direction (forwarding port) by the message of device forwards.The traffic classification strategy can be a certain field of content of message, can be the inbound port of message also, goes into information such as VLAN.Such as, if with all packet stream redirections in the virtual LAN VLAN 1 to port port1, the flow chart of the realization of its message redirecting method sees above-mentioned Fig. 8 for details, implementation step comprises:
Method is characterized in that, the implementation procedure of the mode of message redirecting described in the step C comprises:
A, default one carry out the strategy of traffic classification and appointment and the corresponding redirected destination interface of described traffic classification strategy based on vlan information;
Whether comprise described redirected traffic classification strategy in the message that b, judgement need to transmit, if described message is transmitted according to the destination interface that is redirected; Otherwise, transmit according to the destination interface of message.
Be provided with one based on VLAN carry out traffic classification strategy (such as, the strategy of this traffic classification is VLAN1), and specify with the corresponding redirected destination interface of this traffic classification strategy (such as, destination interface is port1);
Whether the traffic classification strategy that judge to be redirected comprises described redirected traffic classification strategy (be the VLAN tag that carries in the message can with a traffic classification strategy matching based on VLAN that has set), if described message is transmitted according to the destination interface (port1) that is redirected; If not, transmit according to the destination interface of message.
Come to select loop port A or loop port B by the mode that is redirected for descending message.Topology on looped network a bit is to stop up (blocking) state at certain, with descending message from looped network two ring upper port A or B select one as the port of transmitting, owing to the variation of link, the BLOCKING node on the ring might change.Therefore, the port that is redirected of message needs dynamically to adjust in each VLAN.This just need adjust dynamically to the destination interface that is redirected.
Described the destination interface that is redirected is adjusted the MAC address learning situation that just needs in the timing detection VLAN dynamically, wherein the flow chart that the destination interface that is redirected is adjusted dynamically sees above-mentioned Figure 10 for details, comprises step:
Step N10: when VLAN when the number of the MAC Address of aggregation node device (switch) loop port is zero, delete and be redirected rule in this VLAN;
Step N11: when VLAN in the number of the MAC Address of loop port numbers greater than zero the time, from this MAC Address list item, obtain port number information;
Step N12: the destination interface that is redirected whether the port number information that judgement is obtained equals to preset;
Step N13: if then the destination address by mac address table middle port in the described message sends;
Step N14: otherwise, the reorientation port information of this VLAN is adjusted to another one loop port carry out the message forwarding.
In the process that the destination interface that is redirected is dynamically adjusted, when the port on aggregation node device need the person's of choosing looped network is transmitted descending message, judge earlier whether VLAN is zero in the MAC Address number of loop port, if zero, the redirected rule of then deleting this VLAN; If VLAN greater than zero, then takes out port number information in the MAC Address number of loop port from described MAC Address list item; And then judge the destination interface that is redirected whether the port number information taken out equals to preset, if equal, then the destination address by mac address table middle port in the described message sends; Otherwise, the reorientation port information of this VLAN is adjusted to another one loop port carries out the message forwarding.
At the broadband access annular networking, method of the present invention is respectively at the implementation method of access node apparatus on the ethernet ring network and aggregation node device, can effectively reduce owing to insert the user too much to the impact of the ethernet ring network device mac address list item on the looped network.For example: when the equipment with 16KMAC address list item used as node on ring, N such node can be supported N*16K access MAC Address at most, and the access user on the whole ring can be considerably beyond 16K.For the networking plan of annular, access node apparatus and aggregation node device must effectively cooperate according to such method, just can reach technique effect of the present invention.Therefore, method of the present invention is a kind of effectively simple, solution with low cost.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (12)

1, the method for two layers of ethernet ring network device mac address study of a kind of control number, described two layers of ethernet ring network equipment comprise access node apparatus, it is characterized in that, when the user has when having in the access node apparatus address table unwritten MAC Address in message reporting and the message, access node apparatus judges whether this MAC Address belongs to native vlan, according to judged result, forbid the study of access node apparatus to the MAC Address of non-native VLAN.
2, learn the method for number according to two layers of ethernet ring network device mac address of the described control of claim 1, it is characterized in that, described access node apparatus judges whether this MAC Address belongs to native vlan, according to judged result, forbid that access node apparatus comprises the detailed process of the study of non-local mac address:
The port number that the VLAN that carries in the judgement user's message comprises on this node, if the port number that comprises is greater than two, then the source MAC address information of carrying in the described message is write in the mac address table of local access node apparatus, if include only two ports, then forbid the MAC address learning of this VLAN.
3, according to the method for two layers of ethernet ring network device mac address of the described control of claim 2 study number, it is characterized in that, after the described MAC address learning of forbidding in the non-native VLAN, non-local message directly is transmitted on the looped network other access node apparatus.
4, learn the method for number according to two layers of ethernet ring network device mac address of the described control of claim 1, it is characterized in that, also comprised before the user has message reporting: each access node apparatus inserts specific VLAN, utilizes different VLAN labels to divide and inserts the zone.
5, the method for two layers of ethernet ring network device mac address study of a kind of control number, described two layers of ethernet ring network equipment comprise access node apparatus and aggregation node device, it is characterized in that, comprising:
A, in up link, access node apparatus judges that whether the MAC Address in the message receive belongs to native vlan, according to judged result, forbids the study of the MAC Address in the non-native VLAN.
B, aggregation node device limit the study of MAC Address on all loop ports in the VLAN by each VLAN is set at the maximum number of the MAC address learning of self loop road port;
C, at down link, aggregation node device is selected loop port downward message by the mode of message redirecting.
6, learn the method for number according to two layers of ethernet ring network device mac address of the described control of claim 5, it is characterized in that, the concrete learning process of steps A is: judge whether the label of the VLAN that carries in the user's message equals the VLAN of local planning, if, the source MAC address information of carrying in the described message is write in the mac address table of local access node apparatus, otherwise, forbid the MAC address learning in the non-native VLAN.
7, learn the method for number according to two layers of ethernet ring network device mac address of the described control of claim 6, it is characterized in that, after the described MAC address learning of forbidding in the non-native VLAN, non-local message directly is forwarded on the looped network other access node apparatus, when access node apparatus is responded, then the MAC Address of carrying in the described message is write described access node apparatus.
8, according to the method for two layers of ethernet ring network device mac address study of the described control of claim 5 number, it is characterized in that it is 1 at the maximum number of the MAC address learning of loop port that VLAN is set described in the step B.
9, according to the method for two layers of ethernet ring network device mac address study of the described control of claim 5 number, it is characterized in that the implementation procedure of the mode of message redirecting described in the step C comprises:
A, default traffic classification strategy, and appointment and the redirected accordingly destination interface of described traffic classification strategy based on vlan information;
Whether comprise described redirected traffic classification strategy in the message that b, judgement need to transmit, if described message is transmitted according to the destination interface that is redirected; Otherwise, transmit according to the destination interface of message.
10, according to the method for two layers of ethernet ring network device mac address study of the described control of claim 9 number, it is characterized in that the destination interface of described message redirecting can dynamically be adjusted, detailed process is:
C, when VLAN when the number of the MAC Address of loop port is zero, delete the strategy that is redirected in this VLAN;
D, when VLAN in the number of the MAC Address of loop port greater than zero the time, from this MAC Address list item, take out port number information;
The destination interface that is redirected whether the port number information that e, judgement are obtained equals to preset if not, is then adjusted to the reorientation port information of this VLAN another one loop port and is carried out the message forwarding.
11, learn the method for number according to two layers of ethernet ring network device mac address of the described control of claim 5, it is characterized in that, also comprised step before steps A: each access node apparatus inserts specific VLAN, utilizes different VLAN labels to divide and inserts the zone.
12, the method for two layers of ethernet ring network device mac address study of a kind of control number, described two layers of ethernet ring network equipment comprise access node apparatus and aggregation node device, it is characterized in that, comprising:
A, in up link, access node apparatus judges whether the MAC Address in the message that receives belongs to native vlan, if do not belong to, judge whether the MAC address learning number of VLAN on aggregation node device loop port reaches the number of setting, if then forbid the study of MAC Address in the non-native VLAN; Otherwise, the mac address information that carries in the described message is written in the mac address table of access node apparatus;
B, aggregation node device limit the study of MAC Address on all loop ports in the VLAN by each VLAN is set at the maximum number of the MAC address learning of self loop road port;
C, at down link, aggregation node device is selected loop port downward message by the mode of message redirecting.
CNB2005100709907A 2005-05-19 2005-05-19 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning Active CN100352240C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100709907A CN100352240C (en) 2005-05-19 2005-05-19 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100709907A CN100352240C (en) 2005-05-19 2005-05-19 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning

Publications (2)

Publication Number Publication Date
CN1725731A CN1725731A (en) 2006-01-25
CN100352240C true CN100352240C (en) 2007-11-28

Family

ID=35924980

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100709907A Active CN100352240C (en) 2005-05-19 2005-05-19 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning

Country Status (1)

Country Link
CN (1) CN100352240C (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453401B (en) * 2005-06-16 2010-12-08 华为技术有限公司 Ethernet bridge equipment, MAC address learning method and data packet transmission method
CN100459571C (en) * 2005-06-16 2009-02-04 华为技术有限公司 Ethernet bridge apparatus and MAC address learning method and data message transmission method
WO2008001159A1 (en) * 2006-06-27 2008-01-03 Telefonaktiebolaget Lm Ericsson (Publ) Forced medium access control (mac) learning in bridged ethernet networks
CN101141381B (en) * 2006-09-06 2011-04-27 杭州华三通信技术有限公司 Network node and method of reducing medium access control address learning in looped network thereof
CN101155109B (en) * 2006-09-30 2010-04-21 华为技术有限公司 Ethernet switching system and equipment
CN101488899B (en) * 2008-01-17 2011-11-23 中兴通讯股份有限公司 MAC address learning limitation method and apparatus used in 1:1 VLAN access network
CN101222780B (en) * 2008-01-24 2012-01-11 中兴通讯股份有限公司 Method for binding virtual LAN and user on Ethernet exchanging chip
CN101222435B (en) * 2008-02-02 2010-08-04 华为技术有限公司 Method and device for detecting network loopback
CN101426031B (en) * 2008-12-09 2011-09-21 中兴通讯股份有限公司 Novel method and apparatus for Ether ring network address updating
CN101425979B (en) * 2008-12-10 2011-05-11 中兴通讯股份有限公司 Data packet forwarding method for Ether ring network
CN101753453B (en) * 2009-12-23 2013-02-27 中兴通讯股份有限公司 Networking method for ring network of packet transport network
CN102347889B (en) * 2010-08-04 2014-08-13 杭州华三通信技术有限公司 Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
US9148360B2 (en) 2010-11-01 2015-09-29 Hewlett-Packard Development Company, L.P. Managing MAC moves with secure port groups
EP2728797B1 (en) * 2011-08-05 2015-12-09 Huawei Technologies Co., Ltd. Message processing method, device and system
CN102263703B (en) * 2011-08-29 2014-01-01 华为技术有限公司 Method, device and network system for transparently transmitting and multicasting protocol messages
CN104883337B (en) * 2014-02-27 2019-05-07 中兴通讯股份有限公司 The implementation method and device of looped network user security
CN104320421A (en) * 2014-11-18 2015-01-28 上海凌云天博光电科技有限公司 Method and device for setting MAC quantity limit values for MoCA equipment ports
CN106060186B (en) * 2016-05-25 2019-01-25 杭州迪普科技股份有限公司 A kind of message processing method and device
CN107645431B (en) * 2016-07-20 2020-08-04 新华三技术有限公司 Message forwarding method and device
CN114125078A (en) * 2021-09-02 2022-03-01 杭州迪普信息技术有限公司 MAC address learning method and device
CN113765794B (en) * 2021-09-30 2022-11-25 新华三信息安全技术有限公司 Data transmission method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5886992A (en) * 1995-04-14 1999-03-23 Valtion Teknillinen Tutkimuskeskus Frame synchronized ring system and method
EP1324543A1 (en) * 2001-12-26 2003-07-02 Alcatel Method to protect RPR networks of extended topology, in particular RPR ring to ring and meshed backbone networks
US20040081083A1 (en) * 2002-10-25 2004-04-29 Osamu Sekihata Ring switchover method
US20040170184A1 (en) * 2003-02-07 2004-09-02 Masanori Hashimoto RPR network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5886992A (en) * 1995-04-14 1999-03-23 Valtion Teknillinen Tutkimuskeskus Frame synchronized ring system and method
EP1324543A1 (en) * 2001-12-26 2003-07-02 Alcatel Method to protect RPR networks of extended topology, in particular RPR ring to ring and meshed backbone networks
US20040081083A1 (en) * 2002-10-25 2004-04-29 Osamu Sekihata Ring switchover method
US20040170184A1 (en) * 2003-02-07 2004-09-02 Masanori Hashimoto RPR network system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
弹性分组环的媒体访问控制 周胜源,敖发良,陈名松.桂林电子工业学院学报,第23卷第2期 2003 *

Also Published As

Publication number Publication date
CN1725731A (en) 2006-01-25

Similar Documents

Publication Publication Date Title
CN100352240C (en) Method for controlling number of Layer2 Ethernet ring equipment MAC address learning
US10178025B2 (en) Methods and apparatus to route traffic in a virtual private network
CN1708957A (en) Multi- tiered virtual local area network (VLAN) domain mapping mechanism
CN1852240A (en) Bridge-connection transmitting method
CN1057415C (en) Method and system for routing path determination for mobile workstations in a multisegment local area network
CN101060449A (en) Ethernet technology switching and forwarding method, system and equipment
CN1946041A (en) VLAN polymerizing method, converging exchanger and system based on ARP detector intercept
CN1832439A (en) Method for implementing integrated service access of access network
CN1943190A (en) Flooding suppression method
CN1863142A (en) Method for providing different service quality tactics to data stream
CN101051995A (en) Protection switching method based on no connection network
CN1929444A (en) Operator's boundary notes, virtual special LAN service communication method and system
CN1969509A (en) Network device architecture for centralized packet processing
CN1338173A (en) Interception system and method
CN1852214A (en) Routing method of virtual special network
CN1770734A (en) Traffic control method for network equipment
CN1863144A (en) Method for providing differential service
CN1866904A (en) Method and apparatus for astringing two layer MAC address
CN101047631A (en) Customer position information transmitting method, MAC address automatic allocating method, network creating method and system
CN1744563A (en) Method for realizing strate gic route in Ethernet switch
CN1716904A (en) Group broadcast realizing method based on multiple service transmission platform
CN1744571A (en) Method for reducing learning of media accessing control address in network
CN102347889A (en) Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
CN1866920A (en) Service quality managing method based on VLAN stack
CN1725730A (en) Method of multilayer VLAN switching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

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

Patentee after: Xinhua three Technology Co., Ltd.

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

Patentee before: Huasan Communication Technology Co., Ltd.

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Liu Jianfeng

Inventor after: Wang Wei

Inventor before: Liu Jianfeng

Inventor before: Wang Wei