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

RM551E: Set MTU for modem #90

Closed
ghost opened this issue Nov 1, 2024 · 7 comments
Closed

RM551E: Set MTU for modem #90

ghost opened this issue Nov 1, 2024 · 7 comments

Comments

@ghost
Copy link

ghost commented Nov 1, 2024

I am currently using the RM551E with m.2 to RJ45 adapter (RC PCIe). How do I configure the MTU for the modem to 1428?

@ghost ghost changed the title Set MTU for modem RM551E: Set MTU for modem Nov 2, 2024
@iamromulan
Copy link
Owner

I will look into this. I've never needed to edit MTU before. What's the benefit?

I believe each interface has an mtu which you can see by running the ifconfig command.

@ghost
Copy link
Author

ghost commented Nov 10, 2024

T-Mobile and Verizon MTU are around 1420. I believe by default each interface are set to 1500. The benefit is to reduce fragmentation and promote more stable speeds

@iamromulan
Copy link
Owner

There are typically 2 interfaces related to the cellular connection seen active in ifconfig (including each MTU).
An rmnet_data interface and rmnet_ipa0
Here is how it works:

  • Data Path Interface: rmnet_ipa is typically the direct connection to the IP accelerator, managing the data processed by the IPA hardware.
  • High-Speed Data Transfer: It often supports large MTUs (e.g., 9216 bytes) to optimize throughput, especially for scenarios requiring high-speed data handling, such as 5G.
  • Secondary to rmnet_data Interfaces: While rmnet_dataX interfaces provide data paths for individual data sessions (e.g., PDP contexts), rmnet_ipa often serves as the aggregated backend for all rmnet_dataX interfaces.

So in theory we only need to modify the MTU of the rmnet_data interface?
Take a look at my my rmnet interfaces

root@RM551EGL:~# ip link show | grep -A1 rmnet
14: rmnet_ipa0: <UP,LOWER_UP> mtu 9216 qdisc mq state UNKNOWN mode DEFAULT group default qlen 1000
    link/[519]
--
18: rmnet_data0@rmnet_ipa0: <> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/[519]
19: rmnet_data1@rmnet_ipa0: <UP,LOWER_UP> mtu 1430 qdisc mq state UNKNOWN mode DEFAULT group default qlen 1000
    link/[519]
20: rmnet_data2@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/[519]
21: rmnet_data3@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/[519]
22: rmnet_data4@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/[519]
23: rmnet_data5@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/[519]
24: rmnet_data15@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/[519]
25: rmnet_data16@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/[519]

Here we can see rmnet_data1 is UP with an MTU of 1430
If I wanted to edit that I would probably send a shell command like ip link set rmnet_data1 mtu 1420

@ghost ghost closed this as completed Nov 20, 2024
@JackCA
Copy link

JackCA commented Nov 20, 2024

How would I automate this on startup?

@iamromulan
Copy link
Owner

iamromulan commented Dec 7, 2024

MTU modification is now available from the Toolkit/deployment script in development-SDXPINN. It does persist at boot and gets placed in the custom firewall rules right along with TTL 👍
IMG20241206160356.jpg

received_1121818332800296.jpeg

@dr-dolomite
Copy link
Contributor

This will also be available on QuecManager itself soon.

@JackCA
Copy link

JackCA commented Dec 9, 2024

Awesome!

This issue was closed.
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

3 participants