From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6B5E2A0507 for ; Mon, 4 Apr 2022 15:18:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F16C54281A; Mon, 4 Apr 2022 15:18:24 +0200 (CEST) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by mails.dpdk.org (Postfix) with ESMTP id 1D5624068C for ; Mon, 4 Apr 2022 15:18:24 +0200 (CEST) Received: by mail-qt1-f178.google.com with SMTP id v2so7631608qtc.5 for ; Mon, 04 Apr 2022 06:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NzPHgPsVql0aLe5nHEyAAi5dHvXr/8z6iQyoKwUwkAE=; b=UhsdTNPfASnzuUcKxn6JFNuNGAkLlMoLcxXWAcys7kSpeC26AOgrOyyqGV+S61uAUx JurdzK/0Vxvqy09uYMd1xQS88gQqPAyxYvMAgs6tdpHS4mlI5ha3G0qDxjHkMzWsJN/S bbflprle2I4uv+HJk70OtuQHpe9sTBxk1d//Z8sOwRjihkSOVHEhxbxv4SnRrJU33rzb PmAR+RIFHy+Uy8hzg/0FZNIdKt9NM1Esy7KXtFpAmmShMvo6V+iMSXFD/7NgZMR2IsBn o4/n/K0uFBkdk1Pq+5PYKQE9AlcHDZRTCOZJRE8pvHen/0x6xrAPg54wRO4wliPIa/zb 46hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NzPHgPsVql0aLe5nHEyAAi5dHvXr/8z6iQyoKwUwkAE=; b=NZagSEzP2WOO6Uo2wxRmKHQSVyahERyzw8tcleV0d3lQoKBxwpx+B2dt6rDwBpK+vD qQR0nfkAfpVT3YOYNTzPZsLI9oLx91iJXZ4x7a2+BIC1yuYS88FHmxOEwOVNIIvPaAUJ m4CdMyPOoN+Izz0oSSNT+rMZSAIef+I4HiuGutxBFczjzsc8WbhssdbWGWEBDbW/3/tn G2x0p27xExfdqU5zyAU8mev8/hhV1hguCnVWndxE4wDeP+ZsKZSAoGz6cW/HU/BDdXhU LsRzxfPtTZ9lxRy1DMSyP0Meh3nDkS9rZT0TgalUBmc2KTYp4BKRV9PQKjwYi0OxQOUC 3CVw== X-Gm-Message-State: AOAM532l0x3oI8UAcNuS4F2HolvEej5WDuGw4iYV/LTWV2iLg+5OinZc EMtJYxCQpkLvUnVPzG9Hv5ph0G9fW2CDlNB7fGI= X-Google-Smtp-Source: ABdhPJx+rKf4iiVfjZlL2sujnjNE1oqPEFj4rZvR05nDpbuRcdYdyKNv2hKK0tW4Aj+nVAqjLw/2YSfnRBL1wuPj8hg= X-Received: by 2002:a05:622a:1495:b0:2e2:2f10:5094 with SMTP id t21-20020a05622a149500b002e22f105094mr17447761qtx.628.1649078303312; Mon, 04 Apr 2022 06:18:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Victor Detoni Date: Mon, 4 Apr 2022 10:18:10 -0300 Message-ID: Subject: Re: How to announce VIP with BGP for DPDK application? To: Linhua Tang Cc: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000079cc7b05dbd3f649" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --00000000000079cc7b05dbd3f649 Content-Type: text/plain; charset="UTF-8" Hi, DPVS seems like a very nice project to work with. On Mon, Apr 4, 2022 at 10:12 AM Linhua Tang wrote: > Hi Victor, > > Thanks very much for your response. > > Do you mean set next-hop on BGP with Quagga or similar applications > through other NIC (not DPDK managed)? > > I looked at DPVS > , 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? > > Thanks. > > Best wishes, > Linhua Tang > > > On Mon, Apr 4, 2022 at 2:00 PM Victor Detoni > wrote: > >> Hi Linhua, >> >> First of all, you need to bind an IP address on NIC that DPDK manages. >> You can look at https://github.com/victordetoni/dpdk-l3fwd-acl 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. >> >> 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. >> >> On Mon, Apr 4, 2022 at 7:29 AM Linhua Tang >> wrote: >> >>> Hi everyone, >>> >>> I'm new to DPDK, I have a question on how to announce VIP through BGP >>> for my LB based on DPDK. >>> >>> The design looks like this: >>> >>> - I have multiple hosts (virtual machines or physical machines), >>> every host advertising the same VIP, 10.0.0.10 for example. >>> - Each LB host has two NICs, one for DPDK, one for admin purposes. >>> - LB forward the packets to backend servers based on VIP >>> configuration >>> >>> >>> 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. >>> >>> Looking forward to getting advice from you, or pointing me to any >>> references. >>> >>> Thanks very much. >>> >>> Best wishes, >>> James >>> >> --00000000000079cc7b05dbd3f649 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

DPVS seems like a very nice project= to work with.

On Mon, Apr 4, 2022 at 10:12 AM Linhua Tang <linhua.tang.mr@gmail.com> wrote= :
Hi=C2=A0Victor,

Thanks very much for your response.

Do you mean set next-hop on BGP with Quagga or simi= lar applications through other NIC (not DPDK managed)?

=
I looked at DPVS, which uses KNI to redirect traf= fic 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>
Thanks.

Best wishes,
= Linhua Tang


On Mon, Apr 4, 2022 at 2:00 PM Victor Deton= i <victordet= oni@gmail.com> wrote:
Hi=C2=A0Linhua,

First of a= ll, you need to bind an IP address on NIC that DPDK manages. You can look a= t=C2=A0https://github.com/victordetoni/dpdk-l3fwd-acl this project an= d 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.

= Maybe it's not clear yet, but dpdk is a framework that allows you to cr= eate your own network apps. Search on google bgp projects that supports bgp= , quagga etc.

On Mon, Apr 4, 2022 at 7:29 AM Linhua Tang <linhua.tang.mr@gmail= .com> wrote:
Hi everyone,

I'm new to DPDK, I= have a question on how to announce VIP through BGP for my LB based on DPDK= .=C2=A0

The design looks like this:
    =
  • I have multiple hosts (virtual machines=C2=A0or physical machines), eve= ry host advertising the=C2=A0same VIP, 10.0.0.10 for example.
  • Each = LB host has two NICs, one for DPDK, one for admin purposes.
  • LB forw= ard the packets to backend servers based on VIP configuration

Normally, I use Bird or Quagga for BGP advertising, b= ut 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.

Looking forward to getting advice from you, or poin= ting me to any references.

Thanks very much.
=

Best wishes,
James
--00000000000079cc7b05dbd3f649--