Skip to content

Is the order of frames preserved when sending via a can socket? #7

Description

@not-a-user

This is more of a fundamental question than an issue:

Given that a single process and a single thread sends frames using a single raw can socket (socket(PF_CAN, SOCK_RAW, CAN_RAW)) and always uses the same can id; is there a guarantee that the frames will appear in the same order on the wire?

If not, can we take measures (set options, change configurations, etc.) to get this guarantee?

We observe reordering of frames compared to the write calls that the user-space application does. This happens every two hours or so under high load. We use a modified kernel from the 5.4 series (not this one) and real hardware.

Any help from you experts to shed light on this would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions