* a F-RTO question
@ 2012-03-28 3:13 Li Yu
2012-03-28 3:49 ` Chao Pei
0 siblings, 1 reply; 7+ messages in thread
From: Li Yu @ 2012-03-28 3:13 UTC (permalink / raw)
To: netdev
Hi,
I have a question about tcp_process_frto(), the below source
code :
static int tcp_process_frto(struct sock *sk, int flag)
{
.....
if (!before(tp->snd_una, tp->frto_highmark)) {
tcp_enter_frto_loss(sk, ...);
return 1;
}
.....
}
As my understanding, the tp->frto_highmark likes tp->high_seq,
it saves the seqno SND_NXT when a TCP connection enters F-RTO phase,
is it the variable "recovery" in NewReno? So I think that if snd_una is
equal with or after frto_highmark, which means peer ack new data, so
why we enter Loss state here?
Thanks!
Yu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a F-RTO question
2012-03-28 3:13 a F-RTO question Li Yu
@ 2012-03-28 3:49 ` Chao Pei
2012-03-28 4:08 ` Li Yu
0 siblings, 1 reply; 7+ messages in thread
From: Chao Pei @ 2012-03-28 3:49 UTC (permalink / raw)
To: Li Yu; +Cc: netdev
> Hi,
>
> I have a question about tcp_process_frto(), the below source
> code :
>
> static int tcp_process_frto(struct sock *sk, int flag)
> {
> .....
>
> if (!before(tp->snd_una, tp->frto_highmark)) {
> tcp_enter_frto_loss(sk, ...);
> return 1;
> }
>
> .....
>
> }
>
> As my understanding, the tp->frto_highmark likes tp->high_seq,
> it saves the seqno SND_NXT when a TCP connection enters F-RTO phase,
> is it the variable "recovery" in NewReno? So I think that if snd_una is
> equal with or after frto_highmark, which means peer ack new data, so
> why we enter Loss state here?
>
> Thanks!
>
> Yu
>
>
If snd_una advances to frto_highmark, it is likely that the hole was
filled by the retransimitted packet, which means the original packet
was likely to have been lost.
So, we should enter loss state.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a F-RTO question
2012-03-28 3:49 ` Chao Pei
@ 2012-03-28 4:08 ` Li Yu
2012-03-28 5:27 ` Chao Pei
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Li Yu @ 2012-03-28 4:08 UTC (permalink / raw)
To: Chao Pei; +Cc: netdev
于 2012年03月28日 11:49, Chao Pei 写道:
>> Hi,
>>
>> I have a question about tcp_process_frto(), the below source
>> code :
>>
>> static int tcp_process_frto(struct sock *sk, int flag)
>> {
>> .....
>>
>> if (!before(tp->snd_una, tp->frto_highmark)) {
>> tcp_enter_frto_loss(sk, ...);
>> return 1;
>> }
>>
>> .....
>>
>> }
>>
>> As my understanding, the tp->frto_highmark likes tp->high_seq,
>> it saves the seqno SND_NXT when a TCP connection enters F-RTO phase,
>> is it the variable "recovery" in NewReno? So I think that if snd_una is
>> equal with or after frto_highmark, which means peer ack new data, so
>> why we enter Loss state here?
>>
>> Thanks!
>>
>> Yu
>>
>>
>
> If snd_una advances to frto_highmark, it is likely that the hole was
> filled by the retransimitted packet, which means the original packet
> was likely to have been lost.
> So, we should enter loss state.
>
I do not agree with it, if snd_una advanced to frto_highmark, which
means peer acks whole window of data instead of just one segment, and
we can not make sure that reason of peer sends ack is whether it
received original segment or retransmitted segment.
Even, the reason is latter, it also means the netowrk already is
recovered from temporarily congestion or disordered state, so we also
should not enter loss state.
Thanks
Yu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a F-RTO question
2012-03-28 4:08 ` Li Yu
@ 2012-03-28 5:27 ` Chao Pei
2012-03-28 5:35 ` Yuchung Cheng
2012-04-10 8:34 ` Ilpo Järvinen
2 siblings, 0 replies; 7+ messages in thread
From: Chao Pei @ 2012-03-28 5:27 UTC (permalink / raw)
To: Li Yu; +Cc: netdev
>
>>> Hi,
>>>
>>> I have a question about tcp_process_frto(), the below source
>>> code :
>>>
>>> static int tcp_process_frto(struct sock *sk, int flag)
>>> {
>>> .....
>>>
>>> if (!before(tp->snd_una, tp->frto_highmark)) {
>>> tcp_enter_frto_loss(sk, ...);
>>> return 1;
>>> }
>>>
>>> .....
>>>
>>> }
>>>
>>> As my understanding, the tp->frto_highmark likes tp->high_seq,
>>> it saves the seqno SND_NXT when a TCP connection enters F-RTO phase,
>>> is it the variable "recovery" in NewReno? So I think that if snd_una is
>>> equal with or after frto_highmark, which means peer ack new data, so
>>> why we enter Loss state here?
>>>
>>> Thanks!
>>>
>>> Yu
>>>
>>>
>>
>> If snd_una advances to frto_highmark, it is likely that the hole was
>> filled by the retransimitted packet, which means the original packet
>> was likely to have been lost.
>> So, we should enter loss state.
>>
>
> I do not agree with it, if snd_una advanced to frto_highmark, which means
> peer acks whole window of data instead of just one segment, and
> we can not make sure that reason of peer sends ack is whether it received
> original segment or retransmitted segment.
>
> Even, the reason is latter, it also means the netowrk already is
> recovered from temporarily congestion or disordered state, so we also should
> not enter loss state.
>
> Thanks
>
> Yu
>
If it is for the first reason, then the receiver should not ack the
whole rtt of packets with just one ack. Instead, it should send ack
once every second packet. So, we can almost be sure that the original
packet was lost.
As for the second question. I think since the loss is proven and was
actually detected because of the RTO timer, we should enter loss
state.
Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a F-RTO question
2012-03-28 4:08 ` Li Yu
2012-03-28 5:27 ` Chao Pei
@ 2012-03-28 5:35 ` Yuchung Cheng
2012-03-28 6:43 ` Li Yu
2012-04-10 8:34 ` Ilpo Järvinen
2 siblings, 1 reply; 7+ messages in thread
From: Yuchung Cheng @ 2012-03-28 5:35 UTC (permalink / raw)
To: Li Yu; +Cc: Chao Pei, netdev
On Tue, Mar 27, 2012 at 9:08 PM, Li Yu <raise.sail@gmail.com> wrote:
> 于 2012年03月28日 11:49, Chao Pei 写道:
>
>>> Hi,
>>>
>>> I have a question about tcp_process_frto(), the below source
>>> code :
>>>
>>> static int tcp_process_frto(struct sock *sk, int flag)
>>> {
>>> .....
>>>
>>> if (!before(tp->snd_una, tp->frto_highmark)) {
>>> tcp_enter_frto_loss(sk, ...);
>>> return 1;
>>> }
>>>
>>> .....
>>>
>>> }
>>>
>>> As my understanding, the tp->frto_highmark likes tp->high_seq,
>>> it saves the seqno SND_NXT when a TCP connection enters F-RTO phase,
>>> is it the variable "recovery" in NewReno? So I think that if snd_una is
>>> equal with or after frto_highmark, which means peer ack new data, so
>>> why we enter Loss state here?
>>>
>>> Thanks!
>>>
>>> Yu
>>>
>>>
>>
>> If snd_una advances to frto_highmark, it is likely that the hole was
>> filled by the retransimitted packet, which means the original packet
>> was likely to have been lost.
>> So, we should enter loss state.
>>
>
> I do not agree with it, if snd_una advanced to frto_highmark, which means
> peer acks whole window of data instead of just one segment, and
> we can not make sure that reason of peer sends ack is whether it received
> original segment or retransmitted segment.
>
> Even, the reason is latter, it also means the netowrk already is
> recovered from temporarily congestion or disordered state, so we also should
> not enter loss state.
Like you said there is some ambiguity and F-RTO takes the conservative approach.
You can find answers to your question in RFC 5682 (Section 2.2). Unless the RTO
is proven to be spurious, TCP should reduce window and performs
slow-start regardlessly.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a F-RTO question
2012-03-28 5:35 ` Yuchung Cheng
@ 2012-03-28 6:43 ` Li Yu
0 siblings, 0 replies; 7+ messages in thread
From: Li Yu @ 2012-03-28 6:43 UTC (permalink / raw)
To: Yuchung Cheng; +Cc: Chao Pei, netdev
于 2012年03月28日 13:35, Yuchung Cheng 写道:
> On Tue, Mar 27, 2012 at 9:08 PM, Li Yu<raise.sail@gmail.com> wrote:
>> 于 2012年03月28日 11:49, Chao Pei 写道:
>>
>>>> Hi,
>>>>
>>>> I have a question about tcp_process_frto(), the below source
>>>> code :
>>>>
>>>> static int tcp_process_frto(struct sock *sk, int flag)
>>>> {
>>>> .....
>>>>
>>>> if (!before(tp->snd_una, tp->frto_highmark)) {
>>>> tcp_enter_frto_loss(sk, ...);
>>>> return 1;
>>>> }
>>>>
>>>> .....
>>>>
>>>> }
>>>>
>>>> As my understanding, the tp->frto_highmark likes tp->high_seq,
>>>> it saves the seqno SND_NXT when a TCP connection enters F-RTO phase,
>>>> is it the variable "recovery" in NewReno? So I think that if snd_una is
>>>> equal with or after frto_highmark, which means peer ack new data, so
>>>> why we enter Loss state here?
>>>>
>>>> Thanks!
>>>>
>>>> Yu
>>>>
>>>>
>>>
>>> If snd_una advances to frto_highmark, it is likely that the hole was
>>> filled by the retransimitted packet, which means the original packet
>>> was likely to have been lost.
>>> So, we should enter loss state.
>>>
>>
>> I do not agree with it, if snd_una advanced to frto_highmark, which means
>> peer acks whole window of data instead of just one segment, and
>> we can not make sure that reason of peer sends ack is whether it received
>> original segment or retransmitted segment.
>>
>> Even, the reason is latter, it also means the netowrk already is
>> recovered from temporarily congestion or disordered state, so we also should
>> not enter loss state.
> Like you said there is some ambiguity and F-RTO takes the conservative approach.
> You can find answers to your question in RFC 5682 (Section 2.2). Unless the RTO
> is proven to be spurious, TCP should reduce window and performs
> slow-start regardlessly.
>
I think I got it, if the new ack covers "frto_highmark",
it may mean the fast retransmitted segments are lost likely.
In RFC5682:
If the first acknowledgment after the RTO retransmission covers the
"recover" point at algorithm step (2a), there is not enough evidence
that a non-retransmitted segment has arrived at the receiver after
the timeout. This is a common case when a fast retransmission is
lost and has been retransmitted again after an RTO, while the rest of
the unacknowledged segments were successfully delivered to the TCP
receiver before the retransmission timeout. Therefore, the timeout
cannot be declared spurious in this case.
And as Chao's words, if the RTO is proven, we should enter
slow-start then.
Thanks!
Yu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a F-RTO question
2012-03-28 4:08 ` Li Yu
2012-03-28 5:27 ` Chao Pei
2012-03-28 5:35 ` Yuchung Cheng
@ 2012-04-10 8:34 ` Ilpo Järvinen
2 siblings, 0 replies; 7+ messages in thread
From: Ilpo Järvinen @ 2012-04-10 8:34 UTC (permalink / raw)
To: Li Yu; +Cc: Chao Pei, Netdev
On Wed, 28 Mar 2012, Li Yu wrote:
> Even, the reason is latter, it also means the netowrk already is
> recovered from temporarily congestion or disordered state, so we also should
> not enter loss state.
There are also other considerations in this btw, some devices are simply
broken and go to RTO loop increasing the RTOs exponentially if we wouldn't
force retransmit of the next segment (one of those newly sent segments)
that isn't strictly mandatory imho. ...We used to do something more
clever here and avoided that retransmission but learned the hard way that
there's simply no way around it.
--
i.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-10 8:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 3:13 a F-RTO question Li Yu
2012-03-28 3:49 ` Chao Pei
2012-03-28 4:08 ` Li Yu
2012-03-28 5:27 ` Chao Pei
2012-03-28 5:35 ` Yuchung Cheng
2012-03-28 6:43 ` Li Yu
2012-04-10 8:34 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).