The initial Diff D19334 was rather crude. This patch improves the DSACK handling to conform with the RFC.
The lowest SACK block is used when multiple Blocks would be elegible as DSACK blocks
SACK blocks get reordered - while maintaining the ordering of SACK blocks not relevant in the DSACK context is maintained.
Details
- Reviewers
tuexen rrs - Group Reviewers
transport - Commits
- rS351725: This patch improves the DSACK handling to conform with RFC 2883.
Packedrill has 95 tests around SACK / DSACK in rcv-data-segments/overlapping.
Additional testis with randomly ordered initial SACK blocks and up to 4 SACK blockx (maximum without Timestamps) will be provided
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 25479 Build 24098: arc lint + arc unit
Event Timeline
The patch doesn't apply, since the indentation is based on spaces instead of tabs. Please fix.
sys/netinet/tcp_var.h | ||
---|---|---|
941 | It needs a closing parentheses at the end for the semicolon. |
Added DSACK to RACK again. Validated by running packet drill DSACK testsuite against the rack stack:
[root@freebsd ~]# kldload tcp_rack
[root@freebsd ~]# sysctl net.inet.tcp.functions_available
net.inet.tcp.functions_available:
Stack D Alias PCB count
freebsd * freebsd 8
rack rack 0
[root@freebsd ~]# sysctl net.inet.tcp.functions_default=rack
net.inet.tcp.functions_default: freebsd -> rack
[root@freebsd ~]# sysctl net.inet.tcp.functions_available
net.inet.tcp.functions_available:
Stack D Alias PCB count
freebsd freebsd 8
rack * rack 0
[root@freebsd ~/tcp-testsuite/rcv-data-segments]# for i in ls overlapping-???-???.pkt
do
echo $i
packetdrill $i
done
overlapping-050-075.pkt
single word S S
net.inet.tcp.sack.enable: 1 -> 1
net.inet.tcp.hostcache.purgenow: 0 -> 0
overlapping-050-100.pkt
All 95 tests completed with no functional issues (3 timing errors in the first run, none in the 2nd).
Can not comment on TOE / HPTS interaction mentioned earlier - lack the infrastructure to validate that.
This tgz file contains packetdrill tests for dsack, with the non-duplicate packets getting delivered in various orderings, before the overlapping DSACK is sent.
This is to validate that SACK block order remains maintained, while overlapping DSACK/SACK segments get shuffled first in the option block.
sys/netinet/tcp_sack.c | ||
---|---|---|
281 | Indentation |
Please validate the rack_bbr_common.c has (or does not have) the extra bit you added in the early part.
sys/netinet/tcp_stacks/rack.c | ||
---|---|---|
1790 | This block may be a duplicate of whats in rack_bbr_common.c Please look in that file to verify. R |
sys/netinet/tcp_stacks/rack.c | ||
---|---|---|
1790 | There is no rack_bbr_common.c in the upstream (yet). Only the header file, which doesn't contain any code. Shall I add a comment that this needs to be checked once bbr is merged to upstream? |
sys/netinet/tcp_stacks/rack.c | ||
---|---|---|
1790 | I think is it in head: rack_bbr_common.c. |
- add dsack drop block in rack_bbr_common
- lint - breaking some lines longer than 80 char
synced up my branch to add the dsack change on drop in rack_bbr_common, as pointed out. Thx!