From owner-freebsd-net@freebsd.org Tue Aug 18 22:18:18 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC4773A9435 for ; Tue, 18 Aug 2020 22:18:18 +0000 (UTC) (envelope-from zec@fer.hr) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140089.outbound.protection.outlook.com [40.107.14.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BWQKP5mvVz3WyG for ; Tue, 18 Aug 2020 22:18:17 +0000 (UTC) (envelope-from zec@fer.hr) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c3y1i3uZjQsDECXE5s0b5VNEdYRqGmzHf/IEVKYcMAayrC0HTlESSq7nXlyFh3I5m9vryl2J2d/O9xWW6nkKI89gwqqqgMYYoh/R8BPF9YA7+zfmIRn3cft7ETFcB6TSk9S2IphP/2iZ0L9gNFtduZAixi+98xYCGoIvhuztkUInwmvvdg0tuF+wMSDDeXkGMGPwbxlOAE+0wVFg5Q6uxjzlzm+fQzY2b95S9SmpKZtNsuFC93zz/TO9pcnNGMATgUguODlhncYla8haIpAVWXQ0xjYJQ+5ZMi0GrSQ4y99HpdcKYDLioWXFY0tGy1HKDhw2SzSX+QBSpMHkg/quaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ObwOIMPAvc6+tDSmvGOS34Jc/Js1hf31KhAJ+cPpQX0=; b=nsZiEuLl8uvT800+ROA03+9fNs6zivTVzF7gKI6C6kjk3nPArLyAKfbmctg8x4cqJbfGnOVwPSLm11kADNDTuaqVKC+S/Zv24pRZoZaq/5feTlhlSZBHi5/bko23UledJUizCDoLOypCgMbfXkV8pPZ1n1bUUhl2kdTIHyDtP7GgPNM2Zzmr6b5MBP+7qARPNNmhzPSp/NUyxB0t2fM0h2nOZwAYw/wtlg3EiBXuL69O3P4xp3sZ9bjPUucK4JKo2pT5dv+xB40IWQRTJKZHHl6h9CkJD+P/OTJOg/ZzI0KiSXa4AxwSi+4DxVtcV1c7CgVOUtlYaWzxD88pSF517Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fer.hr; dmarc=pass action=none header.from=fer.hr; dkim=pass header.d=fer.hr; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferhr.onmicrosoft.com; s=selector2-ferhr-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ObwOIMPAvc6+tDSmvGOS34Jc/Js1hf31KhAJ+cPpQX0=; b=TI54qoW4dR6R+enQzuGRILUOnJkP8OdXqyyhCVLTnnA8Vvov998zAN48Pp0lVwQKAj0y0VhmlHWocPHh0ECx0cYA5uz2PZvlJYmzLDhNT3zPk8OqpKcXB7pMzTJ92h9GqaHl//jktq3BmG475yWHr8BSWkaLK2Fvoj8ZzP/SR34= Received: from VE1PR08MB4783.eurprd08.prod.outlook.com (2603:10a6:802:a9::16) by VI1PR08MB4208.eurprd08.prod.outlook.com (2603:10a6:803:ec::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.18; Tue, 18 Aug 2020 22:18:14 +0000 Received: from VE1PR08MB4783.eurprd08.prod.outlook.com ([fe80::f8f2:29a2:4263:4647]) by VE1PR08MB4783.eurprd08.prod.outlook.com ([fe80::f8f2:29a2:4263:4647%6]) with mapi id 15.20.3283.026; Tue, 18 Aug 2020 22:18:14 +0000 Date: Wed, 19 Aug 2020 00:18:54 +0200 From: Marko Zec To: Ryan Stone Cc: freebsd-net Subject: Re: Is anybody using ng_pipe? Message-ID: <20200819001854.3c6887fa@x23> In-Reply-To: References: <20200818205725.2e03c8cb@x23> <20200818234416.5aec459c@x23> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd11.3) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR0802CA0026.eurprd08.prod.outlook.com (2603:10a6:800:a9::12) To VE1PR08MB4783.eurprd08.prod.outlook.com (2603:10a6:802:a9::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from x23 (31.147.11.0) by VI1PR0802CA0026.eurprd08.prod.outlook.com (2603:10a6:800:a9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16 via Frontend Transport; Tue, 18 Aug 2020 22:18:12 +0000 X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd11.3) X-Originating-IP: [31.147.11.0] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f6d8a1f5-f8b4-4a39-cb6c-08d843c499c3 X-MS-TrafficTypeDiagnostic: VI1PR08MB4208: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pq5PABN0nkzKdDYtZ/grl2kre8Ugvps1hPY1RF1IsyLapBLWpDQ9yozTKVrYhnQXyDRoYOOFVs3sCjSWSLJK84qe/nxeXUCc+vFLB4tGjx05f8T53jZRjZbbYPjMSNByxWdhw9qfMCvro5EFtaoHtQKceno4F/Bjlzcx1MOLZwKh0ial1NjO0vUeuNb92gH/Tu75dQf7szCibCauxHAYPQljlVD7FlKyxpZvl3BkQ2JnwkviResJdPEeS307Z7IPcP/d8O/4sSKngjl2+FYkNlU+rX6iN7yQbAtctAPU2+5830BWVHXJAzLr+RfDuXqUj356sD28G1MZT9dj9lgZvA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4783.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39840400004)(366004)(396003)(136003)(376002)(66476007)(8676002)(8936002)(9576002)(6916009)(6666004)(66946007)(86362001)(4326008)(956004)(2906002)(33716001)(5660300002)(6496006)(9686003)(1076003)(316002)(66556008)(786003)(52116002)(55016002)(478600001)(26005)(186003)(16526019)(53546011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: o+IluUsiWJKgltfGvgAnJ+SAfOzvh5s2SWCEsR+0Oh621U86DtaNLi3jkize4/apYk2Ic8D8AEtxOU/5MDs7aj3JnC8XBrDc7p9i+raGvZeoXc211JF2yATjL2uG9tLe1RC/Z+JTdyIxO4NcWji5SVGhA59eB2S19aWNMI3dbv0lOM6yNeB+ZgpePFnaB/hAqwwMQAFjV+Jeaj9o3Pxm3KTl0tJyyNPfC7n018ZlKabKB5qBqU9CfyJVqPDVQM8Zh3TCcsLcblsQeeNyxTQWCUcOCFGm2H7FIWJIWcfbZ7BQOTRRPelwNl+2zcJPw3/mVq+qBsEwrU+73Qa5iIyzrIBJw7eeNvqWgex3nZszK1FCdkC6/piRtsWKAJPlJX1jY9WPqSXTqFG5qsskgTA+GFVl4gKJLhUDS40PRAQ3/9NKhOYOLMCKZ1IDZ5r8883lgnYu0DB3E4GjS4nMDziSUPLR4jhN66F0oox0WOC+H9VYm1xOOVyBfrIu1aRtw+RI1WDL6FbyLKgS7e3qJRj6SPZSIg0z1WEkZ9IwqtyRINaHq78khovqNaPTCm5YPshJ+apMFCTIkfppkNEMek2yxaM8WU4Q3ypPV/6I96WfoZx0rBsMeT36fJUf9pHFf5P38wNsOJiyJ0eExUPWriTD1g== X-OriginatorOrg: fer.hr X-MS-Exchange-CrossTenant-Network-Message-Id: f6d8a1f5-f8b4-4a39-cb6c-08d843c499c3 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4783.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2020 22:18:14.6651 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: ca71eddc-cc7b-4e5b-95bd-55b658e696be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: O4Rj1+Y6IagvmZgjIzpf3XCU/OHPo4ctd0M6B1lbPTNU/mRGOjoLjMCFHIUdUi1Q X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4208 X-Rspamd-Queue-Id: 4BWQKP5mvVz3WyG X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ferhr.onmicrosoft.com header.s=selector2-ferhr-onmicrosoft-com header.b=TI54qoW4; dmarc=none; spf=pass (mx1.freebsd.org: domain of zec@fer.hr designates 40.107.14.89 as permitted sender) smtp.mailfrom=zec@fer.hr X-Spamd-Result: default: False [-0.75 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; RECEIVED_SPAMHAUS_PBL(0.00)[31.147.11.0:received]; R_DKIM_ALLOW(-0.20)[ferhr.onmicrosoft.com:s=selector2-ferhr-onmicrosoft-com]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[zec]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[fer.hr]; NEURAL_HAM_SHORT(-0.65)[-0.651]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[ferhr.onmicrosoft.com:+]; RCPT_COUNT_TWO(0.00)[2]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.14.89:from]; RCVD_IN_DNSWL_LOW(-0.10)[40.107.14.89:from]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 22:18:18 -0000 On Tue, 18 Aug 2020 18:04:24 -0400 Ryan Stone wrote: > On Tue, Aug 18, 2020 at 5:43 PM Marko Zec wrote: > > Since in ng_pipe we define BER as an one error in BER bits (integer > > value), wouldn't your formula P = 1 - BER yield results less than or > > equal to zero for all non-zero values of BER? The domain of P is > > [0..1], so that won't fly. > > > > Your analysis seems to be based on an assumption that the BER > > parameter is given as a multiplier to 0.5**48, which it is not. > > > > The proper fix would be to clarify the current BER parameter > > semantics in ng_pipe(4), not to break bridges with the existing > > scripts / software which rely on ng_pipe. > > > > Cheers, > > > > Marko > > The manpage defined the BER parameter as follows: > > u_int64_t ber; /* errors per 2^48 bits */ > > If we instead want to change the documentation to match the > implementation, that's fine too. Yeah, I only saw that a few minutes ago... Fixed in r364367. Cheers Marko