Skip to content

: New TFRC Loss Interval Database & Integration with CCID code

Gerrit Renker dccp 1 version In review

Get series with b4
b4 am 200706171351.25957@strip-the-willow

Versions newest first

  1. v1 Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9: Ringbuffer to track loss interval historynet/dccp/ccids/ccid3.h net/dccp/ccids/lib/loss_interval.h+46 -111 reply
2/9: Loss-intervals access-macros and -functionsnet/dccp/ccids/lib/loss_interval.c+21 -01 reply
3/9: Cache allocation of entriesnet/dccp/ccids/ccid3.c net/dccp/ccids/lib/loss_interval.c net/dccp/ccids/lib/loss_interval.h +1 more+36 -1121 reply
4/9: Recompute average loss intervalnet/dccp/ccids/ccid3.h net/dccp/ccids/lib/loss_interval.c net/dccp/ccids/lib/loss_interval.h+55 -391 reply
5/9: Insert and Update routines for the Loss Interval Databasenet/dccp/ccids/ccid3.c net/dccp/ccids/lib/loss_interval.c net/dccp/ccids/lib/loss_interval.h+50 -471 reply
6/9: Integrate RX history loss detection with loss interval updatenet/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+18 -91 reply
7/9: Let calling module compute First Loss Interval; convert to ktime_tnet/dccp/ccids/ccid3.c+11 -231 reply
8/9: Fix and simplify header includesnet/dccp/ccids/ccid3.c net/dccp/ccids/ccid3.h net/dccp/ccids/lib/loss_interval.c +4 more+11 -182 replies
9/9: Interface CCID3 code with newer TFRC LI databasenet/dccp/ccids/ccid3.c+17 -91 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9]: New TFRC Loss Interval Database & Integration with CCID code

This patch set realises a new loss intervals database, updating and extending existing loss handling functionality.

It is also an optimised structure which uses on-demand allocation.

This means that no extra memory is consumed when the link is loss-free.

Patch #1: Introduces the new, ring-buffer based data structure plus a
few basic inline functions.

Patch #2: Provides accessor functions and macros (OO-like encapsulation).

Patch #3: Allocation/de-allocation routines and initialisation/cleanup routines.

Patch #4: Recomputation of I_mean (new algorithm + revised with regard to RFC 4342).

Patch #5: Insert/update routines for the database.

Patch #6: Integration with RX receiver history structure. This is one of the key
points in the patch set - loss detection/handling are taken care of by the TFRC module (dccp_tfrc_lib) now. This patch integrates the new loss intervals structure into the TFRC module.

Patch #7: Let calling module compute first loss interval. TFRC needs a value for
the first loss interval length as a seed. The problem which we have been discussing with this is that this generates a close integration of CCID3 code with TFRC code. The approach taken here is to separate the interfaces by using a function pointer.
I believe that this is a useful approach: the calling module (be it CCID3, CCID3-FR, CCID4 ...) knows best its own internals - last RTT estimate, last time feedback was sent etc; the TFRC module doesn't need to know these details and just calls the function via the function pointer to obtain the first loss interval length.

Patch #8: Fixes and simplifies header includes with regard to the services exported by
the TFRC module. This has been updated to reflect the recent changes in Arnaldos tree.

Patch #9: And finally ... the integration of the Loss Interval Database with the CCID 3
code. This is analogous to patch #6; but the difference is that, with regard to patch #8, RX history and LI database are no longer separate units, but rather a whole which is offered through the TFRC module.

This is almost everything, only one bundle left which I will send tomorrow or after we have discussed the other things. With the next bundle, the patch set is complete, compiles and works.