From: David Miller <davem@davemloft.net>
To: steffen.klassert@secunet.com
Cc: herbert@gondor.apana.org.au, netdev@vger.kernel.org
Subject: Re: [RFC] State resolution packet queue for IPsec
Date: Mon, 21 Jan 2013 16:17:16 -0500 (EST) [thread overview]
Message-ID: <20130121.161716.752461350033731834.davem@davemloft.net> (raw)
In-Reply-To: <20130121094847.GC30530@secunet.com>
From: Steffen Klassert <steffen.klassert@secunet.com>
Date: Mon, 21 Jan 2013 10:48:48 +0100
> I did a implementation of a state resolution packet queue for IPsec.
> The original idea is described in git commit 14e50e57a
> ([XFRM]: Allow packet drops during larval state resolution.)
>
> Since we don't have any notifiers for xfrm state resolution, I used
> a timer that does a relookup in given intervals. This is mainly to speed
> up the start of tcp connections, so I tried to do the relookup in a higher
> rate that tcp would resend the syn packet. However, the relookup intervals,
> the queue size and the timeout value are choosen by gut instincts, so
> could be suboptimal. If anyone has some insight on good choices of these
> values, please let me know. All other comment are welcome too, of course.
This is probably the best way to solve this problem without adding
xfrm_state resolution notifications.
But really why would notifications be so bad even if they would not
be fine grained?
Any time a state is resolved, any state, you run what you have put
currently into this new timer function.
Most of the time, defer list is empty, so no work is done. Otherwise
quick notification is essential and worth running the list.
Then there are no time based heuristics to come up with at all.
next prev parent reply other threads:[~2013-01-21 21:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 9:48 [RFC] State resolution packet queue for IPsec Steffen Klassert
2013-01-21 21:17 ` David Miller [this message]
2013-01-22 11:10 ` Steffen Klassert
2013-02-04 8:25 ` Steffen Klassert
2013-02-04 17:47 ` David Miller
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=20130121.161716.752461350033731834.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/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).