netcls
Net_cls is a Linux kernel cgroup controller that enables network traffic classification by assigning a 32-bit class identifier to all packets generated by processes within a cgroup. The classid can then be used by traffic control (tc) to apply quality-of-service (QoS) policies to the categorized traffic, independent of IP addresses or ports.
How it works: Each cgroup under the net_cls controller exposes a net_cls.classid attribute. Writing a value to
Configuration and workflow: To use net_cls, create or assign processes to a cgroup that has a nonzero
Typical use cases: Net_cls is commonly employed to implement QoS or bandwidth management across multiple services
Limitations and scope: net_cls is primarily associated with the legacy cgroup (v1) hierarchy; in many distributions