Subquestion #1
tc
with all its qdisc
s is perfect way to limit bandwidth, but is there any means in Linux to limit pps of outcoming packets?
Why i ask it.
Normally you think about only one resource - bandwidth (bytes per second), but when some app starts to generate tremendous amount of small packets (for instance http GET requests to different sites which contain relatively small amount of byres in it) then probably pps will be the resource.
Subquestion #2
So, I want to split all my traffic into two groups - group A with small pps and bandwidth (high priority), and group B with big pps and low priority. And then I want to limit summary (from both groups) outcoming pps, prioritizing packets from group A.
P.S. Of course I want to share common channel between these two groups. So I can not limit only B, because when A does not use channel at all, B must use 100% of it.
Is it possible? How?