All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: Problem to priorize SSH traffic
Date: Sat, 17 Dec 2016 15:44:25 +0000	[thread overview]
Message-ID: <58555D59.7070809@gmail.com> (raw)
In-Reply-To: <1737987792.142216491.1481907014295.JavaMail.root@zimbra45-e7.priv.proxad.net>

Ludovic Leroy wrote:
> Andy,
>
> ip + 14? How do you get this result?

It's IP + src/dst MAC + ethertype protocol (which you can match with tc
filters using a negative offset)

On a vlan interface it's it's + 18

On ppp it's just IP length.

If you make a filter/class for say icmp and play with ping you can
infer the overhead by looking at the byte counters.

This is nothing to do with stab - it's always the case, so you need
to take it into account when working out what number to use for overhead.

My old DSL link was pppoa vc mux so the fixed overhead was ip + 10.

When I has a PCI modem and shaped on ppp0 the overhead param of stab
was 10.

When I later got a stand alone modem connected by eth I had to use -4
as the overhead to allow for the fact that tc already saw ip + 14.


  parent reply	other threads:[~2016-12-17 15:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-16 16:50 Problem to priorize SSH traffic Ludovic Leroy
2016-12-16 20:34 ` Alan Goodman
2016-12-16 21:16 ` Ludovic Leroy
2016-12-17 10:23 ` Alan Goodman
2016-12-17 10:56 ` Andy Furniss
2016-12-17 11:19 ` Andy Furniss
2016-12-17 12:27 ` Ludovic Leroy
2016-12-17 14:45 ` Ludovic Leroy
2016-12-17 14:50 ` Ludovic Leroy
2016-12-17 15:14 ` Alan Goodman
2016-12-17 15:44 ` Andy Furniss [this message]
2016-12-17 15:49 ` Andy Furniss
2016-12-17 16:04 ` Dave Taht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58555D59.7070809@gmail.com \
    --to=adf.lists@gmail.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.