Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] de-natting & host fairness
@ 2016-09-26  3:20 Kevin Darbyshire-Bryant
  2016-09-26  3:54 ` Dave Taht
                   ` (3 more replies)
  0 siblings, 4 replies; 29+ messages in thread
From: Kevin Darbyshire-Bryant @ 2016-09-26  3:20 UTC (permalink / raw)
  To: cake

Greetings!

A while back I started on a quest to make cake 'nat' aware as the lack 
of host fairness in a typical home router environment was the only thing 
that prevented cake from being the ultimate qdisc in my opinion.  This 
involves dealing with conntrack which on egress is easy (the kernel 
fills in a data structure for us), ingress is less clear.  I hacked 
something together but wasn't really happy with it.

Another github user 'tegularius' presented some beautifully crafted code 
that did the lookups in a much neater way.  Originally it too had an 
'ingress' lookup problem.  This was worked on and I hacked some 
conditional 'denat' options into cake & tc.

For your 'delight' a denat cake 
https://github.com/kdarbyshirebryant/sch_cake/tree/natoptions along with 
a matching tc https://github.com/kdarbyshirebryant/tc-adv/tree/denat

Typically I use 'dual-srchost srcnat' options on the egress interface, 
with 'dual-dsthost dstnat' in the ingress ifb interface.  In *brief* 
testing, bandwidth is shared fairly between hosts, and fairly by flow 
within each host.  And it's not crashed yet.

Kevin

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

end of thread, other threads:[~2016-09-28 14:11 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-26  3:20 [Cake] de-natting & host fairness Kevin Darbyshire-Bryant
2016-09-26  3:54 ` Dave Taht
2016-09-26  5:11   ` Dave Taht
2016-09-26  8:54 ` moeller0
2016-09-26 13:02   ` Kevin Darbyshire-Bryant
2016-09-26 13:28     ` moeller0
2016-09-26 14:06       ` Kevin Darbyshire-Bryant
2016-09-26 14:30       ` Jonathan Morton
2016-09-26 15:23         ` moeller0
2016-09-27  1:52 ` Noah Causin
2016-09-27  2:32   ` Kevin Darbyshire-Bryant
2016-09-27  4:20     ` Noah Causin
2016-09-27 14:52     ` Noah Causin
2016-09-27 15:28       ` Kevin Darbyshire-Bryant
2016-09-27 20:40         ` Noah Causin
2016-09-27 20:44           ` Jonathan Morton
     [not found]           ` <CAA93jw6rPE8aAGEiqf7jp3hc1J0ThrVer8PFmFLPBqANdtEixg@mail.gmail.com>
2016-09-27 20:58             ` Noah Causin
2016-09-28  4:38           ` Kevin Darbyshire-Bryant
2016-09-28  5:08             ` Noah Causin
2016-09-27 23:08 ` Jonathan Morton
2016-09-28  2:56   ` Kevin Darbyshire-Bryant
2016-09-28  3:06     ` Jonathan Morton
2016-09-28  3:33       ` Kevin Darbyshire-Bryant
2016-09-28  3:49         ` Jonathan Morton
2016-09-28  6:07       ` Kevin Darbyshire-Bryant
2016-09-28 11:08         ` Kevin Darbyshire-Bryant
2016-09-28 11:49           ` Dave Taht
2016-09-28 14:11             ` Kevin Darbyshire-Bryant
2016-09-28  5:56   ` Sebastian Moeller

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