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 C6792A0524; Wed, 5 May 2021 12:15:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B50540143; Wed, 5 May 2021 12:15:09 +0200 (CEST) Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by mails.dpdk.org (Postfix) with ESMTP id 21EEA40040 for ; Wed, 5 May 2021 12:15:07 +0200 (CEST) Received: by mail-io1-f52.google.com with SMTP id t3so1158396iol.5 for ; Wed, 05 May 2021 03:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=x1BF+WdXkxwvnRjJ7qq05aByBMdgMAOtFZnVbrukQdk=; b=QOp6X+AfndSU6vjg5MmD70vX+KOuYe4OpeCio1l2ms1Z+nDTsqh9jmMg9R3Cx9Ufew DmMc53kLv6gGG3oEOhZj0d4RtGZKAbReQty7SEsVC6toSiKhxC3aMKcT6IrQL6ietYA1 rUMFLVu8zyzxaaunGpA91Jhq30MyhxbDICl+aGUJvHnQvGFqpLT9KwKfag1rcAuHEtEV Ob5UUXUy89bTdL0Ys8OrFOAT7tVn2bEnRjuKk/AS05PuV0Y+ia6CylEUsc3XBYsmCkTR kNQwBSwiYOTwA4xR7Zgh1n3k2IjBW7IoUwNoToyCc6FUe2Op+YanrPXEpK/x97dwHkKb qFCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=x1BF+WdXkxwvnRjJ7qq05aByBMdgMAOtFZnVbrukQdk=; b=iOHDIlfj4g48HfVTsZBrzrw9ybM7bUfAziT5dLV8i0mBd9/d+hzExVBjf0u4tlU0a6 Et1GXOTALIYt5toTPRqALgX8WYaqIVMSzB5fO3pyyOA+hip+2LD7qvCoHJcDn3T0fJ61 JhS7WCG9c/5RBYCj1K46cghs95JH6SwZ+dqNYXgk8m62cGdBwB3knh7XBemQ7sn6Zth+ 7nH7Wi+rmFktnS/rUS1svVj0z2CKe3iDZJW3BMrT/vU/XXu/o+/p6vfVIdYSwr3OulHc 6mR1yNAZuYjtYaAZgjpTxDDfTi33glVS0fbOlD134KbLTLfA++IFqJGZx9HdOz6vA+2Q bE0Q== X-Gm-Message-State: AOAM533u6GFP5254SiRXYujQfLCroAHe6B5crR/SsOJx/6noZ+5O1M9K +bjhQuPeIiyrqEWwa3R7yhB27d1vTBHJVrvj2n4= X-Google-Smtp-Source: ABdhPJwKrnU9BPzruFew7TgU4bkavsyuk6F4HVCs5WgoZAeWqmufiEfrPG59uD5TPndKVWVXHJlDfPbv5P44DElNBps= X-Received: by 2002:a5d:9c9a:: with SMTP id p26mr8547851iop.94.1620209706449; Wed, 05 May 2021 03:15:06 -0700 (PDT) MIME-Version: 1.0 References: <8309999.7OePmkgMO5@thomas> In-Reply-To: From: Jerin Jacob Date: Wed, 5 May 2021 15:44:50 +0530 Message-ID: To: Bruce Richardson Cc: Thomas Monjalon , Harman Kalra , "kevin.laatz@intel.com" , David Marchand , "stephen@networkplumber.org" , "dev@dpdk.org" , Luca Boccassi , Jerin Jacob Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] DPDK Telemetry library enhancement X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, May 5, 2021 at 3:31 PM Bruce Richardson wrote: > > On Wed, May 05, 2021 at 03:07:02PM +0530, Jerin Jacob wrote: > > On Wed, May 5, 2021 at 2:13 PM Thomas Monjalon wr= ote: > > > > > > 05/05/2021 09:49, Harman Kalra: > > > > Hi All, > > > > > > > > We have a use case where we need to gather statistics over network.= Current implementation of telemetry library is based on Unix socket, we wo= uld like to enhance the scope of library to use network sockets. We underst= and security challenges with network sockets, to overcome them can we can t= hink of two steps: > > > > 1. By default library will be using Unix sockets, it will be user d= ecision to run library with network sockets by passing respective eal flags= . > > > > 2. We can introduce some key/password authentication mechanism to t= he library, where only authorized clients can get connected to the server. = Password can be passed by the user as eal flags, something similar to vf to= ken which is uuid based. > > > > Kindly provide us suggestions/challenges over this enhancements. > > > > > > Not sure it should be part of the telemetry lib. > > > In any case, when implementing network communication, > > > I encourage you to look at ZeroMQ. > > > > ZeroMQ is a good option for Transport to hide the underlying transport > > variants like In-process, Intra-process, TCP. > > Also, it has various different options for security backend like > > http://curvezmq.org/ > > > > Sounds reasonable - I'm in favour of any scheme that means that we don't > need to implement out own authentication or security mechanisms for this. > > > if we pick ZeroMQ for transport then it will translate to > > > > 1) Remove unix file socket from telemetry > > 2) Use ZeroMQ for local and remote messaging > > 3) Needs to make telemetry or dpdk depends on ZeroMQ library(Since > > telemetry is experimental, I hope, we can change this) > > > > Thoughts from others including telemetry maintainers > > > I'd like to keep the existing Unix socket around, as well as any extra > zeromq interface, rather than replacing one with the other. Then rather I think, the purpose of zeromq is to unify the different transport mechanisms to avoid multiple code path for different transport.IMHO, at some point in time it needs to unify. > than introducing a hard dependency on zeromq, it can be an optional one, > where support is compiled in if available. There may be monitoring > applications such as collectd, which run their own local monitoring proce= ss > and for which the local unix interface may be as good. Collectd has zeromq plugin for transport[1]. So, I think, we can meet that use case too with zeromq [1] https://collectd.org/wiki/index.php/Plugin:ZeroMQ > > /Bruce