Re: [Sidrops] Publication Point -> RP synchronization in bandwidth constrained environments (note for RRDP v2)

Claudio Jeker <cjeker@diehard.n-r-g.com> Thu, 08 June 2023 12:35 UTC

Return-Path: <cjeker@diehard.n-r-g.com>
X-Original-To: sidrops@ietfa.amsl.com
Delivered-To: sidrops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A9717C14F75F for <sidrops@ietfa.amsl.com>; Thu, 8 Jun 2023 05:35:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.895
X-Spam-Level:
X-Spam-Status: No, score=-6.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ypyLYNVhuW6b for <sidrops@ietfa.amsl.com>; Thu, 8 Jun 2023 05:35:22 -0700 (PDT)
Received: from diehard.n-r-g.com (diehard.n-r-g.com [62.48.3.9]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA512) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 984E6C14F738 for <sidrops@ietf.org>; Thu, 8 Jun 2023 05:35:21 -0700 (PDT)
Received: (qmail 97727 invoked by uid 1000); 8 Jun 2023 12:35:18 -0000
Date: Thu, 08 Jun 2023 14:35:17 +0200
From: Claudio Jeker <cjeker@diehard.n-r-g.com>
To: Mikhail Puzanov <mpuzanov@ripe.net>
Cc: Job Snijders <job=40fastly.com@dmarc.ietf.org>, sidrops@ietf.org
Message-ID: <ZIHLBTZJ06/J3bCa@diehard.n-r-g.com>
References: <ZHYYt77xdtrkNV1a@snel> <955CFF67-8D19-4B38-8585-3754F3119EDF@ripe.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <955CFF67-8D19-4B38-8585-3754F3119EDF@ripe.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/agcgpdRAZ84XEJR9-RHhHh-9cRc>
Subject: Re: [Sidrops] Publication Point -> RP synchronization in bandwidth constrained environments (note for RRDP v2)
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: A list for the SIDR Operations WG <sidrops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidrops>, <mailto:sidrops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sidrops/>
List-Post: <mailto:sidrops@ietf.org>
List-Help: <mailto:sidrops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidrops>, <mailto:sidrops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Jun 2023 12:35:22 -0000

On Thu, Jun 08, 2023 at 01:45:46PM +0200, Mikhail Puzanov wrote:
> Hi Job, all,
> 
> I think compression is probably the quickest way of mitigating the size problem:
> 
> Repeating some of your experiments:
> 
> tmp> ls -lh snapshot.xml*
> -rw-r--r--  1 mpuzanov  staff   202M Jun  8 12:44 snapshot.xml
> -rw-r--r--  1 mpuzanov  staff    89M Jun  8 12:58 snapshot.xml.bz2
> -rw-r--r--  1 mpuzanov  staff    90M Jun  8 13:01 snapshot.xml.gz
> -rw-r--r--  1 mpuzanov  staff   124M Jun  8 12:57 snapshot.xml.lz4
> -rw-r--r--  1 mpuzanov  staff    83M Jun  8 12:58 snapshot.xml.lzma
> 
> Even the good ol’ gzip can shrink RIPE NCC’s snapshot more than twofold.
> Also compression should take care of the repetitive parts, i.e. 
> XML tags, newlines, etc.
> 
> Extra 2 cents as an RP implementer: rpki-prover fetches every repository 
> in a separate OS process with constrained heap, constrained download size 
> and a timeout, so it pretty much ignores all CVE-2021-43174-related 
> considerations and compression was never disabled in it. If the fetching 
> process crashes or runs out of some resource the impact is limited to 
> the specific repository. So there is a way to have compression and 
> tolerate crashes.

The inherent problem of RRDP is that when a CA is forced to issue a new
RRDP session (or all RP lose their RRDP state for the CA) every RP system
will grab a snapshot. So you end up with a thundering herd and I doubt a
reduction by half is enough to make that effect go away. 

The worst case RRDP bandwith requirements are significantly bigger then
what is needed in the steady state. This is an inherently bad design.
The only fix is to overprovision by a lot.

-- 
:wq Claudio