[SRU] network-manager can’t modify MTU automatically based on what ModemManager exposes for WWAN modems.

Bug #1955797 reported by Jerry Lee
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Medium
Unassigned
Focal
Fix Released
Medium
Unassigned

Bug Description

[Impact]

Some 4G/5G mobile networks(for ex., AT&T) requires a specific MTU setting, this setting will be exposed by the ModemManager for network-manger to configure the MTU of the modem network interface .

The current network-manager v1.22.10-1ubuntu2.2  in focal can’t pass AT&T’s modem system certification.

[Fix]

This upstream patch can resolve this bug: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/499/diffs?commit_id=212758ea05a4c13d65f36b55c90aee7919642631

[Test Plan]

1. Use a Lenovo platform SE30 including 4G Quectel EM160 modem and an AT&T SIM card in US

2. Enable 4G modem and connect to AT&T apn

$ sudo mmcli -i 0 --pin=0000
$ sudo mmcli --modem 0 --enable
$ sudo mmcli -m 0 --simple-connect="pin=0000,apn=emome"
$ sudo nmcli radio wwan on
$ sudo nmcli connection add type gsm ifname wwan0p2MBIM con-name mymodem apn emome
$ sudo nmcli connection up id mymodem

3. Check if the MTU got from the following results are the same:

$ sudo mmcli --bearer 5 | mtu
$ ifconfig mhi_mbim0 | grep mtu

* Expected result:
    Both MTUs are the same value 1430
* Actual tested result:
    Different values (one is 1430 , another is 1500)

[Where problems could occur]

Very low.
This is a simple fix: network-manager gets the MTU from the ModemManager then sets the MTU of the modem interface.

[Other info]

1. Network-manager v1.30.0-1ubuntu3 in hirsute has included the fix.

Revision history for this message
Jerry Lee (jerry-lee-tpe) wrote :

The .debdiff file “network-manager_1-1.22.10-1ubuntu2.3-focal.debdiff” is attached for focal(20.04).

description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment ".debdiff for focal" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Mathew Hodson (mhodson)
Changed in network-manager (Ubuntu):
importance: Undecided → Medium
Changed in network-manager (Ubuntu Focal):
importance: Undecided → Medium
Changed in network-manager (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hey Jerry! This looks good and I can certainly sponsor it for you.

One question before I do that though. Looking at the original source commit:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/499?commit_id=212758ea05a4c13d65f36b55c90aee7919642631
It is mentioned there by some user that MM can also expose this via MTU from the IPv6 bearer, not only IPv4. Not sure if this is an use case we are concerned about, and if there was a follow up patch for this use case.
Can you take a look and give me a sign if we should still continue as-is? Thanks!

Revision history for this message
Jerry Lee (jerry-lee-tpe) wrote :

Hi Lukasz,

Carrier network providers use bearer information to carry the MTU setting, this can be received by the modem then exposed to its host system either via NetworkManager's ipv4_config or ipv6_config.

I think ipv4_config is the must supported setting in carrier's network, that may be why this upstream patch has not considered ipv6_config. (MTU should be the same(per device) for both ipv4 and ipv6)

Our customer has used this patch in the field testing and this patch worked as expected.
There should be no concern to get MTU only via ipv4_config.

Thanks for highlight this question.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Sponsored the change, it should now be in the focal Unapproved queue, waiting from someone from the SRU team to review and accept. I also pushed the change to the git repository.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Jerry, or anyone else affected,

Accepted network-manager into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/network-manager/1.22.10-1ubuntu2.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in network-manager (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Jerry Lee (jerry-lee-tpe) wrote :

Test passed with Lenovo ThinkEdge SE30(11ND) on Focal:
   * The version of the packages tested:
     network-manager: 1.22.10-1ubuntu2. 3

The detail testing procedure and result is provided as the attached file : "SRU for network-manager(verify report).pdf"

Revision history for this message
Jerry Lee (jerry-lee-tpe) wrote :
tags: added: verification-done-focal
removed: verification-needed-focal
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for network-manager has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 1.22.10-1ubuntu2.3

---------------
network-manager (1.22.10-1ubuntu2.3) focal; urgency=medium

  * wwan: Set MTU based on what ModemManager exposes
    (LP: #1955797)

 -- Jerry Lee <email address hidden> Mon, 27 Nov 2021 09:37:06 +0800

Changed in network-manager (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.