tcp: fix ICMP-RTO war
Subsystems (2)
Quoted 5 lines · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print sk (%p) in all those printouts to be sure which maps to which. If a peer becomes unreachable, it may well have multiple connections open (this was a proxy, iirc?).
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
Also about estimating rtt, maybe there is something wrong in idea. Just what will happen if ip visible for proxy have multiple people behind? It can be small router for hotspot and 10-20 people behind it, some with very large rtt, some with very small.
And some of them getting disconnected (out of range from wireless, for example), and thats most probably why host unreachable sent... at same time proxy have established and running tcp connections with other people on same router (means for proxy same ip).
Sorry, again to Ilpo Järvinen, by default i have reply, instead of reply all.
Quoted 10 lines · Denys Fedoryshchenko
Quoted 5 lines · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print sk (%p) in all those printouts to be sure which maps to which. If a peer becomes unreachable, it may well have multiple connections open (this was a proxy, iirc?).
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
In total, there are probably multiple sockets involved, but for the pattern I mentioned, I doubt that. The pattern is all over the place; look at another sample:
Quoted 13 lines
[ 1497.679255] rto: 200 (0 >> 3 + 0, 21) time: 1197679 sent: 1197679 pen: 1 1198079 rem: 200 [ 1497.679356] rto: 120000 (18111 >> 3 + 2633, 7) time: 1197679 sent: 1195423 pen: 1 1315423 rem: 117744 [ 1501.113786] rto: 200 (0 >> 3 + 0, 24) time: 1201113 sent: 1200679 pen: 1 1203879 rem: 0 [ 1501.116064] rto: 120000 (17704 >> 3 + 4426, 8) time: 1201116 sent: 1198638 pen: 1 1318638 rem: 117522 [ 1501.116216] rto: 200 (0 >> 3 + 0, 24) time: 1201116 sent: 1201113 pen: 1 1201513 rem: 197 [ 1504.165953] rto: 200 (0 >> 3 + 0, 27) time: 1204165 sent: 1204113 pen: 1 1207313 rem: 148 [ 1504.168151] rto: 200 (0 >> 3 + 0, 26) time: 1204168 sent: 1204113 pen: 1 1204313 rem: 145 [ 1504.168327] rto: 200 (0 >> 3 + 0, 25) time: 1204168 sent: 1204113 pen: 1 1204313 rem: 145 [ 1507.280096] rto: 200 (0 >> 3 + 0, 28) time: 1207280 sent: 1207113 pen: 1 1210313 rem: 33 [ 1507.280255] rto: 200 (0 >> 3 + 0, 27) time: 1207280 sent: 1207113 pen: 1 1207313 rem: 33 [ 1510.974574] rto: 200 (0 >> 3 + 0, 30) time: 1210974 sent: 1210113 pen: 1 1213313 rem: 0 [ 1510.974766] rto: 200 (0 >> 3 + 0, 30) time: 1210974 sent: 1210974 pen: 1 1211374 rem: 200 [ 1514.436214] rto: 200 (0 >> 3 + 0, 33) time: 1214436 sent: 1213974 pen: 1 1217174 rem: 0
Quoted 8 lines
[ 1514.436378] rto: 200 (0 >> 3 + 0, 33) time: 1214436 sent: 1214436 pen: 1 1214836 rem: 200 [ 1514.436525] rto: 200 (0 >> 3 + 0, 32) time: 1214436 sent: 1214436 pen: 1 1214636 rem: 200 [ 1517.516537] rto: 200 (0 >> 3 + 0, 35) time: 1217516 sent: 1217436 pen: 1 1220636 rem: 120 [ 1517.520724] rto: 200 (0 >> 3 + 0, 34) time: 1217520 sent: 1217436 pen: 1 1217636 rem: 116 [ 1517.520919] rto: 200 (0 >> 3 + 0, 33) time: 1217520 sent: 1217436 pen: 1 1217636 rem: 116 [ 1520.580000] rto: 200 (0 >> 3 + 0, 36) time: 1220579 sent: 1220436 pen: 1 1223636 rem: 57 [ 1520.580165] rto: 200 (0 >> 3 + 0, 35) time: 1220580 sent: 1220436 pen: 1 1220637 rem: 56 [ 1520.580744] rto: 200 (0 >> 3 + 0, 34) time: 1220580 sent: 1220436 pen: 1 1220636 rem: 56
The two 120000ms RTOs are a different socket, but the rest is one socket, I believe. There is the sequence (N+2, N+1, N) for backoff, followed by 3 seconds silence, which I assume, are used for regular RTO retransmissions, and then again a burst of ICMPs.
The three seconds are enough to fire backed-off retransmissions at t+0.2, t+0.6, t+1.4 and t+3.0. There is a slight deviation of this pattern when rem becomes 0.
This pattern is too perfect to be triggered by different sockets, I think. But we will see, when Denys submits new test outputs.
Quoted 10 lines
Also about estimating rtt, maybe there is something wrong in idea. Just what will happen if ip visible for proxy have multiple people behind? It can be small router for hotspot and 10-20 people behind it, some with very large rtt, some with very small.
And some of them getting disconnected (out of range from wireless, for example), and thats most probably why host unreachable sent... at same time proxy have established and running tcp connections with other people on same router (means for proxy same ip).
Sockets are identified on a (src-ip, src-port)::(dst-ip, dst-port) quadruple basis, so RTT calculation usually is independent even for same ip-pairs, unless with TCB interdependence. But I don't know if that is implemented and/or enabled by default.
Regards
Damian
Quoted 1 line
Sorry, again to Ilpo Järvinen, by default i have reply, instead of reply all.
Quoted 11 lines · On Friday 29 January 2010 14:13:18 Damian Lukowski wrote:
Quoted 10 lines · Denys Fedoryshchenko
Quoted 4 lines · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print sk (%p) in all those printouts to be sure which maps to which. If a peer becomes unreachable, it may well have multiple connections open (this was a proxy, iirc?).
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
http://www.nuclearcat.com/files/report1.txt
http://www.nuclearcat.com/files/report2.txt
Here with %p and sk.
Quoted 7 lines · Denys Fedoryshchenko
Quoted 6 lines · On Friday 29 January 2010 14:13:18 Damian Lukowski wrote:
Quoted 5 lines · Denys Fedoryshchenko
Quoted 4 lines · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print sk (%p) in all those printouts to be sure which maps to which. If a peer becomes unreachable, it may well have multiple connections open (this was a proxy, iirc?).
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
http://www.nuclearcat.com/files/report1.txt
http://www.nuclearcat.com/files/report2.txtHere with %p and sk.
Ok, thanks for testing.
So it is ec0f3440 causing the trouble. Are there still objections on the lower bound check in __tcp_set_rto()? Well, I will submit an updated patch and you can make comments there.
Regards
Damian
Quoted 17 lines · On Friday 29 January 2010 23:45:35 Damian Lukowski wrote:
Quoted 16 lines · Denys Fedoryshchenko
Quoted 11 lines · On Friday 29 January 2010 14:13:18 Damian Lukowski wrote:
Quoted 10 lines · Denys Fedoryshchenko
Quoted 4 lines · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print sk (%p) in all those printouts to be sure which maps to which. If a peer becomes unreachable, it may well have multiple connections open (this was a proxy, iirc?).
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
http://www.nuclearcat.com/files/report1.txt
http://www.nuclearcat.com/files/report2.txt
Quoted 6 lines
Quoted 1 line
Here with %p and sk.
Ok, thanks for testing.
So it isec0f3440causing the trouble. Are there still objections on the lower bound check in__tcp_set_rto()? Well, I will submit an updated patch and you can make comments there.
There is another sk also. I can catch for more time - there is many different pointers to sk appearing (but not in same time, it is rare case even with my thousands of connections).
Quoted 21 lines · On Friday 29 January 2010 23:45:35 Damian Lukowski wrote:
Quoted 20 lines
Quoted 4 lines · Denys Fedoryshchenko
Quoted 3 lines · On Friday 29 January 2010 14:13:18 Damian Lukowski wrote:
Quoted 2 lines · Denys Fedoryshchenko
Quoted 1 line · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print
sk
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
(%p) in all those printouts to be sure which maps to which. If a
peer
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
becomes unreachable, it may well have multiple connections open
(this
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
was a proxy, iirc?).
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
http://www.nuclearcat.com/files/report1.txt
http://www.nuclearcat.com/files/report2.txt
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Here with %p and sk.
Ok, thanks for testing.
So it isec0f3440causing the trouble. Are there still objections on the lower bound check in__tcp_set_rto()? Well, I will submit an updated patch and you can make comments there.There is another sk also. I can catch for more time - there is many different
pointers to sk appearing (but not in same time, it is rare case even with my thousands of connections).
Hmm, I shouldn't have posted so late yesterday, as I forgot to CC you and the others when submitting the patch, amongst the grammar error. :/ Can you test the patch in http://marc.info/?l=linux-netdev&m=126480336216898
please?
Damian
Quoted 39 lines · On Saturday 30 January 2010 15:56:37 Damian Lukowski wrote:
Quoted 34 lines · On Friday 29 January 2010 23:45:35 Damian Lukowski wrote:
Quoted 26 lines
Quoted 4 lines · Denys Fedoryshchenko
Quoted 3 lines · On Friday 29 January 2010 14:13:18 Damian Lukowski wrote:
Quoted 2 lines · Denys Fedoryshchenko
Quoted 1 line · On Wednesday 27 January 2010 14:36:18 you wrote:
Unless they are for a different connection? We might have to print
sk
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
(%p) in all those printouts to be sure which maps to which. If a
peer
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
becomes unreachable, it may well have multiple connections open
(this
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
was a proxy, iirc?).
Ok i will try to do that today.
Most probably different connections, on this proxy i have 10-15k established connections at peak time.
http://www.nuclearcat.com/files/report1.txt
http://www.nuclearcat.com/files/report2.txtQuoted 6 lines
Quoted 1 line
Here with %p and sk.
Ok, thanks for testing.
So it isec0f3440causing the trouble. Are there still objections on the lower bound check in__tcp_set_rto()? Well, I will submit an updated patch and you can make comments there.Quoted 4 lines
There is another sk also. I can catch for more time - there is many different
pointers to sk appearing (but not in same time, it is rare case even with my thousands of connections).
Quoted 8 lines
Hmm, I shouldn't have posted so late yesterday, as I forgot to CC you and the others when submitting the patch, amongst the grammar error. :/ Can you test the patch in
http://marc.info/?l=linux-netdev&m=126480336216898
please?Damian
Seems no more lower bound violation.
Thanks a lot!