All of lore.kernel.org
 help / color / mirror / Atom feed
* Fw: [Bug 205753] New: Incorrect SCTP DATA dispatching
@ 2019-12-03 16:22 Stephen Hemminger
  2019-12-03 18:54 ` Vasil Velichkov
  2019-12-05  9:57 ` Евгений Фокин
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Hemminger @ 2019-12-03 16:22 UTC (permalink / raw)
  To: linux-sctp

All networking bugzilla bugs go to me. This one is new and  SCTP related

Begin forwarded message:

Date: Tue, 03 Dec 2019 13:32:39 +0000
From: bugzilla-daemon@bugzilla.kernel.org
To: stephen@networkplumber.org
Subject: [Bug 205753] New: Incorrect SCTP DATA dispatching


https://bugzilla.kernel.org/show_bug.cgi?id 5753

            Bug ID: 205753
           Summary: Incorrect SCTP DATA dispatching
           Product: Networking
           Version: 2.5
    Kernel Version: 4.19.67
          Hardware: Intel
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: stephen@networkplumber.org
          Reporter: evgenij.fokin@gmail.com
        Regression: No

I think that root cause in skipped messages.

For example, frame 56 in your debian10_sctp_test_to_sctp_test.pcapng shows that
the data message with sctp.data_tsn = 919935042 was received on server
interface but it was acked in frame 78 only.

It happens periodically with high-load traffic. The server can capture DATA on
network interface but SCTP level does not receive it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* Re: Fw: [Bug 205753] New: Incorrect SCTP DATA dispatching
  2019-12-03 16:22 Fw: [Bug 205753] New: Incorrect SCTP DATA dispatching Stephen Hemminger
@ 2019-12-03 18:54 ` Vasil Velichkov
  2019-12-05  9:57 ` Евгений Фокин
  1 sibling, 0 replies; 3+ messages in thread
From: Vasil Velichkov @ 2019-12-03 18:54 UTC (permalink / raw)
  To: linux-sctp

Hi Evgeni,

On 03/12/2019 18.22, Stephen Hemminger wrote:
> All networking bugzilla bugs go to me. This one is new and  SCTP related
> 
> Begin forwarded message:
> 
> Date: Tue, 03 Dec 2019 13:32:39 +0000
> From: bugzilla-daemon@bugzilla.kernel.org
> To: stephen@networkplumber.org
> Subject: [Bug 205753] New: Incorrect SCTP DATA dispatching
> 
> 
> https://bugzilla.kernel.org/show_bug.cgi?id 5753
> 
>             Bug ID: 205753
>            Summary: Incorrect SCTP DATA dispatching
>            Product: Networking
>            Version: 2.5
>     Kernel Version: 4.19.67
>           Hardware: Intel
>                 OS: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>           Assignee: stephen@networkplumber.org
>           Reporter: evgenij.fokin@gmail.com
>         Regression: No
> 
> I think that root cause in skipped messages.
> 
> For example, frame 56 in your debian10_sctp_test_to_sctp_test.pcapng shows that
> the data message with sctp.data_tsn = 919935042 was received on server
> interface but it was acked in frame 78 only.
> 
> It happens periodically with high-load traffic. The server can capture DATA on
> network interface but SCTP level does not receive it.

In my opinion the reason that a SACK for frame 56 is not returned is that the receive buffer is full

$ tshark -r debian10_sctp_test_to_sctp_test.pcapng -Y "sctp.sack_a_rwnd" -T fields -e frame.number -e sctp.sack_a_rwnd
4       106495
7       106423
...
49      105662
53      105591
55      0
57      0
58      13500

> Reproduction scenario:
> system1: /usr/bin/sctp_test -H local-addr -P local-port -l
> system2: /usr/bin/sctp_test -H local-addr -P local-port -h remote-addr -p remote-port -s -x 1000

I'm not sure whether the sctp_test is the best tool for stress/load tests.

You may try increasing the buffer size (-m 212992) on the server side, see also https://github.com/sctp/lksctp-tools/blob/master/src/apps/sctp_test.c#L1117-L1123

Monitor the buffers sizes and sctp's snmp stats when testing

cat /proc/net/sctp/assocs
cat /proc/net/sctp/snmp

Regards,
Vasil

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

* Re: Fw: [Bug 205753] New: Incorrect SCTP DATA dispatching
  2019-12-03 16:22 Fw: [Bug 205753] New: Incorrect SCTP DATA dispatching Stephen Hemminger
  2019-12-03 18:54 ` Vasil Velichkov
@ 2019-12-05  9:57 ` Евгений Фокин
  1 sibling, 0 replies; 3+ messages in thread
From: Евгений Фокин @ 2019-12-05  9:57 UTC (permalink / raw)
  To: linux-sctp

Hello Linux SCTP team,

Unfortunately some of you have not received the previous email.
I've got response from linux-sctp@vger.kernel.org:
550 5.7.1 Content-Policy reject msg: The message contains HTML
subpart, therefore we consider it SPAM or Outlook Virus. TEXT/PLAIN is
accepted.! BF:<U 0.5>; S1727912AbfLDQJ4
I do not know where HTML subpart is. I wrote email with gmal WEB
service. Maybe the problem was with attached file.

The file debian9_sctp_test_to_sctp_test.pcapng can be found here:
https://bugzilla.kernel.org/show_bug.cgi?id 5753

If you know how to prevent this sending error in future please let me know.

I am trying to resend the original message to linux-sctp@vger.kernel.org.
The original message:

>
> Hi Vasil,
>
> The issue when I have 1 second without traffic can periodically reproduces under Debian 10.
> I tried to reproduce it with Debian 9 but everything works fine with the same equipment.
>
> Ok. DATA in frame 56 may be dropped because of buffer is full.
> In this case I want to understand why a_rwnd decries rapidly between frames 53-55.
>
> Also I try to understand why a_rwnd is stable enough when the same server side works under Debian 9.
> Please look at debian9_sctp_test_to_sctp_test.pcapng.
>
> Best Regards,
> Evgeny
>
> On Tue, 3 Dec 2019 at 21:54, Vasil Velichkov <vvvelichkov@gmail.com> wrote:
>>
>> Hi Evgeni,
>>
>> On 03/12/2019 18.22, Stephen Hemminger wrote:
>> > All networking bugzilla bugs go to me. This one is new and  SCTP related
>> >
>> > Begin forwarded message:
>> >
>> > Date: Tue, 03 Dec 2019 13:32:39 +0000
>> > From: bugzilla-daemon@bugzilla.kernel.org
>> > To: stephen@networkplumber.org
>> > Subject: [Bug 205753] New: Incorrect SCTP DATA dispatching
>> >
>> >
>> > https://bugzilla.kernel.org/show_bug.cgi?id 5753
>> >
>> >             Bug ID: 205753
>> >            Summary: Incorrect SCTP DATA dispatching
>> >            Product: Networking
>> >            Version: 2.5
>> >     Kernel Version: 4.19.67
>> >           Hardware: Intel
>> >                 OS: Linux
>> >               Tree: Mainline
>> >             Status: NEW
>> >           Severity: normal
>> >           Priority: P1
>> >          Component: Other
>> >           Assignee: stephen@networkplumber.org
>> >           Reporter: evgenij.fokin@gmail.com
>> >         Regression: No
>> >
>> > I think that root cause in skipped messages.
>> >
>> > For example, frame 56 in your debian10_sctp_test_to_sctp_test.pcapng shows that
>> > the data message with sctp.data_tsn = 919935042 was received on server
>> > interface but it was acked in frame 78 only.
>> >
>> > It happens periodically with high-load traffic. The server can capture DATA on
>> > network interface but SCTP level does not receive it.
>>
>> In my opinion the reason that a SACK for frame 56 is not returned is that the receive buffer is full
>>
>> $ tshark -r debian10_sctp_test_to_sctp_test.pcapng -Y "sctp.sack_a_rwnd" -T fields -e frame.number -e sctp.sack_a_rwnd
>> 4       106495
>> 7       106423
>> ...
>> 49      105662
>> 53      105591
>> 55      0
>> 57      0
>> 58      13500
>>
>> > Reproduction scenario:
>> > system1: /usr/bin/sctp_test -H local-addr -P local-port -l
>> > system2: /usr/bin/sctp_test -H local-addr -P local-port -h remote-addr -p remote-port -s -x 1000
>>
>> I'm not sure whether the sctp_test is the best tool for stress/load tests.
>>
>> You may try increasing the buffer size (-m 212992) on the server side, see also https://github.com/sctp/lksctp-tools/blob/master/src/apps/sctp_test.c#L1117-L1123
>>
>> Monitor the buffers sizes and sctp's snmp stats when testing
>>
>> cat /proc/net/sctp/assocs
>> cat /proc/net/sctp/snmp
>>
>> Regards,
>> Vasil

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

end of thread, other threads:[~2019-12-05  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03 16:22 Fw: [Bug 205753] New: Incorrect SCTP DATA dispatching Stephen Hemminger
2019-12-03 18:54 ` Vasil Velichkov
2019-12-05  9:57 ` Евгений Фокин

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.