Re: Heartbeat on closed SCTP sockets?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Oct 05, 2020 at 06:39:22PM +0200, Andreas Fink wrote:
...
> What we now see in netstat --sctp is:
> 
> we have a LISTEN on port 2010
> we have a  association from port 2010 to the remote in status CLOSED
> 
> in tcpdump we see packets coming in from the remote and heartbeat being acknowledged. However our application is not answering to these packets and the status of the application shows SCTP being down.
> In other words, my application sees the association down. Netstat shows the association as being closed but the kernel seems to continue to entertain this association by continue to send heartbeat ACK and not sending ABORT.

That's weird. If it is in CLOSED, then the stack should be handling
it as an OOTB packet and trigger an Abort.

> 
> We now kill the application
> 
> What we now see in netstat --sctp is:
> we no longer listen on port 2010
> we have a closed association from port 2010 to the remote.
> 
> in tcpdump we however we STILL see packets coming in from the remote and heartbeat being acknowledged, even though no application is listening on this port and no userspace application is using that port.
> We do not see any SHUTDOWN or INIT even if we restart the application.
> 
> Can anyone explain how this can be?

Please check the assoc status as well, via 'ss -a --sctp' and
/proc/net/sctp/assocs . Maybe it got out of sync of the socket status.

  Marcelo



[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux