Displaying 20 results from an estimated 20000 matches similar to: "Where to assign weights to different flows?"
2004 May 09
3
prerouting does not effect filtering
I try to shape traffic using HTB and mark packets within iptables using
PREROUTING. But the filterrules seems to ignore the marks set with
PREROUTING
Only POSTROUTING marks are accepted.
First my configuration
I have a router connected to the internet via ADSL over interface ppp0.
eth0 is a tunnel to ppp0 and eth1 serves the LAN.
LAN is 192.168.57.0/24 on 10Mbit
ppp0 is 80.126.16.44 on
2005 Dec 04
6
tbf and prio blocking some flows entirely
I thought I had this all worked out, but it seems not. The following tc
configuration:
tc qdisc del dev ppp0 root 2> /dev/null > /dev/null
tc qdisc add dev ppp0 root handle 1: tbf rate 120kbit burst 1200 limit 1
tc qdisc add dev ppp0 parent 1:1 handle 2: prio bands 3
tc qdisc add dev ppp0 parent 2:1 handle 10: sfq perturb 20
tc qdisc add dev ppp0 parent 2:2 handle 20: sfq perturb 20
tc
2004 Dec 21
18
Weighted packet shaping?
Hi all,
Im new to all this, and am still trying to get my head qround some of the
concepts of how this all works.
Ive read the howto''s, man pages etc.
Ive setup packet shaping on my router/server box using HTB and SFQ, but its not
working the way i would like.
Im after shaping that has "weights" for classes so that a lower priority class
will slow down when a higher class
2005 Dec 10
10
Marking packets by mac addr using tc filter u32 match?
Hi
Is there a way of marking packets by mac address instead of ip or ports
using a "tc filter u32 match"?
I read somewhere that I could use the offset -8 and -14 to grab the mac
addresses but if I use anything lower than -8, for example -9, I get an
error.
I''m modifying the wondershaper script to cap the download speed by mac
address.
Any sugestions?
2005 Feb 02
8
can''t understand strange PRIO behaviour
Hello everybody,
sorry for bothering you, but after some hours, I''m stuck. I''m living in
a student''s foundation where I want to connect lots of people to a tiny
DSL link. We have exactly four types of traffic. We want a really hard
PRIO solution (as I promised to someone that group X will only use the
link capacity which isn''t used by group Y). I could make a
2005 May 12
9
IPTables script
Hi All,
I''ve been playing with QOS for a short while now and have worked out how to do
what I want using HTB. Great queuing discipline btw.
My problem is the tc filters I want to setup aren''t working because
iptables is getting to the packets first and mangling the src address.
The iptables script I am using is MonMotha''s Firewall 2.3.8 and it includes
lots of nice
2003 Nov 13
1
HTB traffic shaping + squid cache proxy
Hello!
My system is:
Internet ADSL(PPPoE) ---> ppp0 [LINUX server(router)] eth0 ---> LAN
Server(router) is running on LINUX Slackware 8.1. I have recompiled a
2.4.22 kernel, enabled all QoS support in the kernel config,
including HTB. My ADSL bandwidth is 256Kbit/s for download and
64Kbit/s for upload.
I use the following HTB+IPTABLES configuration, because I want to
reduce bandwith for
2002 Jul 10
7
Anything out there that is similar to Cisco''s WFQ?
> From: "CIT/Paul" <xerox@foonet.net>
> Any help would be greatly appreciated :) This is much better than SFQ :>
Sounds like SFQ to me. Can you tell us what the differences are?
2005 Oct 16
2
Lost packets and strange "behaviour" of my TC rules
Hi all.
I''m going on my 3rd week trying to get a simple traffic shapping to work the right way :( !!
My goal it to shape the traffic coming from one machine (pc1) to another machine (pc2) throught the "eth0" interface. My test configuration is as follows:
PC1
IP: 192.168.105.237
Mask: 255.255.255.0
OS: Red Hat Linux Kernel 2.4.20-8
Rules:
2000 Nov 18
9
priority bands don't reduce interactive latency?
I run a small Linux webserver and NAT router from my cable modem at home.
Whenever someone starts an http download, all other traffic from my LAN is
starved. Bandwidth is not really an issue, but latency is particularly
horrible -- pings that usually come back in 20ms can take up to 600ms while
the web server is active!
I set up QoS (netfilter+iproute2) on the NAT machine in an attempt to give
2003 Aug 08
1
Looking for a good htb traffic shaping script to prioritize incoming traffic
I am looking for a good htb traffic shaping script to prioritize incoming
traffic over outgoing traffic for my machine. I have a 100mbit line, ftp
up, backup data comming in, but whenever mirrors starts grabbing it they use
all the traffic and the backup data comming in (the important data) drops to
like 300kb/sec. I was thinking some script doing
sleep 60
[if downstream > 1mb/sec, limit
2003 Oct 31
2
tc filter oddities
I shape my upstream cable link with HTB from a script. My voip traffic
(from the 192.168.0.14 host) gets priority over everything else to the
near-starvation of other classes; the rest of the traffic is split up
based on some priority rules (qos, empty ack packets, etc). eth1 is the
uplink
I''ve been using HTB and fw marking for the job until recently, when I
changed the queue structure
2004 Nov 25
1
Shaping with htb and VLAN
Hello
At first I must tell you that I´m a real newbie with Linux (and english as well...)
I´m using 2 vlans and shaping works quite well without vlan
Now I want to do load balancing at these vlans.
Any vlan should get the same minimum/maximum bandwidth of download and use the bandwidth that isn´t used by the other one at the moment.
But with vlan the shaping doesn´t work.
Can you please tell me
2005 Feb 06
2
problems with u32 fiter
hello to all
i''m trying to set a filter but doesn''t want to work.
i''ve set ut the qdiscs and the classes like this :
tc qdisc add dev ppp0 root handle 1: htb default 20
tc class add dev ppp0 parent 1: classid 1:1 htb rate 120kbit
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:21 htb rate 30kbit ceil
2004 Oct 28
12
HTB: Problem with excess bandwidth distribution
Hello,
I have a serious problem with HTB which I wasn''t able to solve myself.
I run a masquerading router with ppp0 as interface to the Internet.
Three clients need to share a downstream of 1 MBit, which I want
to divide with tc.
When I see a packet being forwarded to one of these clients, I give
it the appropriate unique mark:
iptables -t mangle -A FORWARD -d 192.168.34.141 -j MARK
2002 Dec 07
4
Why my script doesn''t work ???
Hi All,
I''m using iptables-1.2.7a on RedHat8 kernel 2.4.20.
I wanted to limit the file-sharing traffic to the internet.
I marked the packets with iptables:
iptables -A FORWARD -t mangle -p tcp -s 192.168.1.1/24 -d !
192.168.1.1/24 --dport 1024:1862 -j MARK --set-mark 1
iptables -A FORWARD -t mangle -p tcp -s 192.168.1.1/24 -d !
192.168.1.1/24 --dport 1864:65535 -j MARK --set-mark 1
2004 Jul 10
3
limiting doesn''t work
Hi folks,
I read the fantastic LARTC How-to and after that i tried to limit one
host in my LAN for both down-and upload bandwidth usage.
I took section 15.9. and added uplink-limiting as I understood it from
the previous chapters.
Unfortunately it doesn''t work.
I ran the script and went to the specified PC, started a download, and
watched the rate. The rate was always about 2000 kbit/s,
2005 Jan 31
3
why there is any traffic in default class?
I have:
tc qdisc add dev imq0 root handle 1: htb default 30
tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit
tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit
then:
iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0
tc class add dev imq0 parent 1:1 classid 1:22 htb rate 64kbit ceil 128kbit
tc filter add dev imq0 protocol
2002 Oct 16
3
flowid - classid ?
root@Delta:~# tc filter add dev ppp0 parent 1:1 flowid 1:5 protocol ip
Unknown filter "flowid", hence option "1:5" is unparsable
root@Delta:~# tc filter add dev ppp0 parent 1:1 classid 1:5 protocol ip
Unknown filter "classid", hence option "1:5" is unparsable
I don''t understand why it does not work. Can anybody explain me this problem?
--
2004 Nov 09
23
SEPARATING VOIP AND SURFING
Dear list:
I have a problem I cannot handle yet, and need to
solve it as soon as possible. Would be very greatful
with anybody who can help me.
I have a 512/512 link to internet, that I want to
share between several computers. I have eth0, with a
public IP address, conected to Internet, and also,
eth1, with a private IP address, for network with the
surfing computers. I have a main class with