Re: [Dots] Mirja Kühlewind's Discuss on draft-ietf-dots-data-channel-28: (with DISCUSS and COMMENT)

<mohamed.boucadair@orange.com> Wed, 03 July 2019 17:51 UTC

Return-Path: <mohamed.boucadair@orange.com>
X-Original-To: dots@ietfa.amsl.com
Delivered-To: dots@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EF80912038E; Wed, 3 Jul 2019 10:51:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 3GrG2b20PX4X; Wed, 3 Jul 2019 10:51:32 -0700 (PDT)
Received: from relais-inet.orange.com (relais-inet.orange.com [80.12.66.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BF099120314; Wed, 3 Jul 2019 10:51:31 -0700 (PDT)
Received: from opfedar01.francetelecom.fr (unknown [xx.xx.xx.2]) by opfedar21.francetelecom.fr (ESMTP service) with ESMTP id 45f7vk1Tn1z7vXy; Wed, 3 Jul 2019 19:51:30 +0200 (CEST)
Received: from Exchangemail-eme6.itn.ftgroup (unknown [xx.xx.13.95]) by opfedar01.francetelecom.fr (ESMTP service) with ESMTP id 45f7vj6q8dzBrLj; Wed, 3 Jul 2019 19:51:29 +0200 (CEST)
Received: from OPEXCAUBMA2.corporate.adroot.infra.ftgroup ([fe80::e878:bd0:c89e:5b42]) by OPEXCAUBM24.corporate.adroot.infra.ftgroup ([fe80::b43f:9973:861e:42af%21]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 19:51:29 +0200
From: mohamed.boucadair@orange.com
To: Mirja Kuehlewind <ietf@kuehlewind.net>, "Konda, Tirumaleswar Reddy" <TirumaleswarReddy_Konda@McAfee.com>
CC: Roman Danyliw <rdd@cert.org>, "dots@ietf.org" <dots@ietf.org>, The IESG <iesg@ietf.org>, "dots-chairs@ietf.org" <dots-chairs@ietf.org>, "draft-ietf-dots-data-channel@ietf.org" <draft-ietf-dots-data-channel@ietf.org>, Benjamin Kaduk <kaduk@mit.edu>
Thread-Topic: [Dots] Mirja Kühlewind's Discuss on draft-ietf-dots-data-channel-28: (with DISCUSS and COMMENT)
Thread-Index: AQHVMb4lwlz7ytnW2UOSIPGasaLv/Ka5Iflw
Date: Wed, 03 Jul 2019 17:51:29 +0000
Message-ID: <787AE7BB302AE849A7480A190F8B93302EAB345F@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
References: <155679628494.24951.9145538661531263463.idtracker@ietfa.amsl.com> <787AE7BB302AE849A7480A190F8B93302EA68C8B@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <20190701154032.GB13810@kduck.mit.edu> <A4BD2109-EC58-4FED-A8B0-2EE5AC47A69C@kuehlewind.net> <DM5PR16MB1705BED0F42996593B0C0A70EAF80@DM5PR16MB1705.namprd16.prod.outlook.com> <24FFE7CE-B91A-4CF4-BB85-D6108ACE0043@kuehlewind.net> <DM5PR16MB170529399AC19B88B321A35DEAF80@DM5PR16MB1705.namprd16.prod.outlook.com> <642531B0-3E3A-4A5C-BD20-C74AA3698936@kuehlewind.net> <DM5PR16MB170519F8C328B05B9ED61EECEAFB0@DM5PR16MB1705.namprd16.prod.outlook.com> <AD83F907-35D8-4F44-9DEC-8ABB8E27A6EF@kuehlewind.net>
In-Reply-To: <AD83F907-35D8-4F44-9DEC-8ABB8E27A6EF@kuehlewind.net>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.114.13.245]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/dots/z2jpmesQsnwwvnzLDXSQy8ZuaO4>
Subject: Re: [Dots] Mirja Kühlewind's Discuss on draft-ietf-dots-data-channel-28: (with DISCUSS and COMMENT)
X-BeenThere: dots@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "List for discussion of DDoS Open Threat Signaling \(DOTS\) technology and directions." <dots.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dots>, <mailto:dots-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dots/>
List-Post: <mailto:dots@ietf.org>
List-Help: <mailto:dots-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dots>, <mailto:dots-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2019 17:51:35 -0000

Re-,

Please see inline.

Cheers,
Med

> -----Message d'origine-----
> De : Mirja Kuehlewind [mailto:ietf@kuehlewind.net]
> Envoyé : mercredi 3 juillet 2019 18:41
> À : Konda, Tirumaleswar Reddy
> Cc : Roman Danyliw; dots@ietf.org; The IESG; dots-chairs@ietf.org; draft-
> ietf-dots-data-channel@ietf.org; BOUCADAIR Mohamed TGI/OLN; Benjamin Kaduk
> Objet : Re: [Dots] Mirja Kühlewind's Discuss on draft-ietf-dots-data-
> channel-28: (with DISCUSS and COMMENT)
> 
> Hi Tiru, hi Med,
> 
> Please see below.
> 
> > On 3. Jul 2019, at 10:00, Konda, Tirumaleswar Reddy
> <TirumaleswarReddy_Konda@McAfee.com> wrote:
> >
> > Hi Mirja,
> >
> > Please see inline
> >
> >> -----Original Message-----
> >> From: Mirja Kuehlewind <ietf@kuehlewind.net>
> >> Sent: Tuesday, July 2, 2019 9:20 PM
> >> To: Konda, Tirumaleswar Reddy <TirumaleswarReddy_Konda@McAfee.com>
> >> Cc: Benjamin Kaduk <kaduk@mit.edu>; Roman Danyliw <rdd@cert.org>;
> >> dots@ietf.org; The IESG <iesg@ietf.org>; dots-chairs@ietf.org;
> >> mohamed.boucadair@orange.com; draft-ietf-dots-data-channel@ietf.org
> >> Subject: Re: [Dots] Mirja Kühlewind's Discuss on draft-ietf-dots-data-
> >> channel-28: (with DISCUSS and COMMENT)
> >>
> >> This email originated from outside of the organization. Do not click
> links or
> >> open attachments unless you recognize the sender and know the content
> is
> >> safe.
> >>
> >> Hi Tiru,
> >>
> >> Below...
> >>
> >>> On 2. Jul 2019, at 16:22, Konda, Tirumaleswar Reddy
> >> <TirumaleswarReddy_Konda@McAfee.com> wrote:
> >>>
> >>>> -----Original Message-----
> >>>> From: Mirja Kuehlewind <ietf@kuehlewind.net>
> >>>> Sent: Tuesday, July 2, 2019 7:36 PM
> >>>> To: Konda, Tirumaleswar Reddy
> >> <TirumaleswarReddy_Konda@McAfee.com>
> >>>> Cc: Benjamin Kaduk <kaduk@mit.edu>; Roman Danyliw <rdd@cert.org>;
> >>>> dots@ietf.org; The IESG <iesg@ietf.org>; dots-chairs@ietf.org;
> >>>> mohamed.boucadair@orange.com; draft-ietf-dots-data-channel@ietf.org
> >>>> Subject: Re: [Dots] Mirja Kühlewind's Discuss on
> >>>> draft-ietf-dots-data-
> >>>> channel-28: (with DISCUSS and COMMENT)
> >>>>
> >>>>
> >>>>
> >>>> Hi Tiru,
> >>>>
> >>>> Please see below.
> >>>>
> >>>>> On 2. Jul 2019, at 09:55, Konda, Tirumaleswar Reddy
> >>>> <TirumaleswarReddy_Konda@McAfee.com> wrote:
> >>>>>
> >>>>>>>>> I would also quickly like to discuss the use of keep-alives as
> >>>>>>>>> described in Section 3.1: "While the communication to the DOTS
> >>>>>>>>> server is  quiescent, the DOTS client MAY probe the server to
> >>>>>>>>> ensure it has  maintained cryptographic state.  Such probes can
> >>>>>>>>> also keep alive  firewall and/or NAT bindings.  A TLS heartbeat
> >>>>>>>>> [RFC6520] verifies  that the DOTS server still has TLS state by
> >>>>>>>>> returning
> >>>> a TLS message."
> >>>>>>>>> I understood that multiple requests can and should be send in
> >>>>>>>>> the same connection, however, I would expect that those requests
> >>>>>>>>> are send basically right after each other, such as a look-up and
> >>>>>>>>> then change of the config. I don't see a need to keep up the
> >>>>>>>>> connection for a
> >>>>>> long time otherwise.
> >>>>>>>>> Especially any action performed are (other than in the signal
> >>>>>>>>> channel case) not time critical. Therefore I would rather
> >>>>>>>>> recommend to close and reopen connections and not recommend
> >> to
> >>>> use
> >>>>>>>>> keep-alives at all.
> >>>>>>>>
> >>>>>>>> [Med] The activity of the DOTS client may be used to track/detect
> >>>>>>>> stale
> >>>>>> entries:
> >>>>>>>>
> >>>>>>>> Also, DOTS servers
> >>>>>>>> may track the inactivity timeout of DOTS clients to detect stale
> >>>>>>>> entries.
> >>>>>>>>
> >>>>>> My understanding is that this is orthogonal. You can also see that
> >>>>>> a client is inactive when it didn’t open a new connection for a
> certain
> >> time…?
> >>>>>
> >>>>> The drop-list rules could be frequently updated by the DOTS client
> >>>>> based on the tests used by the DOTS client domain (e.g.
> >>>>> cryptographic
> >>>>> challenge) to detect whether the IP address is for legitimate use or
> >>>>> not, or based on threat intelligence feeds from security vendors
> >>>>> providing the botnet/malicious IP addresses feed.  Further,
> >>>>> persistent DOTS data channel is required to handle updates to target
> >>>>> resources (e.g. CDN hosting a domain, and it needs DDoS protection)
> >>>>> and target IP/prefix may also change frequently (mobile branch
> >>>>> office, prefix re-numbering etc.)
> >>>>
> >>>> This still doesn’t sounds like it is desirable to keep the TCP
> connection
> >> open.
> >>>> Also if you can bear the time to reconnect (1-2 RTT for the
> >>>> handshake) that is usually the better and easier options. I don’t
> >>>> think the information we talk about here are that time-critical, is
> >>>> it? When you say frequent what time frame do you mean, Hours,
> minutes,
> >> seconds, milliseconds?
> >>>
> >>> The frequency of updates to drop-list rules can be few milliseconds.
> For
> >> example, CAPTCHA and cryptographic puzzles can be used by DOTS client
> >> domain to determine whether the IP address is used for legitimate
> purpose
> >> or not, and can configure the drop-list rules.
> >>> Further, the specification does not mandate the connection to be
> >> persistent, but when needed, the probe mechanism applies.
> >>
> >> Then it really seems to me that the document would need to provide
> further
> >> guidance when a persistent connection is useful or when it is recommend
> to
> >> close the connection (and reopen if needed).
> >
> > Sure, will add the following text:
> >
> >   A DOTS client can either maintain a persistent connection or periodic
> >   connections with its DOTS server(s).  If the DOTS client needs to
> >   frequently update the drop-list or accept-list filtering rules or
> >   aliases, it maintains a persistent connection with the DOTS server.
> >   For example, CAPTCHA and cryptographic puzzles can be used by the
> >   mitigation service in the DOTS client domain to determine whether the
> >   IP address is used for legitimate purpose or not, and the DOTS client
> >   can frequently update the drop-list filtering rules.  A persistent
> >   connection is also useful if the DOTS client subscribes to event
> >   notifications (Section 6.3 of [RFC8040]).
> >
> > - Tiru and Med
> 
> Thanks!
> 
> Two more small comments:
> 
> At least to me the term “periodic" is not clear. I guess mean something
> like short-lived connections, where you have a request, you open a
> connection, send it, get a reply, and close the connection immediately or
> after a short idle period. Or is there actually any kind of periodicity in
> the dots protocol in general? Can you pleas clarify.

[Med] We are trying to reuse the same terminology as RESTCONF (draft-ietf-netconf-restconf-client-server). 

For the DOTS case, the DOTS client is required to register and send requests to refresh the registration in regular intervals (otherwise, the DOTS client won't be able to created filters). Likewise, cycles will be observed because the client will need to maintains the aliases and ACLs it created. The client may use these cycles for any planned activity (create new aliases, create a new filter, etc.) or not. 

> 
> Also if a persistent connection is used, I think it would (again) be good
> to clarify what should be done if the connection fails. I think the right
> advise in this case, is to not reconnect immediately but only if you have
> another request to send, right?
> 	

[Med] draft-ietf-netconf-restconf-client-server voices for the following:

   Maintain a persistent connection to the
   RESTCONF server. If the connection goes down,
   immediately start trying to reconnect to the
   RESTCONF server, using the reconnection strategy.

Which is the right approach, IMO.

We didn't touched on connection management because we are relying on RESTCONF. DOTS will use whatever strategy adopted for RESTCONF.

I don't think it is a good idea to add specific behavior into our spec. 



> Mirja
> 
> 
> >
> >>
> >> Mirja
> >>
> >>
> >>>
> >>> -Tiru
> >>>
> >>>>
> >>>> Mirja
> >>>>
> >>>>
> >>>>>
> >>>>> Further, we are not mandating the connection to be persistent, but
> >>>>> when
> >>>> needed, the probe mechanism applies. Please note
> >>>> https://tools.ietf.org/html/draft-ietf-netconf-netconf-client-server-
> >>>> 13 discusses persistent-connection and it’s a client preference on
> >>>> how the connection is maintained (persistent or periodic).
> >>>
> >