Ross Bencina
2014-07-28 04:29:24 UTC
Hi Everyone,
Is there consensus regarding the maximum expected size of an OSC/UDP packet?
My concern is with providing a library that correctly inter-operates
with other implementations.
I had assumed that it was inappropriate to exceed the standard MTU
constraints (1500 bytes, although some sources I've recently found
suggest 512 bytes). Oscpack currently over-allocates its internal
receive buffer to 4096 bytes. However I have received requests to
increase buffering in oscpack to provide compatibility with code that
uses larger packet sizes. (see [1] for the current discussion).
I checked the "Best Practices" paper [2], but aside from mentioning
potential fragmentation, it is silent on the issue of an appropriate
maximum packet size.
Any suggestions?
Thank you,
Ross.
[1] https://github.com/openframeworks/openFrameworks/issues/3106
[2] http://opensoundcontrol.org/files/osc-best-practices-final.pdf
Is there consensus regarding the maximum expected size of an OSC/UDP packet?
My concern is with providing a library that correctly inter-operates
with other implementations.
I had assumed that it was inappropriate to exceed the standard MTU
constraints (1500 bytes, although some sources I've recently found
suggest 512 bytes). Oscpack currently over-allocates its internal
receive buffer to 4096 bytes. However I have received requests to
increase buffering in oscpack to provide compatibility with code that
uses larger packet sizes. (see [1] for the current discussion).
I checked the "Best Practices" paper [2], but aside from mentioning
potential fragmentation, it is silent on the issue of an appropriate
maximum packet size.
Any suggestions?
Thank you,
Ross.
[1] https://github.com/openframeworks/openFrameworks/issues/3106
[2] http://opensoundcontrol.org/files/osc-best-practices-final.pdf