CN104219155B - A kind of Proxy Method and equipment of aggregation port - Google Patents

A kind of Proxy Method and equipment of aggregation port Download PDF

Info

Publication number
CN104219155B
CN104219155B CN201410436787.6A CN201410436787A CN104219155B CN 104219155 B CN104219155 B CN 104219155B CN 201410436787 A CN201410436787 A CN 201410436787A CN 104219155 B CN104219155 B CN 104219155B
Authority
CN
China
Prior art keywords
port
proxied
aggregation
aggregation group
network equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410436787.6A
Other languages
Chinese (zh)
Other versions
CN104219155A (en
Inventor
马长伟
祁正林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410436787.6A priority Critical patent/CN104219155B/en
Publication of CN104219155A publication Critical patent/CN104219155A/en
Application granted granted Critical
Publication of CN104219155B publication Critical patent/CN104219155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of Proxy Method of aggregation port and equipment, this method includes:First network equipment is in the notification message that the switching of Standby states is completed for receiving the transmission of second network equipment, the aggregation port being connect with the aggregation port that the switching of Standby states is completed on second network equipment is determined as the first proxied port, any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where the first proxied port are determined as first agent port;The described first proxied port in aggregation group forwarding table is updated to first agent port, and when receiving the flow that purpose is the aggregation group, is forwarded according to updated aggregation group forwarding table.In the embodiment of the present invention, it is ensured that the correct forwarding of flow, the case where avoiding the occurrence of more parts of flow, traffic loops and traffic loss.

Description

A kind of Proxy Method and equipment of aggregation port
Technical field
The present invention relates to field of communication technology more particularly to the Proxy Methods and equipment of a kind of aggregation port.
Background technology
It polymerize as shown in Figure 1, the chip 1 on the network equipment (such as interchanger) A passes through with the chip 2 on network equipment B Three physical links polymerization of group 1, the member of the aggregation group 1 of network equipment A includes port 1, port 2 and port 3, the network equipment The member of the aggregation group 1 of B includes port 7, port 8 and port 9.The chip 4 on chip 3 and network equipment C on network equipment A It is polymerize by three physical links of aggregation group 2, the member of the aggregation group 2 of network equipment A includes port 4, port 5 and port 6, The member of the aggregation group 2 of network equipment C includes port 10, port 11 and port 12.Further, end is safeguarded on each network equipment Mouth state table, the Port State Table are used to record the correspondence between port and port status.When port status is When Forwarding (forwarding) state, port can receive and dispatch flow;When port status is Standby (preparation) state, port Flow can be received, but cannot transmitted traffic;When port status is Down (failure) state, port cannot receive and dispatch stream Amount.
For the flow transmission process of network equipment A and network equipment B, it is assumed that port 1, port 2 and port 3 are in The 1 corresponding aggregation group forwarding table of aggregation group of Forwarding states, chip 1 includes port 1, port 2 and port 3.Chip 1 When receiving the flow that purpose is aggregation group 1, hash is carried out to flow, and the aggregation group 1 is corresponding based on hash result queries Aggregation group forwarding table, by hash results, corresponding port (port 1 or port 2 or port 3) will in aggregation group forwarding table Flow is sent to chip 2.
Port status in the port of network equipment A 3 needs to be switched to Standby shapes by forwarding (Forwarding) state When state, network equipment A sends handoff notification message to network equipment B, is switched to the port status of port 9 by network equipment B Standby states, and the notification message that Standby states are completed and switch is returned to network equipment A after switching is completed, this Sample, network equipment A is after receiving this notification message, by port status of the port 3 in Port State Table by Forwarding shapes State is switched to Standby states, and later, network equipment A can first pass through all in Forwarding shapes in Port State Table The member of the port update aggregation group 1 of state, i.e. the member of aggregation group 1 is port 1 and port 2, and port 3 is no longer aggregation group 1 Member, but separate port, then port blocked 3 flow, i.e., not from 3 transmitted traffic of port;Can also first port blocked 3 stream Amount, then update the member of aggregation group 1.Subsequent network device A is after the switching for completing Standby states, by the port shape of port 3 State is switched to failure (Down) state by Standby states.
It should be noted that the port status of port 9 is switched to the processed of Standby states by above-mentioned network equipment B The port status of port 3 is switched to that the processing procedure of Standby states is identical, and details are not described herein with network equipment A by journey.
In above-mentioned processing procedure, network equipment A when the port status of port 3 is switched to Standby states, if The member of aggregation group 1, then the flow of port blocked 3 are first updated, since blocking traffic needs the regular hour, in this period Interior, port 3 is separate port (not being the member of aggregation group 1), and the member of aggregation group 1 only has port 1 and port 2, for core The purpose that piece 1 receives is the broadcast traffic of aggregation group 1, and flow is sent to outside chip 2 except through port 1 or port 2, can also It replicates portion and chip 2 is sent to by port 3, that is, more parts of identical flows occur to chip 2.Further, it is assumed that chip 1 from Port 1 receives the broadcast traffic from chip 2, can also be sent to chip 2 from port 3 by flow, i.e. loop occurs in flow.
If the flow of first port blocked 3, then the member of aggregation group 1 is updated, then, before completing update operation, gather The member for being combined 1 is still port 1, port 2 and port 3, and the flow that purpose is aggregation group 1 is received for chip 1, if by Need to send by port 3 after hash, but port 3 has been blocked, can not transmitted traffic, this results in traffic loss.
After the port status of port 3 is switched to Down states by network equipment A, if necessary by the port status of port 3 Forwarding states are switched to by Down states, the port status of port 3 is being switched to Standby states by Down states Stage does not open the port 3 blocked before, and the port status of port 3 is being switched to Forwarding shapes by Standby states The case where state stage just opens the port 3 blocked before, and there are still traffic loss in this way.
Invention content
The embodiment of the present invention provides a kind of Proxy Method of aggregation port, including:
First network equipment is in the notification message that the switching of Standby states is completed for receiving the transmission of second network equipment When, the aggregation port being connect with the aggregation port that the switching of Standby states is completed on second network equipment is determined as First proxied port, will be any other in the corresponding aggregation group forwarding table of aggregation group where the described first proxied port Aggregation port is determined as first agent port;
The described first proxied port in the aggregation group forwarding table is updated to the first agent port, and is being received When to the flow that purpose is the aggregation group, it is forwarded according to updated aggregation group forwarding table.
Be completed on second network equipment Standby states switching aggregation port port status be by When Forwarding states are switched to Standby states, the notification message is that second network equipment is receiving described first When the port status of described first proxied port is switched to Standby states by network equipment needs by Forwarding states After the handoff notification message of transmission, the aggregation port being connect with the described first proxied port is determined as the second proxied end Mouthful, any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where the described second proxied port are determined For second agent port, and the described second proxied port in corresponding aggregation group forwarding table is updated to the second agent It is sent behind port.
Be completed on second network equipment Standby states switching aggregation port port status be by When Forwarding states are switched to Standby states, the method further includes:
The described first proxied port in the aggregation group forwarding table described in being updated to by the first network equipment After first agent port, block the first proxied port;
Wherein, the notification message is that second network equipment is needed described first receiving the first network equipment After the handoff notification message that the port status of proxied port is sent when being switched to Standby states by Forwarding states, The aggregation port being connect with the described first proxied port is determined as the second proxied port, by the described second proxied port Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group at place are determined as second agent port, and will correspond to Aggregation group forwarding table in the described second proxied port be updated to the second agent port, and block described second by generation It is sent behind reason port.
The port status that the aggregation port of Standby states switching is completed on second network equipment is by Down When state is switched to Standby states, the method further includes:
The described first proxied port in the aggregation group forwarding table described in being updated to by the first network equipment After first agent port, the first proxied port is opened;
Wherein, the notification message is that second network equipment is needed described first receiving the first network equipment It, will be with institute after the handoff notification message that the port status of proxied port is sent when being switched to Standby states by Down states The aggregation port for stating the first proxied port connection is determined as the second proxied port, will be where the described second proxied port Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group are determined as second agent port, and by corresponding polymerization The described second proxied port in group forwarding table is updated to the second agent port, and opens the second proxied port It sends afterwards.
The first network equipment will be in the corresponding aggregation group forwarding table of aggregation group where the described first proxied port Any other aggregation ports be determined as first agent port, specifically include:
The first network equipment is formed according to the BasePtr and polymerization of the aggregation group where the described first proxied port Member's quantity, inquires local aggregation group forwarding table, obtains the corresponding aggregation group of aggregation group where the described first proxied port Forwarding table;
It is selected from all of the port in corresponding aggregation group forwarding table any in addition to the described first proxied port Other aggregation ports are as first agent port.
The embodiment of the present invention provides a kind of network equipment, and as the first network equipment in network, the first network is set It is standby to specifically include:
Determining module, in the notification message that the switching of Standby states is completed for receiving the transmission of second network equipment When, the aggregation port being connect with the aggregation port that the switching of Standby states is completed on second network equipment is determined as First proxied port, will be any other in the corresponding aggregation group forwarding table of aggregation group where the described first proxied port Aggregation port is determined as first agent port;
Update module, for the described first proxied port in the aggregation group forwarding table to be updated to the first generation Manage port;
Sending module, for receive purpose be the aggregation group flow when, according to updated aggregation group forwarding table It is forwarded.
Be completed on second network equipment Standby states switching aggregation port port status be by When Forwarding states are switched to Standby states, the notification message that the determining module receives is second network equipment It needs to cut the port status of the described first proxied port by Forwarding states receiving the first network equipment It is after being changed to the handoff notification message sent when Standby states, the aggregation port being connect with the described first proxied port is true It is set to the second proxied port, by any in the corresponding aggregation group forwarding table of aggregation group where the described second proxied port Other aggregation ports are determined as second agent port, and more by the described second proxied port in corresponding aggregation group forwarding table Newly sent behind the second agent port.
Be completed on second network equipment Standby states switching aggregation port port status be by When Forwarding states are switched to Standby states, the update module is additionally operable to will be in the aggregation group forwarding table The first proxied port is updated to after the first agent port, blocks the first proxied port;
The notification message that the determining module receives is that second network equipment is receiving the first network equipment need The switching sent when the port status of described first proxied port is switched to Standby states by Forwarding states After notification message, the aggregation port being connect with the described first proxied port is determined as the second proxied port, by described Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where two proxied ports are determined as second agent Port, and the described second proxied port in corresponding aggregation group forwarding table is updated to the second agent port, and hinder It fills in and sends behind the described second proxied port.
The port status that the aggregation port of Standby states switching is completed on second network equipment is by Down When state is switched to Standby states, the update module is additionally operable to by first quilt in the aggregation group forwarding table Proxy port is updated to after the first agent port, opens the first proxied port;
Wherein, the notification message that the determining module receives is that second network equipment is set receiving the first network It is standby that the switching sent when the port status of the described first proxied port is switched to Standby states by Down states is needed to lead to After knowing message, the aggregation port being connect with the described first proxied port is determined as the second proxied port, by described second Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where proxied port are determined as second agent end Mouthful, and the described second proxied port in corresponding aggregation group forwarding table is updated to the second agent port, and open It is sent behind the second proxied port.
The determining module is specifically used for turning by the corresponding aggregation group of aggregation group where the described first proxied port When any other aggregation ports in delivering are determined as first agent port, the polymerization where the described first proxied port The BasePtr and aggregation group number of members of group, inquire local aggregation group forwarding table, obtain the described first proxied port place The corresponding aggregation group forwarding table of aggregation group;
It is selected from all of the port in corresponding aggregation group forwarding table any in addition to the described first proxied port Other aggregation ports are as first agent port.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, need by the port status of proxied port by Forwarding states are switched to Down states, or the port status of proxied port is switched to by Down states When Forwarding states, the port status of proxied port is being switched to Standby state phases, the network equipment passes through true Determine the corresponding proxy port in proxied port, and using the proxied port in proxy port update aggregation group forwarding table, thus Ensure the correct forwarding of flow, the case where avoiding the occurrence of more parts of flow, traffic loops and traffic loss.
Description of the drawings
Fig. 1 is the schematic diagram by a plurality of physical link progress link aggregation proposed in the prior art;
Fig. 2 is a kind of Proxy Method flow diagram of aggregation port provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of network equipment provided in an embodiment of the present invention.
Specific implementation mode
For problems of the prior art, the embodiment of the present invention provides a kind of Proxy Method of aggregation port, application In the application scenarios for carrying out link aggregation by a plurality of physical link, i.e., pass through between first network equipment and second network equipment A plurality of physical link carries out link aggregation.Using Fig. 1 as the application scenarios schematic diagram of the embodiment of the present invention, the chip 1 of network equipment A When being polymerize by three physical links of aggregation group 1 with the chip 2 of network equipment B, first network equipment is network equipment A, the Two network equipments are network equipment B.Three physics that the chip 3 of network equipment A passes through aggregation group 2 with the chip 4 of network equipment C When link aggregation, first network equipment is network equipment A, and second network equipment is network equipment C.
Under above application scene, as shown in Fig. 2, the Proxy Method of the aggregation port includes the following steps:
Step 201, the logical of Standby states switching is completed receive the transmission of second network equipment in first network equipment When knowing message, the aggregation port being connect with the aggregation port that the switching of Standby states is completed on second network equipment is determined For the first proxied port.
In the embodiment of the present invention, the port of the aggregation port of Standby states switching is completed on second network equipment State is when being switched to Standby states by Forwarding states, which, which is second network equipment, is receiving the One network equipment needs the port status by the first proxied port to be sent out when being switched to Standby states by Forwarding states After the handoff notification message sent, the aggregation port being connect with the first proxied port is determined as the second proxied port, by Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where two proxied ports are determined as second agent Port, and the second proxied port in corresponding aggregation group forwarding table is updated to send behind second agent port.
Further, the port status of the aggregation port of Standby states switching is completed on second network equipment is When by forwarding Forwarding states to be switched to Standby states, first network equipment is by first in aggregation group forwarding table Proxied port is updated to after first agent port, blocks the first proxied port.In this case, above-mentioned steps 201 In notification message be that second network equipment is needed the port status of the first proxied port receiving first network equipment After the handoff notification message sent when being switched to Standby states by Forwarding states, it will connect with the first proxied port The aggregation port connect is determined as the second proxied port, and the corresponding aggregation group of aggregation group where the second proxied port is forwarded Any other aggregation ports in table are determined as second agent port, and second in corresponding aggregation group forwarding table is proxied Port is updated to second agent port, and sent behind the second proxied port of obstruction.
Further, the port status of the aggregation port of Standby states switching is completed on second network equipment It is that first network equipment is by the first proxied end in aggregation group forwarding table when being switched to Standby states by Down states Oral replacement is the first proxied port of opening after first agent port.
In this case, the notification message in above-mentioned steps 201 is that second network equipment is set receiving first network The standby switching notice for needing the port status by the first proxied port to be sent when being switched to Standby states by Down states disappears After breath, the aggregation port being connect with the first proxied port is determined as the second proxied port, by the second proxied port institute The corresponding aggregation group forwarding table of aggregation group in any other aggregation ports be determined as second agent port, and will be corresponding The second proxied port in aggregation group forwarding table is updated to second agent port, and is sent after opening the second proxied port 's.
Step 202, first network equipment will be in the corresponding aggregation group forwarding table of aggregation group where the first proxied port Any other aggregation ports be determined as first agent port.
As shown in Figure 1, it is assumed that the first proxied port-for-port 3, then first network equipment is from the aggregation group where port 3 In 1 corresponding aggregation group forwarding table, other ports (such as port 1 or port 2) except selection port 3 are first agent end Mouthful.
In the embodiment of the present invention, first network equipment turns the corresponding aggregation group of aggregation group where the first proxied port Any other aggregation ports in delivering are determined as first agent port, specifically include:First network equipment is according to first by generation The BasePtr (base pointer) and aggregation group number of members for managing the aggregation group where port, inquire local aggregation group forwarding table, obtain To the corresponding aggregation group forwarding table of aggregation group where the first proxied port;First network equipment is forwarded from corresponding aggregation group Select any other aggregation ports in addition to the first proxied port as first agent port in all of the port in table.
Wherein, BasePtr is directed toward a port of the aggregation group in aggregation group forwarding table, and aggregation group number of members indicates Since the port that BasePtr is directed toward, the corresponding port number of aggregation group.
Specifically, first network device configuration has aggregation group table, aggregation group and aggregation group pair are had recorded in the aggregation group table The BasePtr and aggregation group number of members answered, and the BasePtr direction aggregation groups of aggregation group are corresponding in aggregation group forwarding table A port, the aggregation group number of members expression of aggregation group is since the port that BasePtr is directed toward, the corresponding port of aggregation group Quantity.Based on aggregation group table, first network equipment can inquire the corresponding polymerization in the first proxied port out of aggregation group table Group, and determine the BasePtr and aggregation group number of members of the aggregation group.First network equipment is formed according to BasePtr and polymerization Member's quantity, finds all of the port in the corresponding aggregation group in the first proxied port in aggregation group forwarding table, and from all Select other ports except the first proxied port as first agent port in port.
Under application scenarios shown in Fig. 1, the member of the aggregation group 1 of network equipment A includes port 1, port 2 and port 3, The member of aggregation group 2 includes port 4, port 5 and port 6.Based on this, a kind of example of aggregation group table can be as shown in table 1, gathers A kind of example for being combined forwarding table can be as shown in table 2.Assuming that the first proxied port-for-port 3, based on polymerizeing shown in table 1 Whether the member of aggregation group forwarding table shown in group table and table 2, network equipment A inquiry aggregation groups 1 includes port 3, if including, Then determine that 3 corresponding aggregation group of port is aggregation group 1;If do not included, whether the member of network equipment A inquiry aggregation groups 2 Including port 3, and so on.When inquiring the member of aggregation group 1 in network equipment A and whether including port 3, network equipment A is from poly- It is combined a port (port 1) beginning that 1 BasePtr is directed toward, judges 3 in aggregation group forwarding table since port 1 Whether include port 3 in port, since port 3 is the 3rd port in aggregation group forwarding table since port 1, polymerization The member of group 1 includes port 3, i.e., 3 corresponding aggregation group of port is aggregation group 1.Later, network equipment A determines aggregation group 1 The a port that BasePtr is directed toward is the port 1 in aggregation group forwarding table, and determines the aggregation group number of members of aggregation group 1 It is 3, therefore, network equipment A is opened in aggregation group forwarding table from a port according to BasePtr and aggregation group number of members Begin to search other ports except the first proxied port (port 3) successively as first agent port, due to a port For port 1, which is other ports except the first proxied port, therefore search procedure terminates, and network equipment A is direct Selection port 1 is as first agent port.
Table 1
Aggregation group BasePtr Aggregation group number of members
Aggregation group 1 Port 1 3
Aggregation group 2 Port 4 3
Table 2
Port 1
Port 2
Port 3
Port 4
Port 5
Port 6
Certainly, in practical applications, it is not limited to the mode of above-mentioned determining first agent port, for example, in the first net Aggregation group table shown in allocation list 3 in network equipment, have recorded in the aggregation group table aggregation group and all of the port in aggregation group it Between correspondence.Based on this aggregation group table, it is proxied that first network equipment can directly inquire first out of aggregation group table The corresponding aggregation group in port, and selected except the first proxied port from all of the port corresponding to the aggregation group inquired Other ports are as first agent port.It is no longer superfluous in the embodiment of the present invention for it is determined that the mode of first agent port It states.
Table 3
Aggregation group All of the port in aggregation group
Aggregation group 1 Port 1, port 2 and port 3
Aggregation group 2 Port 4, port 5 and port 6
Step 203, the first proxied port in aggregation group forwarding table is updated to first agent end by first network equipment Mouthful, and when receiving the flow that purpose is aggregation group, according to the corresponding updated aggregation group forwarding table of the aggregation group to flow It is forwarded.
As shown in Figure 1, it is assumed that the first proxied port-for-port 3, network equipment A selection ports 1 are as first agent end Mouthful.Based on this, for 3 corresponding aggregation group 1 of port, the first proxied port, i.e. aggregation group 1 are still safeguarded in the aggregation group 1 Member still include port 1, port 2 and port 3.For 1 corresponding aggregation group forwarding table of aggregation group, first agent will be used Port the first proxied port of update, i.e., port 1, port 2 and the port 3 recorded in 1 corresponding aggregation group forwarding table of aggregation group, It will be updated to port 1, port 2 and port 1.
In the embodiment of the present invention, when flow is sent to the second chip by the aggregation group 1 of the first chip, the first chip will Pass through the port converting flow recorded in 1 corresponding aggregation group forwarding table of aggregation group.I.e. when 1 corresponding aggregation group of aggregation group forwards When the port-for-port 1, port 2 and the port 3 that are recorded in table, flow between the port of the first chip 1, port 2 and port 3 into Row flow load sharing such as carries out flow load sharing by hash algorithm, and the first chip is based on flow load sharing result (port 1, port 2 or port 3) is to the second chip transmitted traffic.When what is recorded in 1 corresponding aggregation group forwarding table of aggregation group When port-for-port 1, port 2 and port 1, flow carries out flow load between the port of the first chip 1, port 2 and port 1 It shares, flow load sharing is such as carried out by hash algorithm, and the first chip is based on flow load sharing result (port 1, port 2 or port 1) to the second chip transmitted traffic.
In the embodiment of the present invention, second network equipment determines the mode of second agent port, is determined with first network equipment The mode of first agent port is similar, and details are not described herein.Second proxied port is updated to the second generation by second network equipment The first proxied port, is updated to after first agent port by the process of transmitted traffic with first network equipment after reason port The process of transmitted traffic is similar, and details are not described herein.
The agent process of aggregation port is further detailed with reference to the following two kinds situation.
The port status of aggregation port is switched to Down states by situation one by Forwarding states.
When needing the port status by port 3 (i.e. aggregation port) to be switched to Down states by Forwarding states, Network equipment A needs the port status of port 3 being switched to Standby shapes by Forwarding states to network equipment B transmissions The handoff notification message of state.
Network equipment B is true by the aggregation port (i.e. port 9) being connect with port 3 when receiving this handoff notification message It is set to the second proxied port, by any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where port 9 (such as port 7 or port 8, it is assumed that selection port 7) is determined as second agent port, by the end in corresponding aggregation group forwarding table Mouth 9 is updated to port 7.Specifically, network equipment B is when receiving handoff notification message, by port 9 in Port State Table Port status is revised as Standby states, and maintenance port 7, port 8 and port 9 (are tieed up in aggregation group 1 in aggregation group 1 Protect all ports in Standby states in Port State Table and in the port of Forwarding states), by aggregation group 1 corresponding aggregation group forwarding table of aggregation group is arrived in port 7, port 8 and the update of port 9 safeguarded in 1, and will be in aggregation group forwarding table The port of record is updated to port 7, port 8 and port 7 by port 7, port 8 and port 9.
To the network equipment A transmission switching of Standby states is completed in network equipment B, and (i.e. network equipment B is by port shape State is switched to Standby states) notification message.
Network equipment A when receiving this notification message, by be completed on the network equipment B Standby states switching The aggregation port (port 3) of aggregation port (port 9) connection is determined as the first proxied port, by the aggregation group where port 3 Any other aggregation ports (such as port 1 or port 2, it is assumed that selection port 1) in corresponding aggregation group forwarding table are determined as Port 3 in corresponding aggregation group forwarding table is updated to port 1 by first agent port.Specifically, network equipment A is being received When to notification message, port status of the port 3 in Port State Table is revised as Standby states, and the dimension in aggregation group 1 It is (all in the port of Standby states in maintenance port state table i.e. in aggregation group 1 to protect port 1, port 2 and port 3 With in the port of Forwarding states), aggregation group 1 is arrived into port 1, port 2 and port 3 update safeguarded in aggregation group 1 Corresponding aggregation group forwarding table, and the port recorded in aggregation group forwarding table is updated to port by port 1, port 2 and port 3 1, port 2 and port 1.
In the specific implementation, the port status of port 9 is being switched to Standby by network equipment B by Forwarding states When state, network equipment B can be with port blocked 9, can not also port blocked 9.In port blocked 9, network equipment B is not from end 9 transmitted traffics of mouth.Wherein, in port blocked 9, the needs of port blocked 9 correspond to aggregation group 1 in the network equipment B network equipment B Aggregation group forwarding table be updated to execute after port 7, port 8 and port 7 by port 7, port 8 and port 9.Network equipment A When the port status of port 3 is switched to Standby states by Forwarding states, network equipment A can be with port blocked 3, can not also port blocked 3, in port blocked 3, network equipment A is not from 3 transmitted traffic of port.Wherein, network equipment A exists When port blocked 3, port blocked is needed 1 corresponding aggregation group forwarding table of aggregation group in network equipment A by port 1,2 and of port Port 3 is updated to execute after port 1, port 2 and port 1.
Network equipment A by the port status of port 3 after being switched to Standby states, further by the port shape of port 3 State is switched to Down states by Standby states.The port status of port 9 is being switched to Standby states by network equipment B Afterwards, the port status of port 9 is further switched to Down states by Standby states.It is above-mentioned by port status by Standby State is switched to the process of Down states similarly to the prior art, and details are not described herein.
In above-mentioned processing procedure, when the port status of port 3 is switched to Standby states, if first will polymerization 1 corresponding aggregation group forwarding table of group is updated to port 1, port 2 and port 1, then complete through (being assumed to be 5 seconds) ability after a period of time At the process of the flow of port blocked 3.During this period of time, the member of aggregation group 1 includes port 1, port 2 and port 3, and poly- It is port 1, port 2 and port 1 to be combined 1 corresponding aggregation group forwarding table.For the broadcast traffic that chip 1 receives, due to port 3 It is not separate port, therefore the first chip will not be sent to the second chip from port 3 by flow.By carrying out hash to flow, And it is based on 1 corresponding aggregation group forwarding table of hash result queries aggregation group, and will be flowed by hash results (port 1 or port 2) Amount is sent to the second chip.Therefore, the first chip can only send a flow to the second chip, be not in send more parts of flows The case where.Assuming that the first chip receives the broadcast traffic from the second chip from port 1, then since port 3 is aggregation group 1 Member, i.e. port 3 are not separate ports, and therefore, the first chip will not be sent to the second chip, i.e. flow from port 3 by flow It is not in loop.
The port status of aggregation port is switched to Forwarding states by situation two by Down states.
When needing the port status by port 3 (i.e. aggregation port) to be switched to Forwarding states by Down states, Network equipment A needs the port status of port 3 being switched to cutting for Standby states by Down states to network equipment B transmissions Change notification message.
Network equipment B is true by the aggregation port (i.e. port 9) being connect with port 3 when receiving this handoff notification message It is set to the second proxied port, by any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where port 9 (such as port 7 or port 8, it is assumed that selection port 7) is determined as second agent port, by the end in corresponding aggregation group forwarding table Mouth 9 is updated to port 7, opens port 9.Specifically, network equipment B is when receiving handoff notification message, by port 9 in port Port status in state table is revised as Standby states, and maintenance port 7, port 8 and port 9 (exist in aggregation group 1 Port in Standby states of all in maintenance port state table and in the end of Forwarding states in aggregation group 1 Mouthful), 1 corresponding aggregation group forwarding table of aggregation group is arrived into port 7, port 8 and port 9 update safeguarded in aggregation group 1, and will gather It is combined the port recorded in forwarding table and port 7, port 8 and port 7 is updated to by port 7, port 8 and port 9.
To the network equipment A transmission switching of Standby states is completed in network equipment B, and (i.e. network equipment B is by port shape State is switched to Standby states) notification message.
Network equipment A when receiving this notification message, by be completed on the network equipment B Standby states switching The aggregation port (port 3) of aggregation port (port 9) connection is determined as the first proxied port, by the aggregation group where port 3 Any other aggregation ports (such as port 1 or port 2, it is assumed that selection port 1) in corresponding aggregation group forwarding table are determined as Port 3 in corresponding aggregation group forwarding table is updated to port 1, opens port 3 by first agent port.Specifically, network is set Standby A is revised as Standby states when receiving notification message, by port status of the port 3 in Port State Table, and poly- It is (all in Standby in maintenance port state table i.e. in aggregation group 1 to be combined maintenance port 1 in 1, port 2 and port 3 The port of state and in the port of Forwarding states), port 1, port 2 and the port 3 safeguarded in aggregation group 1 are updated To 1 corresponding aggregation group forwarding table of aggregation group, and by the port recorded in aggregation group forwarding table by port 1, port 2 and port 3 It is updated to port 1, port 2 and port 1.
It should be noted that the port status of port 9 is being switched to Standby states by network equipment B by Down states When, port 9 is opened, port 9 is the member of corresponding aggregation group at this time, and there is no it in corresponding aggregation group forwarding table, but It is replaced with port 7, so before the port status of port 9 is switched to Forwarding states by Standby states, net Network equipment B will not be from 9 transmitted traffic of port.Similar, network equipment A is being switched the port status of port 3 by Down states For Standby states when, open port 3, be also only to illustrate that port 9 is the member of corresponding aggregation group, the forwarding of corresponding aggregation group There is no it in table, but replaced with port 1, so the port status of port 3 is switched to by Standby states Before Forwarding states, network equipment B will not be from 3 transmitted traffic of port.
Network equipment A by the port status of port 3 after being switched to Standby states, further by the port shape of port 3 State is switched to Forwarding states by Standby states, in this stage, member (port 1,2 and of port according to aggregation group 1 Port 3) refresh corresponding aggregation group forwarding table (current record has port 1, port 2 and port 1), after refreshing, aggregation group 1 is right The aggregation group forwarding table answered is port 1, port 2 and port 3.For the flow that the purpose that chip 1 receives is aggregation group 1, convection current Amount carries out hash, and based on the hash result queries 1 corresponding aggregation group forwarding table of aggregation group, and is being polymerize by hash results Flow is sent to chip 2 by corresponding port (being assumed to be port 3) in group forwarding table.Since port 3 is in the open state at this time, Therefore, the first chip can will not cause flow to be lost from 3 transmitted traffic of port.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, need by the port status of proxied port by Forwarding states are switched to Down states, or the port status of proxied port is switched to by Down states When Forwarding states, the port status of proxied port is being switched to Standby state phases, the network equipment passes through true Determine the corresponding proxy port in proxied port, and using the proxied port in proxy port update aggregation group forwarding table, thus Ensure the correct forwarding of flow, the case where avoiding the occurrence of more parts of flow, traffic loops and traffic loss.
Based on inventive concept same as the above method, a kind of network equipment is additionally provided in the embodiment of the present invention, as First network equipment in network, as shown in figure 3, first network equipment specifically includes:
Determining module 11, for disappearing in the notice that the switching of Standby states is completed for receiving the transmission of second network equipment When breath, the will be determined as with the aggregation port that connect of aggregation port that the switching of Standby states is completed on second network equipment One proxied port, by any other polymerization ends in the corresponding aggregation group forwarding table of aggregation group where the first proxied port Mouth is determined as first agent port;
Update module 12, for the first proxied port in aggregation group forwarding table to be updated to first agent port;
Sending module 13, for receive purpose be aggregation group flow when, according to updated aggregation group forwarding table into Row forwarding.
Preferably, be completed on second network equipment Standby states switching aggregation port port status be by When Forwarding states are switched to Standby states, the notification message that determining module 11 receives is that second network equipment exists Receiving first network equipment needs the port status by the first proxied port to be switched to Standby by Forwarding states After the handoff notification message sent when state, the aggregation port being connect with the first proxied port is determined as the second proxied end Mouthful, any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where the second proxied port are determined as the Two proxy ports, and sent after the second proxied port in corresponding aggregation group forwarding table is updated to second agent port 's.
Preferably, be completed on second network equipment Standby states switching aggregation port port status be by When Forwarding states are switched to Standby states, update module 12 is additionally operable to by the first quilt in aggregation group forwarding table Proxy port is updated to after first agent port, blocks the first proxied port;
The notification message that determining module 11 receives, which is second network equipment, to be needed the receiving first network equipment The handoff notification message that the port status of one proxied port is sent when being switched to Standby states by Forwarding states Afterwards, the aggregation port being connect with the first proxied port is determined as the second proxied port, it will be where the second proxied port The corresponding aggregation group forwarding table of aggregation group in any other aggregation ports be determined as second agent port, and will be corresponding poly- The second proxied port being combined in forwarding table is updated to second agent port, and sent behind the second proxied port of obstruction.
Preferably, be completed on second network equipment Standby states switching aggregation port port status be by When Down states are switched to Standby states, update module 12 is additionally operable to by the first proxied end in aggregation group forwarding table Oral replacement is the first proxied port of opening after first agent port;
Wherein it is determined that the notification message that module 11 receives, which is second network equipment, is receiving first network equipment needs After the handoff notification message sent when the port status of first proxied port is switched to Standby states by Down states, The aggregation port being connect with the first proxied port is determined as the second proxied port, it will be poly- where the second proxied port Any other aggregation ports being combined in corresponding aggregation group forwarding table are determined as second agent port, and by corresponding aggregation group The second proxied port in forwarding table is updated to second agent port, and sent behind the second proxied port of opening.
Determining module 11 is specifically used for will be in the corresponding aggregation group forwarding table of aggregation group where the first proxied port Any other aggregation ports when being determined as first agent port, aggregation group where the first proxied port BasePtr and aggregation group number of members inquire local aggregation group forwarding table, obtain the aggregation group where the first proxied port Corresponding aggregation group forwarding table;
It is selected from all of the port in corresponding aggregation group forwarding table any other in addition to the first proxied port Aggregation port is as first agent port.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, Module or flow in attached drawing are not necessarily implemented necessary to the present invention.It will be appreciated by those skilled in the art that in embodiment Device in module can according to embodiment describe be distributed in the device of embodiment, respective change position can also be carried out In one or more devices different from the present embodiment.The module of above-described embodiment can be merged into a module, can also It is further split into multiple submodule.The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.With Several specific embodiments of the upper disclosed only present invention, still, the present invention is not limited to this, any those skilled in the art Member can think of variation should all fall into protection scope of the present invention.

Claims (8)

1. a kind of Proxy Method of aggregation port, which is characterized in that including:
First network equipment is in the notification message that preparation Standby states switching is completed for receiving the transmission of second network equipment When, the aggregation port being connect with the aggregation port that the switching of Standby states is completed on second network equipment is determined as First proxied port, will be any other in the corresponding aggregation group forwarding table of aggregation group where the described first proxied port Aggregation port is determined as first agent port;
The described first proxied port in the aggregation group forwarding table is updated to the first agent port, and is receiving mesh When being the flow of the aggregation group, it is forwarded according to updated aggregation group forwarding table;
Wherein, the port status that the aggregation port of Standby states switching is completed on second network equipment is by turning Hair Forwarding states are when being switched to Standby states, and the notification message, which is second network equipment, is receiving described the One network equipment needs the port status of the described first proxied port being switched to Standby states by Forwarding states When the handoff notification message that sends after, the aggregation port being connect with the described first proxied port is determined as the second proxied end Mouthful, any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where the described second proxied port are determined For second agent port, and the described second proxied port in corresponding aggregation group forwarding table is updated to the second agent It is sent behind port.
2. the method as described in claim 1, which is characterized in that Standby states are completed on second network equipment The port status of the aggregation port of switching is when being switched to Standby states by ForWarding states, and the method further includes:
The described first proxied port in the aggregation group forwarding table is being updated to described first by the first network equipment After proxy port, block the first proxied port;
Wherein, the notification message is that second network equipment is needed described first by generation receiving the first network equipment It, will be with after the handoff notification message that the port status of reason port is sent when being switched to Standby states by Forwarding states The aggregation port of the first proxied port connection is determined as the second proxied port, will be where the described second proxied port The corresponding aggregation group forwarding table of aggregation group in any other aggregation ports be determined as second agent port, and will be corresponding poly- The described second proxied port being combined in forwarding table is updated to the second agent port, and blocks the second proxied end It is sent after mouthful.
3. the method as described in claim 1, which is characterized in that Standby states are completed on second network equipment The port status of the aggregation port of switching is when being switched to Standby states by failure Down states, and the method further includes:
The described first proxied port in the aggregation group forwarding table is being updated to described first by the first network equipment After proxy port, the first proxied port is opened;
Wherein, the notification message is that second network equipment is needed described first by generation receiving the first network equipment It, will be with described the after the handoff notification message that the port status of reason port is sent when being switched to Standby states by Down states The aggregation port of one proxied port connection is determined as the second proxied port, by the polymerization where the described second proxied port Any other aggregation ports in the corresponding aggregation group forwarding table of group are determined as second agent port, and corresponding aggregation group is turned The described second proxied port in delivering is updated to the second agent port, and is sent out after opening the second proxied port It send.
4. the method as described in claim 1, which is characterized in that the first network equipment is by the described first proxied port institute The corresponding aggregation group forwarding table of aggregation group in any other aggregation ports be determined as first agent port, specifically include:
The first network equipment is according to the base pointer BasePtr and aggregation group of the aggregation group where the described first proxied port Number of members inquires local aggregation group forwarding table, obtains the corresponding polymerization of aggregation group where the described first proxied port Group forwarding table;
It is selected from all of the port in corresponding aggregation group forwarding table any other in addition to the described first proxied port Aggregation port is as first agent port.
5. a kind of network equipment, as the first network equipment in network, which is characterized in that the first network equipment is specifically wrapped It includes:
Determining module, in the notification message that preparation Standby states switching is completed for receiving the transmission of second network equipment When, the aggregation port being connect with the aggregation port that the switching of Standby states is completed on second network equipment is determined as First proxied port, will be any other in the corresponding aggregation group forwarding table of aggregation group where the described first proxied port Aggregation port is determined as first agent port;
Update module, for the described first proxied port in the aggregation group forwarding table to be updated to the first agent end Mouthful;
Sending module, for when receiving the flow that purpose is the aggregation group, being carried out according to updated aggregation group forwarding table Forwarding;
Wherein, the port status that the aggregation port of Standby states switching is completed on second network equipment is by turning When hair Forwarding states are switched to Standby states, the notification message that the determining module receives is that the second network is set It is standby to receive the first network equipment needs by the port status of the described first proxied port by Forwarding states After being switched to the handoff notification message sent when Standby states, the aggregation port that will be connect with the described first proxied port It is determined as the second proxied port, by appointing in the corresponding aggregation group forwarding table of aggregation group where the described second proxied port One other aggregation ports are determined as second agent port, and by the described second proxied port in corresponding aggregation group forwarding table It is updated to send behind the second agent port.
6. the network equipment as claimed in claim 5, which is characterized in that Standby is completed on second network equipment The port status of the aggregation port of state switching is update mould when being switched to Standby states by Forwarding states Block, be additionally operable to by the described first proxied port in the aggregation group forwarding table be updated to the first agent port it Afterwards, block the first proxied port;
The notification message that the determining module receives be second network equipment receive the first network equipment need by The switching notice that the port status of the first proxied port is sent when being switched to Standby states by Forwarding states After message, the aggregation port being connect with the described first proxied port is determined as the second proxied port, by second quilt Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where proxy port are determined as second agent port, And the described second proxied port in corresponding aggregation group forwarding table is updated to the second agent port, and described in obstruction It is sent behind second proxied port.
7. the network equipment as claimed in claim 5, which is characterized in that Standby is completed on second network equipment The port status of the aggregation port of state switching is update module when being switched to Standby states by failure Down states, It is additionally operable to after the described first proxied port in the aggregation group forwarding table is updated to the first agent port, beats Open the described first proxied port;
Wherein, the notification message that the determining module receives is that second network equipment is receiving the first network equipment need The switching notice sent when the port status of described first proxied port is switched to Standby states by Down states disappears After breath, the aggregation port being connect with the described first proxied port is determined as the second proxied port, by described second by generation Any other aggregation ports in the corresponding aggregation group forwarding table of aggregation group where reason port are determined as second agent port, and The described second proxied port in corresponding aggregation group forwarding table is updated to the second agent port, and opens described the It is sent behind two proxied ports.
8. the network equipment as claimed in claim 5, which is characterized in that
The determining module is specifically used for by the corresponding aggregation group forwarding table of aggregation group where the described first proxied port In any other aggregation ports when being determined as first agent port, aggregation group where the described first proxied port Base pointer BasePtr and aggregation group number of members inquire local aggregation group forwarding table, obtain the described first proxied port institute The corresponding aggregation group forwarding table of aggregation group;
It is selected from all of the port in corresponding aggregation group forwarding table any other in addition to the described first proxied port Aggregation port is as first agent port.
CN201410436787.6A 2014-08-29 2014-08-29 A kind of Proxy Method and equipment of aggregation port Active CN104219155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410436787.6A CN104219155B (en) 2014-08-29 2014-08-29 A kind of Proxy Method and equipment of aggregation port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410436787.6A CN104219155B (en) 2014-08-29 2014-08-29 A kind of Proxy Method and equipment of aggregation port

Publications (2)

Publication Number Publication Date
CN104219155A CN104219155A (en) 2014-12-17
CN104219155B true CN104219155B (en) 2018-10-26

Family

ID=52100303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410436787.6A Active CN104219155B (en) 2014-08-29 2014-08-29 A kind of Proxy Method and equipment of aggregation port

Country Status (1)

Country Link
CN (1) CN104219155B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005110B (en) * 2018-08-29 2021-05-28 新华三技术有限公司合肥分公司 Method and device for generating aggregation route
CN111049765B (en) * 2019-12-12 2022-03-11 北京东土军悦科技有限公司 Aggregation port switching method, device, chip, switch and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252532A (en) * 2008-03-18 2008-08-27 华为技术有限公司 Equipment and method for collocating Ethernet link polymerization terminal port
CN101355515A (en) * 2008-09-05 2009-01-28 中兴通讯股份有限公司 Method for restarting link polymerize control protocol with elegance
CN103200122A (en) * 2013-03-05 2013-07-10 中兴通讯股份有限公司 Processing method and system for group table in software definition network, and controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501250B (en) * 2013-09-30 2016-10-05 杭州华三通信技术有限公司 Data flow processing method in distributed aggregated link network and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252532A (en) * 2008-03-18 2008-08-27 华为技术有限公司 Equipment and method for collocating Ethernet link polymerization terminal port
CN101355515A (en) * 2008-09-05 2009-01-28 中兴通讯股份有限公司 Method for restarting link polymerize control protocol with elegance
CN103200122A (en) * 2013-03-05 2013-07-10 中兴通讯股份有限公司 Processing method and system for group table in software definition network, and controller

Also Published As

Publication number Publication date
CN104219155A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
US11706126B2 (en) Method and apparatus for distributed data network traffic optimization
CN105900390B (en) Link control node, chainlink control method and communication system
CN106464531B (en) Method, system and equipment for troubleshooting
CN105553680A (en) System and method for creating virtual interfaces based on network characteristics
US20040240389A1 (en) Method and apparatus for load sharing and overload control for packet media gateways under control of a single media gateway controller
US20180069786A1 (en) Randomized route hopping in software defined networks
CN105744575B (en) Method, wireless network SDN controller and system for cell switching
DE112006000662T5 (en) Mobile device handoff using multicast in a multi-protocol label switching (MPLS) network
CN104283791A (en) Three-layer topology determining method and device in SDN network
CN103731307A (en) Method for standardized data surface dynamic reconstruction for multiple services
CN101854283A (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN107659426A (en) Distribute the method and network side equipment of physical resource
CN113542051B (en) Monitoring flow load balancing method based on software defined network
CN105637817B (en) Control equipment, system and transmission channel control method in software defined network
CN103825839B (en) A kind of message transmitting method and equipment based on aggregated links
CN104219155B (en) A kind of Proxy Method and equipment of aggregation port
CN102752183A (en) rapid convergence method and device for access network
CN108965147A (en) Network control method, device and the network equipment
CN104639450B (en) The architecture system of packet transmission control method, device and software defined network
CN106921580A (en) The method and apparatus that route is realized in tree network
CN107733809A (en) A kind of VSM system messages forwarding port method to set up and device
CN105763468B (en) A kind of transmission method and device of bgp update message
KR20180122513A (en) Method and framework for traffic engineering in network hypervisor of sdn-based network virtualization platform
CN105515809A (en) Software definition network realization method and main controller
CN102158422A (en) Message forwarding method and equipment for layer 2 ring network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant