-
Notifications
You must be signed in to change notification settings - Fork 9
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
How to enable Fast-NAT support(MTK_APSOC_WIFI_FAST_NAT_SUPPORT)? #3
Comments
well,to do that you need other stuff in mediatek folder. here we have things missing. that is for DSA right? to do that you should be on old swconfig. i ll make a testing build before sharing the code. |
DSA+Openwrt NAT,or swconfig+ MTK NAT,which is faster? |
In addition, I want the firmware to automatically "add ra0/rai0 to br-lan" during the device's first startup. How can I change the code to achieve this? I have tried setting "EAPifname=br-lan" in the file |
well i did alot changes, but i'm having problem with luci-lib-jquery-1-4 .how you did that? |
copy
luci-lib-jquery-1-4 is from bmx6 |
I did, i can select it but it wont compile,and i get no error.very strange. |
About auto-applying "add ra0/rai0 to br-lan", I have searched for a while. The conclusion is that to apply this configuration, the sbin/mtkwifi tool does not provide a direct function for it; instead, it relies on the "vif_enable" function from mtkwifi.lua. Therefore, I need to make an HTTP request at startup, for example, using curl -s http://127.0.0.1/cgi-bin/luci/admin/network/wifi/vif_enable/ra0. However, at present, there is an issue with authentication or logging in to perform this action. |
I add ra0 and rai0 to br-lan, but at first boot i like that the radios are down.today or tomorrow i'll share the firmware. |
Thanks for your work.Remember to make a new branch for swconfig. |
hi @hpx502766238 can you test the build please? do not keep setting. in firewall select software and hardware offload or the device will not work at all on wan side. well you really need only hardware offloadind like this. config defaults |
Ok,I will test later. |
At present, the wired speed test sometimes shows a sharp drop in throughput, but everything else is working normally. The wireless network is very stable without packet loss and delay. |
What speed do you get via Ethernet? try to play with software and hardware nat in firewall. |
I currently do not have a 1000Mbps broadband testing condition. I tested it under a 200Mbps broadband environment. Currently, the lowest speed during the sudden drop is around 50Mbps. |
Software and hardware nat are already enabled. |
something is wrong on your side i have 300Mbps and never fail. have you done just hardware offload like my config? |
How can I apply the above settings? I don't know how to manually edit firewall rules.In addition, I did test it in the standard main router mode, where the LAN and wireless are in the same network segment, and the WAN port automatically obtains the address through DHCP. It is not in a mode such as wireless bridging or repeating. |
I plan to conduct a more thorough and professional test using iperf3 on Sunday, utilizing a 1000M ethernet connection. |
Yes thanks, will be good test at that speed,i never tested. Sftp to the router,go in etc/config/firewall |
Another issue is that the 5G signal is lost after the system reboot, and I must reload it manually. |
The most crucial issue lies in the uplink speed of 5G at 160Mhz, which is only 200M. I have tested DSA+Op HWNAT and found that the highest average speed can reach 800M. |
Set the channel on 5ghz radio, do not leave auto.i know it's not perfect,but in the long run this firmware should be very stable. |
Currently, it seems that I am unable to perform WWAN testing as the AX6S I am using is the standard version made in China and not a specially customized version. It does not come with a mobile broadband module. Additionally, I would appreciate it if you could share your code with me. I am very interested in studying the modifications you have made. Personally, I believe the ideal solution would be to use MTK HNAT+dsa in combination with the openwrt fork of lean lede for compilation. However, I am uncertain if this is achievable and whether swconfig is absolutely necessary. |
Wwan is client mode |
I understand now. It sounds like a wireless bridge operating in routing mode. However, before I proceed with the test in 15 days, can you share your code with me first? As I am currently away from home and do not have the test environment available, I would like to study your code in the meantime. |
I may have misunderstood it before. After you mentioned wwan, it suddenly occurred to me today that does the wireless fast nat only apply to wireless nat? If I understand correctly now, it calls the hnat module in the wireless chip, while the wired nat calls another hardware, I guess it's the hnat module of the mt7622 processor. These two nat modules are completely unrelated, so after enabling the wireless fast nat, it actually has no impact on the throughput and delay of wired wan to lan or wired wan to wireless, right? I don't know much about hardware, I don't know if this understanding is correct. If there is any mistake, I hope you can help me understand. Actually, my intention is to speed up the forwarding speed from wireless to wired wan port after enabling the wireless fast nat. It seems that I have always misunderstood it. |
I conducted a brand new test in WWAN networking mode,#8 |
Hi, sorry for the delay in replying. I think we will have to do more tests. as soon as I have some free time we will try. I think one test to do is to try the 5.4.xx kernel. Could this nat hardware malfunction be due to nftables? the 5.4 kernel uses iptables. We will see. |
are you sure in /etc/wireless/mt7615/mt7615.2.dat is enabled? mine was not Wds3Key= |
yes,I am sure it is enabled by default even if I restore to factory settings: |
So you said that wireless side is working better on non hardware nat drivers? |
Yes,the throughput is much higher on non-hardware NAT drivers, but CPU usage is much higher, too. |
and if you enable hardware and software offload in firewall? no difference on wireless side? very strange situation. if you tell me how i can sent you this stuff i'll sent you. so we will have two eyes on that. |
1.I didn't enable linux offload in firewall when tested your firmware. |
3.you can send stuff to my email,[email protected]. |
you can check now |
ok,I received. |
Is the wifi driver you send to me different from your current github repo?I found some differences,it seems to be an older driver,similar to padavanonly. |
I do not remember,if you think so use the one on the repo,and add the needed files. |
I compiled a new firmware with lede,kernel 5.10.214(same kernel version with Openwrt22.03 Snapshot).At present,the "wlan to wan" situation works fine,and I don't need to turn on the linux flowoffload.I am not at home now and cannot perform a test for the whnat situation.I plan to perform it after 15 days. |
show the full makefile please i have a mess here. |
|
so how you know that it's working fine if you cannot test it? lol, just curios. |
I only tested for "wlan to wan" situation just now,not all situations. |
yes all setting for apcli, and i think is good to force it to mode=17 |
even with new makefiles it do not work right on 22.03.6 i need enable software and hardware nat. this on wwan. |
the mtksdk seems to be published before 2021,Nov.Because it has an option called CONFIG_NET_MEDIATEK_HW_QOS,refer to the date of this commit hpx502766238/mtk-openwrt-feeds@2494820. |
About whnat,I will make a full test this weekend.You can try op22.03 snapshot with kernel version 5.10.214 instead if mtkhnat didn't take effect by default. |
well, i'm reading the code a bit and i think the easy way is to stay on openwrt 22.03.2 because the /etc/firewall.user is working. on later version of openwrt you need adapt nftables to iptables. |
The test is done.The result is as follows: 1.1 uplink(4tcp connection): 1.2 downlink(4tcp connection): 5G WWAN TEST 1.LAN(switch)-WWAN(apclii0) (WHNAT) test: 1.1 uplink(4tcp connection)(first time test after system reboot) : 1.2 downlink(4tcp connection)(first time test after system reboot,seems that whnat does not take effect): 1.3 uplink(4tcp connection) (second time test after 1 client connected to rai0): 1.4 downlink(4tcp connection)(second time test after 1 client connected to rai0): 2.WLAN(rai0,2x2mimo)-WWAN(apclii0,4x4mimo) (WHNAT) test: 2.1 uplink(4tcp connection) : 2.2 downlink(4tcp connection) : |
As a conclusion, there are still some small issues: |
hi is whnat working whitout enabling hardware and software offload? |
Yes, it was working without enabling Linux offload. I am not sure if it was due to the version of iptables I was using. |
ok that's why, if you are on iptables you can fix easy the cpu oveload |
Is there any newer hnat driver? The current version seems not to support HQoS. |
i think you need and old HQos, check this |
Do I need to set CONFIG_NET_MEDIATEK_HW_QOS=y in config-5.10?I had set it but met a compile error,so I disabled. |
So just do not set it |
I have tried to enable this function in menuconfig,but failed to build:"xxx is not defined".It seems to lack of some dependencies.
Can you fix it?
I guess the sourcecode from padavanonly may offer a help:
package/mtk/mt7622/Makefile
The text was updated successfully, but these errors were encountered: