Welcome! Log In Create A New Profile

Advanced

How to test session resumption (session id and session ticket) and measure performance between them?

Ranieri Mazili
January 31, 2024 05:08PM
Hi,
I have an Nginx server where I'm trying to measure the performance
difference between not using session resumption, using session id and using
session ticket.

To do that, I just need to set this on my nginx.conf file:

#No session resumption
ssl_session_tickets off;
ssl_session_cache off;

#Session resumption - Session ID
ssl_session_tickets off;
ssl_session_cache shared:SSL:10m;

#Session resumption - Session Tickets
ssl_session_tickets on;
ssl_session_cache off;

After set each one, I can test if they are active using the following
command and check Session-ID or TLS session ticket are returned:
echo R | openssl s_client -connect mtls-as.ranieri.dev.br:443 -tls1_2
-reconnect

I also have configured the variable $ssl_session_reused to print when a
session is reused.

I've tried to test and measure the performance using the Apache Bench
software with the command below, but nginx is printing "." instead of "r"
on the logs, what means the session aren't being reused.
Apache Bench command: ab -n 500 -c 10 -k https://mtls-as.ranieri.dev.br/

Does anyone know how to test the session resumption and measure the
performance difference between them?
--
Ranieri
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to test session resumption (session id and session ticket) and measure performance between them?

Ranieri Mazili January 31, 2024 05:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 131
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready