Re: [core] RD: Registration update/removal request without location

Christer Holmberg <christer.holmberg@ericsson.com> Fri, 25 October 2019 08:00 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 37FF712012A for <core@ietfa.amsl.com>; Fri, 25 Oct 2019 01:00:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pnizZa39oX1m for <core@ietfa.amsl.com>; Fri, 25 Oct 2019 01:00:24 -0700 (PDT)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70041.outbound.protection.outlook.com [40.107.7.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 22FC612012D for <core@ietf.org>; Fri, 25 Oct 2019 01:00:24 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HjyiNcJkyzSOsDvGb99lxy+7tBQWKL2IaTwKlsjxEZgW5lzLVD9qAj8QJVxNNMnIeo/TepB/HYg0kbfbmSZepp/NFaQU3WB2oIcyyrEodVX2kDxQMN7szJgdVduYLpyUGq0pzSqJprT8ifl2G6/gRD1IVdVvtj8vn/Pv3Z+Xlrd6zxQOaoTT2jszuMflSBK7CgkzkaGxoL6ycDxpeY08Zsbkg8X74TMOvEhwgvu5OEFElPLIRa47Y3E4Dv/krmKd5t0mTkC3RtutxP7KZkU9+iZxDQYZQ8Z2Z3Uh9HBVjPLW2PxgxcbRAcB3nWOvPeaOMj/kSJ6puygppv4x2qgOPw==
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=ML2Ik9zB5dhr/dHf6F4FncU3W8hfdMDvwIHLki9vxmg=; b=SoWb8uP4OuP0xO3Z/9Yx5uGpIAR7Df091nlT2xpsL8xY+iiAoM5C/O0IbeX/A/45fwhOXnqG1m2ToyZGZZ3sagxvD8+UOxahsJaZphKzWRw7h+E/H6j1bihenLwIDIviQXr924kud0igcoEot3t10d2K5KvBpRlgc49bU82jJGidCaYT42q/NVanAIdw4FIwW3tgBHVp/4IP9dFVFQuRXrBlPqbIjJErjuUiD5C7VqHEq7R6wTwCC4OCcySf50HpPMnz9KNO6HBR/zMfOxsoS3mPicrOkutsjKIvkWKWNfMJxaGyTCp2/FxjcOy/f1qUwubPZ8GNRuKKKx19+N6Fkw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ML2Ik9zB5dhr/dHf6F4FncU3W8hfdMDvwIHLki9vxmg=; b=Gosm/57qo53w7/9NwQpeghlVd9j4Rn0awqIeo4uZ0E90G5acAyNh4F4qQ0CWtS/s0G70b/8C1Me6jXuVK+a7MclBu7lGGI2vH9PLnATSl4fpESwVr6vqp6y/hNcNoJw+1DJQOq+WAHmzwBL3919LOkU/IXPevzQVYIzAtby4l0o=
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com (10.170.245.23) by HE1PR07MB3241.eurprd07.prod.outlook.com (10.170.243.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.13; Fri, 25 Oct 2019 08:00:20 +0000
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::5499:1231:e707:4cb7]) by HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::5499:1231:e707:4cb7%7]) with mapi id 15.20.2387.025; Fri, 25 Oct 2019 08:00:20 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Christian Amsüss <christian@amsuess.com>
CC: "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] RD: Registration update/removal request without location
Thread-Index: AQHViMx2E0Rpo6xviU28Op87SnHoBKdq9pcAgAA+l4A=
Date: Fri, 25 Oct 2019 08:00:20 +0000
Message-ID: <D8D5285D-D00F-4239-A1BF-894648446F3E@ericsson.com>
References: <B6B208FC-F305-4703-8541-1C26925FA6F2@ericsson.com> <20191025071618.GA24136@hephaistos.amsuess.com>
In-Reply-To: <20191025071618.GA24136@hephaistos.amsuess.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1e.0.191013
authentication-results: spf=none (sender IP is ) smtp.mailfrom=christer.holmberg@ericsson.com;
x-originating-ip: [89.166.49.243]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 4901e70e-3a47-4d52-23c5-08d759216195
x-ms-traffictypediagnostic: HE1PR07MB3241:
x-microsoft-antispam-prvs: <HE1PR07MB324128DEC6B7ECC9E932139B93650@HE1PR07MB3241.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 02015246A9
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(376002)(346002)(39860400002)(366004)(136003)(199004)(189003)(256004)(11346002)(66556008)(2906002)(4326008)(6916009)(71190400001)(36756003)(44832011)(71200400001)(25786009)(478600001)(6436002)(58126008)(66446008)(64756008)(86362001)(14454004)(316002)(76116006)(305945005)(81166006)(81156014)(7736002)(66066001)(99286004)(8936002)(76176011)(6512007)(33656002)(476003)(6486002)(6506007)(6116002)(3846002)(102836004)(186003)(486006)(15650500001)(8676002)(2616005)(446003)(6246003)(5660300002)(229853002)(26005)(66946007)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3241; H:HE1PR07MB3161.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: cxUfsUM1jG6T3BDD1HGjFelwE+ZAgv1yrRWm+fX4DAzFENpBk9lrFvUNRE08EJqw7TraXT5bT5b/1mKeGCkBrC5kYUUxpR2dJGhSVBP9nKjQvWpOoLdZkDbuTXQRZw9z+SsFU1fM5upOXh542xAdsozBWdZTNyJMFJSgp2cR51MrGrBh5NsxAgCqle099weCqwZCISz5dMR9NXcj78p6Jzj8mVu1P8r1XFYr8URAyoCgvJw+KMnDupGI7KjCRE00Ccdt0eD3f2FqyTODPXStpnywgKxcQxJkR7KQxtueFFGgqv+CActGAHL/NsGz5HkzDcZndt+k3sMymNGqkVP6+msdVmjTWvLtM/rjSTvW5ssyL5B0oz+HxhTUROayhO3JjYppsFcfyeOqpW+VO0au01fXqYxVpiNMLnSvHOyR39znw0ylfdILtJ3MVCe6/KJN
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <8E10C9F46EC6964DBA6414C197DDC314@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 4901e70e-3a47-4d52-23c5-08d759216195
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2019 08:00:20.0642 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: gD6kcLFukb+t9uezl4toumZyLOjLyBapu4B0mPMmQ5wiYEN48b4IOPu8rR4oLGFKrw57Sg7laBXaZ/IlgxQN9aHk1f/FiIJlfGDS7ytofbA=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3241
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/JTMwZQCZs29zKlIF8PyHJ8FdkF4>
Subject: Re: [core] RD: Registration update/removal request without location
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Oct 2019 08:00:26 -0000

Hi Christian,

One more thing.

>    What I understand you asking about is what would happen if the
>    registrant ignored the Location options but tries to perform the refresh
>    operation on the /rd resource:
>    
>      Req: POST /rd?ep=node1
>      (No payload)
>    
>      Res: 2.01 Created
>      Location: /reg/1234
>    
>    That can succeed on a CoAP level (depending on the precise handling of
>    absent content formats), but would not give the desired results: It is
>    interpreted as the registrant trying to create a new registration (to
>    override its previous one) *without any links in it* -- rather than
>    refreshing the existig registraion.
  
Maybe it would be good to point that out in the document?

Currently the draft says that the RD MUST return the location, but AFAIK there is no explicit MUST for the registrant to use it in updates (there is only a "must return the location that the registrant will later use in its updates" statement) will, so I think it would be good to make it more clear.

Thanks!

Regards,

Christer




  
    What a registrant that did not remember its location *could* do is to
    repeat the complete registration (copy-pasted from above):
    
      Req: POST /rd?ep=node1
      Payload:
      </hello>
    
      Res: 2.01 Created
      Location: /reg/1234
    
    which has the same effect as refreshing it -- but is less efficient, and
    not so much intended to be used like this. (That this is works this way
    at all is a result of making the registration operation idempotent to
    allow some optimizations, and to accomodate rebooting registrants). A
    client that can not be bothered to parse and remember the location
    should rather use the simple registration right away, which does allow
    more efficient operation.
    
    Does that answer your question?
    
    KR
    c
    
    -- 
    There's always a bigger fish.
      -- Qui-Gon Jinn