From: Chunbo Luo <hidden> Date: 2009-08-19 07:01:11
RFC4960 Section 8.1 defined that the association should enter CLOSE
state when the value of association error counter exceeds the limit
indicated in the protocol parameter 'Association.Max.Retrans'. This
means that the association should enter CLOSE state after max_retrans+1
heartbeats are not acknowledged.
Signed-off-by: Chunbo Luo <redacted>
---
net/sctp/sm_statefuns.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
From: Chunbo Luo <hidden> Date: 2009-08-19 07:01:13
RFC4960 Section 8.2 defined that the transport should enter INACTIVE
state only when the value in the error counter exceeds the protocol
parameter 'Path.Max.Retrans' of that destination address. This means
that the transport should enter INACTIVE state after pathmaxrxt+1
heartbeats are not acknowledged.
Signed-off-by: Chunbo Luo <redacted>
---
net/sctp/sm_sideeffect.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
RFC4960 Section 8.2 defined that the transport should enter INACTIVE
state only when the value in the error counter exceeds the protocol
parameter 'Path.Max.Retrans' of that destination address. This means
that the transport should enter INACTIVE state after pathmaxrxt+1
heartbeats are not acknowledged.
Signed-off-by: Chunbo Luo <redacted>
NAK. This patch seems to resurface periodically and I have to keep
explaining that it's wrong.
Every time we send a HB, we tick up the error count and clear it when
the HB-ACK is received. Each HB is separate and not a retransmission,
so we once we reach the pathmaxrxt, we've already sent max+1 HB, so we
have time out. Walk through the code with some values and you'll see
what I mean.
-vlad
From: Luo Chunbo <hidden> Date: 2009-08-20 01:36:47
On Wed, 2009-08-19 at 10:48 -0400, Vlad Yasevich wrote:
Chunbo Luo wrote:
quoted
RFC4960 Section 8.2 defined that the transport should enter INACTIVE
state only when the value in the error counter exceeds the protocol
parameter 'Path.Max.Retrans' of that destination address. This means
that the transport should enter INACTIVE state after pathmaxrxt+1
heartbeats are not acknowledged.
Signed-off-by: Chunbo Luo <redacted>
NAK. This patch seems to resurface periodically and I have to keep
explaining that it's wrong.
Every time we send a HB, we tick up the error count and clear it when
the HB-ACK is received. Each HB is separate and not a retransmission,
so we once we reach the pathmaxrxt, we've already sent max+1 HB, so we
have time out. Walk through the code with some values and you'll see
what I mean.
Although we've already sent max+1 HB, but the code set the transport to
INACTIVE state immediately, which is equal to not sending the max+1 HB
at all. We should wait for a next period and make sure the max+1 HB was
not acknowledged.
Chunbo
On Wed, 2009-08-19 at 10:48 -0400, Vlad Yasevich wrote:
quoted
Chunbo Luo wrote:
quoted
RFC4960 Section 8.2 defined that the transport should enter INACTIVE
state only when the value in the error counter exceeds the protocol
parameter 'Path.Max.Retrans' of that destination address. This means
that the transport should enter INACTIVE state after pathmaxrxt+1
heartbeats are not acknowledged.
Signed-off-by: Chunbo Luo <redacted>
NAK. This patch seems to resurface periodically and I have to keep
explaining that it's wrong.
Every time we send a HB, we tick up the error count and clear it when
the HB-ACK is received. Each HB is separate and not a retransmission,
so we once we reach the pathmaxrxt, we've already sent max+1 HB, so we
have time out. Walk through the code with some values and you'll see
what I mean.
Although we've already sent max+1 HB, but the code set the transport to
INACTIVE state immediately, which is equal to not sending the max+1 HB
at all. We should wait for a next period and make sure the max+1 HB was
not acknowledged.
Ok, I just re-read the section, and although we don't quite wait long
enough to mark the transport DOWN, this patch will cause us to send an
extra HB chunk, thus exceeding pathmaxrxt by 2.
What the spec really says is that an error is incremented when an
outstanding HB is not acknowledged.
So this code needs a bit of a rework. This patch is still NAKed.
-vlad