Linux Netfilter discussions
 help / color / mirror / Atom feed
* Feature suggestion ...
@ 2015-09-06 12:31 Akshat Kakkar
  2015-09-06 18:34 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 16+ messages in thread
From: Akshat Kakkar @ 2015-09-06 12:31 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi All,

With latest addition of storing skbinfo (mainly skbprio) in ipset and
then applying it later to the traffic as and when it passes the
iptables ruleset, it becomes relatively easy and simple to do traffic
shaping.

IMHO what one of the feature set which we can add is to have an ipset
of only fwmarks i.e. fw-marks will be hashed and stored in the ipset
and then later using these marks we can instantly (in single look up)
set traffic class.
Motivation for this is the fact that just reading the mark can signify
which fw rule it belongs to (no matter how complex was that firewall
rule). So if we do traffic shaping based on marks, it becomes
straightforward traffic shaping for that fw rule. Now as no of rules
increase, this lookup will also increase linearly and
more-importantly, we cant take advantage of any statefulness over
here, i.e. if there are 100 rules then everytime my packet will have
to go down 100 lines, get it matched, get its skbprio value and then
move forward.

however, if we such an ipset as I am mentioning, so all these skbprio
settings and all can always be done in single shot,

say we make something like
ipset -N MARK-TC-MAP hash:mark skbinfo

iptables -t mangle -A POSTROUTING -j SET --map-set MARK-TC-MAP src --map-prio


Whats your view on this?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-09-10 10:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-06 12:31 Feature suggestion Akshat Kakkar
2015-09-06 18:34 ` Jozsef Kadlecsik
2015-09-06 20:02   ` Akshat Kakkar
2015-09-06 20:07   ` Akshat Kakkar
2015-09-06 20:23     ` Jozsef Kadlecsik
2015-09-07 12:09       ` Akshat Kakkar
2015-09-07 12:52         ` Anton Danilov
2015-09-07 12:56           ` Akshat Kakkar
2015-09-08  5:15             ` Akshat Kakkar
2015-09-08 10:43               ` Pablo Neira Ayuso
2015-09-09  6:35           ` Akshat Kakkar
     [not found]             ` <CAEzD07JQYbtrjBr18=zS0vGMKhFXL52YVcaf3FJqa1Z3TaYZsw@mail.gmail.com>
2015-09-10  5:08               ` Akshat Kakkar
2015-09-10 10:20                 ` Akshat Kakkar
2015-09-10 10:21                   ` Anton Danilov
2015-09-10 10:26                     ` Akshat Kakkar
2015-09-08 12:13         ` Akshat Kakkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox