Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Ed Wildgoose <lists@wildgooses.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] wondershaper with ssh on a non-standard port
Date: Mon, 10 Jan 2005 22:16:02 +0000	[thread overview]
Message-ID: <41E2FEA2.2090208@wildgooses.com> (raw)
In-Reply-To: <20050110194905.GM13970@queeg>

Hi,

>having read the docs and the wondershaper script itself, it occurred to 
>me that the documentation promises an immediate drop in interactive app 
>latency, specifically mentioning SSH as a big winner. 
>however, looking through the script i can't really tell just *how* 
>wondershaper figures out which port my SSH daemon is running on. 
>
>so what i'd like to know is, if i'm running my sshd on, say, port 222, 
>do i need to make any changes to the wondershaper script, or will it 
>figure out the right number automagically (e.g. from /etc/services, 
>where SSH is already correctly assigned to port 222) ?
>(conversely, does it 'need' to figure out this port number at all?)
>  
>

It's been a while since I looked through wondershaper, but the relevant 
lines are apparently these:

    # TOS Minimum Delay (ssh, NOT scp) in 1:10:

    tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
          match ip tos 0x10 0xff  flowid 1:10

So it seems to be matching based on the "type of service" bits in the IP 
packet.  I seem to remember that SSH actually sets the IP tos bits 
correctly?

So it *should* work when ssh is on another port.  I guess you need to 
either tweak the script (if you want a quick fix then just mark anything 
to/from port 222 as high priority), or else figure out why your packets 
aren't matching the required rule....

Good luck

Ed W
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2005-01-10 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-10 19:49 [LARTC] wondershaper with ssh on a non-standard port simms
2005-01-10 22:16 ` Ed Wildgoose [this message]
2005-01-11 14:42 ` simms

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=41E2FEA2.2090208@wildgooses.com \
    --to=lists@wildgooses.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox