All of lore.kernel.org
 help / color / mirror / Atom feed
* Performance hit with IP-tunnels
@ 2010-03-22 10:17 ` Kristian Evensen
  0 siblings, 0 replies; 4+ messages in thread
From: Kristian Evensen @ 2010-03-22 10:17 UTC (permalink / raw)
  To: netdev, linux-ppp

Hello,

I am currently comparing different IP-tunneling protocols/implementations,
and have stumbled upon something I am not able to explain. Regardless of
which tunneling technology I use, the latency increases with a couple of 10s
of ms and I see a significant degradation of throughput (compared to when no
tunnels are used). The only exception is IP-in-IP, where I get similar
performance with and without tunnels, but it does unfortunately not work in
my scenario.

First, I thought this was caused by the different tunneling software, but
after measuring the processing time of the applications (xl2tp and
pptp-client) and when the packets are seen by the different iptables chains
(using LOG), these delays seem to be acceptable. However, one delay sticks
out. After the packet has been decapsulated and fed to PPP, it takes a
"long" time before it is seen again. My question is, can PPP be the cause of
the higher latency and lower throughput? 

Similar observations are made at both ends of the tunnel.

Thanks in advance for any help,
Kristian


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

* Performance hit with IP-tunnels
@ 2010-03-22 10:17 ` Kristian Evensen
  0 siblings, 0 replies; 4+ messages in thread
From: Kristian Evensen @ 2010-03-22 10:17 UTC (permalink / raw)
  To: netdev, linux-ppp

Hello,

I am currently comparing different IP-tunneling protocols/implementations,
and have stumbled upon something I am not able to explain. Regardless of
which tunneling technology I use, the latency increases with a couple of 10s
of ms and I see a significant degradation of throughput (compared to when no
tunnels are used). The only exception is IP-in-IP, where I get similar
performance with and without tunnels, but it does unfortunately not work in
my scenario.

First, I thought this was caused by the different tunneling software, but
after measuring the processing time of the applications (xl2tp and
pptp-client) and when the packets are seen by the different iptables chains
(using LOG), these delays seem to be acceptable. However, one delay sticks
out. After the packet has been decapsulated and fed to PPP, it takes a
"long" time before it is seen again. My question is, can PPP be the cause of
the higher latency and lower throughput? 

Similar observations are made at both ends of the tunnel.

Thanks in advance for any help,
Kristian


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

* Re: Performance hit with IP-tunnels
  2010-03-22 10:17 ` Kristian Evensen
@ 2010-03-22 11:06   ` Eric Dumazet
  -1 siblings, 0 replies; 4+ messages in thread
From: Eric Dumazet @ 2010-03-22 11:06 UTC (permalink / raw)
  To: Kristian Evensen; +Cc: netdev, linux-ppp

Le lundi 22 mars 2010 à 11:17 +0100, Kristian Evensen a écrit :
> Hello,
> 
> I am currently comparing different IP-tunneling protocols/implementations,
> and have stumbled upon something I am not able to explain. Regardless of
> which tunneling technology I use, the latency increases with a couple of 10s
> of ms and I see a significant degradation of throughput (compared to when no
> tunnels are used). The only exception is IP-in-IP, where I get similar
> performance with and without tunnels, but it does unfortunately not work in
> my scenario.
> 
> First, I thought this was caused by the different tunneling software, but
> after measuring the processing time of the applications (xl2tp and
> pptp-client) and when the packets are seen by the different iptables chains
> (using LOG), these delays seem to be acceptable. However, one delay sticks
> out. After the packet has been decapsulated and fed to PPP, it takes a
> "long" time before it is seen again. My question is, can PPP be the cause of
> the higher latency and lower throughput? 
> 
> Similar observations are made at both ends of the tunnel.

A soon as a round trip on a user process is requested to handle a
packet, you can have delay because of scheduling constraints.

You could try latencytop and check if something strange raises, 10 ms
seems excessive.

IP-TIP tunnels dont use a user space program, they are immune to
scheduler latencies.



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

* Re: Performance hit with IP-tunnels
@ 2010-03-22 11:06   ` Eric Dumazet
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Dumazet @ 2010-03-22 11:06 UTC (permalink / raw)
  To: Kristian Evensen; +Cc: netdev, linux-ppp

Le lundi 22 mars 2010 à 11:17 +0100, Kristian Evensen a écrit :
> Hello,
> 
> I am currently comparing different IP-tunneling protocols/implementations,
> and have stumbled upon something I am not able to explain. Regardless of
> which tunneling technology I use, the latency increases with a couple of 10s
> of ms and I see a significant degradation of throughput (compared to when no
> tunnels are used). The only exception is IP-in-IP, where I get similar
> performance with and without tunnels, but it does unfortunately not work in
> my scenario.
> 
> First, I thought this was caused by the different tunneling software, but
> after measuring the processing time of the applications (xl2tp and
> pptp-client) and when the packets are seen by the different iptables chains
> (using LOG), these delays seem to be acceptable. However, one delay sticks
> out. After the packet has been decapsulated and fed to PPP, it takes a
> "long" time before it is seen again. My question is, can PPP be the cause of
> the higher latency and lower throughput? 
> 
> Similar observations are made at both ends of the tunnel.

A soon as a round trip on a user process is requested to handle a
packet, you can have delay because of scheduling constraints.

You could try latencytop and check if something strange raises, 10 ms
seems excessive.

IP-TIP tunnels dont use a user space program, they are immune to
scheduler latencies.



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

end of thread, other threads:[~2010-03-22 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22 10:17 Performance hit with IP-tunnels Kristian Evensen
2010-03-22 10:17 ` Kristian Evensen
2010-03-22 11:06 ` Eric Dumazet
2010-03-22 11:06   ` Eric Dumazet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.