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 3F35BA0509 for ; Wed, 6 Apr 2022 09:17:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B8E7540E2D; Wed, 6 Apr 2022 09:17:24 +0200 (CEST) Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by mails.dpdk.org (Postfix) with ESMTP id BF0C54068C for ; Mon, 4 Apr 2022 15:12:33 +0200 (CEST) Received: by mail-oi1-f172.google.com with SMTP id k10so10065129oia.0 for ; Mon, 04 Apr 2022 06:12:33 -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=4dYeWNmIQC03K70v3guB3iKAkTMBB0QRNNIdHFJ0sew=; b=kGJEaM+287hH5BvT2DWjxB/Y3JGjhDe1RFR0+owZvlMESUNOY+6ShkFl3e3XpCfyLz 2u76bsKaLDjNdnJFHc4kI80rjlCIzsYAI6g8kZNFHMOoNPsk7dGUohKeimISSYQ4n7Fs eHfKESAk0ID2ldpWv0M99X2HasA3MHJp39TsI+jvcy9G6TxZ8OpqP8P9HoeKeylMFEFh vVMoPeC6GEsXfNWQntO1iyJDOGoMS6W97hmQdgvrlP0TPEerLxXwYsQlg0vBUwKTD4LG BmgjVu4Mcik4WH9pwpLGtiItDX89L9mtJiNyghDL/VEG2yQsXuEuNDQtf0b/PrTju+HT pcjw== 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=4dYeWNmIQC03K70v3guB3iKAkTMBB0QRNNIdHFJ0sew=; b=cO0+jVVz7/r1rjCnN2CrA5Ye7bOH2FrGx0u3/J4cPq6Q9wKIaGhqq0UBVB+33zNXCB T5KlnG0wCzn/Ylh7oSFPjr/1jZ2zMam/TEnbD8hSlIWDGI6UyYF8k8UTqDIntkvr0cNZ xIjA2Mmxwuw1x061W93E9UWW2Vi6TuesbYFK9ZzugTBa7s/nSEvzuiLW4ymdCERSyDhf OE3k/mQ9v7psfOLnLYmgy9X4uwr3RvAgdZO95Lie/F7y5Y/OPrrh03Om1jS9zrY5JiTe 5eAI3yJXYP6CWzBCV9KZmhnTYyGH8TkXdpWvtX+zUiKt51up3sxjqR8mtqD1OqTrg5i4 X/VQ== X-Gm-Message-State: AOAM530o4YdtDRuQx4+pwUYlt1yQL3NcDL25KsoUEzQyIh8vYzprBtrN e+8KXs9SN3y7NiCywDb22OPlM7LgSeBL9T8Ahoz3NzuvZw8= X-Google-Smtp-Source: ABdhPJz4Oq0EB/Q9oObBpk+EwEqrgoeuakEd1ryZxpvH7MvgFSdmIVqU9BqAuH7hMY20EO/6142pxDqT4H183W0WKe4= X-Received: by 2002:a05:6808:2218:b0:2d9:c3f2:4042 with SMTP id bd24-20020a056808221800b002d9c3f24042mr9327367oib.270.1649077952774; Mon, 04 Apr 2022 06:12:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linhua Tang Date: Mon, 4 Apr 2022 14:12:22 +0100 Message-ID: Subject: Re: How to announce VIP with BGP for DPDK application? To: Victor Detoni Cc: users@dpdk.org Content-Type: multipart/alternative; boundary="00000000000095050b05dbd3e12c" X-Mailman-Approved-At: Wed, 06 Apr 2022 09:17:23 +0200 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 --00000000000095050b05dbd3e12c Content-Type: text/plain; charset="UTF-8" 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 >> > --00000000000095050b05dbd3e12c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Victor,

Thanks very much for yo= ur response.

Do you mean set next-hop on BGP with = Quagga or similar applications through other NIC (not DPDK managed)?
<= div>
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 be= tter solution or implement ARP in the DPDK application directly?
=
Thanks.

Best wishes,
Linh= ua Tang


On Mon, Apr 4, 2022 at 2:00 PM Victor Detoni = <victordetoni@gmail.com>= ; wrote:
Hi=C2=A0Linhua,

First of all, you need to bind= an IP address on NIC that DPDK manages. You can look at=C2=A0https://git= hub.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 c= lear yet, but dpdk is a framework that allows you to create your own networ= k apps. Search on google bgp projects that supports bgp, quagga etc.
<= /div>
O= n Mon, Apr 4, 2022 at 7:29 AM Linhua Tang <linhua.tang.mr@gmail.com> wrote:
H= i everyone,

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

=
The design looks like this:
  • I have multiple ho= sts (virtual machines=C2=A0or physical machines), every host advertising th= e=C2=A0same 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 bac= kend servers based on VIP configuration

= Normally, I use Bird or Quagga for BGP advertising, but I don't know ho= w to make BGP work with DPDK applications. Do I need to implement BGP withi= n the DPDK application? It looks overkilling to me.

Looking forward to getting advice from you, or pointing me to any referen= ces.

Thanks very much.

Be= st wishes,
James
--00000000000095050b05dbd3e12c--