[LARTC] Ingress
Hi, I was not able to install ingress qdisc as below tc qdisc add dev eth0 handle : ingress also tried tc qdisc add dev eth0 ingress Both cases it says invalid argument. What could be the problem ? AndreasWith Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] Shaping incoming traffic
Hello , I would like to know if it is possible to do the following ? To give priority to incoming IP packets from a specific source (IP address).For example I have packets coming in through an interface eth1 going to higher layer application on the same machine. I want to give priority to packets coming from 1.2.3.4 and maybe drop packets from other address at high data rates. Can we do this using ingress or some other qdisc ? Best Regards, Andreas.With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
Re: [LARTC] problem with prio qdisc and TOS
hello all, As I had mentioned in the previous mail I was trying to prioritise outgoing packets on eth1 interface based on TOS value.I am testing this by sending packets from 2 IP sources (with 2 different TOS values) at very high data rate sending packets alternatively.On the outgoing interface I am using a sniffer to see if the lower priority source is getting starved. But the sniffer capture shows that packets from both sources arrive alternatively as they are sent.I tried using default qdisc is pfifo_fast and PRIO also. Please anyone tell me what could be the problem. Regards Andreas Chris Wilson <[EMAIL PROTECTED]> wrote: Hi Andreas,I hope I have this right, based on my limited understanding of Linux QoS. If I'm wrong then I hope someone will correct me =)> If I just attach a PRIO qdisc on eth1(outgoing) will I be able to> prioritise packets based on the TOS value.You don't even need to do that, the default qdisc is pfifo_fast which also prioritises by TOS flags.> The TOS value is set by a test application.It can also be overridded by a Netfilter rule, if you want to force or change priority for certain types of packets.> At very high data rates will the data stream with lower> priority TOS value be starved because it cannot send out of packets from> its band on eth1 interface?.Yes, if there is not enough capacity to send on eth1 then lower-priority packets will be starved, will queue up until the queue is full and then get dropped.> Does something be set in linux kernel so that kernel sets priority for> packets according to TOS value.I guess this priorty will be used by PRIO> qdisc(by default) to decide which band the packet belongs.Yes, it happens by default, with the pfifo_fast qdisc.Cheers, Chris.-- ___ __ _/ __// / ,__(_)_ | Chris Wilson -- UNIX Firewall Lead Developer |/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] problem with prio qdisc and TOS
Hello , I have presented my problem before also.I have linux box with 2 interfaces eth0(incoming) and eth1(outgoing). If I just attach a PRIO qdisc on eth1(outgoing) will I be able to prioritise packets based on the TOS value.The TOS value is set by a test application.At very high data rates will the data stream with lower priority TOS value be starved because it cannot send out of packets from its band on eth1 interface?. Does something be set in linux kernel so that kernel sets priority for packets according to TOS value.I guess this priorty will be used by PRIO qdisc(by default) to decide which band the packet belongs. Please clarify this by giving your inputs. Regards, Andreas.With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] Example PRIO with filters
Hello Can anyone send me an example to use PRIO qdisc with tc filters to classify the packets ? Regards, AndreasWith Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
RE: [LARTC] Help Needed with TC qdisc and filters
Hello I was thinking Prio qdisc has 3 classes by default.Hence it should be possible to enque the packets into one of these classes using tc filters as shown below.Can anyone clarify this Regards, Anil From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]OnBehalf Of Andreas WrightSent: 20 January 2003 14:30To: [EMAIL PROTECTED]Subject: [LARTC] Help Needed with TC qdisc and filtersHello ,I am trying to use tc to do the following ..on the interface(eth0) I want togive priority to to packets coming from a specific IP address 1.2.3.4 overpackets from IP address 1.2.3.5 .I would like to know if the following setup would work with PRIO qdisc.tc qdisc add dev eth0 root handle 10 : priotc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.4/32 flowid 10:1tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.4/32 flowid 10:1tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.5/32 flowid 10:2tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.5/32 flowid 10:2Can I test this setup by using flooding ping from 1.2.3.4 and 1.2.3.5 to themachine configured with tc ?I expected that pings from 1.2.3.5 will be dropped giving priority to1.2.3.4Looking forward to your input,Andreas.With Yahoo! Mail you can get a bigger mailbox -- choose a size that fitsyour needsWith Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] Help Needed with TC qdisc and filters
Hello , I am trying to use tc to do the following ..on the interface(eth0) I want to give priority to to packets coming from a specific IP address 1.2.3.4 over packets from IP address 1.2.3.5 . I would like to know if the following setup would work with PRIO qdisc. tc qdisc add dev eth0 root handle 10 : prio tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.5/32 flowid 10:2 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.5/32 flowid 10:2 Can I test this setup by using flooding ping from 1.2.3.4 and 1.2.3.5 to the machine configured with tc ? I expected that pings from 1.2.3.5 will be dropped giving priority to 1.2.3.4 Looking forward to your input, Andreas. With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] PRIO qdisc
Hello , I am trying to use tc to do the following ..on the interface(eth0) I want to give priority to to packets coming from a specific IP address 1.2.3.4 over packets from IP address 1.2.3.5 . I would like to know if the following setup would work with PRIO qdisc. tc qdisc add dev eth0 root handle 10 : prio tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.5/32 flowid 10:2 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.5/32 flowid 10:2 Can I test this setup by using flooding ping from 1.2.3.4 and 1.2.3.5 to the machine configured with tc ? I expected that pings from 1.2.3.5 will be dropped giving priority to 1.2.3.4 Looking forward to your input, Andreas. With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] PRIO qdisc
Hello , I am trying to use tc to do the following ..on the interface(eth0) I want to give priority to to packets coming from a specific IP address 1.2.3.4 over packets from IP address 1.2.3.5 . I would like to know if the following setup would work with PRIO qdisc. tc qdisc add dev eth0 root handle 10 : prio tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip src 1.2.3.5/32 flowid 10:2 tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \match ip dst 1.2.3.5/32 flowid 10:2 Can I test this setup by using flooding ping from 1.2.3.4 and 1.2.3.5 to the machine configured with tc ? I expected that pings from 1.2.3.5 will be dropped giving priority to 1.2.3.4 Looking forward to your input, Andreas. With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] Probelm with TC commands
Hello , I have installed Tc and have problems running basic tc commands for PRIO qdisc . I tried tc qdisc add dev eth0 handle 1 root prio Result : Invalid argument tc qdisc add dev eth0 root handle 1: prio Result : Invalid argument What could be the problem.? Regards Andre With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
Re: [LARTC] Tc & Suse Linux
Yes you are right the linux kernel version 2.4.5 I didnt understand your comment " I'm not sure if the QOS stuff is compiled into the standard suse kernel, if not you need to compile it by yourself " What I am trying to do following tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \ match ip src 1.2.3.4/32 flowid 10:1 tc filter add dev eth0 parent 10:1 protocol ip prio 2 u32 \ flowid 10:2 My aim is to give priority to packets coming from 1.2.3.4 during dequeueing in the router. Regards, Andreas. Robert Penz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1On Tuesday 03 December 2002 15:27, Andreas Wright wrote:> I am using Suse Linux version 2.4.5.there is no such suse versionthe current version is 8.1 I guess that you've have 7.x, as I belive 2.4.5 is the version of your kernelanyway tc and ip should be installed by default as suse use ip to setup the interfaces in Yast (in version minor to 8.0 where the changed to ifconfig)> Where can I get tc utility for this version and what version of iproute2> should I be using ?as I said should be installt be default, if not grap the iproute2 package thats on the install cds> I want to use tc filters for prioritzing packets from a specific IP> address.I'm not sure if the QOS stuff is compiled into the standard suse kernel, if not you need to compile it by yourself.- -- Regards,Robert- Robert Penzrobert.penz AT outertech.com-BEGIN PGP SIGNATURE-Version: GnuPG v1.0.6 (GNU/Linux)Comment: For info see http://www.gnupg.orgiD8DBQE97MdM8tTsQqJDUBMRAuvqAJ9vxqDEQSl4drNNaMkPIbyYf2YcIQCcCJckyzDJ73IreQjSRtJGbz9ZL8U==Yctp-END PGP SIGNATURE-___LARTC mailing list / [EMAIL PROTECTED]http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
[LARTC] Tc & Suse Linux
Hello , I am using Suse Linux version 2.4.5. Where can I get tc utility for this version and what version of iproute2 should I be using ? I want to use tc filters for prioritzing packets from a specific IP address. Regards , Andreas.With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs