CPU Increase when enabling AES-GCM

Supposedly AES-GCM should be the “best” cipher right now in terms of efficiency, however I noticed when enabling it on the F5, CPU goes up significantly. This is on a Viprion 2100 blade, 11.5.1 HF6. Anyone else seeing this?

I’m using “MEDIUM:!ADH:!RC4:@SPEED:RSA+3DES” for the cipher string. Adding a “!AES-GCM” to the line causes the CPU to immediately drop.

Are you still using the NATIVE SSL stack or did you change to COMPAT in the SSL profile? 404 Page not found | BIG-IP Documentation

I think this confirms that:

Looking at that solution, it has a command to run and verify that AES-GCM is in your NATIVE, but in 11.6 it is. If you do a "show ltm profile client-ssl can you tell which ciphers are mostly being used now that may be more efficient?

I’m using “MEDIUM” with a couple tweaks and all those ciphers, including anything AES-GCM, should be native. The statistics do confirm this:

We’ve had some issues in the past with the SSL acceleration on the Viprion 2100 blades, so I’m suspecting it’s a performance bug.

If you find out from support, can you post here? I may run into this. Thanks

I opened a support case and they confirmed it’s been reported by a few customers and is likely a bug. The suggested work-around is put !AES-GCM in the cipher string.

Another work-around I discovered was prefer 256-bit AES over 128-bit. The major browsers don’t support 256-bit AES-GCM, so they’ll negotiate regular AES and essentially you’ll never see the issue.

Were you provide with a bug ID?

Not yet - it sounded like they’ve just found out about this within the last couple weeks. I’ll post the bug ID here when it’s provided.

We upgraded to v11.6.0 recently and had some serious issues, and had to downgrade to v11.5.1 briefly. I am now glad we stuck to v11.6.0, for our workload is much higher than is shown in your graph, but there is no problem with CPU usage, although there is some major behaviour change in comparison with v11.3.0 we upgraded from.

ID 501045 - Add support for SHA256 and SHA384 to the Nitrox driver

ID 499946 - Nitrox reports bad record error on highly fragmented SSL records with aes-gcm ciphers

Cr. Erick, Piotr, Mike

ID 501045 - Add support for SHA256 and SHA384 to the Nitrox driver

ID 499946 - Nitrox reports bad record error on highly fragmented SSL records with aes-gcm ciphers

Cr. Erick, Piotr, Mike

Ah, so the problem isn’t so much AES-GCM but rather SHA384 or SHA256 as the MAC. Indeed, you’ll see similar results with ECDHE-RSA-AES256-SHA384 and ECDHE-RSA-AES128-SHA256. Quick work-around is use “ECDHE+AES+SHA” in the cipher string.

Adding !SHA256 and !SHA384 will do the trick too. If SHA256 and SHA384 are an issue, that makes AES-GCM ciphers unusable until its fixed.

Nitass, are those published BugIDs? I can’t find them on askf5.com.

Adding !SHA256 and !SHA384 will do the trick too. If SHA256 and SHA384 are an issue, that makes AES-GCM ciphers unusable until its fixed.

Nitass, are those published BugIDs? I can’t find them on askf5.com.

I could not wait anymore and had to find the TLS/SSL hardware used from article “SOL7778: BIG-IP hardware SSL and compression cards”. Then search “Product Brief” for the specific chip to be sure if SHA-2 hardware acceleration is possible. Hopefully we get some answer from F5 to this SHA-2 CPU consumption issue.

sorry i missed your post. no, it is not published (as of now) but you can open a support case and ask for bug information.

sorry i missed your post. no, it is not published (as of now) but you can open a support case and ask for bug information.

The second one is now fixed in 11.6.0 HF5: 499946-3 Nitrox might report bad records on highly fragmented SSL records I still haven’t seen any mention of SHA-2 family support in hardware.

The second one is now fixed in 11.6.0 HF5: 499946-3 Nitrox might report bad records on highly fragmented SSL records I still haven’t seen any mention of SHA-2 family support in hardware.

Looks like this did get fixed. We’re on 11.6.1 HF2 now and I see no noticeable CPU increase with this cipher string, which should result in the vast majority of handshakes going SHA256 or SHA384

ECDHE+AES-GCM:ECDHE+AES:RSA+AES+SHA:RSA+3DES

I’m thinking it may have been back in 11.6.0 HF5, which fixed this bug:

491030-6 : Nitrox crypto accelerator can sometimes hang when encrypting SSL records