Skip to content

: Less is more - CCID3 patch set revised

Gerrit Renker dccp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16: Revert use of MSS instead of snet/dccp/ccids/ccid3.c+12 -90 replies
2/16: Ignore trivial amounts of elapsed timenet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h+1 -110 replies
3/16: Accurately determine idle & application-limited periodsnet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h+10 -100 replies
4/16: Inline for moving averagenet/dccp/ccids/ccid3.c net/dccp/ccids/lib/tfrc.h+14 -200 replies
5/16: Migrate TX history to singly-linked listnet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h net/dccp/ccids/lib/packet_history.c +1 more+155 -430 replies
6/16: Remove old (doubly-linked list) TX historynet/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+0 -1470 replies
7/16: Provide central source file and debug facilitynet/dccp/ccids/Kconfig net/dccp/ccids/lib/Makefile net/dccp/ccids/lib/loss_interval.c +4 more+64 -230 replies
8/16: New RX history implementationnet/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h net/dccp/ccids/lib/tfrc_module.c +1 more+255 -50 replies
9/16: Hook up with new RX history interfacenet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h+101 -2210 replies
10/16: Remove old RX history interfacenet/dccp/ccids/lib/loss_interval.c net/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+9 -2460 replies
11/16: Ringbuffer to track loss interval historynet/dccp/ccids/lib/loss_interval.c net/dccp/ccids/lib/loss_interval.h net/dccp/ccids/lib/packet_history.c +2 more+400 -60 replies
12/16: Interface CCID3 code with newer Loss Intervals Databasenet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h net/dccp/dccp.h+72 -190 replies
13/16: Remove previous loss intervals implementationnet/dccp/ccids/lib/loss_interval.c net/dccp/ccids/lib/loss_interval.h net/dccp/ccids/lib/tfrc_module.c+13 -2880 replies
14/16: Use a function to update p_inv, and p is never usednet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h+12 -100 replies
15/16: Implement rfc3448bis changes to feedback receptionnet/dccp/ccids/ccid3.c+86 -840 replies
16/16: Nofeedback timer according to rfc3448bisnet/dccp/ccids/ccid3.c+29 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/16]: Less is more - CCID3 patch set revised

This resubmission represents the same changeset as before, but with a significant reduction in the number of patches: from 40 down to 16.

While an even smaller number of patches would be possible, this would lump together unrelated changes, which should be avoided (ugly).

The set is line-by-line identical with the previous CCID3, apart from two format differences detailed below.

Major changes:

1. All `glue' patches have been removed, each patch solves an actual problem.

2. All patch inter-dependencies have been completely removed:

T h e e n t i r e t e s t t r e e i s n o w f u l l y b i s e c t a b l e

This has been exhaustively verified on three different architectures: doing a full module build (not just source compilation) for each single patch in the test tree. This passed in all cases.

The two changes are
(a) I have added myself as MODULE_AUTHOR in ccids/lib/tfrc_module.c, so as to get emails about bugs (not that I believe/hope there are much, the code has been running allright for over 9 months now).

(b) Another update with regard to Documentation/CodingStyle (in ccid3.c):

	-	} else if (tfrc_lh_update_i_mean(&hcrx->ccid3hcrx_li_hist, skb))
	+	} else if (tfrc_lh_update_i_mean(&hcrx->ccid3hcrx_li_hist, skb)) {
			/*
			 * Step (3) of [RFC 3448, 6.1]: Recompute I_mean and, if I_mean
			 * has decreased (resp. p has increased), send feedback now.
			 */
			do_feedback = FBACK_PARAM_CHANGE;
	+	}

You can verify this by running a diff as follows:
git-checkout -b old master
curl http://www.erg.abdn.ac.uk/users/gerrit/dccp/testing_dccp/test-tree/test-tree_2.6.24-rc2.diff.gz|gzip -d|patch -p1 git-add net/dccp/ccids/lib/tfrc_module.c; git-commit -a -mold
git-checkout -b new master
git-pull git://eden-feed.erg.abdn.ac.uk/dccp_exp dccp
git-diff old..new

I have updated the CCID4 patches to match this change also.

Ian, since you signed off every single of the 40 previous patches, I have kept your Signed-off-by's for this resubmission, since it is effectively identical with before.

--------------------------------- Detailed Patch listing -------------------------------------------------------------

Patch #1:  Rectifies incorrect use of MSS instead of `s' in the CCID3 code.
Patch #2:  Removes a code block which reports trivial/negligible amounts of Elapsed Time.
Patch #3:  Better detection of application-limited and idle periods.
Patch #4:  Inline for moving average (EWMA).

Patch #5: Migrate & update TFRC TX history to singly-linked list. Patch #6: Remove old TFRC TX history infrastructure.

Patch #7: Provide one file which holds the module build for dccp_tfrc_lib together.

Patch #9: Reduce TFRC RX history to a small structure of only 4 entries (and that is sufficient). Patch #10: Hook up new TFRC RX history with CCID3.
Patch #11: Remove old TFRC RX history infrastructure.

Patch #12: Introduce ringbuffer-based loss intervals database (which updates/completes many of the loss algorithms). Patch #13: Interface new loss intervals database with CCID3.
Patch #14: Remove old loss interval tracking infrastructure.

Patch #15: Implement rfc3448bis changes to feedback reception (code used the old RFC 3448). Patch #16: Implement rfc3448bis changes to nofeedback timer handling (code used the old RFC 3448).

As before, the entire changeset is fully documented on
http://www.erg.abdn.ac.uk/users/gerrit/dccp/notes/ccid3_packet_reception/