Comments (5)
Thank you for your report.
Certainly, these are not a preferable behavior.
I think that there are two problems:
tcshow
only display the lasttc
settingtcset
allow multiple shaping rules for the same device and the same network--add
option should allow only when different rules for the different devices/networks
I will fix 2.
in the future release, and 1.
will never happen if I fix 2.
from tcconfig.
Well 1. can still occur if you make a script with --tc-script
and apply that, or when you run tc
by itself.
It would be very nice if tcshow
would parse the output of tc qdisc show
, so it would always be correct. However, this might take it too far.
I am also a bit confused what the --add
option does. What would be the difference between
➜ ~ sudo tcset --device lo --rate 10M
➜ ~ sudo tcset --device lo --delay 10
and
➜ ~ sudo tcset --device lo --rate 10M
➜ ~ sudo tcset --device lo --delay 10 --add
from tcconfig.
I've fixed the 2.
at tcconfig 0.12.0
.
Well 1. can still occur if you make a script with --tc-script and apply that, or when you run tc by itself.
It would be very nice if tcshow would parse the output of tc qdisc show, so it would always be correct. However, this might take it too far.
You are absolutely right. However, that is out of scope (at least for now).
tcshow
only aims to show the settings by tcset
(too many things to consider to create general purpose tc
setting display tool)
I am also a bit confused what the --add option does. What would be the difference between
Purpose --add
option is to set multiple shaping rules to a device as follows:
# tcset --device eth0 --network 192.168.0.0/24 --delay 10
# tcset --device eth0 --network 192.168.1.0/24 --delay 50
[NOTICE] tcconfig: failed to 'tc qdisc add': qdisc already exists (dev eth0, handle=1a1a:, algo=htb). execute with --overwrite option if you want to overwrite the existing rules. execute with --add option if you want to add a new rule in addition to the existing rules.
# tcset --device eth0 --network 192.168.1.0/24 --delay 50 --add
# tcshow --device eth0
{
"eth0": {
"outgoing": {
"dst-network=192.168.1.0/24, protocol=ip": {
"delay": "50.0",
"rate": "1G"
},
"dst-network=192.168.0.0/24, protocol=ip": {
"delay": "10.0",
"rate": "1G"
}
},
"incoming": {}
}
}
from tcconfig.
Thanks, now I get it.
from tcconfig.
I'll close the issue then.
Thanks,
from tcconfig.
Related Issues (20)
- Support multiple excluded networks HOT 1
- Add a command line option to exclude network management traffic from impairment (dhcp, icmp and arp traffic)
- Limit outgoing speed HOT 1
- How to implement different network routes to different interfaces HOT 2
- Crash in tcshow Filter Parsing HOT 3
- Distinguish upload and download HOT 3
- 'Exclusivity flag on, cannot modify.' error when adding multiple --network rules
- Can tcconfig can be run on python virtualenvironment?
- Delete shaping rule using ID and Network not working
- ValueError: Level 'QUIET' does not exist HOT 1
- Can't change rate incoming with tcset HOT 5
- SQLLite Error
- Documentation for tcset "--direction incoming" appears to be incorrect (?)
- Add support for setting "limit" parameter
- when use --dirction incoming , Error reporting “modprobe: FATAL: Module ifb not found in directory /lib/modules/5.15.0-72-generic” HOT 3
- Limit based on source ip
- /usr/sbin/tc filter show dev lxc6a7cb0103198 to add the direction(ingress/egress)
- Doesn't work with busybox HOT 1
- SimpleSQLite >= 1.5.0 breaks tcconfig HOT 2
- Dummy .deb package inside tcconfig_0.28.0_jammy_amd64.deb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcconfig.