Re: [I2nsf] I-D Action: draft-ietf-i2nsf-sdn-ipsec-flow-protection-05.txt

"Valery Smyslov" <smyslov.ietf@gmail.com> Mon, 22 July 2019 16:07 UTC

Return-Path: <smyslov.ietf@gmail.com>
X-Original-To: i2nsf@ietfa.amsl.com
Delivered-To: i2nsf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0737D12012B; Mon, 22 Jul 2019 09:07:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 DNQZnayeUghI; Mon, 22 Jul 2019 09:07:44 -0700 (PDT)
Received: from mail-ua1-x942.google.com (mail-ua1-x942.google.com [IPv6:2607:f8b0:4864:20::942]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9DE4F120052; Mon, 22 Jul 2019 09:07:43 -0700 (PDT)
Received: by mail-ua1-x942.google.com with SMTP id v18so15517686uad.12; Mon, 22 Jul 2019 09:07:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:thread-index:content-language; bh=CNaLWdo/mVDKvD1EUxrIknzScXqP22fsX0nuY+k1VR0=; b=EwPkJmO0qDH+AX8T1EdGxznJUfkdx43ZVkuJbd/52JyYxK8Md30akIhSkNFEXtYg2Y v8eNpwg8ntV48RbAXj5FIqb+Qa3jvVHYFJmuzQFifiMQiUnAlpaQyz4jweg3Gw69h2DD lkZVuMKkCnhetSzYF0tzt3Hg70uFifi19eOmFZNDqXkP9KHpnY6FhBAcnP4+QE+Am0Rg 4BQ6A7MD8siNQiogEvVDUfpXcVVYAVcbCY5mWEDHD8WFxUrJGYfFQaN8HTtmWAEWwiDB 6bCxtTSmpzMgrynUOaFnNxLLR2RMSCkaulQnvS0/AJQbSh8IwJG+h+amKyOxwm7aJtlf b74Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language; bh=CNaLWdo/mVDKvD1EUxrIknzScXqP22fsX0nuY+k1VR0=; b=Izict+xs9g96oOUxvSyK9Wi7RBa4wQQwOUjuKLyHLkc40pE9ojmCoqTEWbeBigQlqe C1pyW8xWkl5UFMpdQIP2/mX+X00BiDP8NogbfHpNlsv/1YGFY5eyhWgcQzKg3fotpFT2 jalbZqYIgErnXELymWT7WbfnKA4p06KcYHFo2VYlVQwuox8AfyVyd306hLORHv2nK+Ih KGTPucUKXr9mwu9lIxwSQLJVgJSSQfl7It3i94NVrpDAt3tsuypkf4DvtK9TfncxBAF0 F0DV4sPM4njdPVffF0svZBGEz+ssbLWuheGYDcS3kpbFQXxV/+puCt8IZtL9mQL0YAIY dm5A==
X-Gm-Message-State: APjAAAXNn5mv+GcGRLzAtDrNhBk2/ew9+IS4aCprNFuHz95VQfoxToyD oPVmzny/y4lYmgcdnUnZcQQ=
X-Google-Smtp-Source: APXvYqzRWErkZ9gDG6rXq2P4E2xWbEnQAlJcJILGI7wQuM5XfNsD6NasS6PjpOMxzE8jFlpmqY2F3Q==
X-Received: by 2002:a9f:21e7:: with SMTP id 94mr37465129uac.137.1563811662583; Mon, 22 Jul 2019 09:07:42 -0700 (PDT)
Received: from svannotebook ([2001:67c:370:128:b8f4:fc59:5b3c:83af]) by smtp.gmail.com with ESMTPSA id w73sm16602686vkh.14.2019.07.22.09.07.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 09:07:41 -0700 (PDT)
From: Valery Smyslov <smyslov.ietf@gmail.com>
To: 'Yoav Nir' <ynir.ietf@gmail.com>
Cc: 'Rafa Marin Lopez' <rafa@um.es>, i2nsf@ietf.org, ipsec@ietf.org, 'Fernando Pereñíguez García' <fernando.pereniguez@cud.upct.es>, mbj@tail-f.com, 'Gabriel Lopez' <gabilm@um.es>
References: <156253524318.473.14686910090362577746@ietfa.amsl.com> <4E36A715-3B6C-4BDF-A149-9E10574E3F96@um.es> <5758F23C-087D-49AB-87E0-FE7E0F6D15A1@gmail.com> <016c01d53f08$e0c2d1d0$a2487570$@gmail.com> <422BC608-F527-4BFF-A04F-B8FE42CA3169@um.es> <030c01d540a3$9e7a74d0$db6f5e70$@gmail.com> <AB6BD868-418B-4D79-9652-656E4C0297AD@gmail.com>
In-Reply-To: <AB6BD868-418B-4D79-9652-656E4C0297AD@gmail.com>
Date: Mon, 22 Jul 2019 19:07:38 +0300
Message-ID: <031f01d540a7$96424820$c2c6d860$@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0320_01D540C0.BB9B6700"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHCFNK4T/q9sOv9UIwCeVdICbA12QI+UTb7AODQKd0B9E5Q0QGsr2TdAnMulMEBTsRs2KapERiQ
Content-Language: ru
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2nsf/7v51dDsdPdh6EEWRllhBTKRIVc4>
Subject: Re: [I2nsf] I-D Action: draft-ietf-i2nsf-sdn-ipsec-flow-protection-05.txt
X-BeenThere: i2nsf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "*I2NSF: Interface to Network Security Functions mailing list*" <i2nsf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2nsf>, <mailto:i2nsf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2nsf/>
List-Post: <mailto:i2nsf@ietf.org>
List-Help: <mailto:i2nsf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2nsf>, <mailto:i2nsf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jul 2019 16:07:49 -0000

Hi Yoav,

 

I think that it is not the performance of the SC that would matter,

but the possible delays in the network. If we think of the network

connecting the SC and the NSFs as of one close to "ideal", then we have

no problems. Otherwise the SC must be prepared to deal with 

network issues. Note, that in case of reactive SA setup and in case

of rekeying the SC must manage two NSFs in a synchronized manner,

and any of these NSF can go offline or reboot or stop responding

during this, and SC must properly deal with all this events,

making proper roll-back on the other NSF.

 

With IKE case RFC7296 contains very specific advices what

to do in case of packet loss, delay etc (e.g in case of 

simultaneous rekeying). I'd like to see the same advices

for SC's behavior in case of network issues.

 

Regards,

Valery.

 

 

 

 

Hi, Valery

 

Obviously, you need a security controller that scales to the number of SAs it needs to generate. But generating an SA in the IKE-less case is just generating 72 random bytes (for AES-GCM-256) and packaging them.  I don’t think with a properly scaled SC this would produce more latency than IKE between the nodes, which has 1/2 round-trips and requires asymmetric operations.

 





On 22 Jul 2019, at 11:39, Valery Smyslov <smyslov.ietf@gmail.com <mailto:smyslov.ietf@gmail.com> > wrote:

 

Hi Rafa,

 

sure this problem is general for any SDN solution.

My point was that if SC performs a lot of real-time 

(or near real-time) tasks as it may happen in IKE-less case, 

then this problem may become serious.

 

Anyway, I'm happy with the updated text, thank you.

However, in a following document(s), suggested by Yoav,

I'd like to see more concrete advices of how SC should

act in this situation to ensure that the consistence of the 

network is preserved despite all the possible delays etc.

 

Regards,

Valery.

 

 

From: Rafa Marin Lopez <rafa@um.es <mailto:rafa@um.es> > 
Sent: Monday, July 22, 2019 6:11 PM
To: Valery Smyslov <smyslov.ietf@gmail.com <mailto:smyslov.ietf@gmail.com> >
Cc: Rafa Marin Lopez <rafa@um.es <mailto:rafa@um.es> >; Yoav Nir <ynir.ietf@gmail.com <mailto:ynir.ietf@gmail.com> >; i2nsf@ietf.org <mailto:i2nsf@ietf.org> ; ipsec@ietf.org <mailto:ipsec@ietf.org> ; Fernando Pereñíguez García <fernando.pereniguez@cud.upct.es <mailto:fernando.pereniguez@cud.upct.es> >; mbj@tail-f.com <mailto:mbj@tail-f.com> ; Gabriel Lopez <gabilm@um.es <mailto:gabilm@um.es> >
Subject: Re: [I2nsf] I-D Action: draft-ietf-i2nsf-sdn-ipsec-flow-protection-05.txt

 

Hi Valery:

 

Thank you very much for your comments. Please see ours inside.

El 20 jul 2019, a las 16:38, Valery Smyslov < <mailto:smyslov.ietf@gmail.com> smyslov.ietf@gmail.com> escribió:

 

Hi,

 

thank you for updating the document. I still think that some aspect

of IKE-less use case are not discussed yet (well, probably they are not 

"serious", depending on one's definition of "serious").

 

Unlike IKE case. which we can consider as mostly static configuration,

the IKE-less case is a dynamic one. If IPsec SA are being created 

on demand (via kernel-acquire) and the traffic volume is high,

then depending on the IPsec policy IKE-less case can become 

a highly dynamic, which implies additional requirement on both

the network connecting SC and NSF and the performance of the protocol used to 

secure their communications. In other words, in IKE case the communication

between IKE daemon and kernel is seamless, while in IKE-less

case the communication between NSF ("kernel") and SC adds

noticeable delay (and can potentially add quite a long delay),

which can influence total performance of the system.

 

Generally IKE-less case requires more communications between

different nodes to establish or rekey IPsec SA, than IKE case

(I assume that IKE SA is already established), that may have

an impact on high-speed networks with short-lived IPsec SAs,

especially if they are created per transport connection

(say one IPsec SA for one TCP session).

 

[Authors] What you have just described is what happens in any SDN-based network. In fact, your comment would be applicable to practically any scenario based on the SDN paradigm. In the particular case of the I-D, the IKE-less case is the most similar to case you can see in, for example, Openflow networks where latency is also important (just as an example :  <https://ieeexplore.ieee.org/document/6573052> https://ieeexplore.ieee.org/document/6573052 )






 

I believe, that SC's task of managing IPsec SAs in IKE-less case 

may become quite complex, especially because due to the

additional delay, introduced by the network, the picture of the

state of the SAs the SC has can become inaccurate (well, 

it will always be inaccurate, but with short delays it doesn't matter).

Just an example. Consider an SC receives a signal from NSF that an SA

is soft expired and starts rekeying process by first installing a new

pair of inbound SAs. It successfully installs them on the NSF

it receives notification from, but then it receives a notification

that the other NSF has rebooted, so it must clear all the SAs on

its peers, including the just installed new one (which is only

half-done). There seems to be a lot of nuances, and the document 

completely ignores them. Not that I think that the task

is impossible, but the algorithm of managing the SAs can become

quite complex and possibly unreliable.

 

[Authors] We largely thought about this kind of cases, although we do not see any different that may happen in SDN-based network nowadays. And it seems to me that SDN is becoming something generally accepted despite the different nuances that needs to be consider. In any case, what you mention is not ignored in our document because it is included in the text we have in section 5.3 (see below) where we highlight the complexity is shifted to the SC (that’s clear). But as I mentioned, this is not specific to IKE-less case but for any solution based on the pure SDN paradigm (such as Openflow networks). In other words, the cases you well mention are applicable to any SDN-based solution.






 

I didn't find this discussion in the draft (sorry if I missed it).

 

Your comments are somehow summarized in the following text section 5.3

 

"On the contrary, the overload of creating fresh IPsec
   SAs is shifted to the Security Controller since IKEv2 is not in the
   NSF.  As a consequence, this may result in a more complex
   implementation in the controller side.  This overload may create some
   scalability issues when the number of NSFs is high.

In general, literature around SDN-based network management using a

   centralized Security Controller is aware about scalability issues and

   solutions have been already provided (e.g. hierarchical Security

   Controllers; having multiple replicated Security Controllers, etc)."

 

I would add that a high-speed dedicated management network between the SC and the NSFs can be also in place to even limit reduce these delays between the SC and NSFs (this idea comes again from Openflow networks). Also the SC can select more “intelligent” lifetime to orchestrate better when the notifications may appear.

 

In any case, we think we can improve that text as follows: 

 

"On the contrary, the overload of creating and managing IPsec

   SAs is shifted to the Security Controller since IKEv2 is not in the
   NSF. As a consequence, this may result in a more complex
   implementation in the controller side in comparison with

   IKE case.  For example, the Security Controller have to deal with 

   the latency existing in the path between the Security Controller 

   and the NSF in order to solve tasks such as, rekey or creation and 

   installation of new IPsec SAs. However, this is not specific to our 

   contribution but a general aspect in any SDN-based network. 

   In summary, this overload may create some scalability and performance 

   issues when the number of NSFs is high.


   Nevertheless, literature around SDN-based network management using a
   centralized Security Controller is aware about scalability and
   performance issues and solutions have been already provided and
   discussed (e.g.  hierarchical Security Controllers; having multiple
   replicated Security Controllers, dedicated high-speed management
   networks, etc). In the context of SDN-based IPsec management, one

   way to reduce the latency and alleviate some performance issues can

   be the installation of the IPsec policies and IPsec SAs at the same time

   (proactive mode, as described in Section 7.1) instead of waiting for

   notifications (e.g. a notification sadb-acquire when a new IPsec SA 

   is required) to proceed with the IPsec SA installations (reactive mode). 

   Another way to reduce the overhead and the potential scalability and

   performance issues in the Security Controller is to apply the IKE
   case described in this document, since the IPsec SAs are managed
   between NSFs without the involvement of the Security Controller at
   all, except by the initial IKE configuration provided by the Security
   Controller.”

 

Please see also our comments to Yoav.

 

Best Regards.






 

Regards,

Valery.

 

 

 

 

Thanks for getting this done and published.

 

We will wait with requesting publication until the I2NSF session next week.  Between now and then, please re-read the draft and send a message to the list is something is seriously wrong.

 

Barring any such shouting, we will request publication right after the meeting.

 

Thanks again,

 

Linda and Yoav







On 16 Jul 2019, at 15:42, Rafa Marin-Lopez < <mailto:rafa@um.es> rafa@um.es> wrote:

 

Dear all:

We submitted a new version of the I-D (v05) where we have applied several changes. In the following you have a summary of the main changes, which we will expand/explain during our presentation: 

- We have dealt with YANG doctors’ review (Martin's)

- We have dealt with Paul Wouters’ comments and Tero’s comments.

 

- We have added more specific text in the descriptions.

- Notifications have a simpler format now since most of the information that contained in the past is already handled by the Security Controller.

- State data has been reduced. For example, in IKE case, most of the information is related with IKE and not with the specific details about IPsec SAs that IKE handles (after all, IKE can abstract this information from the Security Controller).

 

- We have included text in the security section to discuss about the default IPsec policies that should be in the NSF when it starts before contacting with the SC such as the IPsec policies required to allow traffic between the SC and the NSF.

 

- We have added a subsection 5.3.4 about NSF discovery by the Security Controller.

- In order to specify the crypto-algorithms we have used a simple approach by including an integer and adding a text pointing the IANA in the reference clause. For example:


typedef encryption-algorithm-type {
           type uint32;
           description 
               "The encryption algorithm is specified with a 32-bit
               number extracted from IANA Registry. The acceptable
               values MUST follow the requirement levels for
               encryption algorithms for ESP and IKEv2.";
           reference 
                "IANA Registry- Transform Type 1 - Encryption
                Algorithm Transform IDs. RFC 8221 - Cryptographic
                Algorithm Implementation Requirements and Usage
                Guidance for Encapsulating Security Payload (ESP)
                and Authentication Header (AH) and RFC 8247 -
                Algorithm Implementation Requirements and Usage
                Guidance for the Internet Key Exchange Protocol
                Version 2 (IKEv2).";
       }

 

- We have included three additional Annexes with examples in about the usage of the YANG model.

 

- We have performed pyang --lint --lint-ensure-hyphenated-names and pyang -f yang --yang-line-length 69 in our model without warnings.

 

Best Regards.







Inicio del mensaje reenviado:

 

De:  <mailto:internet-drafts@ietf.org> internet-drafts@ietf.org

Asunto: [I2nsf] I-D Action: draft-ietf-i2nsf-sdn-ipsec-flow-protection-05.txt

Fecha: 7 de julio de 2019, 23:34:03 CEST

Para: < <mailto:i-d-announce@ietf.org> i-d-announce@ietf.org>

Cc:  <mailto:i2nsf@ietf.org> i2nsf@ietf.org

Responder a:  <mailto:i2nsf@ietf.org> i2nsf@ietf.org

 


A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Interface to Network Security Functions WG of the IETF.

       Title           : Software-Defined Networking (SDN)-based IPsec Flow Protection
       Authors         : Rafa Marin-Lopez
                         Gabriel Lopez-Millan
                         Fernando Pereniguez-Garcia
           Filename        : draft-ietf-i2nsf-sdn-ipsec-flow-protection-05.txt
           Pages           : 81
           Date            : 2019-07-07

Abstract:
  This document describes how providing IPsec-based flow protection by
  means of a Software-Defined Network (SDN) controller (aka.  Security
  Controller) and establishes the requirements to support this service.
  It considers two main well-known scenarios in IPsec: (i) gateway-to-
  gateway and (ii) host-to-host.  The SDN-based service described in
  this document allows the distribution and monitoring of IPsec
  information from a Security Controller to one or several flow-based
  Network Security Function (NSF).  The NSFs implement IPsec to protect
  data traffic between network resources.

  The document focuses on the NSF Facing Interface by providing models
  for configuration and state data required to allow the Security
  Controller to configure the IPsec databases (SPD, SAD, PAD) and IKEv2
  to establish Security Associations with a reduced intervention of the
  network administrator.


The IETF datatracker status page for this draft is:
 <https://datatracker.ietf.org/doc/draft-ietf-i2nsf-sdn-ipsec-flow-protection/> https://datatracker.ietf.org/doc/draft-ietf-i2nsf-sdn-ipsec-flow-protection/

There are also htmlized versions available at:
 <https://tools.ietf.org/html/draft-ietf-i2nsf-sdn-ipsec-flow-protection-05> https://tools.ietf.org/html/draft-ietf-i2nsf-sdn-ipsec-flow-protection-05
 <https://datatracker.ietf.org/doc/html/draft-ietf-i2nsf-sdn-ipsec-flow-protection-05> https://datatracker.ietf.org/doc/html/draft-ietf-i2nsf-sdn-ipsec-flow-protection-05

A diff from the previous version is available at:
 <https://www.ietf.org/rfcdiff?url2=draft-ietf-i2nsf-sdn-ipsec-flow-protection-05> https://www.ietf.org/rfcdiff?url2=draft-ietf-i2nsf-sdn-ipsec-flow-protection-05


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at  <http://tools.ietf.org/> tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
 <ftp://ftp.ietf.org/internet-drafts/> ftp://ftp.ietf.org/internet-drafts/

_______________________________________________
I2nsf mailing list
 <mailto:I2nsf@ietf.org> I2nsf@ietf.org
 <https://www.ietf.org/mailman/listinfo/i2nsf> https://www.ietf.org/mailman/listinfo/i2nsf

 

-------------------------------------------------------
Rafa Marin-Lopez, PhD
Dept. Information and Communications Engineering (DIIC)
Faculty of Computer Science-University of Murcia
30100 Murcia - Spain
Telf: +34868888501 Fax: +34868884151  <mailto:rafa@um.es> e-mail: rafa@um.es
-------------------------------------------------------

 

 

 

 

_______________________________________________
I2nsf mailing list
 <mailto:I2nsf@ietf.org> I2nsf@ietf.org
 <https://www.ietf.org/mailman/listinfo/i2nsf> https://www.ietf.org/mailman/listinfo/i2nsf