All of lore.kernel.org
 help / color / mirror / Atom feed
* Lingering associations on the server side after process dies
@ 2016-12-22  7:11 amar padmanabhan
  2016-12-22 17:17 ` Marcelo Ricardo Leitner
  2016-12-22 17:39 ` amar padmanabhan
  0 siblings, 2 replies; 3+ messages in thread
From: amar padmanabhan @ 2016-12-22  7:11 UTC (permalink / raw)
  To: linux-sctp

I am trying to figure out an issue where after a process crash
associations are lingering.

On the server:
vagrant@magma-dev:~/build/oai_sgw$ sudo cat /proc/net/sctp/assocs
 ASSOC     SOCK   STY SST ST HBKT ASSOC-ID TX_QUEUE RX_QUEUE UID INODE
LPORT RPORT LADDRS <-> RADDRS HBINT INS OUTS MAXRT T1X T2X RTXC wmema
wmemq sndbuf rcvbuf
ffff8800b58c7000 ffff8800da4d0bc0 2   1   3  0       9        0
0       0     0 36412 36412  192.168.60.142 <-> *192.168.60.141
7500     3     8   10    0    7        0        1        0   212992
212992

sudo lsof | grep ffff8800da4d0bc0

after the application server restarts the client retries with INIT and
COOKIE_ECHO and the server replies back with INIT_ACK and COOKIE_ACK
without any notification to the application server and any subsequent
request from the client is not seen on the server.

Some pointers would be useful
1. Why can't I see the socket in lsof.
2. How do I shutdown the existing association, so the server can
rebuild the state on the associations, and restart cleanly.

vagrant@magma-dev:~/build/oai_sgw$ uname -a
Linux magma-dev 4.7.4-040704-generic #201609150330 SMP Thu Sep 15
07:32:22 UTC 2016 x86_64 GNU/Linux

vagrant@magma-dev:~/build/oai_sgw$ sudo modinfo sctp
filename:       /lib/modules/4.7.4-040704-generic/kernel/net/sctp/sctp.ko
license:        GPL
description:    Support for the SCTP protocol (RFC2960)
author:         Linux Kernel SCTP developers <linux-sctp@vger.kernel.org>
alias:          net-pf-10-proto-132
alias:          net-pf-2-proto-132
depends:        libcrc32c
intree:         Y
vermagic:       4.7.4-040704-generic SMP mod_unload modversions
parm:           no_checksums:Disable checksums computing and verification (bool)

The code can be found here:
https://gitlab.eurecom.fr/oai/openair-cn/blob/develop/SRC/SCTP/sctp_primitives_server.c#L352

Thanks
Amar

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-22 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-22  7:11 Lingering associations on the server side after process dies amar padmanabhan
2016-12-22 17:17 ` Marcelo Ricardo Leitner
2016-12-22 17:39 ` amar padmanabhan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.