Skip to contentSkip to conversation

IPsec performance over UDP

DISCUSSION Michael Iatrou 2 participants 3 messages May 10, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I did some testing for IPsec performance over UDP. I used two identical PCs, connected back-to-back, with Intel Xeon 2.8GHz (SMP/SMT disabled), 512MB RAM, e1000 (82546EB), running Linux 2.6.11.7.

I tested AES {128,192,256}, DES, 3DES, SHA, MD5 and various combinations of them for ESP and AH.

Network performance:
http://members.hellug.gr/iatrou/udp-throughput.png

CPU utilization:
http://members.hellug.gr/iatrou/udp-cpu.png

The "unexpected" result is that there is 30% idle time even if the network is not saturated! On the other hand, TCP seems to behave more normally:

Network performance:
http://members.hellug.gr/iatrou/tcp-throughput.png

CPU utilization:
http://members.hellug.gr/iatrou/tcp-cpu.png

Any ideas?

All tests are 100% reproducible.

Additional infos:
MTU 1500
IPsec mode: transport, using preshared keys
netperf 2.3pl1
CPU utilization from /proc/stat

Signature · 3 lines
 Michael Iatrou
 Electrical and Computer Engineering Dept.
 University of Patras, Greece
#1 lore raw
Quoted 6 lines · Michael Iatrou

Hi,

I did some testing for IPsec performance over UDP. I used two identical PCs, connected back-to-back, with Intel Xeon 2.8GHz (SMP/SMT disabled), 512MB RAM, e1000 (82546EB), running Linux 2.6.11.7.

I tested AES {128,192,256}, DES, 3DES, SHA, MD5 and various combinations of them for ESP and AH.

Quoted 7 lines

Network performance:
http://members.hellug.gr/iatrou/udp-throughput.png

CPU utilization:
http://members.hellug.gr/iatrou/udp-cpu.png

The "unexpected" result is that there is 30% idle time even if the network is not saturated!

Perhaps the sending side got intra-stack flow-controlled?

rick jones

#2 lore raw
Quoted 4 lines · Rick Jones
Quoted 2 lines

The "unexpected" result is that there is 30% idle time even if the network is not saturated!

Perhaps the sending side got intra-stack flow-controlled?

In that case, plain IP should't also have the same problem (it hasn't)?

Signature · 3 lines
 Michael Iatrou
 Electrical and Computer Engineering Dept.
 University of Patras, Greece