From: jamal <hadi@cyberus.ca>
To: Shinta Sugimoto <shinta@sfc.wide.ad.jp>
Cc: netdev@vger.kernel.org,
Francis Dupont <Francis.Dupont@point6.net>,
Masahide Nakamura <nakam@linux-ipv6.org>,
usagi-core@linux-ipv6.org
Subject: Re: [RFC][PATCH][XFRM][0/5] extension for XFRM databases
Date: Fri, 02 Feb 2007 08:35:51 -0500 [thread overview]
Message-ID: <1170423351.4000.42.camel@localhost> (raw)
In-Reply-To: <20070202132129.E2EA.SHINTA@sfc.wide.ad.jp>
Hello,
On Fri, 2007-02-02 at 20:25 +0900, Shinta Sugimoto wrote:
> In the design phase, we sorted out the requirements as below:
>
> (1) Overhead of userland <-> kernel interaction message exchange
> should be kept minimum.
> (2) There should not be too much requirement for user application
> to leverage the feature (dynamic update of endpoint). More
> specifically, we don't want to expect the user application to
> have detailed information of IPsec security association
> (i.e. SPI).
> (3) There should not be negative impact on the existing software
> which is based on PF_KEYv2 (RFC2367).
>
> Firstly, if we use the existing messages for updating SPD and SAD,
> we simply need 2 pairs of request/response exchange between the
> userland and kernel for updating a single endpoint. This is not
> ideal from the perspective of (1).
Ok, if i understand you correctly:
Instead of having from userland one message for updating SAD and another
for updating SPD, you have a single message which updates both?
> Secondly, we need to be careful about updating the endpoint address
> because it may invoke unexpected signaling (ACQUIRE) to the user
> application. Imagine you update SPD and SAD sequentially while there
> is an outbound flow going on. The kernel may end up with triggering
> the userland application by unexpected ACQUIRE message due to the
> absence of SAD entry. In order to avoid this problem, we need a sort
> of atomic update of SPD and SAD entries. XFRM_MSG_MIGRATE is designed
> and implemented in a way that unexpected ACQUIRE would never occur.
>
Ok, this is sensible - it could be achieved with two multipart messages
in netlink; but a single message is better.
> Thirdly, we also need to pay attention to the PF_KEYv2 spec.
> XFRM_MSG_UPDSA is derived from SADB_UPDATE message in PF_KEYv2.
> According to the spec, the semantics of SADB_UPDATE is to add a new
> security association with the information provided by previous
> SADB_GETSPI message. We think it's not a good idea to overload
> the semantics of SADB_UPDATE message because it may confuse legacy
> software from the perspective of (3). Moreover, caller of
> SADB_UPDATE should specify SPI, source address, and destination
> address, which is a bit problematic from the perspective of (2).
>
We really dont have this issue with xfrm side.
I think that PF_KEYv2 is just a dinosaur that needs to be extinct.
Continuing to bandaid around it is converting into a mammoth.
I found your first two explanation more reasonable, but not this one.
> From the above reasons, we decided to extend XFRM/PF_KEYv2 for
> dynamic update of the endpoint. Please note that the mechanism is
> useful not only for Mobile IPv6 but also for Mobile VPN scenario.
>
Can you explain what you mean by this last part? There are many ways to
achieve mobile VPN - is the end client aware?
> Does this make sense?
Yes, I think I see the logic behind your design. To be 100% convinced,
depends if your answer to the first question i asked is "yes".
cheers,
jamal
next prev parent reply other threads:[~2007-02-02 13:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-01 4:09 [RFC][PATCH][XFRM][0/5] extension for XFRM databases Shinta Sugimoto
2007-02-01 13:24 ` jamal
2007-02-02 11:25 ` Shinta Sugimoto
2007-02-02 13:35 ` jamal [this message]
2007-02-03 0:28 ` Shinta Sugimoto
2007-02-03 13:45 ` jamal
2007-02-05 0:56 ` David Miller
2007-02-05 1:15 ` Shinta Sugimoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1170423351.4000.42.camel@localhost \
--to=hadi@cyberus.ca \
--cc=Francis.Dupont@point6.net \
--cc=nakam@linux-ipv6.org \
--cc=netdev@vger.kernel.org \
--cc=shinta@sfc.wide.ad.jp \
--cc=usagi-core@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).