Skip to contentSkip to conversation

TCP BIC 1.1 support

PATCH In review Stephen Hemminger 2 participants 4 messages Mar 19, 2005 – Apr 11, 2005

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

PATCH 2/5 TCP BIC 1.1 support

This patch adds TCP BIC back in as a pluggable TCP congestion mechanism. This version is closer to the TCP BIC 1.1 released for Web100. The changes from 2.6.11 are:
* congestion window undo fix
* delayed ack compensation
* low utilization detection
* more parameter (less hardcoded constants)

The parts that are in the Web100 version are missing are general (not BIC specific):
* burst moderation
* network device throttling drop tail behaviour
They will be addressed later.

net/ipv4/Kconfig +14 -0
diff -Nru a/net/ipv4/Kconfig b/net/ipv4/Kconfig
@@ -368,6 +368,20 @@
 
 menu "TCP congestion control"
 
+config TCP_CONG_BIC
+	tristate "Binary Increase Congestion (BIC) control"
+	default y
+	---help---
+	BIC-TCP is a sender-side only change that ensures a linear RTT
+	fairness under large windows while offering both scalability and
+	bounded TCP-friendliness. The protocol combines two schemes
+	called additive increase and binary search increase. When the
+	congestion window is large, additive increase with a large
+	increment ensures linear RTT fairness as well as good
+	scalability. Under small congestion windows, binary search
+	increase provides TCP friendliness.
+	See http://www.csc.ncsu.edu/faculty/rhee/export/bitcp/
+
 endmenu
 
 source "net/ipv4/ipvs/Kconfig"
net/ipv4/Makefile +1 -0
diff -Nru a/net/ipv4/Makefile b/net/ipv4/Makefile
@@ -24,6 +24,7 @@
 obj-$(CONFIG_NETFILTER)	+= netfilter/
 obj-$(CONFIG_IP_VS) += ipvs/
 obj-$(CONFIG_IP_TCPDIAG) += tcp_diag.o 
+obj-$(CONFIG_TCP_CONG_BIC) += tcp_bic.o
 
 obj-$(CONFIG_XFRM) += xfrm4_policy.o xfrm4_state.o xfrm4_input.o \
 		      xfrm4_output.o
net/ipv4/tcp_bic.c new file +293 -0

293 lines not on this page · raw message

#1 lore raw
Quoted 5 lines · Stephen Hemminger

This patch adds TCP BIC back in as a pluggable TCP congestion mechanism. This version is closer to the TCP BIC 1.1 released for Web100. The changes from 2.6.11 are:
* congestion window undo fix
* delayed ack compensation

This can cause overshooting if the other side doesn't do delayed acking, did anyone consider the ABC (Appropriate Byte Counting) patch from Yee-Ting Li? http://marc.theaimsgroup.com/?l=linux-netdev&m=110917262615630&w=2

FreeBSD has an option to disable delayed acking so it's not that hard to work against a host with no delayed acks at all.

net/ipv4/tcp_bic.c line 121

Quoted 1 line
net/ipv4/tcp_bic.c new file +1 -0
+		/* slow start AMD linear increase */

AIMD maybe?

Baruch

#2 lore raw
Quoted 6 lines · On Sat, 19 Mar 2005 02:53:09 +0000 Baruch Even <[email protected]> wrote:
Quoted 5 lines · Stephen Hemminger

This patch adds TCP BIC back in as a pluggable TCP congestion mechanism. This version is closer to the TCP BIC 1.1 released for Web100. The changes from 2.6.11 are:
* congestion window undo fix
* delayed ack compensation

The delayed ack calculation code in this patch sequence doesn't work quite right. It over estimates the number of delayed acks and this causes BIC to clamp down too hard. I'll look into it later, but just wanted to let people know that it this version of BIC performs worse under delay. The problem is in the calculation of ack_ratio not in the BIC portion.

#3 lore raw
In reply to Baruch Even
Quoted 7 lines · On Sat, 19 Mar 2005 02:53:09 +0000 Baruch Even <[email protected]> wrote:
Quoted 5 lines · Stephen Hemminger

This patch adds TCP BIC back in as a pluggable TCP congestion mechanism. This version is closer to the TCP BIC 1.1 released for Web100. The changes from 2.6.11 are:
* congestion window undo fix
* delayed ack compensation

Quoted 7 lines

This can cause overshooting if the other side doesn't do delayed acking, did anyone consider the ABC (Appropriate Byte Counting) patch from Yee-Ting Li?
http://marc.theaimsgroup.com/?l=linux-netdev&m=110917262615630&w=2

FreeBSD has an option to disable delayed acking so it's not that hard to work against a host with no delayed acks at all.

I tested with FreeBSD today and see no overshoot, but I do see the undershoot (with Reno as well), because of the extra cwnd/2 that you already observed.