CN104219155A - Aggregate port proxy method and equipment - Google Patents

Aggregate port proxy method and equipment Download PDF

Info

Publication number
CN104219155A
CN104219155A CN201410436787.6A CN201410436787A CN104219155A CN 104219155 A CN104219155 A CN 104219155A CN 201410436787 A CN201410436787 A CN 201410436787A CN 104219155 A CN104219155 A CN 104219155A
Authority
CN
China
Prior art keywords
port
aggregation
proxy
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.)
Granted
Application number
CN201410436787.6A
Other languages
Chinese (zh)
Other versions
CN104219155B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to 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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an aggregate port proxy method and equipment. The aggregate port proxy method includes: when first network equipment receives an informing message of completion of Standby status switching sent by second network equipment, determining an aggregate port, connected with an aggregate port with Standby status switching completed on the second network equipment, as a first proxied port, and determining optional one of other aggregate ports, in an aggregate group forwarding table corresponding to an aggregate group in which the first proxied port is located, as a first proxy port; updating the first proxied port in the aggregate group forwarding table as a first proxy port, and when objective aggregate group flow is received, forwarding in terms of an updated aggregate group. The aggregate port proxy method in the embodiment has the advantages that correct flow forwarding can be guaranteed, and conditions of flow redundancy, flow loops and flow missing can be avoided.

Description

A kind of Proxy Method of aggregation port and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of Proxy Method and equipment of aggregation port.
Background technology
As shown in Figure 1, for example, chip 1 on the network equipment (switch) A passes through three physical link polymerizations of aggregation group 1 with the chip 2 on network equipment B, the member of the aggregation group 1 of network equipment A comprises port one, port 2 and port 3, and the member of the aggregation group 1 of network equipment B comprises port 7, port 8 and port 9.Chip 3 on network equipment A passes through three physical link polymerizations of aggregation group 2 with the chip 4 on network equipment C, the member of the aggregation group 2 of network equipment A comprises port 4, port 5 and port 6, and the member of the aggregation group 2 of network equipment C comprises port one 0, port one 1 and port one 2.Further, maintenance port state table on each network equipment, this Port State Table is for recording the corresponding relation between port and port status.When port status is Forwarding (forwarding) state, port can be received and dispatched flow; When port status is Standby (preparation) state, port can receive flow, but cannot transmitted traffic; When port status is Down (fault) state, port cannot be received and dispatched flow.
For the traffic transport process of network equipment A and network equipment B, suppose that port one, port 2 and port 3 are all in Forwarding state, the aggregation group of aggregation group 1 correspondence of chip 1 is transmitted and is comprised port one, port 2 and port 3.Chip 1 is when receiving that object is the flow of aggregation group 1, flow is carried out to hash, and the aggregation group based on this aggregation group 1 correspondence of hash result queries transmits, the port (port one or port 2 or port 3) of transmitting middle correspondence in aggregation group by hash result sends to chip 2 by flow.
When the port status of the port 3 of network equipment A need to switch to Standby state by (Forwarding) state of forwarding, network equipment A sends handoff notification message to network equipment B, by network equipment B, the port status of port 9 is switched to Standby state, and to network equipment A, return and complete the notification message that Standby state switches after switching completes, like this, network equipment A is after receiving this notification message, port status by port 3 in Port State Table switches to Standby state by Forwarding state, afterwards, network equipment A can first upgrade the member of aggregation group 1 by all ports in Forwarding state in Port State Table, the member who is aggregation group 1 is port one and port 2, port 3 is no longer the member of aggregation group 1, but separate port, the flow of port blocked 3 again, not from port 3 transmitted traffics, also flow that can first port blocked 3, then upgrade the member of aggregation group 1.Subsequent network device A, after completing the switching of Standby state, switches to fault (Down) state by the port status of port 3 by Standby state.
It should be noted that, the processing procedure that above-mentioned network equipment B switches to the port status of port 9 Standby state is identical with the processing procedure that network equipment A switches to Standby state by the port status of port 3, does not repeat them here.
In above-mentioned processing procedure, network equipment A is when switching to Standby state by the port status of port 3, if first upgrade the member of aggregation group 1, the flow of port blocked 3 again, owing to blocking flow, need the regular hour, during this period of time, port 3 is separate port (not being the members of aggregation group 1), the member of aggregation group 1 only has port one and port 2, the object of receiving for chip 1 is the broadcast traffic of aggregation group 1, except flow being sent to chip 2 by port one or port 2, also can copy portion and send to chip 2 by port 3, occur that many parts of identical flows are to chip 2.Further, suppose that chip 1 receives the broadcast traffic from chip 2 from port one, also can flow be sent to chip 2 from port 3, there is loop in flow.
If the flow of first port blocked 3, upgrade again the member of aggregation group 1, so, before completing renewal operation, the member of aggregation group 1 is still port one, port 2 and port 3, for chip 1, receives that object is the flow of aggregation group 1, if needed after hash, by port 3, send, but port 3 has got clogged, cannot transmitted traffic, this just causes traffic loss.
Network equipment A switches to the port status of port 3 after Down state, if the port status of port 3 need to be switched to Forwarding state by Down state, the port status of port 3 is being switched to Standby state phase by Down state, the port 3 blocking before not opening, the port status of port 3 is being switched to Forwarding state phase by Standby state, just open the port 3 blocking before, so still have the situation of traffic loss.
Summary of the invention
The embodiment of the present invention provides a kind of Proxy Method of aggregation port, comprising:
First network equipment is when receiving the notification message of the Standby state that the completes switching that second network equipment sends, the aggregation port that aggregation port with having completed the switching of Standby state on described second network equipment is connected is defined as first by proxy port, and arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first is defined as first agent's port;
During described aggregation group is transmitted described first is updated to described first agent's port by proxy port, and when receiving that object is the flow of described aggregation group, according to the aggregation group after upgrading, transmits and forward.
The port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by Forwarding state, described notification message is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to and sends after described second agent's port by proxy port.
The port status that has completed the aggregation port of Standby state switching on described second network equipment is that while switching to Standby state by Forwarding state, described method also comprises:
Described first network equipment in described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, block described first by proxy port;
Wherein, described notification message is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and blocking described second is sent after proxy port.
The port status that has completed the aggregation port of Standby state switching on described second network equipment is that while switching to Standby state by Down state, described method also comprises:
Described first network equipment in described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, open described first by proxy port;
Wherein, described notification message is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Down state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and opening described second is sent after proxy port.
Described first network equipment arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first is defined as first agent's port, specifically comprises:
Described first network equipment, is inquired about local aggregation group and is transmitted by the BasePtr of the aggregation group at proxy port place and aggregation group number of members according to described first, obtains described first and is transmitted by aggregation group corresponding to the aggregation group at proxy port place;
In all of the port from corresponding aggregation group is transmitted, select arbitrary except described first by other aggregation port proxy port as first agent's port.
The embodiment of the present invention provides a kind of network equipment, and as the first network equipment in network, described first network equipment specifically comprises:
Determination module, for when receiving the notification message of the Standby state that the completes switching that second network equipment sends, the aggregation port that aggregation port with having completed the switching of Standby state on described second network equipment is connected is defined as first by proxy port, and arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first is defined as first agent's port;
Update module, described first is updated to described first agent's port by proxy port for what described aggregation group was transmitted;
Sending module, for when receiving that object is the flow of described aggregation group, transmits and forwards according to the aggregation group after upgrading.
The port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by Forwarding state, the notification message that described determination module receives is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to and sends after described second agent's port by proxy port.
The port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by Forwarding state, described update module, also for described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, block described first by proxy port;
The notification message that described determination module receives is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and blocking described second is sent after proxy port.
The port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by Down state, described update module, also for described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, open described first by proxy port;
Wherein, the notification message that described determination module receives is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Down state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and opening described second is sent after proxy port.
Described determination module, while being defined as first agent's port specifically for arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first, according to described first by the BasePtr of the aggregation group at proxy port place and aggregation group number of members, inquire about local aggregation group and transmit, obtain described first and transmitted by aggregation group corresponding to the aggregation group at proxy port place;
In all of the port from corresponding aggregation group is transmitted, select arbitrary except described first by other aggregation port proxy port as first agent's port.
Based on technique scheme, in the embodiment of the present invention, need to will by Forwarding state, switched to Down state by the port status of proxy port, or when being switched to Forwarding state by the port status of proxy port by Down state, to switched to Standby state phase by the port status of proxy port, the network equipment is by determining by proxy port corresponding to proxy port, and use proxy port upgrade aggregation group in transmitting by proxy port, thereby guarantee the correct forwarding of flow, avoid occurring many parts of flows, the situation of traffic loops and traffic loss.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that many physical links carry out link aggregation that passes through proposing in prior art;
Fig. 2 is the Proxy Method schematic flow sheet of a kind of aggregation port of providing of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of network equipment of providing of the embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of Proxy Method of aggregation port, be applied in the application scenarios that carries out link aggregation by many physical links, between first network equipment and second network equipment, by many physical links, carry out link aggregation.The application scenarios schematic diagram that the Fig. 1 of take is the embodiment of the present invention, when the chip 1 of network equipment A passes through three physical link polymerizations of aggregation group 1 with the chip of network equipment B 2, first network equipment is network equipment A, second network equipment is network equipment B.When the chip 3 of network equipment A passes through three physical link polymerizations of aggregation group 2 with the chip of network equipment C 4, first network equipment is network equipment A, and second network equipment is network equipment C.
Under above-mentioned application scenarios, as shown in Figure 2, the Proxy Method of this aggregation port comprises the following steps:
Step 201, first network equipment is when receiving the notification message of the Standby state that the completes switching that second network equipment sends, and the aggregation port that the aggregation port with having completed the switching of Standby state on second network equipment is connected is defined as first by proxy port.
In the embodiment of the present invention, the port status that has completed the aggregation port of Standby state switching on second network equipment is while switching to Standby state by Forwarding state, this notification message is that second network equipment is after receiving the handoff notification message sending when first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by first, the aggregation port being connected by proxy port with first is defined as to second by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place second is defined as second agent's port, and second during corresponding aggregation group is transmitted is updated to and sends after second agent's port by proxy port.
Further, the port status that has completed the aggregation port of Standby state switching on second network equipment is while switching to Standby state by forwarding Forwarding state, first network equipment in aggregation group is transmitted first by proxy port, be updated to first agent's port after, block first by proxy port.In this case, notification message in above-mentioned steps 201 is that second network equipment is after receiving the handoff notification message sending when first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by first, the aggregation port being connected by proxy port with first is defined as to second by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place second is defined as second agent's port, and second during corresponding aggregation group is transmitted is updated to second agent's port by proxy port, and obstruction second is sent after proxy port.
Further, the port status that has completed the aggregation port of Standby state switching on second network equipment is while switching to Standby state by Down state, first network equipment in aggregation group is transmitted first by proxy port, be updated to first agent's port after, open first by proxy port.
In this case, notification message in above-mentioned steps 201 is that second network equipment is after receiving the handoff notification message sending when first network equipment need to be switched to Standby state by the port status of proxy port by Down state by first, the aggregation port being connected by proxy port with first is defined as to second by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place second is defined as second agent's port, and second during corresponding aggregation group is transmitted is updated to second agent's port by proxy port, and opening second is sent after proxy port.
Step 202, first network equipment arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place first is defined as first agent's port.
As shown in Figure 1, suppose that first is port 3 by proxy port, first network equipment is from the aggregation group of aggregation group 1 correspondence at port 3 places is transmitted, and selecting other port (as port one or port 2) outside port 3 is first agent's port.
In the embodiment of the present invention, first network equipment arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place first is defined as first agent's port, specifically comprise: first network equipment according to first by the BasePtr of the aggregation group at proxy port place (base pointer) and aggregation group number of members, inquire about local aggregation group and transmit, obtain first and transmitted by aggregation group corresponding to the aggregation group at proxy port place; In all of the port of first network equipment from corresponding aggregation group is transmitted, select arbitrary except first by other aggregation port proxy port as first agent's port.
Wherein, BasePtr points to aggregation group first port in aggregation group is transmitted, and aggregation group number of members represents from the port of BasePtr sensing, the port number that aggregation group is corresponding.
Concrete, first network equipment disposes aggregation group table, BasePtr corresponding to aggregation group and aggregation group and aggregation group number of members in this aggregation group table, have been recorded, and the BasePtr of aggregation group points to aggregation group and in aggregation group, transmits first port of middle correspondence, the port that the aggregation group number of members of aggregation group represents to point to from BasePtr, the port number that aggregation group is corresponding.Based on aggregation group table, first network equipment can inquire first by aggregation group corresponding to proxy port in aggregation group table, and determines BasePtr and the aggregation group number of members of this aggregation group.First network equipment is according to BasePtr and aggregation group number of members, in aggregation group is transmitted, find first by all of the port in aggregation group corresponding to proxy port, and from all of the port, select first by other port outside proxy port as first agent's port.
Under the application scenarios shown in Fig. 1, the member of the aggregation group 1 of network equipment A comprises port one, port 2 and port 3, and the member of aggregation group 2 comprises 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, and a kind of example that aggregation group is transmitted can be as shown in table 2.Suppose that first is port 3 by proxy port, the aggregation group table based on shown in table 1 and the aggregation group shown in table 2 are transmitted, and whether the member of network equipment A inquiry aggregation group 1 comprises port 3, if comprised, determine that the aggregation group of port 3 correspondences is aggregation group 1; If do not comprised, whether the member of network equipment A inquiry aggregation group 2 comprises port 3, by that analogy.When whether the member of network equipment A inquiry aggregation group 1 comprises port 3, network equipment A is from first port (port one) of the BasePtr sensing of aggregation group 1, judge 3 ports that aggregation group starts from port one in transmitting and whether comprise port 3, because port 3 is the 3rd ports that start from port one during aggregation group is transmitted, therefore the member of aggregation group 1 comprises port 3, and the aggregation group of port 3 correspondences is aggregation group 1.Afterwards, network equipment A determines that first port that the BasePtr of aggregation group 1 points to is the port one during aggregation group is transmitted, and the aggregation group number of members of definite aggregation group 1 is 3, therefore, network equipment A is according to BasePtr and aggregation group number of members, in aggregation group is transmitted from first port start to search successively first by other port outside proxy port (port 3) as first agent's port, due to first port-for-port 1, this port one is first by other port outside proxy port, therefore search procedure finishes, network equipment A directly selects port one as first agent's port.
Table 1
Aggregation group BasePtr Aggregation group number of members
Aggregation group 1 Port one 3
Aggregation group 2 Port 4 3
Table 2
Port one
Port 2
Port 3
Port 4
Port 5
Port 6
Certainly, in actual applications, be not limited to the mode of above-mentioned definite first agent's port, for example, the aggregation group table on first network equipment shown in allocation list 3, has recorded the corresponding relation between all of the port in aggregation group and aggregation group in this aggregation group table.Based on this aggregation group table, first network equipment can directly inquire first by aggregation group corresponding to proxy port in aggregation group table, and from the corresponding all of the port of aggregation group inquiring, select first by other port outside proxy port as first agent's port.The mode of determining first agent's port for other, repeats no more in the embodiment of the present invention.
Table 3
Aggregation group All of the port in aggregation group
Aggregation group 1 Port one, port 2 and port 3
Aggregation group 2 Port 4, port 5 and port 6
Step 203, first network equipment first during aggregation group is transmitted is updated to first agent's port by proxy port, and when receiving that object is the flow of aggregation group, according to the aggregation group after renewal corresponding to this aggregation group, transmits flow is forwarded.
As shown in Figure 1, suppose that first is port 3 by proxy port, network equipment A selects port one as first agent's port.Based on this, for the aggregation group 1 of port 3 correspondences, in this aggregation group 1, still safeguard that first by proxy port, the member of aggregation group 1 still comprises port one, port 2 and port 3.Aggregation group for aggregation group 1 correspondence is transmitted, and will use first agent's port to upgrade first by proxy port, and the aggregation group of aggregation group 1 correspondence is transmitted port one, port 2 and the port 3 of middle record, will be updated to port one, port 2 and port one.
In the embodiment of the present invention, when the aggregation group 1 of flow by the first chip sends to the second chip, the first chip will be transmitted the port repeat flow of middle record by the aggregation group of aggregation group 1 correspondence.When the aggregation group of aggregation group 1 correspondence is transmitted the port-for-port 1, port 2 of middle record and port 3, flow carries out flow load sharing between port one, port 2 and the port 3 of the first chip, as carried out flow load sharing by hash algorithm, and the first chip based on flow load sharing result (port one, port 2 or port 3) to the second chip transmitted traffic.When the aggregation group of aggregation group 1 correspondence is transmitted the port-for-port 1, port 2 of middle record and port one, flow carries out flow load sharing between port one, port 2 and the port one of the first chip, as carried out flow load sharing by hash algorithm, and the first chip based on flow load sharing result (port one, port 2 or port one) to the second chip transmitted traffic.
In the embodiment of the present invention, second network equipment is determined the mode of second agent's port, determines that the mode of first agent's port is similar with first network equipment, does not repeat them here.Second network equipment is updated to the process of transmitted traffic after second agent's port by second by proxy port, and by first, by proxy port, to be updated to after first agent's port the process of transmitted traffic similar with first network equipment, do not repeat them here.
Below in conjunction with following two kinds of situations, the agent process of aggregation port is further detailed.
Situation one, the port status of aggregation port is switched to Down state by Forwarding state.
In the time the port status of port 3 (being aggregation port) need to being switched to Down state by Forwarding state, network equipment A sends and the port status of port 3 need to be switched to the handoff notification message of Standby state by Forwarding state to network equipment B.
Network equipment B is when receiving this handoff notification message, the aggregation port being connected with port 3 (being port 9) is defined as to second by proxy port, arbitrary other aggregation port during the aggregation group corresponding to aggregation group at port 9 places transmitted is (as port 7 or port 8, suppose to select port 7) be defined as second agent's port, the port 9 during corresponding aggregation group is transmitted is updated to port 7.Concrete, network equipment B is when receiving handoff notification message, port status by port 9 in Port State Table is revised as Standby state, and at the interior maintenance port 7 of aggregation group 1, port 8 and port 9 (i.e. all port and ports in Forwarding state in Standby state in the interior maintenance port state table of aggregation group 1), by the port 7 of aggregation group 1 interior maintenance, port 8 and port 9 are updated to the aggregation group of aggregation group 1 correspondence and transmit, and the port of aggregation group being transmitted to middle record is by port 7, port 8 and port 9 are updated to port 7, port 8 and port 7.
Network equipment B sends and has completed the notification message that Standby state switches (being that network equipment B has switched to port status Standby state) to network equipment A.
Network equipment A is when receiving this notification message, the aggregation port (port 3) that aggregation port (port 9) with having completed the switching of Standby state on network equipment B is connected is defined as first by proxy port, arbitrary other aggregation port during the aggregation group corresponding to aggregation group at port 3 places transmitted is (as port one or port 2, suppose to select port one) be defined as first agent's port, the port 3 during corresponding aggregation group is transmitted is updated to port one.Concrete, network equipment A is when receiving notification message, port status by port 3 in Port State Table is revised as Standby state, and at the interior maintenance port 1 of aggregation group 1, port 2 and port 3 (i.e. all port and ports in Forwarding state in Standby state in the interior maintenance port state table of aggregation group 1), by the port one of aggregation group 1 interior maintenance, port 2 and port 3 are updated to the aggregation group of aggregation group 1 correspondence and transmit, and the port that aggregation group is transmitted to middle record is by port one, port 2 and port 3 are updated to port one, port 2 and port one.
In specific implementation, network equipment B is when switching to Standby state by the port status of port 9 by Forwarding state, and network equipment B can port blocked 9, also port blocked 9 not.When port blocked 9, network equipment B is not from port 9 transmitted traffics.Wherein, network equipment B is when port blocked 9, and port blocked 9 is carried out after need to the aggregation group of aggregation group 1 correspondence being transmitted at network equipment B and being updated to port 7, port 8 and port 7 by port 7, port 8 and port 9.Network equipment A is when switching to Standby state by the port status of port 3 by Forwarding state, and network equipment A can port blocked 3, also port blocked 3 not, and when port blocked 3, network equipment A is not from port 3 transmitted traffics.Wherein, network equipment A is when port blocked 3, and port blocked is carried out after need to the aggregation group of aggregation group 1 correspondence being transmitted at network equipment A and being updated to port one, port 2 and port one by port one, port 2 and port 3.
Network equipment A, the port status of port 3 is switched to after Standby state, further switches to Down state by the port status of port 3 by Standby state.Network equipment B, the port status of port 9 is switched to after Standby state, further switches to Down state by the port status of port 9 by Standby state.The above-mentioned process that port status is switched to Down state by Standby state similarly to the prior art, does not repeat them here.
In above-mentioned processing procedure, when the port status of port 3 is switched to Standby state, if first the aggregation group of aggregation group 1 correspondence is transmitted and is updated to port one, port 2 and port one, through after a while, (be assumed to be 5 seconds) and just can complete the process of the flow of port blocked 3.During this period of time, the member of aggregation group 1 comprises port one, port 2 and port 3, and the aggregation group of aggregation group 1 correspondence is transmitted as port one, port 2 and port one.The broadcast traffic of receiving for chip 1, because port 3 is not separate port, therefore the first chip can not send to the second chip by flow from port 3.By flow is carried out to hash, and the aggregation group based on hash result queries aggregation group 1 correspondence transmits, and by hash result (port one or port 2), flow sent to the second chip.Therefore, the first chip only can send a flow to the second chip, there will not be the situation that sends many parts of flows.Suppose that the first chip receives the broadcast traffic from the second chip from port one, due to port 3, are members of aggregation group 1, port 3 is not separate port, therefore, the first chip can not send to the second chip by flow from port 3, and flow there will not be loop.
Situation two, the port status of aggregation port is switched to Forwarding state by Down state.
In the time the port status of port 3 (being aggregation port) need to being switched to Forwarding state by Down state, network equipment A sends and the port status of port 3 need to be switched to the handoff notification message of Standby state by Down state to network equipment B.
Network equipment B is when receiving this handoff notification message, the aggregation port being connected with port 3 (being port 9) is defined as to second by proxy port, arbitrary other aggregation port during the aggregation group corresponding to aggregation group at port 9 places transmitted is (as port 7 or port 8, suppose to select port 7) be defined as second agent's port, port 9 during corresponding aggregation group is transmitted is updated to port 7, opens port 9.Concrete, network equipment B is when receiving handoff notification message, port status by port 9 in Port State Table is revised as Standby state, and at the interior maintenance port 7 of aggregation group 1, port 8 and port 9 (i.e. all port and ports in Forwarding state in Standby state in the interior maintenance port state table of aggregation group 1), by the port 7 of aggregation group 1 interior maintenance, port 8 and port 9 are updated to the aggregation group of aggregation group 1 correspondence and transmit, and the port of aggregation group being transmitted to middle record is by port 7, port 8 and port 9 are updated to port 7, port 8 and port 7.
Network equipment B sends and has completed the notification message that Standby state switches (being that network equipment B has switched to port status Standby state) to network equipment A.
Network equipment A is when receiving this notification message, the aggregation port (port 3) that aggregation port (port 9) with having completed the switching of Standby state on network equipment B is connected is defined as first by proxy port, arbitrary other aggregation port during the aggregation group corresponding to aggregation group at port 3 places transmitted is (as port one or port 2, suppose to select port one) be defined as first agent's port, port 3 during corresponding aggregation group is transmitted is updated to port one, opens port 3.Concrete, network equipment A is when receiving notification message, port status by port 3 in Port State Table is revised as Standby state, and at the interior maintenance port 1 of aggregation group 1, port 2 and port 3 (i.e. all port and ports in Forwarding state in Standby state in the interior maintenance port state table of aggregation group 1), by the port one of aggregation group 1 interior maintenance, port 2 and port 3 are updated to the aggregation group of aggregation group 1 correspondence and transmit, and the port that aggregation group is transmitted to middle record is by port one, port 2 and port 3 are updated to port one, port 2 and port one.
It should be noted that, network equipment B is when switching to Standby state by the port status of port 9 by Down state, opened port 9, now port 9 is the member of corresponding aggregation group, corresponding aggregation group does not have it in transmitting, but replace with port 7, so before the port status of port 9 is switched to Forwarding state by Standby state, network equipment B can be from port 9 transmitted traffics.Similarly, network equipment A is when switching to Standby state by the port status of port 3 by Down state, opened port 3, also be only that explanation port 9 is members of corresponding aggregation group, corresponding aggregation group does not have it in transmitting, but replace with port one, so before the port status of port 3 is switched to Forwarding state by Standby state, network equipment B can be from port 3 transmitted traffics.
Network equipment A is switching to the port status of port 3 after Standby state, further the port status of port 3 is switched to Forwarding state by Standby state, in this stage, according to member's (port one, port 2 and port 3) of aggregation group 1, refresh corresponding aggregation group and transmit (current record ports having 1, port 2 and port one), after refreshing, the aggregation group of aggregation group 1 correspondence is transmitted as port one, port 2 and port 3.The object of receiving for chip 1 is the flow of aggregation group 1, flow is carried out to hash, and the aggregation group based on this aggregation group 1 correspondence of hash result queries transmits, and the port (being assumed to be port 3) of transmitting middle correspondence in aggregation group by hash result sends to chip 2 by flow.Because now port 3 is in open mode, therefore, the first chip can, from port 3 transmitted traffics, can not cause flow to be lost.
Based on technique scheme, in the embodiment of the present invention, need to will by Forwarding state, switched to Down state by the port status of proxy port, or when being switched to Forwarding state by the port status of proxy port by Down state, to switched to Standby state phase by the port status of proxy port, the network equipment is by determining by proxy port corresponding to proxy port, and use proxy port upgrade aggregation group in transmitting by proxy port, thereby guarantee the correct forwarding of flow, avoid occurring many parts of flows, the situation of traffic loops and traffic loss.
Inventive concept based on same with said method, also provides a kind of network equipment in the embodiment of the present invention, as the first network equipment in network, as shown in Figure 3, first network equipment specifically comprises:
Determination module 11, for when receiving the notification message of the Standby state that the completes switching that second network equipment sends, the aggregation port that aggregation port with having completed the switching of Standby state on second network equipment is connected is defined as first by proxy port, and arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place first is defined as first agent's port;
Update module 12, first is updated to first agent's port by proxy port for what aggregation group was transmitted;
Sending module 13, for when receiving that object is the flow of aggregation group, transmits and forwards according to the aggregation group after upgrading.
Preferably, the port status that has completed the aggregation port of Standby state switching on second network equipment is while switching to Standby state by Forwarding state, the notification message that determination module 11 receives is that second network equipment is after receiving the handoff notification message sending when first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by first, the aggregation port being connected by proxy port with first is defined as to second by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place second is defined as second agent's port, and second during corresponding aggregation group is transmitted is updated to and sends after second agent's port by proxy port.
Preferably, the port status that has completed the aggregation port of Standby state switching on second network equipment is while switching to Standby state by Forwarding state, update module 12, also for aggregation group is transmitted first by proxy port, be updated to first agent's port after, block first by proxy port;
The notification message that determination module 11 receives is that second network equipment is after receiving the handoff notification message sending when first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by first, the aggregation port being connected by proxy port with first is defined as to second by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place second is defined as second agent's port, and second during corresponding aggregation group is transmitted is updated to second agent's port by proxy port, and obstruction second is sent after proxy port.
Preferably, the port status that has completed the aggregation port of Standby state switching on second network equipment is while switching to Standby state by Down state, update module 12, also for aggregation group is transmitted first by proxy port, be updated to first agent's port after, open first by proxy port;
Wherein, the notification message that determination module 11 receives is that second network equipment is after receiving the handoff notification message sending when first network equipment need to be switched to Standby state by the port status of proxy port by Down state by first, the aggregation port being connected by proxy port with first is defined as to second by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place second is defined as second agent's port, and second during corresponding aggregation group is transmitted is updated to second agent's port by proxy port, and opening second is sent after proxy port.
Determination module 11, while being defined as first agent's port specifically for arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place first, according to first by the BasePtr of the aggregation group at proxy port place and aggregation group number of members, inquire about local aggregation group and transmit, obtain first and transmitted by aggregation group corresponding to the aggregation group at proxy port place;
In all of the port from corresponding aggregation group is transmitted, select arbitrary except first by other aggregation port proxy port as first agent's port.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separatedly dispose.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.Disclosed is above only several specific embodiment of the present invention, and still, the present invention is not limited thereto, and the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. a Proxy Method for aggregation port, is characterized in that, comprising:
First network equipment is when receiving the notification message of the preparation Standby state that the completes switching that second network equipment sends, the aggregation port that aggregation port with having completed the switching of Standby state on described second network equipment is connected is defined as first by proxy port, and arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first is defined as first agent's port;
During described aggregation group is transmitted described first is updated to described first agent's port by proxy port, and when receiving that object is the flow of described aggregation group, according to the aggregation group after upgrading, transmits and forward.
2. the method for claim 1, it is characterized in that, the port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by forwarding Forwarding state, described notification message is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to and sends after described second agent's port by proxy port.
3. the method for claim 1, is characterized in that, the port status that has completed the aggregation port of Standby state switching on described second network equipment is that while switching to Standby state by Forwarding state, described method also comprises:
Described first network equipment in described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, block described first by proxy port;
Wherein, described notification message is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and blocking described second is sent after proxy port.
4. the method for claim 1, is characterized in that, the port status that has completed the aggregation port of Standby state switching on described second network equipment is that while switching to Standby state by fault Down state, described method also comprises:
Described first network equipment in described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, open described first by proxy port;
Wherein, described notification message is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Down state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and opening described second is sent after proxy port.
5. the method for claim 1, is characterized in that, described first network equipment arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first is defined as first agent's port, specifically comprises:
Described first network equipment, is inquired about local aggregation group and is transmitted by the base pointer BasePtr of the aggregation group at proxy port place and aggregation group number of members according to described first, obtains described first and is transmitted by aggregation group corresponding to the aggregation group at proxy port place;
In all of the port from corresponding aggregation group is transmitted, select arbitrary except described first by other aggregation port proxy port as first agent's port.
6. a network equipment, the first network equipment as in network, is characterized in that, described first network equipment specifically comprises:
Determination module, for when receiving the notification message of the preparation Standby state that the completes switching that second network equipment sends, the aggregation port that aggregation port with having completed the switching of Standby state on described second network equipment is connected is defined as first by proxy port, and arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first is defined as first agent's port;
Update module, described first is updated to described first agent's port by proxy port for what described aggregation group was transmitted;
Sending module, for when receiving that object is the flow of described aggregation group, transmits and forwards according to the aggregation group after upgrading.
7. the network equipment as claimed in claim 6, is characterized in that,
The port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by forwarding Forwarding state, the notification message that described determination module receives is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to and sends after described second agent's port by proxy port.
8. the network equipment as claimed in claim 6, it is characterized in that, the port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by Forwarding state, described update module, also for described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, block described first by proxy port;
The notification message that described determination module receives is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Forwarding state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and blocking described second is sent after proxy port.
9. the network equipment as claimed in claim 6, it is characterized in that, the port status that has completed the aggregation port of Standby state switching on described second network equipment is while switching to Standby state by fault Down state, described update module, also for described aggregation group is transmitted described first by proxy port, be updated to described first agent's port after, open described first by proxy port;
Wherein, the notification message that described determination module receives is that second network equipment is after receiving the handoff notification message sending when described first network equipment need to be switched to Standby state by the port status of proxy port by Down state by described first, to be defined as second by proxy port with the described first aggregation port being connected by proxy port, arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described second is defined as second agent's port, and described second during corresponding aggregation group is transmitted is updated to described second agent's port by proxy port, and opening described second is sent after proxy port.
10. the network equipment as claimed in claim 6, is characterized in that,
Described determination module, while being defined as first agent's port specifically for arbitrary other aggregation port in being transmitted by aggregation group corresponding to the aggregation group at proxy port place described first, according to described first by the base pointer BasePtr of the aggregation group at proxy port place and aggregation group number of members, inquire about local aggregation group and transmit, obtain described first and transmitted by aggregation group corresponding to the aggregation group at proxy port place;
In all of the port from corresponding aggregation group is transmitted, select arbitrary except described first by other aggregation port proxy port as first agent's 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 true CN104219155A (en) 2014-12-17
CN104219155B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005110A (en) * 2018-08-29 2018-12-14 新华三技术有限公司合肥分公司 Generate the method and device of polyaluminium chloride PAC
CN111049765A (en) * 2019-12-12 2020-04-21 北京东土军悦科技有限公司 Aggregation port switching method, device, chip, switch and storage medium

Citations (4)

* 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
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network

Patent Citations (4)

* 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
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005110A (en) * 2018-08-29 2018-12-14 新华三技术有限公司合肥分公司 Generate the method and device of polyaluminium chloride PAC
CN109005110B (en) * 2018-08-29 2021-05-28 新华三技术有限公司合肥分公司 Method and device for generating aggregation route
CN111049765A (en) * 2019-12-12 2020-04-21 北京东土军悦科技有限公司 Aggregation port switching method, device, chip, switch and storage medium

Also Published As

Publication number Publication date
CN104219155B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN105744579B (en) Method, switching control and the access device that terminal switches between AP
US20200367116A1 (en) Apparatus, system and method for security management
CN102347905B (en) Network equipment and forwarded information updating method
CN100466584C (en) Processing method for loop network protection
CN105553680A (en) System and method for creating virtual interfaces based on network characteristics
US9894600B1 (en) Providing adaptive network access
CN105228111A (en) resource subscription processing method and device
CN107547283B (en) Management method and device of distributed aggregation group
CN102263667A (en) Network management system and network management processing method
CN106060135B (en) A kind of method for updating edition and device
US20160344659A1 (en) Method and Device for Processing OpenFlow-based Group Table, and Group Table Configuration Unit
CN104219155A (en) Aggregate port proxy method and equipment
KR20180043041A (en) System and method for interfacing of devices using multi-protocol in internet of things
CN104170320A (en) Detection of a deviation of a performance indicator with respect to an expected range of values in a self-organizing network
CN103825839A (en) Message transmission method and equipment based on aggregated link
EP3010182A1 (en) Fault management method and apparatus
CN106997293A (en) The implementation method and device of finite state machine
US20100008262A1 (en) Signaling apparatus and signaling method
US10122540B2 (en) Device and method for managing multicast group in wireless network
CN102045206B (en) Alarm pushing method and device and system thereof
CN107547605A (en) A kind of message reading/writing method and node device based on node queue
US12093902B2 (en) Enhanced identification and management of cable network outages
CN103944823A (en) Route releasing method and device
CN118020282A (en) Network device for connecting a plurality of industrial devices
CN104038558A (en) Method and system for controlling application networking

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