RE: [LARTC] using tc to drop packets based on the diffserc or tos value

2007-09-16 Thread Raghuvendra Kumar
Thanks. one more thing. I am using a iptable command to match dscp value and drop corresponding packets. iptables -A INPUT -o eth0 -p udp -m --dscp 0x08 -j DROP is the syntex of the command correct? its showing following error: - iptables v1.2.8: Couldn't load match `--dscp':/lib/iptables/lib

RE: [LARTC] using tc to drop packets based on the diffserc or tos value

2007-09-16 Thread Raghuvendra Kumar
Hi Michal, Thanks for your much needed suggestion. Actually i have a video Delivey server(suppose it supports 240 simultaneous calls). It takes request from various users for video delivery. Now suppose if i want that after load reaches to 200, i should only allow premium users.In order to ide

[LARTC] Question on traffic control

2007-09-16 Thread yang,fang
Hi, everyone. I'm newbie to TC. Now, I want to control my gateway traffic with tc. I have a typical linux gateway server (CentOS 5) Requirement is as follows: 1. Total bandwidth is 10M (either up or down) 2. Each PC in the subnet (192.168.0.0/24) should be limited to 1M bandwidth, so that no singl

Re: [LARTC] using tc to drop packets based on the diffserc or tos value

2007-09-16 Thread Michal Soltys
Raghuvendra Kumar wrote: Hi all, > [...] [EMAIL PROTECTED] src]#tc filter add dev eth0 protocol ip u32 match ip dsfield 8 police drop its showing error "Illegal "match". Can any one of you guide me , what is the correct way of doing it. Its imporatnt, Please post reply ASAP. For instanc

Re: [LARTC] htb : server trafficcontrol

2007-09-16 Thread Jens Thiele
On 16 Sep 2007, [EMAIL PROTECTED] wrote: > Suppose we have simple router with upstream interface connected > to internet (eth0) and downstream interface connected to lan (eth1). > Lan uses private addressing so there is NAT rule used for traffic > leaving eth0. > > You can redirect lan->internet t

[LARTC] using tc to drop packets based on the diffserc or tos value

2007-09-16 Thread Raghuvendra Kumar
Hi all, I am wondering if anyone can help me to resolve a problem. I am trying to use tc command in linux to drop udp packets of specific diffserv value. I am able set diffserv value successfully in the udp packet using command:- [EMAIL PROTECTED] src]#iptables --table mangle --append OUTPUT \

[LARTC] Yet another shaping question

2007-09-16 Thread Peter Rabbitson
Hello list, I need to realize a complicated custom shaping setup, and given very little experience with shaping I just can't wrap my head around it. I am not seeking a complete script, I just need an idea/a set of pointers on how to best subdivide traffic accordingly to my needs, and which shaper

Re: [LARTC] htb : server trafficcontrol

2007-09-16 Thread Marek Kierdelewicz
>But AFAIK at the moment practically only if there is no NAT involved >(or if you do not want to classify de-nated traffic). >Any news regarding this problem? Suppose we have simple router with upstream interface connected to internet (eth0) and downstream interface connected to lan (eth1). Lan u