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

Job Snijders <job@fastly.com> Thu, 08 June 2023 15:37 UTC

Return-Path: <job@fastly.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 0F31AC14F74A for <sidrops@ietfa.amsl.com>; Thu, 8 Jun 2023 08:37:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.095
X-Spam-Level:
X-Spam-Status: No, score=-7.095 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_NONE=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 (1024-bit key) header.d=fastly.com
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 wX5uAldL_GQp for <sidrops@ietfa.amsl.com>; Thu, 8 Jun 2023 08:37:26 -0700 (PDT)
Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 DCA98C151092 for <sidrops@ietf.org>; Thu, 8 Jun 2023 08:37:13 -0700 (PDT)
Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-977ed383b8aso137993266b.3 for <sidrops@ietf.org>; Thu, 08 Jun 2023 08:37:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1686238632; x=1688830632; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=U6cezm/2w5NDl9AcvQ8u94R5feODNvpyCxvJBZ2y7a0=; b=WTJqpVPRPw9bt7Ins+wLXYYrDpbf+E9TlvOmtqk1CYEgumaZO/2MIsgfJZwEb2Yq4I OwATj4b7QnAhrR3rAtvNSEBfiL1+4MFIL5kmy/8AgC3cx5JHKvZCjrXVYwyph8lbc6BR YsoXVrlwNhDK1mtAzXQ1hln6wO2nTGXkAccA4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686238632; x=1688830632; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U6cezm/2w5NDl9AcvQ8u94R5feODNvpyCxvJBZ2y7a0=; b=d0AuD/mlh21cG9taQ93nEJ63qjgYRR/wzITsF0UXBF99syCL+wSuPDl9COlEJEtKF5 JIQQ601IDrzxf239tVO6pfg6btNVweN6E+3PYAo6GCQxjuYlykkCukRbQQz+rzE50ehR z0JE6RS2xUluCsUC9AU76Jc4fzt+XYn6FTZng2GS3jAt4Kl8f9vI7HViUtUPCspP5Ifv kHp7Pc3Op3D1hUKGAAcfJevkusyDaLfa1gJ1st3KoxVaswAnEPGHqpiX+WvXkPG2rfBW 9K0qllUsnops3slY6J0fEOVuqAMYwbje+UCfeHTELyjxGY4uM+E5K8WIE6wkrT7MoDQc bjpw==
X-Gm-Message-State: AC+VfDxclCCJS3xXnQaAjgZVsezZTDYSNFPLnhnN0Z7ZliTzhURWwhpj xdAhbPbsQD3ONPDUAsrUg6D+Qtch7v0bcl31/I0=
X-Google-Smtp-Source: ACHHUZ46r+LVahbO3E93QDsW3/J5GmFesV/nTVl/dAKhvWp08WYmqpXgnOCU+WPP7P7tlUf/gmg0SQ==
X-Received: by 2002:a17:906:7309:b0:978:6e73:e833 with SMTP id di9-20020a170906730900b009786e73e833mr133000ejc.45.1686238632207; Thu, 08 Jun 2023 08:37:12 -0700 (PDT)
Received: from snel ([2a10:3781:276:1:16f6:d8ff:fe47:2eb7]) by smtp.gmail.com with ESMTPSA id o18-20020a1709064f9200b0095342bfb701sm867476eju.16.2023.06.08.08.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 08:37:11 -0700 (PDT)
Date: Thu, 08 Jun 2023 17:37:09 +0200
From: Job Snijders <job@fastly.com>
To: Tim Bruijnzeels <tim@nlnetlabs.nl>
Cc: Ties de Kock <tdekock@ripe.net>, Claudio Jeker <cjeker@diehard.n-r-g.com>, Mikhail Puzanov <mpuzanov@ripe.net>, sidrops@ietf.org
Message-ID: <ZIH1pRbTSyp/6vSB@snel>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <DCB50ED8-9906-41DE-892E-F76987C4808C@nlnetlabs.nl>
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/xvpvqRdCRx_IGwK-J9vvNedvNcU>
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 15:37:30 -0000

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.

Kind regards,

Job