• Ilpo Järvinen's avatar
    [TCP] FRTO: Use Disorder state during operation instead of Open · 7b0eb22b
    Ilpo Järvinen authored
    Retransmission counter assumptions are to be changed. Forcing
    reason to do this exist: Using sysctl in check would be racy
    as soon as FRTO starts to ignore some ACKs (doing that in the
    following patches). Userspace may disable it at any moment
    giving nice oops if timing is right. frto_counter would be
    inaccessible from userspace, but with SACK enhanced FRTO
    retrans_out can include other than head, and possibly leaving
    it non-zero after spurious RTO, boom again.
    
    Luckily, solution seems rather simple: never go directly to Open
    state but use Disorder instead. This does not really change much,
    since TCP could anyway change its state to Disorder during FRTO
    using path tcp_fastretrans_alert -> tcp_try_to_open (e.g., when
    a SACK block makes ACK dubious). Besides, Disorder seems to be
    the state where TCP should be if not recovering (in Recovery or
    Loss state) while having some retransmissions in-flight (see
    tcp_try_to_open), which is exactly what happens with FRTO.
    Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7b0eb22b
tcp_input.c 133 KB