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

I found MAX_MTU is 1400 when Sending data using DTLS1.2 protocol #7105

Open
QiangFan-cpu opened this issue Jan 3, 2024 · 2 comments
Open
Assignees
Labels

Comments

@QiangFan-cpu
Copy link

Version

WolfSSL commercial v5.6.4

Description

I found MAX_MTU is 1400 when Sending data using DTLS1.2. I want to know about the value of MAX_MTU,
why set it to 1400.
Now,I using scene, I want to call "wolfssl_write()" to send 1500 byte data, but wolfssl checked the length of data and the size of MTU, If the length of data > 1400(MAX_MTU),would display error. I want to know the mentod of using way about sending data.

@embhorn embhorn self-assigned this Jan 3, 2024
@embhorn
Copy link
Member

embhorn commented Jan 3, 2024

Hello @QiangFan-cpu

Thanks for contacting wolfSSL Support. I am requesting a review of this issue by our engineers.

If this is a high priority request, please consider using our commercial support by emailing support@wolfssl.com

Thanks,
@embhorn - wolfSSL Support

@embhorn embhorn assigned ejohnstown and unassigned embhorn Jan 3, 2024
@ejohnstown
Copy link
Contributor

The value of 1400 was chosen by subtracting 100 from the usual MTU size of 1500. The MTU size includes the size of the ethernet frame header (14), size of the IP header (40 for IPv6), the UDP header size (8), and the payload size. I then rounded it up to 100 to be conservative. The payload is going to include the size of the DTLS record header, padding, IV, and MAC. That means less than 1400 will be able to be transmit. If your network's MTU is greater than 1500 set that value higher. If you know you are using IPv4, set the MTU higher.

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

No branches or pull requests

3 participants