Skip to contentSkip to conversation

: Promote CCID2 as default CCID

RFC PATCH In review Gerrit Renker 1 participant 2 messages Aug 2, 2007 – Aug 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/2 : Promote CCID2 as default CCID

[DCCP]: Promote CCID2 as default CCID

This patch addresses the following problems:

1. DCCP relies for its proper functioning on having at least one CCID module enabled (as in TCP plugable congestion control). Currently it is possible to disable both CCIDs and thus leave the DCCP module in a compiled, but entirely non-functional state: no sockets can be created when no CCID is available. Furthermore, the protocol is (again like TCP) not intended to be used without CCIDs.

2. Internally the default CCID that is advertised by the Linux host is set to CCID2 (DCCPF_INITIAL_CCID in include/linux/dccp.h). Disabling CCID2 in the Kconfig menu without changing the defaults leads to a failure `module not found' when trying to load the dccp module (which internally tries to load the default CCID).

3. The specification (RFC 4340, sec. 10) treats CCID2 somewhat like a `minimum common denominator', the specification says that:

* "New connections start with CCID 2 for both endpoints"

* "A DCCP implementation intended for general use, such as an implementation in a general-purpose operating system kernel, SHOULD implement at least CCID 2. The intent is to make CCID 2 broadly available for interoperability [...]"

Providing CCID2 as minimum-required CCID (like Reno/Cubic in TCP) seems reasonable.

This patch, then,

* makes CCID2 default, compiled in the same format as DCCP
(either both are modules, or both are built-in);
* moves Kconfig option for debugging into the `DCCP kernel hacking' menu => This could be changed, I would appreciate suggestions;
* adds documentation which explains the way CCIDs are used by the current implementation.

The patch arose from discussions with Ian McDonald, whose input is gratefully acknowledged.

---
 Documentation/networking/dccp.txt |   17 +++++++++-----
 net/dccp/Kconfig                  |   11 +++++++++
 net/dccp/ccids/Kconfig            |   44 --------------------------------------
 net/dccp/ccids/Makefile           |    2 -
 4 files changed, 23 insertions(+), 51 deletions(-)
net/dccp/ccids/Makefile +1 -1
@@ -2,7 +2,7 @@ obj-$(CONFIG_IP_DCCP_CCID3) += dccp_ccid
 
 dccp_ccid3-y := ccid3.o
 
-obj-$(CONFIG_IP_DCCP_CCID2) += dccp_ccid2.o
+obj-$(CONFIG_IP_DCCP) += dccp_ccid2.o
 
 dccp_ccid2-y := ccid2.o
 
Documentation/networking/dccp.txt +11 -6
@@ -14,15 +14,20 @@ Introduction
 ======
 
 Datagram Congestion Control Protocol (DCCP) is an unreliable, connection
-based protocol designed to solve issues present in UDP and TCP particularly
-for real time and multimedia traffic.
+oriented protocol designed to solve issues present in UDP and TCP, particularly
+for real-time and multimedia (streaming) traffic.
+It divides into a base protocol (RFC 4340) and plugable congestion control
+modules called CCIDs. Like plugable TCP congestion control, at least one CCID
+needs to be enabled in order for the protocol to function properly. In the Linux
+implementation, this is the TCP-like CCID2 (RFC 4341). Additional CCIDs, such as
+the TCP-friendly CCID3 (RFC 4342), are optional.
+For a brief introduction to CCIDs and suggestions for choosing a CCID to match
+given applications, see section 10 of RFC 4340.
 
-It has a base protocol and pluggable congestion control IDs (CCIDs).
-
-It is at proposed standard RFC status and the homepage for DCCP as a protocol
-is at:
+DCCP is a proposed IETF standard, and the homepage for DCCP as a protocol is at:
 	http://www.read.cs.ucla.edu/dccp/
 
+
 Missing features
 ========
 
net/dccp/Kconfig +11 -0
@@ -42,6 +42,17 @@ config IP_DCCP_DEBUG
 
 	  Just say N.
 
+config IP_DCCP_CCID2_DEBUG
+	  bool "CCID2 debugging messages"
+	  ---help---
+	  Enable CCID2-specific debugging messages.
+
+	  CCID2 is the default congestion control module for DCCP. This
+	  option facilitates verbose debugging output for CCID2. To enable,
+	  answer Y here and set the ccid2_debug module parameter to 1.
+
+	  If in doubt, say N.
+
 config NET_DCCPPROBE
 	tristate "DCCP connection probing"
 	depends on PROC_FS && KPROBES
net/dccp/ccids/Kconfig +0 -44

50 lines not on this page · raw message

#1 lore raw
|  >     Providing CCID2 as minimum-required CCID (like Reno/Cubic in TCP) seems reasonable.
|  
|  I don't think it is required. The current Kconfig setup builds it by
|  default if you enable DCCP/
Yes that is true, but only in form of a default value; due to 
 config IP_DCCP_CCID2
        # ...
        def_tristate IP_DCCP     < ---

My point of view is that only experienced people should disable CCID2; firstly due to the default assumptions (without further ado and configuration, DCCP will try to load CCID2 as its assigned default CCID), and further due to the suggestion in 4340 as a default: for an unexperienced user, using CCID3 can have a bit of a learning curve.

|  I think this is worthwhile and should go ahead still. Better
|  documentation is always good. Couple of minor nits with this which
|  I've got below.

Thanks a lot - I will address this and re-post.

|  > +DCCP is a proposed IETF standard, and the homepage for DCCP as a protocol is at:
|  >         http://www.read.cs.ucla.edu/dccp/
|  
|  Home page is really
|  http://www.ietf.org/html.charters/dccp-charter.html now and isn't it a
|  standard now rather than proposed standard?
|  >

Hm, don't think so - if you look at the three levels of RFC 2026:

* Proposed standard requires some maturity of specification, but:
"Implementors should treat Proposed Standards as immature specifications. It is
desirable to implement them in order to gain experience and to validate, test, and clarify the specification. However, since the content of Proposed Standards may be changed if problems are found or better solutions are identified, deploying implementations of such standards into a disruption-sensitive environment is not recommended." (sec. 4.1.1)

* Draft Standard: "A specification from which at least two independent and interoperable implementations from different code bases have been developed [...]" We've got enough work already with one alone ... :)

* Internet Standard: "A specification for which significant implementation and successful operational experience has been obtained [...]"