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

Ties de Kock <tdekock@ripe.net> Fri, 09 June 2023 08:38 UTC

Return-Path: <tdekock@ripe.net>
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 C146CC1519B0 for <sidrops@ietfa.amsl.com>; Fri, 9 Jun 2023 01:38:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ripe.net
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 KkbIbamxbdFk for <sidrops@ietfa.amsl.com>; Fri, 9 Jun 2023 01:38:30 -0700 (PDT)
Received: from mail-mx-1.ripe.net (mail-mx-1.ripe.net [IPv6:2001:67c:2e8:11::c100:1311]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CB00AC1519AB for <sidrops@ietf.org>; Fri, 9 Jun 2023 01:38:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ripe.net; s=s1-ripe-net; h=To:Message-Id:Cc:Date:From:Subject:Mime-Version:Content-Type ; bh=9XPAly/hJLQnCciIqQjDkQ908kerjtewt5JCl4Q8yyM=; b=gSFTGQQXgTsSJ/a9OtcKM6TG TPxyt8W3tm03yILMaPrkumUTVQXCY5t5S2oB/ylWmFxWsEPah+ecavgIINY+FbsrjnjxoZgU4S+RJ Y76rKEksx3eXAopWY8e5lXpIKx72/bt4oRiCpMxucqsvOZdpRt7ZCidfyftoL4jb8jvFF7m5G8Ofx +l/4h5t6vYA9tJHKaKxZt8DazMLDQMw1oSaNHcjS5P51tiR7H3DpgP0p02GoBZ8MLTP+IcIIHdXyJ EHdrCq5k4UYDDccF/Xg2Xx8DiiQQ83JuUwKpTOIIl5t7A12PH98GtV8CMBLQazNLQ6PXoBxe4N+oT ZMztAO25Yg==;
Received: from allealle.ripe.net ([2001:67c:2e8:23::c100:170c]:60110) by mail-mx-1.ripe.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <tdekock@ripe.net>) id 1q7Xdd-004W4o-0Z; Fri, 09 Jun 2023 08:38:29 +0000
Received: from sslvpn.ripe.net ([193.0.20.230] helo=smtpclient.apple) by allealle.ripe.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <tdekock@ripe.net>) id 1q7Xdd-0008It-07; Fri, 09 Jun 2023 08:38:29 +0000
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
From: Ties de Kock <tdekock@ripe.net>
In-Reply-To: <ZIH1pRbTSyp/6vSB@snel>
Date: Fri, 09 Jun 2023 10:38:17 +0200
Cc: Tim Bruijnzeels <tim@nlnetlabs.nl>, Claudio Jeker <cjeker@diehard.n-r-g.com>, Mikhail Puzanov <mpuzanov@ripe.net>, sidrops@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <7E1EF4EE-AC5C-4E1A-BCF6-48B814EC75CF@ripe.net>
References: <ZHYYt77xdtrkNV1a@snel> <955CFF67-8D19-4B38-8585-3754F3119EDF@ripe.net> <ZIHLBTZJ06/J3bCa@diehard.n-r-g.com> <461BCBA1-19FD-4E6C-83C3-584D1597B2E9@ripe.net> <DCB50ED8-9906-41DE-892E-F76987C4808C@nlnetlabs.nl> <ZIH1pRbTSyp/6vSB@snel>
To: Job Snijders <job@fastly.com>
X-Mailer: Apple Mail (2.3731.600.7)
X-RIPE-Signature: 059faafd1cc22ebb05e1592c815fe1e19c7b0312da139aa5c570ba72690f3747
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/B2mz5nEBm3LavCx7jtcUslHVaZQ>
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: Fri, 09 Jun 2023 08:38:34 -0000


> On 8 Jun 2023, at 17:37, Job Snijders <job@fastly.com> wrote:
> 
> On Thu, Jun 08, 2023 at 05:13:55PM +0200, Tim Bruijnzeels wrote:
>> As for lessons learned for a future RRDP. There are a number of things
>> that I think could be done. To just name a few:
>> 
>> - No new snapshot on every update
>> 
>> This is hard for the server. Writing a full snapshot of multiple MBs for
>> every change adds up. I think it would be better to have snapshots every
>> so often and use deltas to get to the current state
>> 
>> - Combine deltas
>> 
>> Let the server pre-calculate combined deltas from serial X to current.
>> This saves the RPs downloading many files. It saves bandwidth in cases
>> where files are updated multiple times (e.g. a CA published multiple
>> ROAs as separate events).
>> 
>> - Binary format
>> 
>> We can have a DER encoded structures (since we do DER anyway) that can
>> contain all the data. This saves a lot of XML and base64 overhead. I have
>> not done the analysis but I think that the actual DER objects don't compress
>> well - so we may not need compression if we do this.
>> 
>> - Pointers for stragglers?
>> 
>> Notification files should be short. This means that RPs that have not
>> synced for a long time will have to do a full re-sync. What may help
>> is that there are pointers included to longer notification files for
>> those that need it.
> 
> Another thing that I'd consider to add to the list would be advisory
> timing parameters in the notify file: A publication server in trouble,
> could sorta 'increase' their capacity if the server could request RPs to
> fetch less frequently.

Do we need to do this in the RRDP protocol? Or could we maybe get close with
HTTP headers?

Kind regards,
Ties