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

DGA4130 - Download/Upload speed limit (solution) #1151

Open
gamerover98 opened this issue Aug 15, 2022 · 6 comments
Open

DGA4130 - Download/Upload speed limit (solution) #1151

gamerover98 opened this issue Aug 15, 2022 · 6 comments

Comments

@gamerover98
Copy link

gamerover98 commented Aug 15, 2022

Modem type: DGA4130
GUI version: 9.6.92-29c5b4ed

Solution

#1151 (comment)

Request

Including a way to limit down/up Mbps speed for each device would be helpful.

My current situation

A television fills the bandwidth while playing films or live TVs and makes it impossible to play online video games due to the high ping.
Impossible to set the max bandwidth from these applications.

@FrancYescO
Copy link
Collaborator

FrancYescO commented Aug 18, 2022

https://github.com/xMase/Traffic-Shaping-DGA4132

PS. Settings QoS is better than limiting bandwidth.

@gamerover98
Copy link
Author

https://github.com/xMase/Traffic-Shaping-DGA4132

Thank you for your response, but does it work on DGA4130?

PS. Settings QoS is better than limiting bandwidth.

I don't know how to use QoS on this UI. Do you know how to do that?
Thank you!

@kiiw
Copy link

kiiw commented Aug 19, 2022

Install the LuCI WebGUI and install SQM from there, then set it up and you're good to go.
Cake didn't work on my DGA4132, while fq_codel and simple.qos work fine.

@gamerover98
Copy link
Author

Install the LuCI WebGUI and install SQM from there, then set it up and you're good to go. Cake didn't work on my DGA4132, while fq_codel and simple.qos work fine.

Thank you but for some unknown reason, I can't install LuCI (#1150).
Anyway, what do you mean with "while fq_codel and simple.qos work fine" and where are located these two files?

@kiiw
Copy link

kiiw commented Aug 19, 2022

Anyway, what do you mean with "while fq_codel and simple.qos work fine" and where are located these two files?

i don't remember where they are because i used LuCI, maybe here You can find some info (https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm_configuration )

@gamerover98
Copy link
Author

gamerover98 commented Aug 21, 2022

🔥🔥🔥 Good news! I have found a solution! 🔥🔥🔥

Premises:

  • The following commands work on DGA4130 with the Ansuel GUI and I don't know if it works with other technicolor models.

The only way I have found is through the Linux TC command with the QoS disabled.
First of all, QoS will overwrite your TC rules so, you must disable it.

qos stop
qos disable

Now without the QoS, if you perform tc qdisc show, you will see the default settings.
At this time, perform these commands to limit the address 192.168.1.whatyouwant.
The following rules are for DOWNLOAD and not UPLOAD

tc qdisc del dev eth5 root
tc qdisc add dev eth5 root handle 1: htb default 5
tc class add dev eth5 parent 1: classid 1:1 htb rate 1000mbit ceil 1000mbit
tc class add dev eth5 parent 1: classid 1:2 htb rate 10mbit ceil 10mbit
tc filter add dev eth5 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.whatyouwant flowid 1:2
tc qdisc add dev eth5 parent 1:2 handle 2: sfq perturb 10
  • If you want to reset the previous configurations: tc qdisc del dev eth5 root
  • If you want to change the speed limit, edit the fourth line from 10mbps to 20mbps or what you want and execute all commands again.
  • If you want these rules just for UPLOAD, edit the "ip dst" in "ip src".
  • I don't know how to apply these rules for both download and upload.

Why eth5? I don't know why but on DGA4130, the WiFi is on eth5. 💩

@gamerover98 gamerover98 changed the title Download/Upload speed limit DGA4130 - Download/Upload speed limit (solution) Aug 21, 2022
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