0

On my CentOS 7.3 system, I would like to configure the ethernet interface so that it immediately enqueues outgoing TCP packets but randomly drops outgoing UDP packets at a configurable rate. The tc(8) command appears capable of doing this using a basic filter attached to the root qdisc, an ematch expression, and a single subclass with a default pfifo leaf qdisc. After reading much documentation, however, I'm still not certain what root qdisc to use.

What is the tc(8) command to accomplish this?

Steve Emmerson
  • 7,702
  • 5
  • 33
  • 59
  • You actually want to randomly drop queued TCP packets (RED). This prevents TCP global synchronization. That does nothing for UDP. – Ron Maupin Sep 12 '17 at 21:43
  • What I wrote is correct. I want to randomly drop UDP packets while allowing TCP packets to be immediately enqueued. – Steve Emmerson Sep 12 '17 at 22:10
  • That is not something that is normally contemplated for QoS because global TCP synchronization will wreak havoc on your network, and RED was developed to break up TCP global synchronization by randomly dropping queued TCP packets. – Ron Maupin Sep 12 '17 at 22:16
  • Understood. Can you answer my question? – Steve Emmerson Sep 12 '17 at 22:25
  • See [tylertreat/comcast](https://github.com/tylertreat/comcast) GitHub. Its described as *"Simulating shitty network connections so you can build better systems"*. – jww Sep 13 '17 at 06:06

0 Answers0