netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPsec performance
@ 2005-05-02 18:39 Miika Komu
  2005-05-02 19:09 ` Miika Komu
  0 siblings, 1 reply; 14+ messages in thread
From: Miika Komu @ 2005-05-02 18:39 UTC (permalink / raw)
  To: netdev

Hi folks,

I compared TCP-over-NULL-ESP vs. plain-TCP throughput with "ttcp" tool and
obtained the following results:

Plain-TCP:	11 megabytes/s
NULL-ESP:	2.5 megabytes/s

Am I doing something wrong? I did the measurements by transferring a 100
megabyte file using vanilla 2.6.7 kernel and IPv6. Seems like my
results are inconsistent at least with measurements published by Linux
Journal:

http://www.linuxjournal.com/article/7840

The main differences with the Linux Journal measurements are that I used a
significantly larger filesize and IPv6. So, I tried to run the same with
IPv4 and got similar results... any ideas?

-- 
Miika Komu              miika@iki.fi          http://www.iki.fi/miika/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* ipsec performance
@ 2009-12-29 21:09 Andreas Schuldei
  2009-12-29 22:55 ` Abhijit Karmarkar
  0 siblings, 1 reply; 14+ messages in thread
From: Andreas Schuldei @ 2009-12-29 21:09 UTC (permalink / raw)
  To: netdev

hi!

i experience performance issues with ipsec transport mode with debian
lenny and strongswan, on a stock debian kernel 2.6.26-2-amd64.

the goal is to set up a full mash of several hundred hosts, talking
ipsec with each other, in order to be able to skip firewalls and to be
able to let the hosts be spread out over several sites in a
transparent fashion.

regardless of the cipher (i tried aes and blowfish) the bandwidth
maxes out at about 0.5-0.25 of the expected (unencrypted) value,
without hitting obvious bottlenecks like cpu, disk, or ram.

tcpdump shows packages below the MTU (which is 1500):

20:25:03.313469 IP 78.31.14.86 > 78.31.14.93:
ESP(spi=0xc929dbe8,seq=0x100a87), length 1332
20:25:03.313514 IP 78.31.14.86 > 78.31.14.93:
ESP(spi=0xc929dbe8,seq=0x100a88), length 1476
20:25:03.313529 IP 78.31.14.93 > 78.31.14.86:
ESP(spi=0xc4967810,seq=0x7bcd1), length 68
20:25:03.313557 IP 78.31.14.86 > 78.31.14.93:
ESP(spi=0xc929dbe8,seq=0x100a89), length 1476
20:25:03.313603 IP 78.31.14.86 > 78.31.14.93:
ESP(spi=0xc929dbe8,seq=0x100a8a), length 1332
20:25:03.313605 IP 78.31.14.86 > 78.31.14.93:
ESP(spi=0xc929dbe8,seq=0x100a8a), length 1332
20:25:03.313606 IP 78.31.14.93 > 78.31.14.86:
ESP(spi=0xc4967810,seq=0x7bcd2), length 68
20:25:03.313649 IP 78.31.14.86 > 78.31.14.93:
ESP(spi=0xc929dbe8,seq=0x100a8b), length 1476

how can i inspect window size, fragmentation etc? are there useful
files in /proc or /sys or enlightening ip commands?

/andreas

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

end of thread, other threads:[~2009-12-29 23:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-02 18:39 IPsec performance Miika Komu
2005-05-02 19:09 ` Miika Komu
2005-05-03  0:55   ` Patrick McHardy
2005-05-03  5:25     ` Miika Komu
2005-05-03  5:54       ` Dave Dillow
2005-05-03  6:44         ` Miika Komu
2005-05-03 14:17           ` Dave Dillow
2005-05-03 16:14             ` Miika Komu
2005-05-03 19:27               ` Dave Dillow
2005-05-03 19:27                 ` David S. Miller
2005-05-04 11:34           ` jamal
  -- strict thread matches above, loose matches on Subject: below --
2009-12-29 21:09 ipsec performance Andreas Schuldei
2009-12-29 22:55 ` Abhijit Karmarkar
2009-12-29 23:31   ` Andreas Schuldei

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