On Thu, Jun 16, 2022 at 03:44:09PM +0530, manish.mishra wrote: > > On 16/06/22 1:46 pm, Daniel P. Berrangé wrote: > > On Wed, Jun 15, 2022 at 08:14:26PM +0100, Dr. David Alan Gilbert wrote: > > > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > > > On Fri, Jun 10, 2022 at 05:58:31PM +0530, manish.mishra wrote: > > > > > On 09/06/22 9:17 pm, Daniel P. Berrangé wrote: > > > > > > On Thu, Jun 09, 2022 at 07:33:01AM +0000, Het Gala wrote: > > > > > > > As of now, the multi-FD feature supports connection over the > > > > > > > default network > > > > > > > only. This Patchset series is a Qemu side implementation of > > > > > > > providing multiple > > > > > > > interfaces support for multi-FD. This enables us to fully utilize > > > > > > > dedicated or > > > > > > > multiple NICs in case bonding of NICs is not possible. > > > > > > > > > > > > > > > > > > > > > Introduction > > > > > > > ------------- > > > > > > > Multi-FD Qemu implementation currently supports connection only > > > > > > > on the default > > > > > > > network. This forbids us from advantages like: > > > > > > > - Separating VM live migration traffic from the default network. > > > > > Hi Daniel, > > > > > > > > > > I totally understand your concern around this approach increasing > > > > > compexity inside qemu, > > > > > > > > > > when similar things can be done with NIC teaming. But we thought this > > > > > approach provides > > > > > > > > > > much more flexibility to user in few cases like. > > > > > > > > > > 1. We checked our customer data, almost all of the host had multiple > > > > > NIC, but LACP support > > > > > > > > > > in their setups was very rare. So for those cases this approach > > > > > can help in utilise multiple > > > > > > > > > > NICs as teaming is not possible there. > > > > AFAIK, LACP is not required in order to do link aggregation with Linux. > > > > Traditional Linux bonding has no special NIC hardware or switch > > > > requirements, > > > > so LACP is merely a "nice to have" in order to simplify some aspects. > > > > > > > > IOW, migration with traffic spread across multiple NICs is already > > > > possible AFAICT. > > > Are we sure that works with multifd? I've seen a lot of bonding NIC > > > setups which spread based on a hash of source/destination IP and port > > > numbers; given that we use the same dest port and IP at the moment what > > > happens in reality? That hashing can be quite delicate for high > > > bandwidth single streams. > > The simplest Linux bonding mode does per-packet round-robin across > > NICs, so traffic from the collection of multifd connections should > > fill up all the NICs in the bond. There are of course other modes > > which may be sub-optimal for the reasons you describe. Which mode > > to pick depends on the type of service traffic patterns you're > > aiming to balance. > > My understanding on networking is not good enough so apologies in advance if > something > does not make sense. As per my understanding it is easy to do load balancing > on sender > side because we have full control where to send packet but complicated on > receive side > if we do not have LACP like support. I see there are some teaming technique > which does > load balancing of incoming traffic by possibly sending different slaves mac > address on arp > requests but that does not work for our use case and may require a > complicated setup > for proper usage. Our use case can be something like this e.g. both source > and destination > has 2-2 NICs of 10Gbps each and we want to get a throughput of 20Gbps for > live migration.
I believe you are right. The Linux bonding will give us full 20 Gpbs throughput on the transmit side, without any hardware dependancies. On the receive side, however, there is a dependancy on the network switch to be able to balance the traffic it forwards to the target. This is fairly common in switches, but the typical policies based on hashing the MAC/IP addr will not be sufficient in this case. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|