Background technology
IRF(Intelligent Resilient Framework, intelligent elastic framework) technology can be combined into many switching equipment a high performance integral body, and object is with the least possible expense, obtains high as far as possible network performance and network availability.Support the equipment of IRF technology all to possess three key properties: distributed device management (DDM), distributed aggregated link (Distributed Link Aggregation, DLA; Or Distributed Trunking, DT) and distributed elasticity route (DRR).This three technology has been the indispensable link of IRF technical goal.Wherein, DT is for improving availability and the capacity of transmission link.
In common link aggregation technology, the port that is only arranged in same equipment just can add same aggregation group.Different from common link aggregation technology, distributed aggregated link technology joins the port on two equipment in same distributed aggregation group by using proprietary protocol to realize, i.e. striding equipment polymerization.The link level error protection providing with respect to common link aggregation, distributed aggregated link provides device level redundancy protecting.
As shown in Figure 1, be a kind of networking schematic diagram that has adopted the network of distributed aggregated link, for convenience, this kind of network can be called to distributed aggregated link network.In Fig. 1, port Port1 and Port2 on switch SW2, and the port Port4 on SW3 and Port5 have joined in same distributed aggregation group; Port Port3 and the port Port6 on SW3 on SW2 have joined in same distributed aggregation group.Two equipment of distributed polymerization (that is, for realizing two equipment of distributed aggregated link), for example, SW2 and SW3, or, between SW4 and SW5, need to provide following two dedicated links:
A, data synchronization link (ISC link): for equipment room, control alternately message, simultaneously also for the forwarding of striding equipment data flow; Between two equipment, can only configure an ISC link; The port of ISC both link ends is called ISC port, and ISC port can be common port, can be also aggregation group.
B, keep-alive link (Layer3peer-keepalive link): for when the ISC link occurs fault, by sending keep-alive message, to carry out failure judgement type be ISC link failure or opposite equip. fault.
Two layers of forwarding model of distributed aggregated link network are to regard two equipment of distributed polymerization as same equipment, share MAC(Media Access Control, media interviews are controlled) transmit and the data that affect forwarding (for example, DHCP Snooping(Dynamic Host Configuration Protocol Snooping, DHCP is spied upon) list item etc.).It for outgoing interface, is the data flow of the DT port of a distributed aggregation group, preferentially from local DT port repeat, only have when the local UP(that does not belong to this distributed aggregation group can be with) DT port time, just by ISC port repeat, to opposite equip., realize striding equipment and forward.In distributed aggregated link network, forbid moving STP(Spanning Tree Protocol, Spanning-Tree Protocol) agreement, guarantee loop free, by privately owned loop detection agreement, carry out the loop in Sampling network simultaneously.
Wherein, each member port in distributed aggregation group is called DT port.For any equipment in two equipment of distributed polymerization, if belonging to the DT port of some distributed aggregation group on this equipment has a plurality of, these a plurality of DT ports can be joined in an aggregation group, in order to be different from distributed aggregation group, can claim that this aggregation group is local aggregation group, the ID of this this locality aggregation group and the ID of this distributed aggregation group are irrelevant.
In distributed aggregated link technology, the principle that the forwarding of non-unicast data flow is followed is: the non-unicast data message of receiving from ISC port is forbidden the port repeat at DT, avoids occurring that a message is replicated the situation of many parts of forwardings.And the principle that the forwarding of unicast data stream is followed is:
Two equipment of a, distributed polymerization mac address information that synchronous study is arrived mutually;
Concrete, after a DT port (being designated as DT port one) learning to mac address information (being designated as MAC1) of equipment 1 from distributed aggregation group, at MAC, transmit the list item that one of middle interpolation includes the outgoing interface of MAC1 and correspondence thereof, wherein, the DT port that belongs to this distributed aggregation group on this equipment only have DT port one this time, this outgoing interface is DT port one (being specially the port id of DT port one), the DT port that belongs to this distributed aggregation group on this equipment has when a plurality of, this outgoing interface is the local aggregation group (being specially the ID of the affiliated local aggregation group of these a plurality of DT ports) that these a plurality of DT ports form, then, MAC1 is carried in MAC synchronization message and sends to equipment 2 by keep-alive link, wherein, in this MAC synchronization message, also carry the ID:1 of distributed aggregation group 1.
Equipment 2 is received after this MAC synchronization message, according to the ID:1 of the distributed aggregation group in this message, determines the DT port that belongs to distributed aggregation group 1 on this equipment; At MAC, transmit the list item that one of middle interpolation includes the outgoing interface of MAC1 and correspondence thereof, wherein, when the DT port that belongs to distributed aggregation group 1 on this equipment only has one, this outgoing interface is this DT port, the DT port that belongs to distributed aggregation group 1 on this equipment has when a plurality of, and this outgoing interface is the local aggregation group that these a plurality of DT ports form.If it is all unavailable in DOWN(to belong to all DT ports of distributed aggregation group 1 on equipment 2 these equipment of discovery) state, MAC1 is learnt on ISC port.
B, outgoing interface are the data flow of the DT port of a distributed aggregation group, preferentially from local DT port repeat, while only having the DT port as the local UP that does not belong to this distributed aggregation group, just from ISC port, send to opposite equip., by opposite equip., are forwarded.
For example, SW2 receives after unicast data message, according to the target MAC (Media Access Control) address of this unicast data message, in transmitting, searches MAC corresponding outgoing interface, suppose that the outgoing interface finding is the DT port Port3 of distributed aggregation group 1, so, if Port3 is in UP state, preferentially by Port3, forward this unicast data message, if Port3 is in DOWN state, and the port that belongs to distributed aggregation group 1 on this equipment only have Port3 this, by this unicast data message by ISC port repeat to SW3, by SW3, table look-up and forward this unicast data message.
In the prior art, an equipment in two equipment of distributed polymerization (for convenience of description, be designated as equipment 1) on all DT ports that belong to some distributed aggregation group while all becoming DOWN state, that is, if belong to the DT port of this distributed aggregation group on this equipment, only have one, and this DT port is in DOWN state, or the DT port that belongs to this distributed aggregation group on this equipment has a plurality of, and these a plurality of DT ports are all in DOWN state, now, need to carry out following operating process:
Step S102, equipment 1 includes the list item of the DT port of this fault and deletes during MAC is transmitted, then, by ISC port to opposite equip. (for convenience of description, be designated as equipment 2) send distributed aggregated link group ID(under the DT port carry this fault for convenience of description, be designated as distributed aggregated link group 1) notification message;
Step S104, equipment 2 is received after this notification message, determine on this equipment, belong to distributed aggregated link group 1 DT port (for convenience of description, be designated as DT port one), during MAC is transmitted, include mac address information in the list item of this DT port one and be carried in MAC synchronization message and by ISC port and send to equipment 1;
Step S106, equipment 1 receives after this MAC synchronization message, the mac address information in this message is added to during MAC transmits, and the outgoing interface that these mac address informations are corresponding is all set to ISC port.
After above flow process, equipment 1 can should, from the data flow of the DT port repeat of fault,, be forwarded by equipment 2 to equipment 2 by ISC port repeat former.
There is following problem in above-mentioned flow process:
(1) equipment 1 need to be deleted all list items that MAC includes the DT port of this fault in transmitting, and the process of remove entries relatively expends time in, and affects data flow performance of handoffs;
(2) after having deleted all list items of the DT port that includes this fault during MAC transmits, and before receiving the MAC synchronization message that equipment 2 is synchronously come during this period of time in, owing to searching in MAC transmits less than coupling list item, equipment 1 can be done unicast message broadcast and process, and has wasted network bandwidth resources;
(3) if DT port repeatedly switches between UP state and DOMN state, can cause MAC forwarding-table item to shake back and forth, affect CPU(Central Processing Unit, central processing unit) handling property and the normal forwarding of data.
Embodiment
In order to solve relatively expending time in of existing in prior art, affect data flow performance of handoffs, waste network bandwidth resources, affect the problem of the handling property of CPU and the normal forwarding of data, data flow processing method in a kind of distributed aggregated link network is provided in the application's following examples, and a kind of device that can apply the method.
In the distributed aggregated link network of the application's following examples, two network equipments of distributed polymerization are connected by ISC link, for example, these two network equipments can be SW2 and the SW3 in Fig. 1, or SW4 and SW5, and have at least a port to join in same distributed aggregation group on each network equipment in these two network equipments.
And, a distributed aggregation group on any network equipment of take in following examples in these two network equipments describes as example, obviously, when there is a plurality of distributed aggregation group, each in these a plurality of distributed aggregation group is all carried out according to the method for following examples.
Embodiment mono-
Data flow processing method in the distributed aggregated link network of the embodiment of the present application one can be applied to any in two equipment of distributed polymerization.As shown in Figure 2, the method comprises the following steps:
Step S202, after receiving unicast message, transmits the outgoing interface of determining this unicast message according to MAC;
In step S202, after receiving unicast message, can, according to the information such as target MAC (Media Access Control) address of this unicast message, in transmitting, search MAC corresponding outgoing interface.This step is prior art, repeats no more here.
Step S204, if determining the outgoing interface of this unicast message is particular port, according to default ACL(Access Control List (ACL)) rule this unicast message is redirected to default specific Layer 2 Multicast group list item, according to the outgoing interface list of specific Layer 2 Multicast group list item, forward this unicast message;
In actual implementation process, for this distributed aggregation group, set in advance acl rule, this acl rule comprises: matching condition and performing an action, wherein, this matching condition is that outgoing interface is the unicast message of particular port, performs an action as this unicast message being redirected to the specific Layer 2 Multicast group list item that (or sensing) call number is N.The value of N can arrange according to actual conditions, and the application does not limit this.
In actual implementation process, for a distributed aggregation group, the DT port that belongs to this distributed aggregation group on the network equipment may only have one (this kind of situation is called situation one), also may there be a plurality of (this kind of situation is called situation two), when having when a plurality of, these a plurality of DT ports have joined again in a local aggregation group, and the aggregation group ID of this this locality aggregation group and the aggregation group ID of this distributed aggregation group are irrelevant.
Like this, in situation one, particular port is a DT port, and the outgoing interface list of specific Layer 2 Multicast group list item is a DT port; When reality is implemented, a DT port identifies with port id.In situation one, because the outgoing interface list of specific Layer 2 Multicast group list item is a DT port, therefore the mode that, forwards this unicast message according to the outgoing interface list of specific Layer 2 Multicast group list item in step S204 is: by this unicast message of DT port repeat.
In situation two, particular port is the local aggregation group that these at least two DT ports form, and the outgoing interface list of specific Layer 2 Multicast group list item is these at least two DT ports; When reality is implemented, local aggregation group identifies with aggregation group ID.In situation two, because the outgoing interface list of specific Layer 2 Multicast group list item is these at least two the DT ports in local aggregation group, therefore, the mode that forwards this unicast message according to the outgoing interface list of specific Layer 2 Multicast group list item in step S204 is: according to pre-defined algorithm, from these at least two DT ports, select a DT port, by this unicast message of DT port repeat of choosing.Which is prior art, repeats no more here.
Step S206, when particular port, to become DOWN(unavailable) during state, the outgoing interface list of specific Layer 2 Multicast group list item is revised as to the ISC port that connects ISC link on this equipment.
In step S206, when being situation a period of time, because particular port is exactly a DT port: a DT port, therefore, particular port becomes DOWN state, is a DT port and becomes DOWN state; When being situation two, because particular port is the local aggregation group that these at least two DT ports form, therefore, particular port becomes DOWN state, is these at least two DT ports and all becomes DOWN state.
Situation one and situation two are at length introduced respectively below.
(1) situation one
When the DT port that belongs to this distributed aggregation group on this equipment only has a DT port, particular port is a DT port, and the outgoing interface list of specific Layer 2 Multicast group list item is a DT port; When reality is implemented, a DT port identifies with port id.
Like this, the data flow processing method in distributed aggregated link network comprises the following steps:
Step S302, with step S202;
Step S304, if determine the outgoing interface of this unicast message, it is a DT port, according to default acl rule, this unicast message is redirected to default specific Layer 2 Multicast group list item, according to the outgoing interface list of specific Layer 2 Multicast group list item, i.e. this unicast message of DT port repeat;
This step S304 is corresponding to step S204.
For example, the content of this acl rule can be: matching condition is that outgoing interface is the unicast message of a DT port, perform an action as being redirected to the specific Layer 2 Multicast group list item that call number is N, this specific Layer 2 Multicast group list item can as table 1-1 as shown in:
Table 1-1
Call number |
Outgoing interface list |
N |
The one DT port |
In table 1-1, the value of N can arrange according to actual conditions, and the application does not limit this.
In step S304, if determine the outgoing interface of unicast message, it is a DT port, this unicast message is redirected to the specific Layer 2 Multicast group list item that the call number as shown in table 1-1 is N, then, by this unicast message of DT port repeat in the outgoing interface list of this specific Layer 2 Multicast group list item.
Step S306, when a DT port becomes DOWN state, is revised as the outgoing interface list of specific Layer 2 Multicast group list item the ISC port that connects ISC link on this equipment.
This step S306 is corresponding to step S206.
For example, when a DT port becomes DOWN state, after the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 1-1 is revised as to the ISC port that connects ISC link on this equipment, this specific Layer 2 Multicast group entry updating is as shown in table 1-2:
Table 1-2
Now, after receiving unicast message, still according to step S302-S304, carry out, wherein, in step S304, can forward this unicast message according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 1-2,, by connecting this unicast message of ISC port repeat of ISC link on this equipment, thereby can be transmitted to opposite equip. by ISC link, by opposite equip., to the forwarding of tabling look-up of this unicast message, realize striding equipment forwarding.Like this, when local DT port DOWN, data flow can be switched to ISC link, avoid the interruption of data flow.
In addition, after step S306, when a DT port becomes UP(from DOWN state can be with) during state, the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 1-2 is revised as to a DT port, now, specific Layer 2 Multicast group list item reverts to as shown in table 1-1.Afterwards, after receiving unicast message, still according to step S302-S304, forward, wherein, in step S304, can forward this unicast message according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 1-1, that is,, by this unicast message of DT port repeat, realize local forwarding.Data flow has just been returned local DT port from ISC link switching like this.
(2) situation two
When the DT port that belongs to this distributed aggregation group on this equipment has at least two, particular port is the local aggregation group that these at least two DT ports form, and the outgoing interface list of specific Layer 2 Multicast group list item is these at least two DT ports; When reality is implemented, local aggregation group identifies with aggregation group ID.
Like this, the data flow processing method in distributed aggregated link network comprises the following steps:
Step S402, with step S202;
Step S404, if when determining the outgoing interface of this unicast message and being local aggregation group, according to default acl rule, this unicast message is redirected to default specific Layer 2 Multicast group list item, according to the outgoing interface list of specific Layer 2 Multicast group list item, forward this unicast message,, according to pre-defined algorithm, from these at least two DT ports, select a DT port, by this unicast message of DT port repeat of choosing;
This step is corresponding to step S204.
For example, the DT port that belongs to this distributed aggregation group on this equipment has M(M >=2) individual, be designated as: Port1, Port2, Port3,, PortM, this M DT port joined in a local aggregation group (the aggregation group ID of this this locality aggregation group is designated as 1),, the content of this acl rule can be: matching condition is that outgoing interface is the unicast message of aggregation group ID1, perform an action as being redirected to the specific Layer 2 Multicast group list item that call number is N, as shown in table 2-1:
Table 2-1
Call number |
Outgoing interface list |
N |
Port1,Port2,Port3,…,PortM |
In table 2-1, the value of N can arrange according to actual conditions, and the application does not limit this.
According to the mode that forwards this unicast message as the outgoing interface list of the specific Layer 2 Multicast group list item of table as shown in 2-1, being specially: the relevant information in the heading of this unicast message is carried out to Hash(Hash) computing obtains an operation values (being designated as KEY), then, calculate S=KEY%M(% and represent modulo operator) value, according to the value (S=0 of S, 1, (M-1)) from M DT port, select a DT port, by this unicast message of DT port repeat of selecting.For example, when S=0, select first DT port in interface list, when S=1, select second DT port in interface list, by that analogy, that is, the value of S has determined the relative position of selected DT port in outgoing interface list.Wherein, relevant information can be following one or more combination: source MAC, target MAC (Media Access Control) address, VLAN etc.
In step S404, if determine the outgoing interface of unicast message, it is the local aggregation group that aggregation group ID1 identifies, this unicast message is redirected to the specific Layer 2 Multicast group list item that the call number as shown in table 2-1 is N, then, according to above pass-through mode from Port1, Port2, Port3,, in PortM, select a DT port, by this unicast message of DT port repeat of choosing.
Step S406, when a DT port that belongs to this distributed aggregation group on this equipment becomes DOWN state, that is,, when a DT port in local aggregation group becomes DOWN state, judge in the DT port that belongs to this distributed aggregation group on this equipment whether to also have other DT ports in UP state,, judge in local aggregation group whether also have other DT ports in UP state, if having, perform step S408, otherwise, execution step S410;
Step S408 deletes the DT port that this becomes DOWN state from the outgoing interface list of specific Layer 2 Multicast group list item;
Suppose, the DT port that becomes DOWN state in step S406 is designated as Port2, the specific Layer 2 Multicast group list item when Port2 becomes DOWN state as table 2-1 as shown in,, from Port1, Port2, Port3 ..., in PortM, delete Port2.Now, specific Layer 2 Multicast group entry updating is as shown in table 2-2:
Table 2-2
Call number |
Outgoing interface list |
N |
Port1,Port3,…,PortM |
After receiving unicast message, still according to step S402-S404, forward, wherein, can be according to forwarding this unicast message as the outgoing interface list of the specific Layer 2 Multicast group list item of table as shown in 2-2 in step S404, that is, according to above pass-through mode from Port1, Port3,, in PortM, select a DT port, by this unicast message of DT port repeat of choosing.Like this, data flow can remove from the DT port of DOWN state automatically, transfers on the DT port of UP state.
Step S410, illustrate that all DT ports (being all DT ports in local aggregation group) that belong in this distributed aggregation group on this equipment have all become DOWN state, suppose, Port2 in local aggregation group is before becoming DOWN state, only has Port2 in UP state, and in step S406, Port2 also becomes DOWN state, specific Layer 2 Multicast group list item when Port2 becomes DOWN state is as shown in table 2-3, , the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 2-3 is revised as to the ISC port that connects ISC link on this equipment, now, this specific Layer 2 Multicast group entry updating is for as shown in Table 2-4:
Table 2-3
Call number |
Outgoing interface list |
N |
Port2 |
Table 2-4
Step S406 and step S410 are corresponding to step S206.
Now, after receiving unicast message, still according to step S402-S404, carry out, wherein, in step S404, the outgoing interface list of meeting basis specific Layer 2 Multicast group list item as shown in Table 2-4 forwards this unicast message,, by connecting this unicast message of ISC port repeat of ISC link on this equipment, thereby can be transmitted to opposite equip. by ISC link, by opposite equip., to the forwarding of tabling look-up of this unicast message, realize striding equipment forwarding.Like this, when the equal DOWN of the whole DT port in this locality, data flow can be switched to ISC link, avoid the interruption of data flow.
In addition, further comprising the steps of in said method:
Step S502, a DT port that belongs to this distributed aggregation group on this equipment becomes UP state (for convenience from DOWN state, the DT port that this is become to UP state is designated as PortM) time,, when a DT port in local aggregation group becomes UP state from DOWN state, judge in the DT port that belongs to this distributed aggregation group on this equipment and whether to also have other DT ports in UP state,, judge in local aggregation group and whether to also have other DT ports in UP state, if do not have, perform step S504, otherwise, execution step S506;
Step S504, illustrated before PortM becomes UP state from DOWN state, Port1, and Port2, Port3 ..., PortM has all become DOWN state, and specific Layer 2 Multicast group list item is now as shown in Table 2-4; PortM is first DT port that becomes UP state,, the outgoing interface list of specific Layer 2 Multicast group list item is as shown in Table 2-4 revised as to PortM, and this specific Layer 2 Multicast group entry updating is as shown in table 2-5:
Table 2-5
Call number |
Outgoing interface list |
N |
PortM |
Now, after receiving unicast message, still according to step S402-S404, carry out, wherein, in step S404, can forward this unicast message according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 2-5, that is, by unique PortM in UP state, forward this unicast message, thereby data flow has just been returned local DT port from ISC link switching.
Step S506, explanation is before PortM becomes UP state from DOWN state, there have been some DT ports to become UP state or kept UP state always, suppose, specific Layer 2 Multicast group list item is now as shown in table 2-6,, in the outgoing interface list of specific Layer 2 Multicast group list item, add after PortM, this specific Layer 2 Multicast group entry updating is as shown in table 2-7:
Table 2-6
Call number |
Outgoing interface list |
N |
Port1,Port2,Port3,Port4 |
Table 2-7
Call number |
Outgoing interface list |
N |
Port1,Port2,Port3,Port4,PortM |
Now, after receiving unicast message, still according to step S402-S404, carry out, wherein, in step S404, can forward this unicast message according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 2-7, that is, all in the DT of UP state port Port1, Port2 from local aggregation group according to above pass-through mode, Port3, Port4, selects a DT port in PortM, by this unicast message of DT port repeat of choosing.
In the method for the above embodiment of the application, any change is not carried out in study for the source MAC of message,, in situation one, the message receiving from a DT port, the source MAC of message is still learnt on a DT port, that is, the list item of transmitting middle interpolation at MAC remains the port id of this source MAC and a DT port; In situation two, the message receiving from a DT port, (the source MAC of message still learns local aggregation group, the local aggregation group that belongs to a plurality of DT ports compositions of this distributed aggregation group on this equipment) on, that is the list item of, transmitting middle interpolation at MAC remains the aggregation group ID of this source MAC and this this locality aggregation group.
In the technical scheme of the above embodiment of the application, on any platform in two network equipments of distributed polymerization, for distributed aggregation group, acl rule is set in advance, receiving unicast message, and after the outgoing interface of determining this unicast message is particular port, according to this acl rule, this unicast message is redirected to default specific Layer 2 Multicast group list item, according to the outgoing interface list of this specific Layer 2 Multicast group list item, forward this unicast message, wherein, when the DT port that belongs to this distributed aggregation group on this equipment only has a DT port, particular port is a DT port, outgoing interface list is a DT port, when the DT port that belongs to this distributed aggregation group on this equipment has at least two, particular port is the local aggregation group that these at least two DT ports form, outgoing interface list is these at least two DT ports, like this, the unicast message that is particular port for outgoing interface, to mate this acl rule, be redirected to this specific Layer 2 Multicast group list item, and forward according to the outgoing interface list of this list item, because the outgoing interface list of this list item is exactly this particular port, so the unicast message receiving still can forward from this particular port.In addition, when particular port becomes DOWN state, , whole DT port DOWN in the one DT port DOWN or local aggregation group, the outgoing interface list of this specific Layer 2 Multicast group list item is revised as to the ISC port that connects ISC link on this equipment, like this, receiving unicast message, and after the outgoing interface of determining this unicast message is particular port, mate this acl rule, this unicast message is redirected to this specific Layer 2 Multicast group list item, and forward according to the outgoing interface list of this list item, because outgoing interface list has been revised as ISC port, thereby this unicast message can be passed through to ISC port repeat to opposite equip., having realized the striding equipment that data flow is switched to ISC link forwards.By above technical scheme, due to after the unicast message receiving determines outgoing interface and is particular port, also need to mate acl rule, according to the outgoing interface list in acl rule specific Layer 2 Multicast group list item pointed, forward, the whole DT ports that belong to this distributed aggregation group on this equipment are all after DOWN, the MAC forwarding-table item that comprises this particular port without deletion, also without waiting for the synchronous mac address information of opposite equip., and, the state of DT port changes also without having influence on MAC forwarding-table item, only the outgoing interface list in specific Layer 2 Multicast group list item need be revised as to ISC port just can realize the change of the outgoing interface of unicast message, thereby time and network bandwidth resources have been saved, performance of handoffs while having improved equipment fault, met the demand of equipment high reliability, in addition, the method arranges simply, can meet the quick performance of handoffs of link of 10ms.
In above embodiment, the DT port that belongs to this distributed aggregation group on this equipment has at least two, and when these at least two DT ports all become DOWN state, the local aggregation group that these at least two DT ports form just becomes DOWN state; While having at least one DT port in UP state in these at least two DT ports, this this locality aggregation group is still UP state.
Embodiment bis-
The SW2 of take in the distributed aggregated link network shown in Fig. 1 is example, and the method in above embodiment mono-is described.In Fig. 1, port Port1 and Port2 on switch SW2, and the port Port4 on SW3 and Port5 have joined in same distributed aggregation group 1; Port Port3 and the port Port6 on SW3 on SW2 have joined in same distributed aggregation group 2.Between SW2 and SW3, be connected with ISC link, the ISC port of this ISC link of the upper connection of SW2 is ISCPort1, and the ISC port of this ISC link of the upper connection of SW3 is ISCPort2.
For distributed aggregation group 1, the method that SW2 carries out comprises:
Step S602, arranges acl rule, and the matching condition of this acl rule is that outgoing interface is with the unicast message of the local aggregation group of aggregation group ID3 sign, performs an action as being redirected to the specific Layer 2 Multicast group list item that call number is N1, as shown in table 3-1;
The DT port Port1 and the Port2 that on SW2, belong to distributed aggregation group 1 have joined in a local aggregation group, and the ID of this this locality aggregation group is designated as 3.
Table 3-1
Call number |
Outgoing interface list |
N1 |
Port1,Port2 |
Step S604, receiving unicast message, and the outgoing interface of determining this unicast message for the local aggregation group with aggregation group ID3 sign after, mate this acl rule, this unicast message is redirected to the specific Layer 2 Multicast group list item as shown in table 3-1, Port1 from the outgoing interface list of this specific Layer 2 Multicast group list item, selects one in Port2, this unicast message is gone out by the DT port repeat of choosing.
Step S606, when Port1 becomes after DOWN state, because Port2 is now still UP state, be as shown as shown in 3-2 by the specific Layer 2 Multicast group entry updating as shown in table 3-1:
Table 3-2
Call number |
Outgoing interface list |
N1 |
Port2 |
Now, if receive the unicast message into the local aggregation group with aggregation group ID3 sign, this unicast message just can only forward by Port2.
Afterwards, if Port2 has also become DOWN state,, by the specific Layer 2 Multicast group entry updating as shown in table 3-2, be as shown in table 3-3:
Table 3-3
Call number |
Outgoing interface list |
N1 |
ISCPort1 |
Now, if receive outgoing interface for the unicast message of the local aggregation group with aggregation group ID3 sign, this unicast message will be transmitted to SW3 by ISCPort1, by SW3, is forwarded.
Step S608, when Port1 becomes after UP state, if now Port2 is in DOWN state, is as shown in table 3-4 by the specific Layer 2 Multicast group entry updating as shown in table 3-3:
Table 3-4
Call number |
Outgoing interface list |
N1 |
Port1 |
Now, if receive outgoing interface for the unicast message of the local aggregation group with aggregation group ID3 sign, this unicast message will forward by Port1.
Afterwards, when Port2 also becomes UP state, by the specific Layer 2 Multicast group entry updating as shown in table 3-4, be as shown in table 3-1.
Now, if receive outgoing interface for the unicast message of the local aggregation group with aggregation group ID3 sign, will from Port1 and Port2, select a DT port, this unicast message can be gone out by the DT port repeat of choosing.
For distributed aggregation group 2, the method that SW2 carries out comprises:
Step S702, arranges acl rule, and the matching condition of this acl rule is that outgoing interface is the unicast message of Port3, performs an action as being redirected to the specific Layer 2 Multicast group list item that call number is N2, as shown in table 4-1;
Table 4-1
Call number |
Outgoing interface list |
N2 |
Port3 |
Step S704, is receiving unicast message, and after the outgoing interface of determining this unicast message is Port3, mates this acl rule, and this unicast message is redirected to the specific Layer 2 Multicast group list item as shown in table 4-1, and this unicast message is forwarded by Port3.
Step S706, when Port3 becomes after DOWN state, due on this equipment, belong to the DT port of distributed aggregation group 2 only have Port3 this, therefore, will be as shown as shown in 4-2 as the specific Layer 2 Multicast group entry updating of table as shown in 4-1:
Table 4-2
Call number |
Outgoing interface list |
N2 |
ISCPort1 |
Now, the unicast message that outgoing interface is Port3 if receive, this unicast message will be transmitted to SW3 by ISCPort1, by SW3, is forwarded.
Step S708, when Port3 becomes after UP state, is as shown in table 4-1 by the specific Layer 2 Multicast group entry updating as shown in table 4-2.
Now, receive the unicast message that outgoing interface is Port3, this unicast message will forward by Port3.
Embodiment tri-
The embodiment of the present application proposes a kind of Data Stream Processing scheme, data flow while realizing all DT port DOWN that belong to a distributed aggregation group on this equipment is switched fast, and, solve relatively expending time in of existing in prior art, affect data flow performance of handoffs, waste network bandwidth resources, affect the problem of the handling property of CPU and the normal forwarding of data.
With software, be embodied as example, a kind of preferred embodiment in, the embodiment of the present application provides the data stream processing device on any network equipment in a kind of two network equipments that can be applicable to distributed polymerization in distributed aggregated link network.
As shown in Figure 3, this data stream processing device 10 comprises with lower module: receiver module 101, outgoing interface determination module 102, Executive Module 103 and modified module 104, wherein:
Receiver module 101, for receiving unicast message;
Outgoing interface determination module 102, for after receiver module 101 receives unicast message, transmits the outgoing interface of determining this unicast message according to MAC;
Executive Module 103, if determining the outgoing interface of this unicast message for outgoing interface determination module 102 is particular port, according to default acl rule, this unicast message is redirected to default specific Layer 2 Multicast group list item, according to the outgoing interface list of specific Layer 2 Multicast group list item, forwards this unicast message; Wherein, when the DT port that belongs to this distributed aggregation group on this equipment only has a DT port, particular port is a DT port, and outgoing interface list is a DT port; When the DT port that belongs to this distributed aggregation group on this equipment has at least two, particular port is the local aggregation group that these at least two DT ports form, and outgoing interface list is these at least two DT ports;
Modified module 104, when becoming DOWN state when particular port, is revised as the outgoing interface list of specific Layer 2 Multicast group list item the ISC port that connects ISC link on this equipment.
Wherein, the DT port that belongs to this distributed aggregation group on this equipment has at least two, and, when these at least two DT ports all become DOWN state, the local aggregation group that these at least two DT ports form becomes DOWN state.
If belong to the DT port of this distributed aggregation group on this equipment, only have a DT port,, modified module, also, for when a DT port becomes UP state from DOWN state, is revised as a DT port by the outgoing interface list of specific Layer 2 Multicast group list item.
If belong to the DT port of this distributed aggregation group on this equipment, have at least two,, this device also comprises: judge module and removing module, wherein:
Judge module, while becoming DOWN state for a DT port when local aggregation group, judges in local aggregation group whether to also have other DT ports in UP state;
Removing module, if be used for judge module when a DT port of local aggregation group becomes DOWN state, judge in local aggregation group and also have other DT ports in UP state, from the outgoing interface list of specific Layer 2 Multicast group list item, delete the DT port that this becomes DOWN state.
If belong to the DT port of this distributed aggregation group on this equipment, have at least two,, device also comprises: add module, wherein:
Judge module, while also becoming UP state for a DT port when local aggregation group from DOWN state, judges in local aggregation group whether to also have other DT ports in UP state;
Modified module, if also for judge module when a DT port of local aggregation group becomes UP state from DOWN state, judge in local aggregation group and there is no other DT ports in UP state, the outgoing interface list of specific Layer 2 Multicast group list item is revised as to the DT port that this becomes UP state;
Add module, if be used for judge module when a DT port of local aggregation group becomes UP state from DOWN state, judge in local aggregation group and also have other DT ports in UP state, in the outgoing interface list of specific Layer 2 Multicast group list item, add the DT port that this becomes UP state.
The embodiment of the present application is not got rid of the execution mode of hardware or software and hardware combining.Please refer to shown in Fig. 3, this data stream processing device is as the device on a logical meaning, and it is that CPU by the described network equipment reads operation in internal memory by computer program instructions corresponding in nonvolatile memory and forms.From hardware view, say, except CPU, internal memory and nonvolatile memory, this network equipment also comprises that some are responsible for processing the hardware that message is processed conventionally, such as forwarding chip etc.; From hardware configuration, this network equipment may be also distributed equipment, and it may comprise that a plurality of interface cards are to carry out the expansion of message processing at hardware view.
To sum up, the above embodiment of the application can reach following technique effect:
In the technical scheme of the above embodiment of the application, on any platform in two network equipments of distributed polymerization, for distributed aggregation group, acl rule is set in advance, receiving unicast message, and after the outgoing interface of determining this unicast message is particular port, according to this acl rule, this unicast message is redirected to default specific Layer 2 Multicast group list item, according to the outgoing interface list of this specific Layer 2 Multicast group list item, forward this unicast message, wherein, when the DT port that belongs to this distributed aggregation group on this equipment only has a DT port, particular port is a DT port, outgoing interface list is a DT port, when the DT port that belongs to this distributed aggregation group on this equipment has at least two, particular port is the local aggregation group that these at least two DT ports form, outgoing interface list is these at least two DT ports, like this, the unicast message that is particular port for outgoing interface, to mate this acl rule, be redirected to this specific Layer 2 Multicast group list item, and forward according to the outgoing interface list of this list item, because the outgoing interface list of this list item is exactly this particular port, so the unicast message receiving still can forward from this particular port.In addition, when particular port becomes DOWN state, , whole DT port DOWN in the one DT port DOWN or local aggregation group, the outgoing interface list of this specific Layer 2 Multicast group list item is revised as to the ISC port that connects ISC link on this equipment, like this, receiving unicast message, and after the outgoing interface of determining this unicast message is particular port, mate this acl rule, this unicast message is redirected to this specific Layer 2 Multicast group list item, and forward according to the outgoing interface list of this list item, because outgoing interface list has been revised as ISC port, thereby this unicast message can be passed through to ISC port repeat to opposite equip., having realized the striding equipment that data flow is switched to ISC link forwards.By above technical scheme, due to after the unicast message receiving determines outgoing interface and is particular port, also need to mate acl rule, according to the outgoing interface list in acl rule specific Layer 2 Multicast group list item pointed, forward, the whole DT ports that belong to this distributed aggregation group on this equipment are all after DOWN, the MAC forwarding-table item that comprises this particular port without deletion, also without waiting for the synchronous mac address information of opposite equip., and, the state of DT port changes also without having influence on MAC forwarding-table item, only the outgoing interface list in specific Layer 2 Multicast group list item need be revised as to ISC port just can realize the change of the outgoing interface of unicast message, thereby time and network bandwidth resources have been saved, performance of handoffs while having improved equipment fault, met the demand of equipment high reliability, in addition, the method arranges simply, can meet the quick performance of handoffs of link of 10ms.
The foregoing is only the application's preferred embodiment, not in order to limit the application, all within the application's spirit and principle, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of the application's protection.