Data flow processing method in distributed aggregated link network and device
Technical field
The application relates to network communication technology field, at the data stream in a kind of distributed aggregated link network
Reason method and apparatus.
Background technology
IRF(Intelligent Resilient Framework, intelligent elastic framework) multiple stage exchange can set by technology
For being combined into a high performance entirety, it is therefore an objective to the fewest expense, it is thus achieved that the highest network performance and network
Availability.The equipment supporting IRF technology all possesses three key properties: distributed device management (DDM), distributed aggregated link
(Distributed Link Aggregation, DLA;Or Distributed Trunking, DT) and distributed elastic route
(DRR).This three technology has been the indispensable link of IRF technical goal.Wherein, DT is for improving the available of transmission link
Property and capacity.
In common link aggregation technology, the port being only positioned at same equipment could add in same aggregation group.With general
Logical link aggregation technology is different, and distributed aggregated link technology can realize on two equipment by using proprietary protocol
Port joins in same distributed aggregation group, i.e. cross-equipment aggregation.The link level provided relative to common link aggregation
Error protection, distributed aggregated link provides device level redundancy protecting.
As it is shown in figure 1, be the networking schematic diagram of a kind of network that have employed distributed aggregated link, for convenience,
This kind of network can be referred to as distributed aggregated link network.In Fig. 1, port Port1 and Port2 on switch SW2, and
Port Port4 and Port5 on SW3 has joined in same distributed aggregation group;On port Port3 and SW3 on SW2
Port Port6 has joined in same distributed aggregation group.Two equipment of distributed polymerization (that is, are used for realizing distributed
Two equipment of link aggregation), such as, SW2 and SW3, or, need between SW4 and SW5 provide following two dedicated link:
A, data syn-chronization link (ISC link): for equipment room interactive controlling message, be additionally operable to striding equipment data stream simultaneously
Forwarding;An ISC link can only be configured between two equipment;The port of ISC both link ends is referred to as ISC port, and ISC port can
To be common port, it is also possible to be aggregation group.
B, keep-alive link (Layer3peer-keepalive link): for when ISC link breaks down, by sending
It is ISC link failure or opposite equip. fault that keep-alive message carrys out failure judgement type.
Two layers of forwarding model of distributed aggregated link network are to regard two equipment of distributed polymerization as same to set
Standby, share MAC(Media Access Control, media interviews control) forward table and impact forward data (such as, DHCP
Snooping(Dynamic Host Configuration Protocol Snooping, DHCP is spied upon) table
Etc.).It is the data stream of the DT port of a distributed aggregation group for outgoing interface, preferentially forwards, only from local DT port
Can use when this locality does not belong to the UP(of this distributed aggregation group) DT port time, be just transmitted to opposite equip. by ISC port
Realize striding equipment to forward.Distributed aggregated link network is forbidden run STP(Spanning Tree Protocol, spanning tree
Agreement) agreement, it is ensured that loop free, detects the loop in network by privately owned loop detection agreement simultaneously.
Wherein, each member port in distributed aggregation group is referred to as DT port.Two for distributed polymerization set
For any one equipment in Bei, if the DT port belonging to some distributed aggregation group on this equipment has multiple, then can be by
These multiple DT ports join in an aggregation group, in order to be different from distributed aggregation group, can this aggregation group be called local poly-
Charge-coupled, this ID of locally aggregated group is unrelated with the ID of this distributed aggregation group.
In distributed aggregated link technology, the principle that the forwarding of non-unicast data stream is followed is: receive from ISC port
Non-unicast data message forbid forwarding at DT port, it is to avoid occur that a message is replicated many parts of situations about forwarding.And, clean culture
The principle that the forwarding of data stream is followed is:
A, two equipment of distributed polymerization are mutually synchronized the mac address information that study is arrived;
Concrete, the upper study of a equipment 1 DT port (being designated as DT port 1) from distributed aggregation group a to MAC
After address information (being designated as MAC1), MAC forward table is added the list item of an outgoing interface including MAC1 and correspondence thereof, its
In, when the DT port belonging to this distributed aggregation group on this equipment only have DT port 1 this time, this outgoing interface is DT port
1(is specially the port id of DT port 1), when the DT port belonging to this distributed aggregation group on this equipment has multiple, this goes out to connect
Mouth is locally aggregated group (the specially ID of this belonging to multiple DT ports locally aggregated group) of these multiple DT ports composition;So
After, MAC1 is carried in MAC synchronization message, is sent to equipment 2 by keep-alive link, wherein, this MAC synchronization message is also taken
ID:1 with distributed aggregation group 1.
After equipment 2 receives this MAC synchronization message, according to the ID:1 of the distributed aggregation group in this message, determine and originally set
The standby DT port above belonging to distributed aggregation group 1;An outgoing interface including MAC1 and correspondence thereof is added in MAC forward table
List item, wherein, when belonging to the DT port only one of which of distributed aggregation group 1 on this equipment, this outgoing interface is this DT end
Mouthful, when the DT port belonging to distributed aggregation group 1 on this equipment has multiple, this outgoing interface is these multiple DT ports composition
Locally aggregated group.If equipment 2 find to belong on this equipment all DT ports of distributed aggregation group 1 be in DOWN(can not
With) state, then MAC1 is learnt on ISC port.
B, outgoing interface are the data stream of the DT port of a distributed aggregation group, preferentially forward, only from local DT port
When this locality does not belong to the DT port of the UP of this distributed aggregation group, just it is sent to opposite equip. from ISC port, opposite end sets
For forwarding.
Such as, after SW2 receives unicast data message, according to the target MAC (Media Access Control) address of this unicast data message, turn at MAC
Deliver the middle outgoing interface searching correspondence, it is assumed that the outgoing interface found is the DT port Port3 of distributed aggregation group 1, then, if
Port3 is in UP state, the most preferentially forwards this unicast data message by Port3, if Port3 is in DOWN state, and originally sets
The standby port above belonging to distributed aggregation group 1 only have Port3 this, then this unicast data message is forwarded by ISC port
To SW3, SW3 table look-up and forward this unicast data message.
In the prior art, (for the ease of describing, it is designated as equipment when an equipment in two equipment of distributed polymerization
1) when all DT ports belonging to some distributed aggregation group on all become DOWN state, i.e. if belonging to this on this equipment
The DT port only one of which of distributed aggregation group, and this DT port is in DOWN state, or, this equipment belongs to this distributed poly-
Charge-coupled DT port has multiple, and these multiple DT ports are in DOWN state, at this time, it may be necessary to perform following operating process:
Step S102, the list item including the DT port of this fault in MAC forward table is deleted, then, is passed through by equipment 1
ISC port sends carry belonging to the DT port of this fault distributed to opposite equip. (for the ease of describing, be designated as equipment 2)
Link aggregation group ID(for the ease of describe, be designated as distributed aggregated link group 1) notification message;
Step S104, after equipment 2 receives this notification message, determines and belongs to distributed aggregated link group 1 on this equipment
DT port (for the ease of describing, be designated as DT port 1), by the MAC ground in the list item including this DT port 1 in MAC forward table
Location information is carried in MAC synchronization message and is sent to equipment 1 by ISC port;
Step S106, after equipment 1 receives this MAC synchronization message, adds the mac address information in this message to MAC and turns
In delivering, and, outgoing interface corresponding for these mac address informations is disposed as ISC port.
After above flow process, the data stream that equipment 1 can will should forward from the DT port of fault originally, passes through
ISC port is transmitted to equipment 2, equipment 2 forward.
There is following problem in above-mentioned flow process:
(1) equipment 1 needs to delete all list items of the DT port including this fault in MAC forward table, deletes list item
Process compares the consuming time, affects data flow handoff performance;
(2) after all list items of the DT port including this fault in deleting MAC forward table, and set receiving
Standby 2 synchronize before the MAC synchronization message come during this period of time in, owing to searching in MAC forward table less than coupling list item, if
Unicast message can be done broadcast by standby 1 to be processed, and wastes network bandwidth resources;
(3) if DT port repeatedly switches between UP state and DOMN state, then MAC forwarding-table item can be caused to shake back and forth
Swing, affect CPU(Central Processing Unit, central processing unit) process performance and the normal forwarding of data.
Summary of the invention
This application provides the data flow processing method in a kind of distributed aggregated link network and device, existing to solve
Compare the consuming time present in technology, affect data flow handoff performance, waste network bandwidth resources, affect the treatability of CPU
Can be with the normal problem forwarded of data.
The technical scheme of the application is as follows:
On the one hand, it is provided that the data flow processing method in a kind of distributed aggregated link DT network, this distributed link
In converging network, two network equipments of distributed polymerization are connected by ISC link, and each in the two network equipment
On the network equipment, at least a port joins in same distributed aggregation group, and the method is applied to the two network equipment
In any one, the method includes:
After receiving unicast message, determine the outgoing interface of this unicast message according to MAC forward table;
If it is determined that the outgoing interface of this unicast message is particular port, then according to default acl rule by this unicast message
It is redirected to the specific Layer 2 Multicast group list item preset, forwards this clean culture according to the outgoing interface list of specific Layer 2 Multicast group list item
Message;Wherein, when belonging to DT port only one of which the oneth DT port of this distributed aggregation group on this equipment, particular port is
Oneth DT port, outgoing interface list is a DT port;When the DT port belonging to this distributed aggregation group on this equipment has at least
When two, particular port is locally aggregated group of this at least two DT port composition, and outgoing interface list is this at least two DT end
Mouthful;
When particular port becomes DOWN state, the outgoing interface list of specific Layer 2 Multicast group list item is revised as this equipment
The ISC port of upper connection ISC link.
On the other hand, additionally providing the data stream processing device in a kind of distributed aggregated link DT network, this is distributed
In link aggregation network, two network equipments of distributed polymerization are connected by ISC link, and every in the two network equipment
On one network equipment, at least a port joins in same distributed aggregation group, and this device is applied to the two network
Any one in equipment, this device includes:
Receiver module, is used for receiving unicast message;
Outgoing interface determines module, for after receiver module receives unicast message, determines this list according to MAC forward table
Report the outgoing interface of literary composition;
Performing module, if determining that module determines that the outgoing interface of this unicast message is particular port for outgoing interface, then pressing
According to default acl rule, this unicast message is redirected to the specific Layer 2 Multicast group list item preset, according to specific Layer 2 Multicast
The outgoing interface list of group list item forwards this unicast message;Wherein, when only belonging to the DT port of this distributed aggregation group on this equipment
When having a DT port, particular port is a DT port, and outgoing interface list is a DT port;When belonging on this equipment
When the DT port of this distributed aggregation group has at least two, particular port is the locally aggregated of this at least two DT port composition
Group, outgoing interface list is this at least two DT port;
Modified module, for when particular port becomes DOWN state, arranges the outgoing interface of specific Layer 2 Multicast group list item
Table is revised as on this equipment connecting the ISC port of ISC link.
By the above technical scheme of the application, in the technical scheme of the application above example, in distributed polymerization
Two network equipments in any one platform in advance acl rule is set for distributed aggregation group, receiving unicast message,
And after determining that the outgoing interface of this unicast message is particular port, be redirected to preset by this unicast message according to this acl rule
Specific Layer 2 Multicast group list item, forward this unicast message according to the outgoing interface list of this specific Layer 2 Multicast group list item, wherein,
When belonging to DT port only one of which the oneth DT port of this distributed aggregation group on this equipment, particular port is a DT end
Mouthful, outgoing interface list is a DT port, when the DT port belonging to this distributed aggregation group on this equipment has at least two, special
Fixed end mouth is locally aggregated group of this at least two DT port composition, and outgoing interface list is this at least two DT port;So, right
It is the unicast message of particular port in outgoing interface, by this acl rule of coupling, is redirected to this specific Layer 2 Multicast group list item, and
Forward according to the outgoing interface list of this list item, owing to the outgoing interface list of this list item is exactly this particular port, so, receive
To unicast message still can forward from this particular port.It addition, when particular port becomes DOWN state, i.e. first
Whole DT port DOWN in DT port DOWN or locally aggregated group, repair the outgoing interface list of this specific Layer 2 Multicast group list item
Change connecting on this equipment the ISC port of ISC link into, so, receiving unicast message, and determining going out of this unicast message
After interface is particular port, mate this acl rule, this unicast message is redirected to this specific Layer 2 Multicast group list item, and presses
Outgoing interface list according to this list item forwards, owing to outgoing interface list has been modified to ISC port, such that it is able to by this clean culture
Message is transmitted to opposite equip. by ISC port, it is achieved that the striding equipment of data flow handoff to ISC link forwards.More than by
Technical scheme, after the unicast message owing to receiving determines that outgoing interface is particular port, in addition it is also necessary to coupling acl rule, according to
Outgoing interface list in specific Layer 2 Multicast group list item pointed by acl rule forwards, and belongs to this distributed poly-on this equipment
After charge-coupled whole DT port all DOWN, it is not necessary to delete the MAC forwarding-table item comprising this particular port, without waiting that opposite end sets
The standby mac address information that synchronizes, and, the state of DT port changes without having influence on MAC forwarding-table item, only need to be by specific two layers
Outgoing interface list in multicast group list item is revised as the change that ISC port just can realize the outgoing interface of unicast message, thus saves
About time and network bandwidth resources, improves performance of handoffs during equipment fault, meets the demand of equipment high reliability;Separately
Outward, the method arranges simply, and the link that can meet 10ms is switched fast performance.
Accompanying drawing explanation
Fig. 1 is the networking schematic diagram of distributed aggregated link network;
Fig. 2 is the flow chart of the data flow processing method in the distributed aggregated link network of the embodiment of the present application one;
Fig. 3 be the embodiment of the present application two distributed aggregated link network in distributed polymerization two network equipments in
The structural representation of the data stream processing device in any one network equipment and this network equipment.
Detailed description of the invention
In order to solve to compare the consuming time present in prior art, affect data flow handoff performance, waste the network bandwidth
Resource, affects the process performance of CPU and the normal problem forwarded of data, provides a kind of distribution in the application following example
Data flow processing method in formula link aggregation network, and a kind of device that can apply the method.
In the distributed aggregated link network of the application following example, two network equipments of distributed polymerization pass through ISC
Link is connected, and such as, the two network equipment can be SW2 and SW3 in Fig. 1, or SW4 and SW5, and the two network
On each network equipment in equipment, at least a port joins in same distributed aggregation group.
Further, with a distributed polymerization on any one network equipment in the two network equipment in following example
Illustrating as a example by group, it is clear that when there is multiple distributed aggregation group, each of which in these multiple distributed aggregation group is pressed
Method according to following example performs.
Embodiment one
Data flow processing method in the distributed aggregated link network of the embodiment of the present application one can apply to distributed
Any one in two equipment of polymerization.As in figure 2 it is shown, the method comprises the following steps:
Step S202, after receiving unicast message, determines the outgoing interface of this unicast message according to MAC forward table;
In step S202, after receiving unicast message, can believe according to the target MAC (Media Access Control) address of this unicast message etc.
Breath, searches the outgoing interface of correspondence in MAC forward table.This step is prior art, repeats no more here.
Step S204, however, it is determined that the outgoing interface going out this unicast message is particular port, then access control according to default ACL(
List processed) the regular specific Layer 2 Multicast group list item being redirected to this unicast message preset, according to specific Layer 2 Multicast group table
The outgoing interface list of item forwards this unicast message;
In actual implementation process, for this distributed aggregation group, pre-setting acl rule, this acl rule includes:
Matching condition and execution action, wherein, this matching condition be outgoing interface be the unicast message of particular port, execution action was for should
It is the specific Layer 2 Multicast group list item of N that unicast message redirects (or sensing) call number.The value of N can be carried out according to practical situation
Arranging, this is not limited by the application.
In actual implementation process, for a distributed aggregation group, the network equipment belongs to this distributed aggregation group
The possible only one of which (this kind of situation is referred to as situation one) of DT port, it is also possible to have multiple (this kind of situation is referred to as situation two), when having
Time multiple, these multiple DT ports have joined again in one locally aggregated group, this aggregation group ID of locally aggregated group and this distribution
Aggregation group ID of formula aggregation group is unrelated.
So, in situation one, particular port is a DT port, and the outgoing interface list of specific Layer 2 Multicast group list item is
Oneth DT port;When reality is implemented, a DT port identifies with port id.In situation one, due to specific Layer 2 Multicast group
The outgoing interface list of list item is a DT port, therefore, and outgoing interface according to specific Layer 2 Multicast group list item in step S204
List forwards the mode of this unicast message to be: forward this unicast message by a DT port.
In situation two, particular port is locally aggregated group of this at least two DT port composition, specific Layer 2 Multicast group
The outgoing interface list of list item is this at least two DT port;When reality is implemented, locally aggregated group identifies with aggregation group ID.In feelings
In condition two, owing to the outgoing interface list of specific Layer 2 Multicast group list item is this at least two DT port in locally aggregated group, because of
This, in step S204, outgoing interface list according to specific Layer 2 Multicast group list item forwards the mode of this unicast message to be: according to
Pre-defined algorithm selects a DT port from this at least two DT port, forwards this unicast message by the DT port chosen.Should
Mode is prior art, repeats no more here.
Step S206, when particular port, to become DOWN(unavailable) state time, go out to connect by specific Layer 2 Multicast group list item
Mouth list is revised as on this equipment connecting the ISC port of ISC link.
In step S206, when for situation for the moment, owing to 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 for situation two, owing to particular port is for being somebody's turn to do
Locally aggregated group of at least two DT port composition, therefore, particular port becomes DOWN state, is this at least two DT port
All become DOWN state.
Situation one and situation two are introduced in detail separately below.
(1) situation one
When belonging to DT port only one of which the oneth DT port of this distributed aggregation group on this equipment, particular port is
One DT port, the outgoing interface list of specific Layer 2 Multicast group list item is a DT port;When reality is implemented, a DT port with
Port id identifies.
So, the data flow processing method in distributed aggregated link network comprises the following steps:
Step S302, with step S202;
Step S304, however, it is determined that the outgoing interface going out this unicast message is a DT port, then will according to default acl rule
This unicast message is redirected to the specific Layer 2 Multicast group list item preset, and arranges according to the outgoing interface of specific Layer 2 Multicast group list item
Table, the i.e. the oneth DT port forwards this unicast message;
This step S304 corresponds to step S204.
Such as, the content of this acl rule may is that matching condition be outgoing interface be the unicast message of a DT port, hold
Action is as being redirected to the specific Layer 2 Multicast group list item that call number is N, and this specific Layer 2 Multicast group list item can be such as table 1-1
Shown in:
Table 1-1
Call number |
Outgoing interface list |
N |
Oneth DT port |
In table 1-1, the value of N can be configured according to practical situation, and this is not limited by the application.
In step s 304, however, it is determined that the outgoing interface going out unicast message is a DT port, then this unicast message reset
To the specific Layer 2 Multicast group list item that the call number as shown in table 1-1 is N, then, by this specific Layer 2 Multicast group list item
Outgoing interface list in a DT port forward this unicast message.
Step S306, when a DT port becomes DOWN state, by the outgoing interface list of specific Layer 2 Multicast group list item
It is revised as on this equipment connecting the ISC port of ISC link.
This step S306 corresponds to step S206.
Such as, when a DT port becomes DOWN state, by going out of the specific Layer 2 Multicast group list item as shown in table 1-1
After interface list is revised as on this equipment the ISC port of connection ISC link, this specific Layer 2 Multicast group entry updating is such as table
Shown in 1-2:
Table 1-2
Now, after receiving unicast message, perform still according to step S302-S304, wherein, in step s 304
This unicast message can be forwarded, i.e. by this equipment according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 1-2
The ISC port of upper connection ISC link forwards this unicast message, such that it is able to be transmitted to opposite equip. by ISC link, by opposite end
This unicast message is tabled look-up forwarding by equipment, it is achieved that striding equipment forwards.So, as local DT port DOWN, can be by
Data flow handoff is to ISC link, it is to avoid the interruption of data streams.
It addition, after step S306, can use when a DT port becomes UP(from DOWN state) state time, will be such as table 1-
The outgoing interface list of the specific Layer 2 Multicast group list item shown in 2 is revised as a DT port, now, specific Layer 2 Multicast group list item
Revert to as shown in table 1-1.Afterwards, after receiving unicast message, forward still according to step S302-S304, wherein,
This unicast message can be forwarded in step s 304 according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 1-1,
That is, this unicast message is forwarded by a DT port, it is achieved local forwarding.So data stream has just returned this from ISC link switching
Ground DT port.
(2) situation two
When the DT port belonging to this distributed aggregation group on this equipment has at least two, particular port is this at least two
Locally aggregated group of DT port composition, the outgoing interface list of specific Layer 2 Multicast group list item is this at least two DT port;In reality
When border is implemented, locally aggregated group identifies with aggregation group ID.
So, the data flow processing method in distributed aggregated link network comprises the following steps:
Step S402, with step S202;
Step S404, however, it is determined that go out the outgoing interface of this unicast message when being locally aggregated group, will according to default acl rule
This unicast message is redirected to the specific Layer 2 Multicast group list item preset, according to the outgoing interface list of specific Layer 2 Multicast group list item
Forward this unicast message, i.e. from this at least two DT port, select a DT port according to pre-defined algorithm, by the DT chosen
Port forwards this unicast message;
This step corresponds to step S204.
Such as, the DT port that this equipment belongs to this distributed aggregation group has M(M >=2) individual, it is designated as: Port1, Port2,
Port3 ..., PortM, this M DT port has joined one locally aggregated group (this aggregation group ID of locally aggregated group is designated as 1)
In, then, the content of this acl rule may is that matching condition be outgoing interface be the unicast message of aggregation group ID1, execution action is
It is 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 be configured according to practical situation, and this is not limited by the application.
Outgoing interface list according to the specific Layer 2 Multicast group list item as shown in table 2-1 forwards the mode of this unicast message to have
Body is: the relevant information in the heading of this unicast message is carried out Hash(Hash) computing obtains an operation values and (is designated as
KEY), then, calculate S=KEY%M(% and represent modulo operator) value, according to the value of S (S=0,1 ... (M-1)) from M DT end
Select a DT port in Kou, forward this unicast message by the DT port selected.Such as, as S=0, interface list is selected
In first DT port, as S=1, select second DT port in interface list, by that analogy, i.e. the value of S determines
The DT port selected by relative position in outgoing interface list.Wherein, relevant information can be the group of one or more of
Close: source MAC, target MAC (Media Access Control) address, VLAN etc..
In step s 404, however, it is determined that go out that the outgoing interface of unicast message is identified by aggregation group ID1 locally aggregated group, then
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 more than
Pass-through mode from Port1, Port2, Port3 ..., in PortM select a DT port, forward this list by the DT port chosen
Report literary composition.
Step S406, when the DT port belonging to this distributed aggregation group on this equipment becomes DOWN state, i.e. this
When a DT port in ground aggregation group becomes DOWN state, it is judged that belong on this equipment in the DT port of this distributed aggregation group
The most also it is in other DT ports of UP state, i.e. judge locally aggregated group is the most also in other DT of UP state
Port, if having, then performs step S408, otherwise, performs step S410;
Step S408, deletes this DT end becoming DOWN state from the outgoing interface list of specific Layer 2 Multicast group list item
Mouthful;
It is assumed that the DT port becoming DOWN state in step S406 is designated as Port2, when Port2 becomes DOWN state
Specific Layer 2 Multicast group list item as shown in table 2-1, then, from Port1, Port2, Port3 ..., in PortM delete Port2.This
Time, specific Layer 2 Multicast group entry updating is for as shown in table 2-2:
Table 2-2
Call number |
Outgoing interface list |
N |
Port1,Port3,…,PortM |
After receiving unicast message, forward still according to step S402-S404, wherein, in step s 404 can
Outgoing interface list according to the specific Layer 2 Multicast group list item as shown in table 2-2 forwards this unicast message, i.e. forward according to above
Mode from Port1, Port3 ..., in PortM select a DT port, forward this unicast message by the DT port chosen.This
Sample, data stream automatically can remove from the DT port of DOWN state, transfer on the DT port of UP state.
Step S410, illustrates that all DT ports belonging in this distributed aggregation group on this equipment are (in the most locally aggregated group
All DT ports) all become DOWN state, it is assumed that the Port2 in locally aggregated group is before becoming DOWN state, only
Port2 is in UP state, and in step S406, Port2 also becomes DOWN state, the spy when Port2 becomes DOWN state
Determine Layer 2 Multicast group list item as shown in table 2-3, then, by the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 2-3
Being revised as on this equipment connecting the ISC port of ISC link, now, this specific Layer 2 Multicast group entry updating is for such as table 2-4 institute
Show:
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, perform still according to step S402-S404, wherein, in step s 404
This unicast message can be forwarded, i.e. by this equipment according to the outgoing interface list of specific Layer 2 Multicast group list item as shown in Table 2-4
The ISC port of upper connection ISC link forwards this unicast message, such that it is able to be transmitted to opposite equip. by ISC link, by opposite end
This unicast message is tabled look-up forwarding by equipment, it is achieved that striding equipment forwards.So, as this locality whole DT equal DOWN of port,
Can by data flow handoff to ISC link, it is to avoid the interruption of data streams.
It addition, the most further comprising the steps of:
Step S502, when the DT port belonging to this distributed aggregation group on this equipment becomes UP state from DOWN state
Time (for convenience, this DT port becoming UP state being designated as PortM), i.e. a DT port in locally aggregated group
When DOWN state becomes UP state, it is judged that belong on this equipment in the DT port of this distributed aggregation group and be the most also in UP
Other DT ports of state, i.e. judge the most also to be in locally aggregated group other DT ports of UP state, if not having, then
Perform step S504, otherwise, perform step S506;
Step S504, illustrates at PortM before DOWN state becomes UP state, Port1, Port2, Port3 ...,
PortM has all become DOWN state, and specific Layer 2 Multicast group list item now is as shown in Table 2-4;PortM is first and becomes
The DT port of UP state, then, be revised as PortM by the outgoing interface list of specific Layer 2 Multicast group list item as shown in Table 2-4, should
Specific Layer 2 Multicast group entry updating is for as shown in table 2-5:
Table 2-5
Call number |
Outgoing interface list |
N |
PortM |
Now, after receiving unicast message, perform still according to step S402-S404, wherein, in step s 404
This unicast message can be forwarded, i.e. by unique place according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 2-5
Forward this unicast message in the PortM of UP state, thus data stream has just returned local DT port from ISC link switching.
Step S506, illustrated at PortM before DOWN state becomes UP state, had had some DT ports to become UP
State or be always maintained at UP state, it is assumed that specific Layer 2 Multicast group list item now is as shown in table 2-6, then, in specific two layers of group
Broadcasting after adding PortM in the outgoing interface list of group list item, this specific Layer 2 Multicast group entry updating is for 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, perform still according to step S402-S404, wherein, in step s 404
This unicast message can be forwarded, i.e. turn according to above according to the outgoing interface list of the specific Layer 2 Multicast group list item as shown in table 2-7
Originating party formula is all DT port Port1 being in UP state from locally aggregated group, select in Port2, Port3, Port4, PortM
One DT port, forwards this unicast message by the DT port chosen.
In the method for the application above example, the study for the source MAC of message does not carry out any change,
That is, in situation one, the message received from a DT port, the source MAC of message still learns to a DT end
On mouth, i.e. the list item added in MAC forward table remains this source MAC and the port id of a DT port;In situation two
In, the message received from a DT port, the source MAC of message still learns to locally aggregated group (that is, on this equipment
Belong to this distributed aggregation group multiple DT ports composition locally aggregated group) on, i.e. in MAC forward table add list item
Remain this source MAC and this aggregation group ID of locally aggregated group.
In the technical scheme of the application above example, any one in two network equipments of distributed polymerization
On in advance acl rule is set for distributed aggregation group, receiving unicast message, and determining the outgoing interface of this unicast message
After particular port, according to this acl rule, this unicast message is redirected to the specific Layer 2 Multicast group list item preset, according to this
The outgoing interface list of specific Layer 2 Multicast group list item forwards this unicast message, wherein, when belonging to this distributed polymerization on this equipment
During DT port only one of which the oneth DT port organized, particular port is a DT port, and outgoing interface list is a DT port, when
Belonging to the DT port of this distributed aggregation group on this equipment when having at least two, particular port is this at least two DT port composition
Locally aggregated group, outgoing interface list is this at least two DT port;So, for clean culture report that outgoing interface is particular port
Literary composition, by this acl rule of coupling, is redirected to this specific Layer 2 Multicast group list item, and carries out according to the outgoing interface list of this list item
Forward, owing to the outgoing interface list of this list item is exactly this particular port, so, the unicast message received still can be specific from this
Port forwards.It addition, when particular port becomes DOWN state, i.e. in DT port DOWN or locally aggregated group
All DT port DOWN, are revised as the outgoing interface list of this specific Layer 2 Multicast group list item on this equipment connecting ISC link
ISC port, so, is receiving unicast message, and after determining that the outgoing interface of this unicast message is particular port, coupling should
Acl rule, is redirected to this unicast message this specific Layer 2 Multicast group list item, and carries out according to the outgoing interface list of this list item
Forward, owing to outgoing interface list has been modified to ISC port, such that it is able to this unicast message is transmitted to by ISC port right
End equipment, it is achieved that the striding equipment of data flow handoff to ISC link forwards.By above technical scheme, due to the list received
After report literary composition determines that outgoing interface is particular port, in addition it is also necessary to coupling acl rule, according to specific two layers pointed by acl rule
Outgoing interface list in multicast group list item forwards, and belongs to whole DT port all DOWN of this distributed aggregation group on this equipment
After, it is not necessary to delete the MAC forwarding-table item comprising this particular port, without waiting that opposite equip. synchronizes mac address information, and
And, the state of DT port changes without having influence on MAC forwarding-table item, only need to be by the outgoing interface in specific Layer 2 Multicast group list item
List is revised as the change that ISC port just can realize the outgoing interface of unicast message, thus has saved time and network bandwidth money
Source, improves performance of handoffs during equipment fault, meets the demand of equipment high reliability;It addition, the method arranges simply, can
It is switched fast performance meeting the link of 10ms.
In the embodiment above, when the DT port belonging to this distributed aggregation group on this equipment has at least two, and this is at least
When two DT ports all become DOWN state, locally aggregated group of this at least two DT port composition just becomes DOWN state;When
When having at least one DT port to be in UP state in this at least two DT port, this locally aggregated group is still UP state.
Embodiment two
As a example by SW2 in the distributed aggregated link network shown in Fig. 1, the method in above example one is described.?
In Fig. 1, port Port1 and Port2 on switch SW2, and port Port4 and Port5 on SW3 joined same
In distributed aggregation group 1;The port Port6 on port Port3 and SW3 on SW2 has joined same distributed aggregation group 2
In.Being connected between SW2 with SW3 and have ISC link, the upper ISC port connecting this ISC link of SW2 is that ISCPort1, SW3 are upper to be connected
The ISC port of this ISC link is ISCPort2.
For distributed aggregation group 1, the method that SW2 performs includes:
Step S602, arranges acl rule, the matching condition of this acl rule be outgoing interface be with aggregation group ID3 mark basis
The unicast message of ground aggregation group, execution action is to be redirected to the specific Layer 2 Multicast group list item that call number is N1, such as table 3-1 institute
Show;
DT port Port1 and Port2 belonging to distributed aggregation group 1 on SW2 has joined in one locally aggregated group, should
The ID of locally aggregated group is designated as 3.
Table 3-1
Call number |
Outgoing interface list |
N1 |
Port1,Port2 |
Step S604, is receiving unicast message, and determines that the outgoing interface of this unicast message is for identifying with aggregation group ID3
Locally aggregated group after, mate this acl rule, this unicast message be redirected to the specific Layer 2 Multicast group as shown in table 3-1
List item, the Port1 from the outgoing interface list of this specific Layer 2 Multicast group list item, Port2 selects one, by this unicast message
Forwarded by the DT port chosen.
Step S606, after Port1 becomes DOWN state, owing to now Port2 remains as UP state, then will be such as table 3-1
Shown specific Layer 2 Multicast group entry updating is for as shown in table 3-2:
Table 3-2
Call number |
Outgoing interface list |
N1 |
Port2 |
Now, if receiving the unicast message into identify with aggregation group ID3 locally aggregated group, this unicast message just can only
Forwarded by Port2.
Afterwards, if Port2 has also become DOWN state, then, by the specific Layer 2 Multicast group list item as shown in table 3-2 more
New for as shown in table 3-3:
Table 3-3
Call number |
Outgoing interface list |
N1 |
ISCPort1 |
Now, if receiving the unicast message that outgoing interface is locally aggregated group identified, this unicast message with aggregation group ID3
SW3 will be transmitted to by ISCPort1, SW3 forward.
Step S608, after Port1 becomes UP state, if now Port2 is in DOWN state, then will be such as table 3-3 institute
The specific Layer 2 Multicast group entry updating shown is for as shown in table 3-4:
Table 3-4
Call number |
Outgoing interface list |
N1 |
Port1 |
Now, if receiving the unicast message that outgoing interface is locally aggregated group identified, this unicast message with aggregation group ID3
Will be forwarded by Port1.
Afterwards, when Port2 also becomes UP state, it is such as by the specific Layer 2 Multicast group entry updating as shown in table 3-4
Shown in table 3-1.
Now, if receiving the unicast message that outgoing interface is locally aggregated group identified, Jiu Huicong with aggregation group ID3
Selecting a DT port in Port1 and Port2, this unicast message can be forwarded by the DT port chosen.
For distributed aggregation group 2, the method that SW2 performs includes:
Step S702, arranges acl rule, the matching condition of this acl rule be outgoing interface be the unicast message of Port3, hold
Action is 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 determining that the outgoing interface of this unicast message is Port3, coupling should
Acl rule, is redirected to this unicast message the specific Layer 2 Multicast group list item as shown in table 4-1, this unicast message is passed through
Port3 forwards.
Step S706, after Port3 becomes DOWN state, owing to belonging to the DT port of distributed aggregation group 2 on this equipment
Only Port3 this, therefore, by the specific Layer 2 Multicast group entry updating as shown in table 4-1 for as shown in table 4-2:
Table 4-2
Call number |
Outgoing interface list |
N2 |
ISCPort1 |
Now, if receiving the unicast message that outgoing interface is Port3, this unicast message will be transmitted to by ISCPort1
SW3, is forwarded by SW3.
Step S708, after Port3 becomes UP state, by the specific Layer 2 Multicast group entry updating as shown in table 4-2 be
As shown in table 4-1.
Now, receiving the unicast message that outgoing interface is Port3, this unicast message will be forwarded by Port3.
Embodiment three
The embodiment of the present application proposes a kind of Data Stream Processing scheme, realizes belonging to a distributed aggregation group on this equipment
All DT port DOWN time data stream be switched fast, and, solve to compare the consuming time present in prior art, impact
Data flow handoff performance, wastes network bandwidth resources, affects the process performance of CPU and the normal problem forwarded of data.
As a example by implemented in software, in a preferred embodiment, the embodiment of the present application provides one and can be applicable to
Data Stream Processing on any one network equipment in two network equipments of distributed polymerization in distributed aggregated link network
Device.
As it is shown on figure 3, this data stream processing device 10 includes with lower module: receiver module 101, outgoing interface determine module
102, module 103 and modified module 104 are performed, wherein:
Receiver module 101, is used for receiving unicast message;
Outgoing interface determines module 102, for after receiver module 101 receives unicast message, true according to MAC forward table
The outgoing interface of this unicast message fixed;
Perform module 103, if determining that module 102 determines that the outgoing interface of this unicast message is particular end for outgoing interface
Mouthful, then according to default acl rule, this unicast message is redirected to the specific Layer 2 Multicast group list item preset, according to specific two
The outgoing interface list of layer multicast group list item forwards this unicast message;Wherein, as the DT belonging to this distributed aggregation group on this equipment
During port only one of which the oneth DT port, particular port is a DT port, and outgoing interface list is a DT port;When this equipment
On belong to the DT port of this distributed aggregation group when having at least two, particular port is this locality of this at least two DT port composition
Aggregation group, outgoing interface list is this at least two DT port;
Modified module 104, for when particular port becomes DOWN state, by the outgoing interface of specific Layer 2 Multicast group list item
List is revised as on this equipment connecting the ISC port of ISC link.
Wherein, the DT port that this equipment belongs to this distributed aggregation group has at least two, then, when this at least two DT end
When mouth all becomes DOWN state, locally aggregated group of this at least two DT port composition becomes DOWN state.
If belonging to DT port only one of which the oneth DT port of this distributed aggregation group, then, modified module on this equipment, also
For when a DT port becomes UP state from DOWN state, the outgoing interface list of specific Layer 2 Multicast group list item is revised as
Oneth DT port.
If the DT port belonging to this distributed aggregation group on this equipment has at least two, then, this device also includes: judge mould
Block and removing module, wherein:
Judge module, for when a DT port in locally aggregated group becomes DOWN state, it is judged that locally aggregated group
In be the most also in other DT ports of UP state;
Removing module, if when a judge module DT port in locally aggregated group becomes DOWN state, it is judged that
Go out locally aggregated group is also in other DT ports of UP state, then from the outgoing interface list of specific Layer 2 Multicast group list item
Delete this DT port becoming DOWN state.
If the DT port belonging to this distributed aggregation group on this equipment has at least two, then, device also includes: add mould
Block, wherein:
Judge module, is additionally operable to when a DT port in locally aggregated group becomes UP state from DOWN state, it is judged that
Locally aggregated group is the most also in other DT ports of UP state;
Modified module, if being additionally operable to a judge module DT port in locally aggregated group to become UP shape from DOWN state
During state, it is judged that locally aggregated group is not on other DT ports of UP state, then going out specific Layer 2 Multicast group list item
Interface list is revised as this DT port becoming UP state;
Add module, if becoming UP state for a judge module DT port in locally aggregated group from DOWN state
Time, it is judged that locally aggregated group also it is in other DT ports of UP state, then goes out to connect at specific Layer 2 Multicast group list item
This DT port becoming UP state is added in mouth list.
The embodiment of the present application is not precluded from the embodiment of hardware or software and hardware combining.Refer to shown in Fig. 3, these data
Current processing device is as the device on a logical meaning, and it is that the CPU by the described network equipment is by nonvolatile memory
The computer program instructions of middle correspondence reads and runs formation in internal memory.For hardware view, except CPU, internal memory and
Outside nonvolatile memory, this network equipment the most also includes some hardware being responsible for processing Message processing, such as forwards core
Sheet etc.;From the point of view of from hardware configuration, this network equipment it is also possible that distributed equipment, its potentially include multiple interface card with
The extension of Message processing is carried out at hardware view.
To sum up, the application above example can reach techniques below effect:
In the technical scheme of the application above example, any one in two network equipments of distributed polymerization
On in advance acl rule is set for distributed aggregation group, receiving unicast message, and determining the outgoing interface of this unicast message
After particular port, according to this acl rule, this unicast message is redirected to the specific Layer 2 Multicast group list item preset, according to this
The outgoing interface list of specific Layer 2 Multicast group list item forwards this unicast message, wherein, when belonging to this distributed polymerization on this equipment
During DT port only one of which the oneth DT port organized, particular port is a DT port, and outgoing interface list is a DT port, when
Belonging to the DT port of this distributed aggregation group on this equipment when having at least two, particular port is this at least two DT port composition
Locally aggregated group, outgoing interface list is this at least two DT port;So, for clean culture report that outgoing interface is particular port
Literary composition, by this acl rule of coupling, is redirected to this specific Layer 2 Multicast group list item, and carries out according to the outgoing interface list of this list item
Forward, owing to the outgoing interface list of this list item is exactly this particular port, so, the unicast message received still can be specific from this
Port forwards.It addition, when particular port becomes DOWN state, i.e. in DT port DOWN or locally aggregated group
All DT port DOWN, are revised as the outgoing interface list of this specific Layer 2 Multicast group list item on this equipment connecting ISC link
ISC port, so, is receiving unicast message, and after determining that the outgoing interface of this unicast message is particular port, coupling should
Acl rule, is redirected to this unicast message this specific Layer 2 Multicast group list item, and carries out according to the outgoing interface list of this list item
Forward, owing to outgoing interface list has been modified to ISC port, such that it is able to this unicast message is transmitted to by ISC port right
End equipment, it is achieved that the striding equipment of data flow handoff to ISC link forwards.By above technical scheme, due to the list received
After report literary composition determines that outgoing interface is particular port, in addition it is also necessary to coupling acl rule, according to specific two layers pointed by acl rule
Outgoing interface list in multicast group list item forwards, and belongs to whole DT port all DOWN of this distributed aggregation group on this equipment
After, it is not necessary to delete the MAC forwarding-table item comprising this particular port, without waiting that opposite equip. synchronizes mac address information, and
And, the state of DT port changes without having influence on MAC forwarding-table item, only need to be by the outgoing interface in specific Layer 2 Multicast group list item
List is revised as the change that ISC port just can realize the outgoing interface of unicast message, thus has saved time and network bandwidth money
Source, improves performance of handoffs during equipment fault, meets the demand of equipment high reliability;It addition, the method arranges simply, can
It is switched fast performance meeting the link of 10ms.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.