aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
758 stars 316 forks source link

Why sometimes UERANSIM generates multiple NGAP messages within a single SCTP packet? (SCTP chukning) #716

Open juan-montero-byd opened 1 month ago

juan-montero-byd commented 1 month ago

20240530a.zip

Sometimes (randomly), UERANSIM generates multiple NGAP messages within a single SCTP packet (SCTP chunking). Is there any way to control it? Although Open5GS process these messages successfully, I would like to know if there is a way to send 1 NGAP per SCTP packet. Here a couple of examples:

image

image

Thanks!

linouxis9 commented 1 month ago

Hi @juan-montero-byd,

You would have to set the option SCTP_NODELAY on the socket (but it does not completely prevent SCTP chunk bundling), it's the default behavior of SCTP stack inside the Linux Kernel.

Cheers, Valentin

laf0rge commented 1 week ago

Indeed as @linouxis9 mentioned, this is not an issue at all about UERANSIM. What you are experiencing is a property/behaviour of the SCTP protocol stack inside the Linux kernel.

juan-montero-byd commented 1 week ago

Sorry I missed the first reply. Thank you both! I'll attempt playing with the SCTP_NODELAY, but also learn more about the Linux kernel SCTP protocol stack