dtaht / sch_cake

Out of tree build for the new cake qdisc
100 stars 35 forks source link

How about adding mode classffied by each distination, for example, LAN/Internet mode? #124

Closed yutayu closed 4 years ago

yutayu commented 4 years ago

I am using raspberry pi for sqm qos and proxy. I should divide bandwidth limit setting for inside lan and internet. For example,100Mbps lan and 1Mbps internet , and these are classfied by htb.

micron10 commented 4 years ago

if any write classffied to cake i whan to try !

На ср, 1.01.2020 г. в 19:05 yutayu notifications@github.com написа:

I am using raspberry pi for sqm qos and proxy. I should divide bandwidth limit setting for inside lan and internet. For example,100Mbps lan and 1Mbps internet , and these are classfied by htb.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dtaht/sch_cake/issues/124?email_source=notifications&email_token=ADCWD5HMAKVFAIYEHM22HB3Q3TEM5A5CNFSM4KB36BU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDSRVNQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCWD5D3T43OLSD7KV5IY2LQ3TEM5ANCNFSM4KB36BUQ .

chromi commented 4 years ago

On 1 Jan, 2020, at 7:05 pm, yutayu notifications@github.com wrote:

I am using raspberry pi for sqm qos and proxy. I should divide bandwidth limit setting for inside lan and internet. For example,100Mbps lan and 1Mbps internet , and these are classfied by htb.

You should be able to use the same classifier filters with DRR instead of HTB, and attach distinct Cake instances to the resulting DRR leaves. You can then set whichever bandwidth values and other parameters you like on each Cake instance. This doesn't require adding any extra features to Cake itself.

Normally you would prefer to have separate physical interfaces for this type of application, one facing the Internet and one facing the LAN, so that all traffic between the two passes through both interfaces. This is what Cake is designed to expect, and what the sqm-scripts package for OpenWRT helps you set up. You can add a second Ethernet port to a Raspberry Pi on a USB dongle.

yutayu commented 4 years ago

okay. I got cake plan.

yutayu commented 4 years ago

At last , I set pi as router. Thanks :)