Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the maximum message size of UDP packets configurable [7416] #976

Closed
dirk-thomas opened this issue Jan 23, 2020 · 1 comment
Closed

Comments

@dirk-thomas
Copy link
Contributor

Currently the maximum UDP packet size is hard coded in https://github.com/eProsima/Fast-RTPS/blob/add4226d6e8a72e2d235112ad29b2bea4e82b986/include/fastrtps/transport/TransportInterface.h#L31

We would like this to be configurable (through XML I guess).

The reason is that with the current size each UDP packet might get split into IP fragments. Depending on the bandwidth that can easily overload the subscriber sides IP stack in case some IP fragments are lost. This option would allow to lower the maximum size to be below the MTU and therefore avoid UP fragmentation (obviously with an increased overhead of a couple of %).

@MiguelCompany MiguelCompany changed the title make the maximum message size of UDP packets configurable make the maximum message size of UDP packets configurable [7416] Jan 24, 2020
@richiware
Copy link
Member

Specify new transports via XML is already supported. You can define a new transport using a TransportDescriptor. Then you can use a transport with this configuration in a participant profile in this manner:

        <userTransports>
            <transport_id>TransportId1</transport_id> <!-- string -->
        </userTransports>

        <useBuiltinTransports>false</useBuiltinTransports> <!-- boolean -->

Hope this helps you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants