CN106686657B - MLAG dual-homing access IP network link load balancing method - Google Patents

MLAG dual-homing access IP network link load balancing method Download PDF

Info

Publication number
CN106686657B
CN106686657B CN201611111471.5A CN201611111471A CN106686657B CN 106686657 B CN106686657 B CN 106686657B CN 201611111471 A CN201611111471 A CN 201611111471A CN 106686657 B CN106686657 B CN 106686657B
Authority
CN
China
Prior art keywords
converter
network
equipment
gateway
mlag
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
CN201611111471.5A
Other languages
Chinese (zh)
Other versions
CN106686657A (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.)
No32 Research Institute Of China Electronics Technology Group Corp
Original Assignee
No32 Research Institute Of China Electronics Technology Group Corp
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 No32 Research Institute Of China Electronics Technology Group Corp filed Critical No32 Research Institute Of China Electronics Technology Group Corp
Priority to CN201611111471.5A priority Critical patent/CN106686657B/en
Publication of CN106686657A publication Critical patent/CN106686657A/en
Application granted granted Critical
Publication of CN106686657B publication Critical patent/CN106686657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking

Abstract

The invention provides a link load balancing method of an MLAG dual-homing access IP network, which comprises the following two conditions: in the first case, the gateway has no abnormality and operates normally, and the method comprises the following steps: step one, starting cA three-layer routing interface on cA first converter, setting an IP address IP-A corresponding to an MAC address MAC-A, distributing cA network segment route of the IP-A to cA network side on the first converter, and forming an ECMP path to the network side; and step two, starting cA three-layer routing interface on the second converter, configuring an IP address IP-A corresponding to one MAC address MAC-B, distributing network segment routing of the IP-A to the network side on the second converter, and forming an ECMP path and the like for the network side. The invention realizes the load balance of the gateway link when the MLAG is dually accessed to the IP network by a simple mode, avoids introducing a new control protocol when the MLAG is dually accessed to the IP network, reduces the complexity of network configuration and operation and maintenance and the software development cost, and reduces the expense on the Peerlink when the MLAG is dually accessed to the IP network.

Description

MLAG dual-homing access IP network link load balancing method
Technical Field
The invention relates to a load balancing method, in particular to a load balancing method for MLAG dual-homing access IP network links.
Background
The MLAG (Multi-Chassis LAG, Multi-Chassis link aggregation) technology is a cross-device link aggregation technology, a main application scenario is a dual-homing access scenario, and the basic idea of the MLAG technology is to make two access switches perform link aggregation negotiation with an accessed device in the same state, and to the accessed device, it looks like that a link aggregation relationship is established with one device. The mechanism for realizing cross-device link aggregation can realize link aggregation among multiple devices, an MLAG is used as a logical link aggregation group, and entries at two ends of peer devices need to be kept consistent, and the entries at two ends of the MLAG need to be synchronized through Peerlink links (as shown in fig. 1).
When the MLAG double-homing is accessed to the IP network, the double-homing device becomes a demarcation point of a two-layer network and a three-layer network, namely, the double-homing device plays a role of a gateway. Because two devices are used as gateways, the two devices must display the same gateway IP to the user side and present an Active-Active mode to the access device so as to support the load balancing of the MLAG link. The existing solution is that the MLAG couples to the VRRP mechanism, and at the same time, modifies the VRRP protocol, and makes the device running the VRRP protocol work in a dual-master state, and only borrows the virtual IP and MAC mechanism of the VRRP, so that the gateway device presents the same gateway IP and MAC to the access device in an Active-Active mode, thereby implementing link load balancing (as shown in fig. 2). The solution has the defects that equipment at two ends of a peer needs to run a VRRP protocol in an MLAG dual-homing access IP network environment, and the VRRP protocol is modified, so that the software development implementation cost and the network configuration and operation and maintenance complexity are improved.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a link load balancing method for an MLAG dual-homing access IP network, which realizes the load balancing of a gateway link when the MLAG is dual-homing accessed to the IP network through a simple mode, avoids introducing a new control protocol when the MLAG is dual-homing accessed to the IP network, reduces the complexity of network configuration and operation and maintenance and software development cost, and reduces the expense on a Peerlink when the MLAG is dual-homing accessed to the IP network.
According to an aspect of the present invention, there is provided a method for link load balancing of an MLAG dual-homing IP network, which is characterized by including the following two cases:
in the first case, the gateway has no abnormality and operates normally, and the method comprises the following steps:
step A, starting cA three-layer routing interface on cA first converter, setting an IP address IP-A corresponding to cA first MAC address, distributing cA network segment route of the IP-A to cA network side on the first converter, and forming an ECMP path for the network side;
step A, starting cA three-layer routing interface on cA second converter, configuring an IP address IP-A corresponding to cA second MAC address, distributing cA network segment route of the IP-A to cA network side on the second converter, and forming an ECMP path for the network side;
step A, avoiding ARP table item conflict corresponding to the IP-A between the first converter and the second converter;
step A, the access side equipment sets an exit gateway as IP-A, when the access side equipment routes to cA first converter side through LAG hash, the first converter can respond to an ARP request from the IP-A of the network side, the response MAC address is cA first MAC address, when the access side equipment routes to cA second converter side through LAG hash, the second converter can respond to the ARP request from the IP-A of the network side, and the response MAC address is cA second MAC address;
step A, when the access side equipment communicates with the network side, sending a data message of which the destination MAC is the first MAC address or the second MAC address to a first converter or a second converter of a gateway, wherein the first converter or the second converter of the gateway equipment can carry out three-layer routing on the message on an IP layer and send the message to the network side;
step A six, when the network side communicates with the access side equipment, the message is sent to cA first converter or cA second converter of the gateway equipment through an ECMP network segment route of IP-A, and the first converter or the second converter of the gateway equipment finds cA corresponding MLAG outlet according to an ARP table item of the access side to forward the message to the access equipment;
in case two, when the gateway is in the single active state due to an abnormal condition, the method comprises the following steps:
step B, the configuration of the access side equipment and the gateway is the same as that of the access side equipment;
step B, when the MLAG link of the second converter equipment and the access side equipment is abnormal, the gateway equipment presents a single-active state to the access side equipment;
step B, when the access side equipment communicates with the network side, sending a data message of which the destination MAC is the first MAC address or the second MAC address to a first converter of the gateway, wherein the first converter of the gateway equipment still carries out three-layer routing and sends the message to the network side on an IP layer;
step B, because the MLAG link of the second converter of the gateway equipment is failed but the network segment route of the IP-A still exists and is distributed to the network side, when the network side communicates with the equipment of the access side, the message is still sent to the first converter or the second converter of the gateway equipment through the ECMP network segment route of the IP-A, after the second converter of the gateway equipment receives the IP message, the message is sent to the first converter through the MLAG-Peerlink link connected with the first converter, and the message is sent to the equipment of the access side by the first converter;
and step B, after the MLAG link of the access side equipment and the second converter is recovered, the second converter and the first converter share the communication between the access side and the network side, and the communication mechanism is the same as that described in the case.
Preferably, the MLAG avoids introducing a new control protocol when it is dually accessed to the IP network.
Compared with the prior art, the invention has the following beneficial effects: the invention realizes the load balance of the gateway link when the MLAG is dually accessed to the IP network by a simple mode, avoids introducing a new control protocol when the MLAG is dually accessed to the IP network, reduces the complexity of network configuration and operation and maintenance and the software development cost, and reduces the expense on the Peerlink when the MLAG is dually accessed to the IP network.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a schematic diagram of a conventional MLAG;
FIG. 2 is a schematic diagram of a conventional MLAG and VRRP dual-homing IP network;
FIG. 3 is a network diagram of the MLAG and statically configured gateway dual-homing IP of the present invention;
fig. 4 is a communication diagram when a gateway at one side of the present invention is in an abnormal single-active state.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
As shown in fig. 3 to fig. 4, the present invention provides a method for balancing link load of MLAG dual-homing IP network, which includes the following two cases:
in the first case, the gateway has no abnormality and operates normally, and the method comprises the following steps:
step A, starting cA three-layer routing interface on cA first converter, setting an IP address IP-A corresponding to cA first MedicA Access Control (MAC) address MAC-A, distributing cA network segment route of the IP-A to cA network side on the first converter, and forming an ECMP path to the network side;
step A, starting cA three-layer routing interface on cA second converter, configuring an IP address IP-A corresponding to cA second MAC address MAC-B, distributing cA network segment route of the IP-A to cA network side on the second converter, and forming an ECMP (Equal-Cost Multi-Path) Path to the network side;
step A, avoiding ARP table item conflict corresponding to the IP-A between the first converter and the second converter;
step A, the access side equipment sets an exit gateway as IP-A, when the access side equipment routes to cA first converter side through LAG hash, the first converter can respond to an ARP request from the IP-A of the network side, the response MAC address is cA first MAC address MAC-A, when the access side equipment routes to cA second converter side through LAG hash, the second converter can respond to the ARP request from the IP-A of the network side, and the response MAC address is cA second MAC address MAC-B;
step A, when the access side equipment communicates with the network side, sending a data message of which the destination MAC is the first MAC address MAC-A or the second MAC address MAC-B to a first converter or a second converter of the gateway, wherein the first converter or the second converter of the gateway equipment can carry out three-layer routing on an IP layer on the message (the destination MAC is the first MAC address MAC-A or the second MAC address MAC-B) to be sent to the network side;
step A six, when the network side communicates with the access side equipment, the message is sent to the first converter or the second converter of the gateway equipment through the ECMP network segment route of the IP-A, and the first converter or the second converter of the gateway equipment finds the corresponding MLAG outlet according to the ARP (Address resolution protocol) table item of the access side and forwards the message to the access equipment.
In case two, when the gateway is in the single active state due to an abnormal condition, the method comprises the following steps:
step B, the configuration of the access side equipment and the gateway is the same as that of the access side equipment;
step B, when the MLAG link of the second converter equipment and the access side equipment is abnormal, the gateway equipment presents a single-active state to the access side equipment (only the first converter works);
step B, when the access side equipment communicates with the network side, sending a data message of which the destination MAC is the first MAC address MAC-A or the second MAC address MAC-B to the first converter of the gateway, wherein the first converter of the gateway equipment still carries out three-layer routing on an IP layer on the message (the destination MAC is the MAC-A or the MAC-B) and sends the message to the network side;
step B, because the MLAG link of the second converter of the gateway device fails but the network segment route of the IP-A still exists and is distributed to the network side, when the network side communicates with the access side device, the message is still sent to the first converter or the second converter of the gateway device through the ECMP (Equal-Cost Multi-Path) network segment route of the IP-A, after the second converter of the gateway device receives the IP message, the message is sent to the first converter through the MLAG-Peerlink link connected with the first converter, and then the message is sent to the access side device through the first converter;
and step B, after the MLAG link of the access side equipment and the second converter is recovered, the second converter and the first converter share the communication between the access side and the network side, and the communication mechanism is the same as that described in the case.
When the MLAG is dually accessed to the IP network, a new control protocol is avoided from being introduced, so that the complexity of network configuration and operation and maintenance and the software development cost are reduced.
In summary, the invention realizes gateway link load balancing when the MLAG is dually accessed to the IP network in a simple manner, avoids introducing a new control protocol when the MLAG is dually accessed to the IP network, reduces network configuration and operation and maintenance complexity and software development cost, and reduces the overhead on the Peerlink link when the MLAG is dually accessed to the IP network.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention.

Claims (2)

1. An MLAG dual-homing access IP network link load balancing method is characterized by comprising the following two conditions:
in the first case, the gateway has no abnormality and operates normally, and the method comprises the following steps:
step A, starting cA three-layer routing interface on cA first converter, setting an IP address IP-A corresponding to cA first MAC address, distributing cA network segment route of the IP-A to cA network side on the first converter, and forming an ECMP path for the network side;
step A, starting cA three-layer routing interface on cA second converter, configuring an IP address IP-A corresponding to cA second MAC address, distributing cA network segment route of the IP-A to cA network side on the second converter, and forming an ECMP path for the network side;
step A, avoiding ARP table item conflict corresponding to the IP-A between the first converter and the second converter;
step A, the access side equipment sets an exit gateway as IP-A, when the access side equipment routes to cA first converter side through LAG hash, the first converter can respond to an ARP request from the IP-A of the network side, the response MAC address is cA first MAC address, when the access side equipment routes to cA second converter side through LAG hash, the second converter can respond to the ARP request from the IP-A of the network side, and the response MAC address is cA second MAC address;
step A, when the access side equipment communicates with the network side, sending a data message of which the destination MAC is the first MAC address or the second MAC address to a first converter or a second converter of a gateway, wherein the first converter or the second converter of the gateway equipment can carry out three-layer routing on the message on an IP layer and send the message to the network side;
step A six, when the network side communicates with the access side equipment, the message is sent to cA first converter or cA second converter of the gateway equipment through an ECMP network segment route of IP-A, and the first converter or the second converter of the gateway equipment finds cA corresponding MLAG outlet according to an ARP table item of the access side to forward the message to the access equipment;
in case two, when the gateway is in the single active state due to an abnormal condition, the method comprises the following steps:
step B, the configuration of the access side equipment and the gateway is the same as that of the access side equipment;
step B, when the MLAG link of the second converter equipment and the access side equipment is abnormal, the gateway equipment presents a single-active state to the access side equipment;
step B, when the access side equipment communicates with the network side, sending a data message of which the destination MAC is the first MAC address or the second MAC address to a first converter of the gateway, wherein the first converter of the gateway equipment still carries out three-layer routing and sends the message to the network side on an IP layer;
step B, because the MLAG link of the second converter of the gateway equipment is failed but the network segment route of the IP-A still exists and is distributed to the network side, when the network side communicates with the equipment of the access side, the message is still sent to the first converter or the second converter of the gateway equipment through the ECMP network segment route of the IP-A, after the second converter of the gateway equipment receives the IP message, the message is sent to the first converter through the MLAG-Peerlink link connected with the first converter, and the message is sent to the equipment of the access side by the first converter;
and step B, after the MLAG link of the access side equipment and the second converter is recovered, the second converter and the first converter share the communication between the access side and the network side, and the communication mechanism is the same as that described in the case.
2. The method for link load balancing in the MLAG dual-homing IP network as claimed in claim 1, wherein the MLAG dual-homing access to the IP network avoids introducing a new control protocol.
CN201611111471.5A 2016-12-06 2016-12-06 MLAG dual-homing access IP network link load balancing method Active CN106686657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611111471.5A CN106686657B (en) 2016-12-06 2016-12-06 MLAG dual-homing access IP network link load balancing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611111471.5A CN106686657B (en) 2016-12-06 2016-12-06 MLAG dual-homing access IP network link load balancing method

Publications (2)

Publication Number Publication Date
CN106686657A CN106686657A (en) 2017-05-17
CN106686657B true CN106686657B (en) 2020-04-24

Family

ID=58867747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611111471.5A Active CN106686657B (en) 2016-12-06 2016-12-06 MLAG dual-homing access IP network link load balancing method

Country Status (1)

Country Link
CN (1) CN106686657B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167693B (en) * 2018-10-12 2022-03-18 锐捷网络股份有限公司 Isolation configuration method and device based on cross-chassis link aggregation group (MLAG)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140204760A1 (en) * 2013-01-22 2014-07-24 Brocade Communications Systems, Inc. Optimizing traffic flows via mac synchronization when using server virtualization with dynamic routing
US10721206B2 (en) * 2015-02-27 2020-07-21 Arista Networks, Inc. System and method of persistent address resolution synchronization
CN105049373B (en) * 2015-06-30 2018-04-10 盛科网络(苏州)有限公司 MLAG switch protecting methods based on APS

Also Published As

Publication number Publication date
CN106686657A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
US11068362B2 (en) High-availability cluster architecture and protocol
US7505401B2 (en) Method, apparatus and program storage device for providing mutual failover and load-balancing between interfaces in a network
US9654300B2 (en) N-way virtual port channels using dynamic addressing and modified routing
US11398956B2 (en) Multi-Edge EtherChannel (MEEC) creation and management
US9503366B2 (en) Method and apparatus for SVE redundancy
CN111865779B (en) Route synchronization method and cross-device link aggregation group
US20130242718A1 (en) Method and apparatus providing network redundancy and high availability to remote network nodes
US11228527B2 (en) Load balancing between edge systems in a high availability edge system pair
JP5024195B2 (en) Load balancing server, network load balancing method, and congestion avoidance method
CN104506513B (en) Fire wall flow table backup method, fire wall and firewall system
CN105745883B (en) Forwarding table synchronous method, the network equipment and system
WO2021227863A1 (en) Disaster recovery method and apparatus for hybrid cloud private line access network
CN109743197A (en) A kind of firewall deployment system and method based on priority configuration
CN102333027A (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
CN101827039A (en) Method and equipment for load sharing
CN108259302B (en) Method and device for realizing centralized gateway networking
CN102651711B (en) A kind of methods, devices and systems set up and use the floating network segment
CN106686657B (en) MLAG dual-homing access IP network link load balancing method
CN103684965B (en) The switching equipment and message forwarding method configured based on virtual unit
CN104618148A (en) Firewall device and backup method thereof
WO2015184730A1 (en) Primary and alternate routing equipment, and backup, switching method and routing system therebetween
KR101103742B1 (en) A vrrp based gateway system preventing automatic fail-back and its method
KR102114968B1 (en) System for direct connection between clouds
KR101103743B1 (en) A gateway system allocating a virtual ip to routers using a reference ip and its virtual ip allocation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant