thombashi / tcconfig

A tc command wrapper. Make it easy to set up traffic control of network bandwidth/latency/packet-loss/packet-corruption/etc. to a network-interface/Docker-container(veth).
https://tcconfig.rtfd.io/
MIT License
774 stars 81 forks source link

Plans to support traffic limit for a MAC address #105

Open NetForces opened 5 years ago

NetForces commented 5 years ago

Hi,

Great project and I see a lot of momentum on it right now. Is there any plans to support traffic control using device MAC address ?

thombashi commented 5 years ago

Hi @NetForces,

Could you tell me more the details about "traffic limit for a MAC address"? I am not sure what exactly means that.

Are you imagine the followings or any other ideas?

NetForces commented 5 years ago

Yup options like --dst-macaddr/--src-macaddr

In a dynamic system where devices on the network get their IP from a DHCP server, the device IP may change over time. While a process to catch these and change the tc rules dynamically is possible it's a real pain. Using the mac address for traffic control means that you set it once for a physical device and do not have to touch it anymore, independant of it's IP address.

thombashi commented 5 years ago

Thank you for your explanation.

I understand the use case. I will consider the feature for the future release.