<div dir="ltr">Hi Victor,<div><br></div><div>Thanks very much for your response.</div><div><br></div><div>Do you mean set next-hop on BGP with Quagga or similar applications through other NIC (not DPDK managed)?</div><div><br></div><div>I looked at <a href="https://github.com/iqiyi/dpvs/blob/master/doc/tutorial.md#kni">DPVS</a>, which uses KNI to redirect traffic to Kernel so we can use Quagga or advertise VIP. Do you think it's a better solution or implement ARP in the DPDK application directly?</div><div><br></div><div>Thanks.</div><div><br></div><div>Best wishes,</div><div>Linhua Tang</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 4, 2022 at 2:00 PM Victor Detoni <<a href="mailto:victordetoni@gmail.com">victordetoni@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Linhua,<div><br></div><div>First of all, you need to bind an IP address on NIC that DPDK manages. You can look at <a href="https://github.com/victordetoni/dpdk-l3fwd-acl" target="_blank">https://github.com/victordetoni/dpdk-l3fwd-acl</a> this project and copy arp (line 644) and ip stack (line 2024). After that, you can set as next-hop on bgp the ip address that dpdk manages.</div><div><br></div><div>Maybe it's not clear yet, but dpdk is a framework that allows you to create your own network apps. Search on google bgp projects that supports bgp, quagga etc.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 4, 2022 at 7:29 AM Linhua Tang <<a href="mailto:linhua.tang.mr@gmail.com" target="_blank">linhua.tang.mr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>I'm new to DPDK, I have a question on how to announce VIP through BGP for my LB based on DPDK. </div><div><br></div><div>The design looks like this:</div><div><ul><li>I have multiple hosts (virtual machines or physical machines), every host advertising the same VIP, 10.0.0.10 for example.</li><li>Each LB host has two NICs, one for DPDK, one for admin purposes.</li><li>LB forward the packets to backend servers based on VIP configuration</li></ul><div><br></div></div><div>Normally, I use Bird or Quagga for BGP advertising, but I don't know how to make BGP work with DPDK applications. Do I need to implement BGP within the DPDK application? It looks overkilling to me.</div><div><br></div><div>Looking forward to getting advice from you, or pointing me to any references.</div><div><br></div><div>Thanks very much.</div><div><br></div><div>Best wishes,</div><div>James</div></div>
</blockquote></div>
</blockquote></div>