I'm seeking advice about which technology to use to classify packets for shaping in traffic control (tc). I've found at least 3 that could be used:

  • iptables MARK
  • iptables CLASSIFY
  • tc filter

Which one should I use? Is there one that is better than others?


All of those are OK to do the marking but I recommend "tc filter" because:

  • You have the rules in one place.
  • By using hashes, you can obtain a very fast classification.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.