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.
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.