MTK speed problem (HNAT/HWNAT)

Hello everyone,

We are currently developing routers based on MTK chips. I am currently confused about how to accurately obtain the network speed of different devices. Our current chips are mainly the MT76 and MT79 series.

Here are the known situations:

  • When hardware forwarding HNAT/HWNAT is enabled, the traffic statistics become inaccurate. We rely on traffic statistics to determine the real-time speed.
  • The MTK driver has some information about HNAT, but we currently only have access to overall traffic information and cannot distinguish between upstream and downstream traffic.

We welcome any information and guidance from you all :slight_smile:

Opensource mtk offload reports numbers wheneber state is demoted to slowpath, for mtk sdk you check with them.

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

1 Like

Thanks for your response, @brada4 . I still don't quite understand what you mean. What I'm asking is, if I use the luci-app-nlbwmon package to obtain the terminal rate, will I get accurate results?

It's your hardware and vendor's SDK, how would we know ?

1 Like

You have to ask vendor to support their SDK. I described what open source drivers do, so you have some ground to ask for.

1 Like

For mtk proprietary driver
You can look into this repo or ask vendor

You will need to change more files, good luck!

1 Like

Thank you all for the information, I sincerely appreciate it. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.