News for hackers. Stuff that matters.
Re:Loxilb: eBPF based cloud-native service load-balancer by jiggawatts on Wednesday February 22, 2023 @09:26PM (#34905935)
It talks a lot about performance, but the actual cloud load balancers such as AWS ELB or Azure Load Balancer are implemented in the software-defined network (SDN) and are accelerated in hardware.

For example in Azure, only the first two packets in a VM->LB->VM flow will traverse the LB. Subsequent packets are direct from VM-to-VM and are rewritten in the host NICs to merely appear to go via the LB address. This enables staggering throughputs that no “software in a VM” can possibly hope to match.

Personally I wish people would stop with the unnecessary middle boxes. It’s 2023 and there are cloud VMs now that can put out 200 Gbps! Anything in path of a few dozen such VMs will melt into slag.

This is especially important for Kubernetes and microservices in general that are already very chatty and have layers of reverse proxies five deep in surprisingly common configurations already.

Re:Loxilb: eBPF based cloud-native service load-balancer by betaby on Wednesday February 22, 2023 @09:55PM (#34906143)
> only the first two packets in a VM->LB->VM flow will traverse the LB. Subsequent packets are direct from VM-to-VM and are rewritten in the host NICs to merely appear to go via the LB address

Do you have more details how that's done?

Re:Loxilb: eBPF based cloud-native service load-balancer by fnordpiglet on Wednesday February 22, 2023 @10:28PM (#34906373)
Generally you can do this if the network is software defined. The boundaries between networks aren’t actually real, which means you can load balance by simply determining if the packets should be able to route then letting them route for the rest of the flow.
Re:Loxilb: eBPF based cloud-native service load-balancer by baq on Thursday February 23, 2023 @05:03AM (#34908728)
So, basically magic, just as I expected. Got it.
Re:Loxilb: eBPF based cloud-native service load-balancer by jvans on Thursday February 23, 2023 @03:18AM (#34908154)
+1 would be great for more detailed explanation or links out to reading material.

I assume there are some limitations if you actually skip the LB? How do the host NICs rewrite the LB address, does this imply there is hardware support for this kind of bypass routing?

Re:Loxilb: eBPF based cloud-native service load-balancer by dilyevsky on Wednesday February 22, 2023 @11:29PM (#34906772)
I’m not convinced it offers better cogs actually. You can do line speed on CPU with DPDK these days and even relatively beefy CPUs are probably cheaper than a specialized hardware like a xilinx card.
Re:Loxilb: eBPF based cloud-native service load-balancer by gpapilion on Thursday February 23, 2023 @02:06AM (#34907689)
I spent a lot of time thinking about this, and the conclusion I reached is while the cpu may be cheaper, it can generate revenue where the fpga cannot. So even thought the tco may seem upside down the opportunity cost of using a few cores makes up for the additional cost.

Gcp for example has the potential for ~1 k revenue per core over a system lifespan. A smart nic is probably ~1.5k, so saving 2 cores outs you in the black and has other security advantages.

Re:Loxilb: eBPF based cloud-native service load-balancer by dilyevsky on Thursday February 23, 2023 @11:52AM (#34912976)
Not sure if you mean this in purely making accounting look good sense but I’m not following - usually you get fixed $$ budget not cpu count budget. Therefore buying all cpus will actually make workload cores cheaper due to higher volume discount.
Re:Loxilb: eBPF based cloud-native service load-balancer by anandrm on Thursday February 23, 2023 @07:05AM (#34909398)
Just curious "only the first two packets in a VM->LB->VM flow will traverse the LB. Subsequent packets are direct from VM-to-VM and are rewritten in the host NICs to merely appear to go via the LB address" , how is it possible to change the Load Balancer IP(VIP) to VM IP in a session . Are you talking about DSR(Direct Server Return) here ?
Re:Loxilb: eBPF based cloud-native service load-balancer by jiggawatts on Thursday February 23, 2023 @07:46AM (#34909737)
Cloud networking is basically Magic(tm). The packet headers are a mere formality to keep legacy operating systems happy.

In typical data centres the "network" is really just a handful of Cisco boxes. In the cloud, the network extends to the FPGAs or ASICs in the servers themselves, including the hypervisors.

When a packet leaves a VM, the hypervisor host rewrites it, typically in hardware, and then when the remote hypervisor receives it, the packet is rewritten back to what the destination VM accepts.

This allows thousands of overlapping 10.0.0.0/24 subnets, and "tricks" like direct VM-to-VM traffic that appears to go via a load balancer.

The actual load balancer VMs just "set up" the flow, while instructing the hosts to take over the direct traffic in their stead.

Re:Loxilb: eBPF based cloud-native service load-balancer by anandrm on Thursday February 23, 2023 @09:11AM (#34910782)
Ok got it , something in lines of OpenFlow. Is there any documentation/links on this being used by AWS / Azure/ GCP .. I would like to read more on this.
Re:Loxilb: eBPF based cloud-native service load-balancer by bbss on Thursday February 23, 2023 @10:07AM (#34911506)
Re:Loxilb: eBPF based cloud-native service load-balancer by nijave on Thursday February 23, 2023 @04:23PM (#34916655)
Don't have time to look but if you check Gitlab (the company) infrastructure issue tracker (it's open source) they have some details on how GCP cloud networking works with quotes from GCP support staff.

I guess they're seen high amounts of out-of-order packets and there's some detailed write ups on why that happens with GCP SDN implementation.

Re:Loxilb: eBPF based cloud-native service load-balancer by nijave on Thursday February 23, 2023 @04:21PM (#34916627)
It sounds like this is supposed to be a competitor/alternative to MetalLB which you'd generally use outside a cloud environment.