Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2020 18:04:24 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Marko Zec <zec@fer.hr>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: Is anybody using ng_pipe?
Message-ID:  <CAFMmRNymC0aa8G0y_-3CM-puK_ZyR%2Brfdp%2B1Pk=NkxEkX8PvAg@mail.gmail.com>
In-Reply-To: <20200818234416.5aec459c@x23>
References:  <CAFMmRNxgoSNX2%2BLd=eEXRH0q7-XFzSF=b2GPzZgNW1LDCvq5Xw@mail.gmail.com> <CAFMmRNwAQ-x2p1CGnzyEuDREtuwS8w4SiQCqwNoKKNWxREQ_cQ@mail.gmail.com> <20200818205725.2e03c8cb@x23> <CAFMmRNyGu-vUgCsDjjDmX9YcEAhCDD-tZHeFJzRtaCOx-bCrgw@mail.gmail.com> <20200818234416.5aec459c@x23>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 18, 2020 at 5:43 PM Marko Zec <zec@fer.hr> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNymC0aa8G0y_-3CM-puK_ZyR%2Brfdp%2B1Pk=NkxEkX8PvAg>