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

Yoav Nir <> Sun, 21 July 2019 01:23 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 43619120104; Sat, 20 Jul 2019 18:23:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Status: No, score=-1.998 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] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id mn1s7nL_1ipP; Sat, 20 Jul 2019 18:23:19 -0700 (PDT)
Received: from ( [IPv6:2607:f8b0:4864:20::842]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 39FA51200EF; Sat, 20 Jul 2019 18:23:19 -0700 (PDT)
Received: by with SMTP id r6so30744013qtt.0; Sat, 20 Jul 2019 18:23:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=PW5G8czcZDR0KEskN1AyTc6IejzOXlxiRTKGabtTiv4=; b=tNcqq+FUmaqsFOHr5zWtT5JYDNyRrgN2hV2ilHgbsfsdxwEo/KVA0omAUH4vFTWU5K auWY+da/iXJ4rogsvhQhPBjkLx4oCFl5OiXDpSr9F4gWBV0D9swECRbq5hEptg22bKGU +Lr4s2hh/QozVwDDp1gxaqR1yDSyc9N7aQOGvAFuKmHnY8SnOQdUwW+zf3aJv7T+F+xm q2+G3GmojHe2UCnPLPsMyx20DwER6DIV4GxUDoX38JwU9O17xVldw1VMAhX/dquIelN+ AetrRU6XzUHuPGznsDwqeW2KxcBotDGpz0u6ojc6u6mXNUmt0fbAAw+VeoyiYFhBV2nV gHvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=PW5G8czcZDR0KEskN1AyTc6IejzOXlxiRTKGabtTiv4=; b=o0rJx8S+caCORby2iYM7UotS2w/cjrAKPwvoecVrWvOKa4s9BfbmQSEXexq9n7L4u9 JdYuS1kpAUKM4mD2+OhYoSIb1b1FnJ+DaI2FxDt27GkTWWRj0mkVFI8LeHCbjMkJHb/q H0c4ZL10X7vrH6zH13L6u5aswjbv4CccW7+lHMU81LJ1seUQEJXwXJOw8CwiuWpoal5M JTBqb3xmJqHc9851YSl7rFQbdU3mInKPz2gTcfmT9m/rTQYOTMKn+5Xm/Ffsxh+cnLcM 8DE54t2rzYhbzhKpphYosO6XX4sLZdtDFUaYQdwmwRFAFuZAPRfzjrHvNl8LMEZ6VLo7 TrQQ==
X-Gm-Message-State: APjAAAVqfoK38JrwP2leem1g02NKbN/R0S/WyjtfXIaLvuWrYLNqi2/T V93GlpR0qq+2M2q9vdoMuPU=
X-Google-Smtp-Source: APXvYqzKDtS9ASrtE8SVPi7sMOd8V5aRIQC0UqgNL44COBVs+OvR7UH1uNt/sMrHRXc4y3MJPhs9ZQ==
X-Received: by 2002:a0c:c604:: with SMTP id v4mr42847990qvi.21.1563672198284; Sat, 20 Jul 2019 18:23:18 -0700 (PDT)
Received: from ?IPv6:2001:67c:1232:144:e072:f96:2cd6:81e0? ([2001:67c:1232:144:e072:f96:2cd6:81e0]) by with ESMTPSA id d123sm17331281qkb.94.2019. (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Jul 2019 18:23:17 -0700 (PDT)
From: Yoav Nir <>
Message-Id: <>
Content-Type: multipart/alternative; boundary="Apple-Mail=_04900C51-5BFE-479E-A497-29BF56432E58"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Sat, 20 Jul 2019 21:23:15 -0400
In-Reply-To: <016c01d53f08$e0c2d1d0$a2487570$>
Cc: Rafa Marin-Lopez <>,,, =?utf-8?B?RmVybmFuZG8gUGVyZcOxw61ndWV6IEdhcmPDrWE=?= <>,, Gabriel Lopez <>
To: Valery Smyslov <>
References: <> <> <> <016c01d53f08$e0c2d1d0$a2487570$>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <>
Subject: Re: [I2nsf] I-D Action: draft-ietf-i2nsf-sdn-ipsec-flow-protection-05.txt
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "*I2NSF: Interface to Network Security Functions mailing list*" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Sun, 21 Jul 2019 01:23:23 -0000

Hi, Valery

[no hats]

Thanks for that.

I think this demonstrates that the current document is not enough and we will need some follow-up documents explaining when to use either case.

I don’t think it’s very useful for the controller to distribute a policy (SPD entries) but no SAs (SAD entries) in the IKE-less case.  It makes sense in the IKE case because the NSFs can then use IKE to generate the SAs, but in the IKE-less case that would mean that one NSF gets a packet that should be protected, sends a message to the controller, which generates an SA and sends it to both the requester and the other NSF.  This seems high latency.

I think the case for IKE-less is where the controller sends SPD entries and SAD entries at the same time (perhaps later updating the SAD entries to rekey). In that case the action of the controller is to bring up a tunnel.  For example, if the user (or application) decides that communications between node A and node B should be encrypted, the controller will send both policy and keys at the same time to make that tunnel.


> On 20 Jul 2019, at 10:38, Valery Smyslov <> wrote:
> 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).
> 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.
> I didn't find this discussion in the draft (sorry if I missed it).
> 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 < <>> 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: <>
>>> 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: < <>>
>>> Cc: <>
>>> Responder a: <>
>>> 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:
>>> <>
>>> There are also htmlized versions available at:
>>> <>
>>> <>
>>> A diff from the previous version is available at:
>>> <>
>>> Please note that it may take a couple of minutes from the time of submission
>>> until the htmlized version and diff are available at
>>> Internet-Drafts are also available by anonymous FTP at:
>>> <>
>>> _______________________________________________
>>> I2nsf mailing list
>>> <>
>>> <>
>> -------------------------------------------------------
>> Rafa Marin-Lopez, PhD
>> Dept. Information and Communications Engineering (DIIC)
>> Faculty of Computer Science-University of Murcia
>> 30100 Murcia - Spain
>> Telf: +34868888501 Fax: +34868884151 e-mail: <>
>> -------------------------------------------------------
>> _______________________________________________
>> I2nsf mailing list
>> <>
>> <>