-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about forwarding mode #102
Comments
I do not have any numbers to share here. But if you consider just the overhead of tunneling on the L4 machine, it is not that much (e.g. https://github.com/facebookincubator/katran/blob/master/katran/lib/bpf/pckt_encap.h#L41 - For #1 - with this you'll need to rely on mechanism such as ARP for routing to the servers, which has its own disadvantages. Tunneling simplifies this overall setup since it provides the L4 layer great control for routing of incoming packets to the servers. For #2 - this adds another hop to L4 in the response path, which regresses the performance in several ways. You can read more about the design considerations for Katran at https://engineering.fb.com/open-source/open-sourcing-katran-a-scalable-network-load-balancer/ |
Thanks udippant, the blog post answers a lot of my questions, including choosing XDP over DPDK. Still I think FullNAT is the best fit of our scenario. This library is a great base, I'll try to add FullNAT ability to it. |
@dotSlashLu you will loose all the benefits of DSR with full nat. Frankly speaking I think if you need such feature - go with ipvs as it is already supports it. There is no need for xdp performance. As most likely you are going to be limited by interface capacity (as l4 would see both ingress and egress trqffic) |
Hi developers. I have some experience with traditional LVS technology but just started to learn about this library, so please bear with me if my questions are not on the right track.
From the documentation I learned katran's forwarding mode is a bit like LVS' TUN mode, which needs L4 machines to wrap packets to IPIP protocol and requires the L7 have public network reachability. Will tunneling be a huge computational overhead for the L4 machines?
I think in most of deployment scenarios, L7 and L4 are just in the same local network and doesn't need IPIP to work. Why not support something like LVS's
mode?
What is the design considerations of using tunnel? Thanks.
The text was updated successfully, but these errors were encountered: