* [LARTC] Problem with Howto
@ 2003-04-15 17:55 Dr Aldo Medina
2003-04-15 19:44 ` Stef Coene
2003-04-15 20:52 ` Cameron Kerr
0 siblings, 2 replies; 3+ messages in thread
From: Dr Aldo Medina @ 2003-04-15 17:55 UTC (permalink / raw)
To: lartc
I don't know if this is the correct channel (However, if the CVS is the
only correct channel, please excuse me, because I can't use it) for
this.
In the LART Howto, section 9.6.1 it says: "...we want to assign all
traffic from and to port 22 to the highest priority band...", and
however the sample uses dport 22 and sport 80. Shouldn't this be
corrected?
TIA.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Problem with Howto
2003-04-15 17:55 [LARTC] Problem with Howto Dr Aldo Medina
@ 2003-04-15 19:44 ` Stef Coene
2003-04-15 20:52 ` Cameron Kerr
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-04-15 19:44 UTC (permalink / raw)
To: lartc
On Tuesday 15 April 2003 19:55, Dr Aldo Medina wrote:
> I don't know if this is the correct channel (However, if the CVS is the
> only correct channel, please excuse me, because I can't use it) for
> this.
>
> In the LART Howto, section 9.6.1 it says: "...we want to assign all
> traffic from and to port 22 to the highest priority band...", and
> however the sample uses dport 22 and sport 80. Shouldn't this be
> corrected?
Indeed. It should read :
"... we want to assign all traffic to port 22 and from port 80..."
Bert, have you seen this or shall I create a diff?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Problem with Howto
2003-04-15 17:55 [LARTC] Problem with Howto Dr Aldo Medina
2003-04-15 19:44 ` Stef Coene
@ 2003-04-15 20:52 ` Cameron Kerr
1 sibling, 0 replies; 3+ messages in thread
From: Cameron Kerr @ 2003-04-15 20:52 UTC (permalink / raw)
To: lartc
On Tue, Apr 15, 2003 at 12:55:52PM -0500, Dr Aldo Medina wrote:
> In the LART Howto, section 9.6.1 it says: "...we want to assign all
> traffic from and to port 22 to the highest priority band...",
Please excuse my newbie-ness in this matter, but in the case of SSH,
would it not be much better to say "...we want to assign all traffic
from port 22 with TOS of Minimal Delay to the highest priority band..."?
This is because of applications such as scp, which also use port 22, and
is bulk data. I know at least OpenSSH sets TOS appropriately (Only
turned on for interactive stuff, not for scp).
If anyone is interested, I wrote a wrapper script for tcpdump to show
what's happening wrt TOS. I call it tosaudit. To use it, just do (as
root)
tosaudit dst port 22
====================================
#!/bin/sh
#
# Audit the use of TOS based on a pcap filter provided by the user.
#
# Cameron Kerr
# 13 Apr 2003
umask 077
report=/tmp/tosaudit$$
count\x1000
echo "#Capture file is $report"
echo "#Capturing $count packets..."
tcpdump -c $count -w $report $*
echo "#Processing..."
tcpdump -r $report -v | \
sed -e '/\[tos 0x..\]/s/.*\[tos \(0x..\)\].*/\1/' \
-e 't' -e 's/.*/0x00/' | \
uniq -c | \
awk '
BEGIN {
sum00 = 0
sum10 = 0
sum20 = 0
sum40 = 0
sum80 = 0
suminv = 0
}
$2 = "0x00" { sum00 += $1; next }
$2 = "0x10" { sum10 += $1; next }
$2 = "0x20" { sum20 += $1; next }
$2 = "0x40" { sum40 += $1; next }
$2 = "0x80" { sum80 += $1; next }
{ suminv += $1 }
END {
printf( "No TOS 0x00 = %d\n", sum00 )
printf( "Minimum Delay 0x10 = %d\n", sum10 )
printf( "Maximise Throughput 0x20 = %d\n", sum20 )
printf( "Maximise Reliability 0x40 = %d\n", sum40 )
printf( "Mimimise Monetary Cost 0x80 = %d\n", sum80 )
printf( "Others (Non-Standard) 0x?? = %d\n", suminv )
}'
echo "#Actual TOS values found..."
tcpdump -r $report -v | \
sed -e 's/.*\[tos \(0x..\)\].*/\1/' -e t -e 's/.*/0x00/' | \
sort | uniq -c
====================================
By the way, is it still wrong to have multiple TOS bits set?
I'll be putting this script on my website in due course, when its a bit
more polished. (Option for reading from capture file, instead of from
network.)
--
Cameron Kerr
Email: cameron.kerr@paradise.net.nz
Website: http://nzgeeks.org/cameron/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-15 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-15 17:55 [LARTC] Problem with Howto Dr Aldo Medina
2003-04-15 19:44 ` Stef Coene
2003-04-15 20:52 ` Cameron Kerr
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.