Welcome! Log In Create A New Profile

Advanced

Re: Optimizing NGINX TLS Time To First Byte (TTTFB)

Alex
December 18, 2013 08:00AM
> Looking at the tcpdump after applying the patch does show ~1400 byte records:
> http://cloudshark.org/captures/714cf2e0ca10?filter=tcp.stream%3D%3D2 [2]
>
> Although now on closer inspection there seems to be another gotcha in there that I overlooked: it's emitting two packets, one is 1389 bytes, and second is ~31 extra bytes, which means the actual record is 1429 bytes. Obviously, this should be a single packet... and 1400 bytes.

I did some empirical testing and with my configuration (given cipher
size, padding, and all), I came to 1370 bytes as being the optimal size
for avoid fragmenting of TLS record fragmentation.

> If you only distinguish pre and post TLS handshake then you'll still (likely) incur the extra RTT on first app-data record -- that's what we're trying to avoid by reducing the default record size. For HTTP traffic, I think you want 1400 bytes records. Once we're out of slow-start, you can switch back to larger record size.

Maybe I am wrong but I was of the belief that you should always try to
fit TLS records into individual TCP segments. Hence you should always
try to keep TLS record ~1400 bytes (or 1370 in my case), no matter the
TCP Window.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Optimizing NGINX TLS Time To First Byte (TTTFB)

Adam Zell December 18, 2013 07:44AM

RE: Optimizing NGINX TLS Time To First Byte (TTTFB)

Lukas Tribus December 18, 2013 07:44AM

RE: Optimizing NGINX TLS Time To First Byte (TTTFB)

Lukas Tribus December 18, 2013 07:50AM

Re: Optimizing NGINX TLS Time To First Byte (TTTFB)

Alex December 18, 2013 08:00AM

Re: Optimizing NGINX TLS Time To First Byte (TTTFB)

Alex December 18, 2013 07:52PM

Re: Optimizing NGINX TLS Time To First Byte (TTTFB)

Anton Yuzhaninov December 19, 2013 05:54AM

Re: Optimizing NGINX TLS Time To First Byte (TTTFB)

Jonathan Matthews December 18, 2013 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
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