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 8063CA0506 for ; Mon, 4 Apr 2022 15:00:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06C074281A; Mon, 4 Apr 2022 15:00:43 +0200 (CEST) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mails.dpdk.org (Postfix) with ESMTP id 133AF4068C for ; Mon, 4 Apr 2022 15:00:42 +0200 (CEST) Received: by mail-qk1-f171.google.com with SMTP id d142so7512125qkc.4 for ; Mon, 04 Apr 2022 06:00:42 -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=WcVkI9KgF0akripC0YBMNNy7hgKyW0InKbVyIqOqE/g=; b=UXTXPYP6qEKBhOEddv7ANko87lOq3narbLBHCDSHFFd9NOBwLCj0KerfULKQFBgo+q c1gfd8tIFuTzdmnV0kyS6hZXTJMv8539rEUQ14xhkCMZOJcT/VVPOC8rQRB0S90HzXAE /etr7sOt55fKQH2obUWakxZiSJMEJm6//lsQTTllQjGt9nKIKttqVP70GTKmzw/7jx5s 8YgNQ5HcrSGoIn5zm0PAO4dmF0kH2UocxYHtKhIvIPfHT8B2uyx8FHNYl3HFMGA1+Tos yQiwHxontM4BLjhBfzknMZMRXKaA7ucUVfo86r+9GrXrX/1uf7ZCNtG4gpMsr730rVau XLWA== 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=WcVkI9KgF0akripC0YBMNNy7hgKyW0InKbVyIqOqE/g=; b=Q+trpc6uLuMvzxzzWODB/26R4O9nmBUkaZGTkpCjEaDZEPZLyjnLiDHxFmLpVuyXIY Y+tpCy7lCQeGoW7ziXC2Bu1PC3ru2PmHxtmyPnPA41ukvv+kzThv+7625NQW4auRqWxb zDTaWplvTfxIeKH+RCTN6vZhvnD008v/4Aji3VaWdaNJZgcbhkifc7nbOkXcdJf9BXrA QlzXSDdIaxH6MEhVfZpbCyzXkzqiYPomAQJkfqVbQrKH3gKgvGwKrEjgVoFe9LvmN+Sg XkGPVuBFt5CNOq3RoUWMsE0YCARi7bL2PCDymMkhFcMaa4YVOjSLAi/pWSIiTk1raGN7 8//A== X-Gm-Message-State: AOAM531ShrvArvRvUszmEB3f4V1mpbyUZeIKu0foeiuzs2tCQK+oW9HX 18OdeVG2BLyMAhCZdSZuCidxzeZNjmnabj+3Q8kXB4S8nxU= X-Google-Smtp-Source: ABdhPJwkSpI4yVXdlete8pBqMhnu0VmvOyDC71TecT2wgp6EU3VIEZYm56kdKvBBw2UnF62bJuS6oc0CKsUKCAcDeaY= X-Received: by 2002:ae9:e513:0:b0:67d:2bc6:9620 with SMTP id w19-20020ae9e513000000b0067d2bc69620mr13755234qkf.453.1649077240905; Mon, 04 Apr 2022 06:00:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Victor Detoni Date: Mon, 4 Apr 2022 10:00:29 -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="00000000000026c3ed05dbd3b7fd" 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 --00000000000026c3ed05dbd3b7fd Content-Type: text/plain; charset="UTF-8" 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 > --00000000000026c3ed05dbd3b7fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Linhua,

First of all, you need = to bind an IP address on NIC that DPDK manages. You can look at=C2=A0https://github.com/vic= tordetoni/dpdk-l3fwd-acl this project and copy arp (line 644) and ip st= ack (line 2024). After that, you can set as next-hop on bgp the ip address = that dpdk manages.

Maybe it's not clear yet, b= ut dpdk is a framework that allows you to create your own network apps. Sea= rch 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 l= ike this:
  • I have multiple hosts (virtual machines=C2=A0or= physical machines), every host advertising the=C2=A0same VIP, 10.0.0.10 fo= r example.
  • Each LB host has two NICs, one for DPDK, one for admin p= urposes.
  • LB forward the packets to backend servers based on VIP con= figuration

Normally, I use Bird or Quagg= a 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 lo= oks overkilling to me.

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

Thanks very much.

Best wishes,
James
--00000000000026c3ed05dbd3b7fd--