BIC TCP delayed ack compensation
Subsystems (2)
Quoted 5 lines · Stephen Hemminger
This patch which was extracted from BIC TCP 1.1 compensates for systems (like MaxOSX) that don't ACK every other packet. It has no impact for normal transfers, but might help with problems with Mac like Hubert found.
No, it's even worse.
2.6.9 to 100 Mbps connected MacOSX: 15 seconds (for roughly 100 MB or data) 2.6.9 to gigabit connected MacOSX: 5 seconds
2.6.10-ac11 to 100 Mbps connected MacOSX: 325 seconds 2.6.10-ac11 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11+BIC to 100 Mbps connected MacOSX: 620 seconds 2.6.10-ac11+BIC to gigabit connected MacOSX: 5 seconds
Quoted 7 lines · On Tue, 22 Feb 2005 22:22:42 GMT Hubert Tonneau…
Quoted 5 lines · Stephen Hemminger
This patch which was extracted from BIC TCP 1.1 compensates for systems (like MaxOSX) that don't ACK every other packet. It has no impact for normal transfers, but might help with problems with Mac like Hubert found.
Quoted 8 lines
No, it's even worse.
2.6.9 to 100 Mbps connected MacOSX: 15 seconds (for roughly 100 MB or data) 2.6.9 to gigabit connected MacOSX: 5 seconds
2.6.10-ac11 to 100 Mbps connected MacOSX: 325 seconds 2.6.10-ac11 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11+BIC to 100 Mbps connected MacOSX: 620 seconds 2.6.10-ac11+BIC to gigabit connected MacOSX: 5 seconds
Thanks, that is really interesting...
Quoted 9 lines
-----Original Message-----
From: Hubert Tonneau [mailto:[email protected]]
Sent: Tuesday, February 22, 2005 5:23 PM
2.6.9 to 100 Mbps connected MacOSX: 15 seconds (for roughly 100 MB or data)
2.6.9 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11 to 100 Mbps connected MacOSX: 325 seconds
It seems that there are other problems with this version of Linux. Is there any way we can find out what the problems are. Is this with BIC? If not, there are some parts not working. If it is with BIC, we would like to look into this problem.
Quoted 3 lines
2.6.10-ac11 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11+BIC to 100 Mbps connected MacOSX: 620 seconds 2.6.10-ac11+BIC to gigabit connected MacOSX: 5 seconds
An interesting test would be to repeat the slow case: 2.6.10-ac11 over 100Mbps
With first TCP Reno (old default).
sysctl -w net.ipv4.tcp_bic=0
then TCP Westwood.
sysctl -w net.ipv4.tcp_bic=0
sysctl -w net.ipv4.tcp_westwood=1
Quoted 12 lines
-----Original Message-----
From: Hubert Tonneau [mailto:[email protected]]
Sent: Tuesday, February 22, 2005 5:23 PM
2.6.9 to 100 Mbps connected MacOSX: 15 seconds (for roughly 100 MB or data)
2.6.9 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11 to 100 Mbps connected MacOSX: 325 seconds 2.6.10-ac11 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11+BIC to 100 Mbps connected MacOSX: 620 seconds 2.6.10-ac11+BIC to gigabit connected MacOSX: 5 seconds
Another way to test whether this is related to the os or bic implementation is to test it with our bic patch 1.1. + Linux 2.4. It will tell whether the original implementation of BIC has something to do with the performance with respect to MacOS.
David S. Miller
maintainerQuoted 13 lines · On Wed, 23 Feb 2005 13:37:35 -0500 "Injong Rhee" <[email protected]> wrote:
Quoted 12 lines
-----Original Message-----
From: Hubert Tonneau [mailto:[email protected]]
Sent: Tuesday, February 22, 2005 5:23 PM
2.6.9 to 100 Mbps connected MacOSX: 15 seconds (for roughly 100 MB or data)
2.6.9 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11 to 100 Mbps connected MacOSX: 325 seconds 2.6.10-ac11 to gigabit connected MacOSX: 5 seconds 2.6.10-ac11+BIC to 100 Mbps connected MacOSX: 620 seconds 2.6.10-ac11+BIC to gigabit connected MacOSX: 5 seconds
Quoted 4 lines
Another way to test whether this is related to the os or bic implementation is to test it with our bic patch 1.1. + Linux 2.4. It will tell whether the original implementation of BIC has something to do with the performance with respect to MacOS.
I don't think BIC has much to do with this problem. MacOS-X does delayed ACKs until a PSH is seen and this kills performance if we don't PSH often enough.
Quoted 3 lines · David S. Miller
I don't think BIC has much to do with this problem. MacOS-X does delayed ACKs until a PSH is seen and this kills performance if we don't PSH often enough.
I looked at the trace last night and I wonder if PSH is a red herring. For example:
16:42:21.837931 IP 10.107.96.230.netbios-ssn > 10.107.96.7.32801: . ack 37545601 win 57184 <nop,nop,timestamp 1709240872 641486> 16:42:21.837937 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37545601:37547049(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.837940 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37547049:37548497(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.837941 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37548497:37549945(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.837943 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37549945:37551393(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.837945 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37551393:37552841(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.837947 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37552841:37554289(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.837949 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37554289:37555737(1448) ack 122802 win 1460 <nop,nop,timestamp 641685 1709240872> NBT Packet 16:42:21.838979 IP 10.107.96.230.netbios-ssn > 10.107.96.7.32801: . ack 37552841 win 65535 <nop,nop,timestamp 1709240872 641685> 16:42:21.838985 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37555737:37557185(1448) ack 122802 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:21.838987 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37557185:37558633(1448) ack 122802 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:21.838989 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37558633:37560081(1448) ack 122802 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:21.838991 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37560081:37561529(1448) ack 122802 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:21.838992 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37561529:37562977(1448) ack 122802 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:21.838994 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: . 37562977:37564425(1448) ack 122802 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:21.839172 IP 10.107.96.230.netbios-ssn > 10.107.96.7.32801: P 122802:122853(51) ack 37554289 win 65128 <nop,nop,timestamp 1709240872 641685> NBT Packet 16:42:21.839178 IP 10.107.96.7.32801 > 10.107.96.230.netbios-ssn: P 37564425:37565873(1448) ack 122853 win 1460 <nop,nop,timestamp 641686 1709240872> NBT Packet 16:42:22.037976 IP 10.107.96.230.netbios-ssn > 10.107.96.7.32801: . ack 37565873 win 53548 <nop,nop,timestamp 1709240872 641685>
Maybe this has something to do with the bi-directional nature of the flow? Mac OS delaying ACK to try to piggyback on data or something like that. One signature I noticed is that it seems the last packet sent by the Mac before the long delack timeout is always a small data packet. (I didn't rigorously verify this but it seems true.)
-John
David S. Miller
maintainerQuoted 5 lines · On Wed, 23 Feb 2005 17:04:08 -0500 (EST) John Heffner <[email protected]> wrote:
Maybe this has something to do with the bi-directional nature of the flow? Mac OS delaying ACK to try to piggyback on data or something like that. One signature I noticed is that it seems the last packet sent by the Mac before the long delack timeout is always a small data packet. (I didn't rigorously verify this but it seems true.)
I should be more specific when I say "PSH". Mac OS-X's algorithm is basically that it always delays ACKs to the delayed ACK timeout when the header prediction fast path is hit. One way to "miss" the header prediction fast path is to set PSH (this is actually a bug, Linux fixed this long ago, PSH should be ignored for header prediction fast path checking).
When the fast path is missed, it does the usual "every 2 full sized frames" ACK'ing.
Out of order data can cause the missing of the fast path as well. That can only be determined if we had dumps from the Mac's perspective however.
Anyways, this Mac OS-X behavior has pretty much been universally agreed to as a severe bug, at least on this list :-)
Quoted 9 lines · David S. Miller
Quoted 5 lines · On Wed, 23 Feb 2005 17:04:08 -0500 (EST) John Heffner <[email protected]> wrote:
Maybe this has something to do with the bi-directional nature of the flow? Mac OS delaying ACK to try to piggyback on data or something like that. One signature I noticed is that it seems the last packet sent by the Mac before the long delack timeout is always a small data packet. (I didn't rigorously verify this but it seems true.)
Quoted 5 lines
I should be more specific when I say "PSH". Mac OS-X's algorithm is basically that it always delays ACKs to the delayed ACK timeout when the header prediction fast path is hit. One way to "miss" the header prediction fast path is to set PSH (this is actually a bug, Linux fixed this long ago, PSH should be ignored for header prediction fast path checking).
The point is it appears to be delaying ack even when PSH is set.
Quoted 2 lines
Anyways, this Mac OS-X behavior has pretty much been universally agreed to as a severe bug, at least on this list :-)
Yep. The Mac behavior is clearly bizarre. :)
-John