netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPsec PMTUD problem
@ 2007-04-02 14:10 Patrick McHardy
  2007-04-03  9:55 ` Herbert Xu
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick McHardy @ 2007-04-02 14:10 UTC (permalink / raw)
  To: Linux Netdev List; +Cc: Herbert Xu

I noticed a problem with PMTUD between two IPsec tunnel endpoints.
When sending a packet larger than the PMTU with IP_DF from one
tunnel endpoint to the other, xfrm4_output sends an ICMP frag.
required with the IPsec MTU. Since the addresses match the tunnel
endpoints, this updates the MTU for the XFRM route with the value
that was calculated for the entire bundle, which in turn causes
a decrease for the bundle, resulting in further ICMP frag. required
messages until the minimum is reached.

For example with an IPsec tunnel 10.0.0.1 <-> 10.0.0.2:

uml:~# ping 10.0.0.1 -M do -s 1500 -c 20
PING 10.0.0.1 (10.0.0.1) 1500(1528) bytes of data.
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 1428)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 1356)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 1284)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 1212)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 1140)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 1068)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 996)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 924)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 852)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 780)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 708)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 636)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 564)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 552)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 492)
>From 10.0.0.2 icmp_seq=1 Frag needed and DF set (mtu = 492)
...

I can't come up with a way to fix this, so I'm hoping someone else
has an idea.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-04-05 13:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 14:10 IPsec PMTUD problem Patrick McHardy
2007-04-03  9:55 ` Herbert Xu
2007-04-03 16:32   ` Patrick McHardy
2007-04-05 12:04     ` Herbert Xu
2007-04-05 12:09       ` Patrick McHardy
2007-04-05 12:12         ` Herbert Xu
2007-04-05 12:16           ` Patrick McHardy
2007-04-05 12:17             ` Herbert Xu

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).