Port bonding forms one logical port by bonding multiple physical network ports. Port bonding can improve the reliability of physical network ports and increase the total bandwidth of physical network ports.
When creating a VDS, ACOS can associate one or more network ports of a physical host with the VDS. When a VDS is associated with multiple network ports, you can set the port bonding mode.
When editing a VDS, if the VDS is associated with multiple physical network ports on the host that are not in the quarantined state and the port bonding mode is active-backup, you can specify a normal port as the active port, and the original active port automatically switches to a backup port.
The supported port bonding types and modes vary depending on the network types included in the virtual distributed switch:
OVS Bond supports the following bonding modes:
active-backup
In this mode, only one network port is active and sends and receives all traffic. Other network ports serve as backup ports. If the active port fails, the system immediately switches to a backup port.
balance-slb
The virtual distributed switch calculates hash values based on the source MAC address and VLAN tag of packets and selects different physical network ports to forward different traffic based on different hash values, implementing load balancing of network ports. You can configure the rebalance interval parameter to set the network port load balancing period.
This mode has no configuration requirements for the physical switch connected to the physical network ports.
balance-tcp
The VDS uses LACP (Link Aggregation Control Protocol, defined by 802.3ad) and can use multiple network ports for traffic forwarding at the same time. If one network port fails, other network ports automatically take over from the failed port and share the traffic. This mode can fully utilize network bandwidth, implement load balancing, and ensure network transmission reliability.
In this mode, the VDS supports networking with a single physical switch, stacked switches, and M-LAG switches, but LACP dynamic link aggregation must be enabled on the physical switches.
Linux Bond supports the following bonding modes:
active-backup
In this mode, only one network port is active and sends and receives all traffic. Other network ports serve as backup ports. If the active port fails, the system immediately switches to a backup port.
balance-xor
The virtual distributed switch calculates hash values based on the source MAC address and destination MAC address of packets and selects different physical network ports to forward different traffic based on different hash values, implementing load balancing of network ports.
In this mode, static EtherChannel must be configured on the physical switch connected to the VDS. Otherwise, MAC address flapping may occur.
802.3ad
The VDS uses LACP (Link Aggregation Control Protocol, defined by 802.3ad) and can use multiple network ports for traffic forwarding at the same time. If one network port fails, other network ports automatically take over from the failed port and share the traffic. This mode can fully utilize network bandwidth, implement load balancing, and ensure network transmission reliability.
In this mode, the VDS supports networking with a single physical switch, stacked switches, and M-LAG switches, but LACP dynamic link aggregation must be enabled on the physical switches.