* [LARTC] Simple Example isnt working (ssh/bulk traffic)
@ 2007-12-04 11:32 Julius
2007-12-04 19:45 ` Andreas Mueller
2007-12-05 21:54 ` Julius
0 siblings, 2 replies; 3+ messages in thread
From: Julius @ 2007-12-04 11:32 UTC (permalink / raw)
To: lartc
Hi,
the script below should allow to get ssh connections running well while
downloading, but even the 100kbps (100kbyte/s?) doesnt work - can still
download with 500+kb/s. Whats wrong?
INTERFACE=eth0
#clear all on $INTERFACE
tc qdisc del dev $INTERFACE root
tc qdisc add dev $INTERFACE root handle 1:0 htb default 15
#root qdics, allows borrowing for its children
tc class add dev $INTERFACE parent 1:0 classid 1:1 htb rate 100kbps ceil
100kbps
#ssh qdisc
tc class add dev $INTERFACE parent 1:1 classid 1:5 htb rate 20kbps ceil
100kbps prio 2
#other traffic
tc class add dev $INTERFACE parent 1:1 classid 1:15 htb rate 80kbps ceil
100kbps prio 10
#filter ssh
tc filter add dev $INTERFACE protocol ip parent 1:0 prio 1 u32 match ip dport
22 0xffff flowid 1:5
tc filter add dev $INTERFACE protocol ip parent 1:0 prio 1 u32 match ip sport
22 0xffff flowid 1:5
greets
Julius
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Simple Example isnt working (ssh/bulk traffic)
2007-12-04 11:32 [LARTC] Simple Example isnt working (ssh/bulk traffic) Julius
@ 2007-12-04 19:45 ` Andreas Mueller
2007-12-05 21:54 ` Julius
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Mueller @ 2007-12-04 19:45 UTC (permalink / raw)
To: lartc
Hello,
Julius wrote:
> Hi,
>
> the script below should allow to get ssh connections running well while
> downloading, but even the 100kbps (100kbyte/s?) doesnt work - can still
> download with 500+kb/s. Whats wrong?
>
> INTERFACE=eth0
are you mixing egress with ingress? (IMQ in that case)
What's you network-configuration (it's a router? what eths)?
And yes, kbps actually is kbyte/s, kbit for kbit/s.
If all should be setup right, what does
# tc -s -d class show dev eth0
say?
Bye,
Andreas
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Simple Example isnt working (ssh/bulk traffic)
2007-12-04 11:32 [LARTC] Simple Example isnt working (ssh/bulk traffic) Julius
2007-12-04 19:45 ` Andreas Mueller
@ 2007-12-05 21:54 ` Julius
1 sibling, 0 replies; 3+ messages in thread
From: Julius @ 2007-12-05 21:54 UTC (permalink / raw)
To: lartc
On Tuesday 04 December 2007 20:45:54 Andreas Mueller wrote:
> Hello,
>
> Julius wrote:
> > Hi,
> >
> > the script below should allow to get ssh connections running well while
> > downloading, but even the 100kbps (100kbyte/s?) doesnt work - can still
> > download with 500+kb/s. Whats wrong?
> >
> > INTERFACE=eth0
>
> are you mixing egress with ingress? (IMQ in that case)
> What's you network-configuration (it's a router? what eths)?
ah, yes i did.
INTERFACE=ppp0
#alles löschen
tc qdisc del dev $INTERFACE root
tc qdisc add dev $INTERFACE root handle 1:0 htb default 15
tc class add dev $INTERFACE parent 1:0 classid 1:1 htb rate 11kbps
tc class add dev $INTERFACE parent 1:1 classid 1:5 htb rate 6kbps ceil 11kbps
prio 2
tc class add dev $INTERFACE parent 1:1 classid 1:15 htb rate 5kbps ceil 11kbps
prio 10
#ssh filtern
tc filter add dev $INTERFACE protocol ip parent 1:0 prio 1 u32 match ip dport
22 0xffff flowid 1:5
tc filter add dev $INTERFACE protocol ip parent 1:0 prio 1 u32 match ip sport
22 0xffff flowid 1:5
Network setup:
my pc ---- internet ---- router@home
I want to connect to router@home, traffic shaping is done on the router.
The router can do 120kb/s down and 14kb/s up. This works so far, have to test
these settings for some time.
greets
Julius
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-05 21:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-04 11:32 [LARTC] Simple Example isnt working (ssh/bulk traffic) Julius
2007-12-04 19:45 ` Andreas Mueller
2007-12-05 21:54 ` Julius
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.