Page MenuHomeFreeBSD

Improve TCP timestamps
ClosedPublic

Authored by tuexen on Aug 8 2018, 11:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 9:29 AM
Unknown Object (File)
Thu, Apr 25, 8:07 PM
Unknown Object (File)
Thu, Apr 25, 8:07 PM
Unknown Object (File)
Thu, Apr 25, 6:48 PM
Unknown Object (File)
Wed, Apr 24, 8:32 AM
Unknown Object (File)
Tue, Apr 23, 9:24 AM
Unknown Object (File)
Tue, Apr 23, 7:35 AM
Unknown Object (File)
Tue, Apr 23, 12:13 AM
Subscribers

Details

Summary

TCP timestamps leak the uptime in milliseconds. To avoid this, initialise the TCP timestamp with a value of a keyed hash function, which takes the source and destination IP address and the source and destination port number.
Use the same keyed hash function as used for selecting the initial TCP sequence number.

Test Plan

Ensure that the TCP timestamp is increasing over multiple TCP connections using the same 4 tuple. Check this when using the syn cache and syn cookies.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 18656