Re: [PATCH] sctp: fix the check for path failure detection

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Luo Chunbo
Date: Sunday, August 23, 2009 - 7:15 pm

On Fri, 2009-08-21 at 17:47 -0400, Vlad Yasevich wrote:

The error count is increment after the HB was sent, and the error count
check is before sending HB.

Let's say path_max_rxt =2 . What we really get is:

timeout:
	if( err > 2) false
	send HB
	err++ (1)
	reset timer
timeout:
	if( err > 2) false
	send HB
	err++ (2)
	reset timer
timeout:
	if( err > 2) false
	send HB
	err++ (3)
	reset timer
timeout:
	if( err > 2)
		set transport DOWN
	send HB
	reset timer

Here We had 3 unacknowledged HBs.
	
	
Thanks
Chunbo

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sctp: fix the check for path failure detection, Chunbo Luo, (Fri Aug 21, 12:04 am)
Re: [PATCH] sctp: fix the check for path failure detection, Luo Chunbo, (Sun Aug 23, 7:15 pm)