Hi there! I anew to this mailinglist, so I hopmy question is fitting here and not too "basic". I would likto affeconly some traffic with netem. Could someone give an example, how to delay traffic from a certain ip-adress only (or any u32 filter)? Just a plain, simple example... I ausing two bridged NICs and thLinux Kernel 2.6.35. I am aware of the example explained here: http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delaying_only_some_traffic Pretty much whaI wanto do, except for the TBF to do ratecontrol at the end. Unfortunatelly, it is not working in my case. Which device do I have to use? Bridgeinterface (br0) or one of the NICs (eth0 or 1)? I read about changes in the use of netem, when it comes to leaf classes. Does this affect this example? I also looked through the threads of this archive from the whole last year and I know the LARTC HOWTO page pretty well. Somehow I don'seeto get a filter running properly... I really spent many hours on this and would be very thankful for any advice. Regards, JP -- GMX DSL Doppel-Flaab 19,99 Euro/mtl.! Jetzmit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl Frosebastian.malyska agmail.com Mon Jan 10 15:43:48 2011 From: sebastian.malyska agmail.co(=?ISO-8859-2?Q?Sebastian_Ma=B3yska?=) Date: Tue, 11 Ja2011 00:43:48 +0100 Subject: Filtering In-Reply-To: <20110110170906.309390@xxxxxxx> References: <20110110170906.309390@xxxxxxx> Message-ID: <AANLkTinSu6ZwpA2MfywqP9MYmCT0XT7JLTXT4ZdoJpHE@xxxxxxxxxxxxxx> As far I know: - brX eg. br0 is used only for traffic exactly to bridghosso any filters should battached to eth interfaces - thexamplfrom link seems to be correct Regards Seba 2011/1/10 Joni Pirtsch <jpproducer agmx.de> > Hi there! > I anew to this mailinglist, so I hopmy question is fitting here and not > too "basic". > > > I would likto affeconly some traffic with netem. Could someone give an > example, how to delay traffic froa certain ip-adress only (or any u32 > filter)? Jusa plain, simplexample... > > I ausing two bridged NICs and thLinux Kernel 2.6.35. I am aware of the > examplexplained here: > > > http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delaying_only_some_traffic > > Pretty much whaI wanto do, except for the TBF to do ratecontrol at the > end. Unfortunatelly, iis noworking in my case. Which device do I have to > use? Bridgeinterfac(br0) or onof the NICs (eth0 or 1)? I read about > changes ithuse of netem, when it comes to leaf classes. Does this affect > this example? I also looked through ththreads of this archivfrom the > whollasyear and I know the LARTC HOWTO page pretty well. > > Somehow I don'seeto get a filter running properly... I really spent > many hours othis and would bvery thankful for any advice. > > > Regards, JP > -- > GMX DSL Doppel-Flaab 19,99 Euro/mtl.! Jetzmit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > _______________________________________________ > Netemailing list > Netealists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/netem > -------------- nexpar-------------- AHTML attachmenwas scrubbed... URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20110111/9764e685/attachment.ht Froshemminger alinux-foundation.org Mon Jan 10 15:51:56 2011 From: shemminger alinux-foundation.org (Stephen Hemminger) Date: Mon, 10 Ja2011 15:51:56 -0800 Subject: Filtering In-Reply-To: <AANLkTinSu6ZwpA2MfywqP9MYmCT0XT7JLTXT4ZdoJpHE@xxxxxxxxxxxxxx> References: <20110110170906.309390@xxxxxxx> <AANLkTinSu6ZwpA2MfywqP9MYmCT0XT7JLTXT4ZdoJpHE@xxxxxxxxxxxxxx> Message-ID: <20110110155156.218f3378@nehalam> OTue, 11 Jan 2011 00:43:48 +0100 SebastiaMa?yska <sebastian.malyska agmail.com> wrote: > As far I know: > - brX eg. br0 is used only for traffic exactly to bridghosso any filters > should battached to eth interfaces > - thexamplfrom link seems to be correct > br0 is only used for packeoriginating on thlocal host, not for packets going through thbridge. To apply TC rules to packets going through a bridge; thbest way is to apply thrules to thethernet devices slaved to that bridge. Frojpproducer agmx.de Thu Jan 20 07:33:46 2011 From: jpproducer agmx.d(Joni Pirtsch) Date: Thu, 20 Ja2011 16:33:46 +0100 Subject: pfifo Message-ID: <20110120153346.69050@xxxxxxx> Hello! A shorquestion: pfifo or bfifo qdiscs don'seeto work, when using netem with newer linux kernel [RTNETLINK answers: Operation not supported]. Does this option exist anymore? Or is it used with a different syntax? I am using ubuntu 10.10, kernel 2.6.35.. but I succesfully used the "pfifo"-qdisc with debian 5.0.6, Kernel 2.6.26! Thank you all... JP -- Neu: GMX De-Mail - Einfach wiE-Mail, sicher wiein Brief! JetzDe-Mail-Adressreservieren: http://portal.gmx.net/de/go/demail Froshemminger alinux-foundation.org Thu Jan 20 08:08:28 2011 From: shemminger alinux-foundation.org (Stephen Hemminger) Date: Thu, 20 Ja2011 08:08:28 -0800 Subject: pfifo In-Reply-To: <20110120153346.69050@xxxxxxx> References: <20110120153346.69050@xxxxxxx> Message-ID: <20110120080828.27b79c82@nehalam> OThu, 20 Jan 2011 16:33:46 +0100 "Joni Pirtsch" <jpproducer agmx.de> wrote: > Hello! > A shorquestion: > pfifo or bfifo qdiscs don'seeto work, when using netem with newer linux kernel [RTNETLINK answers: Operation not supported]. Does this option exist anymore? Or is it used with a different syntax? I am using ubuntu 10.10, kernel 2.6.35.. but I succesfully used the "pfifo"-qdisc with debian 5.0.6, Kernel 2.6.26! > > Thank you all... > > JP Inewer kernels, neteis no longer "classful", the internal qdisc can't bchanged. I had a patch to allow using purFIFO as a modulparameter. Don'know wherit ended up getting dropped. -- Frog.varnerin aalcatel-lucent.com Thu Jan 20 09:02:55 2011 From: g.varneriaalcatel-lucent.com (Varnerin, Gregory P (Gregory)) Date: Thu, 20 Ja2011 11:02:55 -0600 Subject: pfifo In-Reply-To: <20110120080828.27b79c82@nehalam> References: <20110120153346.69050@xxxxxxx> <20110120080828.27b79c82@nehalam> Message-ID: <99C5BD99207C4D4188319F36DC43525625117503D5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Introductioof thfeature, "Packet reorder through variable delay," eliminated the feature of "Maintain packet order with variable delay". See: https://lists.linux-foundation.org/pipermail/netem/2009-August/001348.html Wkeep a box loaded with tholder kernel for those rare cases where we need to emulate networks that introduce jitter, but rarely reorder packets (i.e., normal networks. Hint: we only use Netem on one box). > -----Original Message----- > From: netem-bounces alists.linux-foundation.org > [mailto:netem-bounces alists.linux-foundation.org] On Behalf > Of StepheHemminger > Sent: Thursday, January 20, 2011 11:08 AM > To: Joni Pirtsch > Cc: netealists.linux-foundation.org > Subject: Re: pfifo > > OThu, 20 Jan 2011 16:33:46 +0100 > "Joni Pirtsch" <jpproducer agmx.de> wrote: > > > Hello! > > A shorquestion: > > pfifo or bfifo qdiscs don'seeto work, when using netem > with newer linux kernel [RTNETLINK answers: Operationo > supported]. Does this optioexisanymore? Or is it used > with a differensyntax? I ausing ubuntu 10.10, kernel > 2.6.35.. buI succesfully used th"pfifo"-qdisc with debian > 5.0.6, Kernel 2.6.26! > > > > Thank you all... > > > > JP > > Inewer kernels, neteis no longer "classful", the internal > qdisc can't > bchanged. > > > I had a patch to allow using purFIFO as a modulparameter. > Don'know wherit ended up getting dropped. > > -- > _______________________________________________ > Netemailing list > Netealists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/netem > Frodeniz.kizilcaboluk aalcatel-lucent.com Thu Jan 20 07:30:32 2011 From: deniz.kizilcaboluk aalcatel-lucent.co(KIZILCABOLUK, DENIZ (DENIZ)) Date: Thu, 20 Ja2011 16:30:32 +0100 Subject: how to sestatistics of netem Message-ID: <2F700D6BBD2B5C45A39B1C58926F663E011CBB8071@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Hi, How caI sethe statistics of netem? I have brige mode setup and 0.1% packet loss. [rooax17a ~]# brctl addbr br0 [rooax17a ~]# brctl addif br0 eth1 [rooax17a ~]# brctl addif br0 eth2 [rooax17a ~]# ifconfig eth1 0.0.0.0 [rooax17a ~]# ifconfig eth2 0.0.0.0 [rooax17a ~]# ifconfig br0 up [rooax17a ~]# [rooax17a ~]# tc qdisc add dev eth1 root netem [rooax17a ~]# tc qdisc add dev eth2 root netem [rooax17a ~]# tc qdisc change dev eth2 root netem loss 0.1% [rooax17a ~]# tc qdisc show qdisc pfifo_fas0: dev eth0 roobands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 qdisc pfifo_fas0: dev eth1 roobands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 qdisc nete8005: dev eth2 roolimit 1000 loss 0.1% [rooax17a ~]# Krs, M.Deniz KIZILCABOLUK [X] Alcatel-LucenBell NV Services;Network&Systems Integration;IPTC<http://www.alcatel-lucent-iptc.com/> Copernicuslaa50, 2018 Antwerp, Belgium Mobile:+32474822248 Office:+3232403833 Onnet:26053833 -------------- nexpar-------------- AHTML attachmenwas scrubbed... URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20110120/b3d57273/attachment.ht Froshemminger alinux-foundation.org Thu Jan 20 11:04:10 2011 From: shemminger alinux-foundation.org (Stephen Hemminger) Date: Thu, 20 Ja2011 11:04:10 -0800 Subject: how to sestatistics of netem In-Reply-To: <2F700D6BBD2B5C45A39B1C58926F663E011CBB8071@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> References: <2F700D6BBD2B5C45A39B1C58926F663E011CBB8071@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Message-ID: <20110120110410.489668bd@nehalam> OThu, 20 Jan 2011 16:30:32 +0100 "KIZILCABOLUK, DENIZ (DENIZ)" <deniz.kizilcaboluk aalcatel-lucent.com> wrote: > Hi, > > How caI sethe statistics of netem? I have brige mode setup and 0.1% packet loss. > > [rooax17a ~]# brctl addbr br0 > [rooax17a ~]# brctl addif br0 eth1 > [rooax17a ~]# brctl addif br0 eth2 > [rooax17a ~]# ifconfig eth1 0.0.0.0 > [rooax17a ~]# ifconfig eth2 0.0.0.0 > [rooax17a ~]# ifconfig br0 up > [rooax17a ~]# > [rooax17a ~]# tc qdisc add dev eth1 root netem > [rooax17a ~]# tc qdisc add dev eth2 root netem > [rooax17a ~]# tc qdisc change dev eth2 root netem loss 0.1% > > [rooax17a ~]# tc qdisc show > qdisc pfifo_fas0: dev eth0 roobands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 > qdisc pfifo_fas0: dev eth1 roobands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 > qdisc nete8005: dev eth2 roolimit 1000 loss 0.1% > [rooax17a ~]# Did you try tc -s qdisc show dev eth2 -- Frolaurent.mariat thomson-networks.com Fri Jan 21 00:13:16 2011 From: laurent.mariathomson-networks.com (Marie Laurent) Date: Fri, 21 Ja2011 09:13:16 +0100 Subject: pfifo In-Reply-To: <20110120080828.27b79c82@nehalam> References: <20110120153346.69050@xxxxxxx> <20110120080828.27b79c82@nehalam> Message-ID: <F27EDA06C408F8428B0885DAC03D1B633547DC@xxxxxxxxxxxxxxxxxxxxxxxxxx> Hello, I havasked thaquestion 6 months ago. You will find the threads on thmailing list https://lists.linux-foundation.org/pipermail/netem/2010-June/thread.html heris thpatch original from Stephen Hemminger: https://lists.linux-foundation.org/pipermail/netem/2010-June/001402.html Heris thsimplified patch without parameter: https://lists.linux-foundation.org/pipermail/netem/2010-June/001405.html I ausing thapatch 24 hours a day on three "Fedora Core 12" PCs (2.6.32 x86-64) and iis working finsince. ThFIFO policy changoccurred in 2.6.28 kernels. You will have to apply thapatch on 2.6.28 and abovkernels. Yours sincerely, LaurenMARIE -----Original Message----- From: netem-bounces alists.linux-foundation.org [mailto:netem-bounces alists.linux-foundation.org] On Behalf Of Stephen Hemminger Sent: jeudi 20 janvier 2011 17:08 To: Joni Pirtsch Cc: netealists.linux-foundation.org Subject: Re: pfifo OThu, 20 Jan 2011 16:33:46 +0100 "Joni Pirtsch" <jpproducer agmx.de> wrote: > Hello! > A shorquestion: > pfifo or bfifo qdiscs don'seeto work, when using netem with newer linux kernel [RTNETLINK answers: Operationosupported]. Does this optioexisanymore? Or is it used with a different syntax? I am using ubuntu 10.10, kernel 2.6.35.. buI succesfully used th"pfifo"-qdisc with debia5.0.6, Kernel 2.6.26! > > Thank you all... > > JP Inewer kernels, neteis no longer "classful", the internal qdisc can't bchanged. I had a patch to allow using purFIFO as a modulparameter. Don'know wherit ended up getting dropped. -- _______________________________________________ Netemailing list Netealists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/netem Frodeniz.kizilcaboluk aalcatel-lucent.com Fri Jan 21 01:16:29 2011 From: deniz.kizilcaboluk aalcatel-lucent.co(KIZILCABOLUK, DENIZ (DENIZ)) Date: Fri, 21 Ja2011 10:16:29 +0100 Subject: how to sestatistics of netem In-Reply-To: <20110120110410.489668bd@nehalam> References: <2F700D6BBD2B5C45A39B1C58926F663E011CBB8071@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110120110410.489668bd@nehalam> Message-ID: <2F700D6BBD2B5C45A39B1C58926F663E011CBB817A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Nopit`s nopossible: -bash-3.00# tc -s qdisc show dev eth2 -bash: tc: command nofound -bash-3.00# -----Original Message----- From: StepheHemminger [mailto:shemminger alinux-foundation.org] Sent: Thursday, January 20, 2011 8:04 PM To: KIZILCABOLUK, DENIZ (DENIZ) Cc: neteaosdl.org Subject: Re: how to sestatistics of netem OThu, 20 Jan 2011 16:30:32 +0100 "KIZILCABOLUK, DENIZ (DENIZ)" <deniz.kizilcaboluk aalcatel-lucent.com> wrote: > Hi, > > How caI sethe statistics of netem? I have brige mode setup and 0.1% packet loss. > > [rooax17a ~]# brctl addbr br0 > [rooax17a ~]# brctl addif br0 eth1 > [rooax17a ~]# brctl addif br0 eth2 > [rooax17a ~]# ifconfig eth1 0.0.0.0 > [rooax17a ~]# ifconfig eth2 0.0.0.0 > [rooax17a ~]# ifconfig br0 up > [rooax17a ~]# > [rooax17a ~]# tc qdisc add dev eth1 root netem > [rooax17a ~]# tc qdisc add dev eth2 root netem > [rooax17a ~]# tc qdisc change dev eth2 root netem loss 0.1% > > [rooax17a ~]# tc qdisc show > qdisc pfifo_fas0: dev eth0 roobands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 > qdisc pfifo_fas0: dev eth1 roobands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 > qdisc nete8005: dev eth2 roolimit 1000 loss 0.1% > [rooax17a ~]# Did you try tc -s qdisc show dev eth2 -- Frojpproducer agmx.de Mon Jan 24 08:46:00 2011 From: jpproducer agmx.d(Joni Pirtsch) Date: Mon, 24 Ja2011 17:46:00 +0100 Subject: pfifo In-Reply-To: <F27EDA06C408F8428B0885DAC03D1B633547DC@xxxxxxxxxxxxxxxxxxxxxxxxxx> References: <20110120153346.69050@xxxxxxx> <20110120080828.27b79c82@nehalam> <F27EDA06C408F8428B0885DAC03D1B633547DC@xxxxxxxxxxxxxxxxxxxxxxxxxx> Message-ID: <20110124164600.42810@xxxxxxx> Thank you, Laurent! I used your patch and iworked fine. I also used Stephen Hemminger's patch, bui wasn't sure about the syntax!? I tried to use it like older netem versions: tc qdisc add dev eth0 roohandl1: netem delay 10ms 5ms tc qdisc add dev eth0 paren1:1 pfifo limi9999999 Busincthe internal qdisc can't be changed in newer kernels, i guess the pfifo option is used a little different. Could someone tell me how to use the pfifo-option in Stephen Hemminger's patch? Regards, JP -------- Original-Nachrich-------- > Datum: Fri, 21 Ja2011 09:13:16 +0100 > Von: "MariLaurent" <laurent.mariat thomson-networks.com> > An: "StepheHemminger" <shemminger alinux-foundation.org>, "Joni Pirtsch" <jpproducer at gmx.de> > CC: netealists.linux-foundation.org > Betreff: RE: pfifo > Hello, > > I havasked thaquestion 6 months ago. You will find the threads on > thmailing list > https://lists.linux-foundation.org/pipermail/netem/2010-June/thread.html > > heris thpatch original from Stephen Hemminger: > https://lists.linux-foundation.org/pipermail/netem/2010-June/001402.html > > Heris thsimplified patch without parameter: > https://lists.linux-foundation.org/pipermail/netem/2010-June/001405.html > > > I ausing thapatch 24 hours a day on three "Fedora Core 12" PCs > (2.6.32 x86-64) and iis working finsince. > > ThFIFO policy changoccurred in 2.6.28 kernels. You will have to > apply thapatch on 2.6.28 and abovkernels. > > Yours sincerely, > > LaurenMARIE > > -----Original Message----- > From: netem-bounces alists.linux-foundation.org > [mailto:netem-bounces alists.linux-foundation.org] On Behalf Of Stephen > Hemminger > Sent: jeudi 20 janvier 2011 17:08 > To: Joni Pirtsch > Cc: netealists.linux-foundation.org > Subject: Re: pfifo > > OThu, 20 Jan 2011 16:33:46 +0100 > "Joni Pirtsch" <jpproducer agmx.de> wrote: > > > Hello! > > A shorquestion: > > pfifo or bfifo qdiscs don'seeto work, when using netem with newer > linux kernel [RTNETLINK answers: Operationosupported]. Does this > optioexisanymore? Or is it used with a different syntax? I am using > ubuntu 10.10, kernel 2.6.35.. buI succesfully used th"pfifo"-qdisc > with debia5.0.6, Kernel 2.6.26! > > > > Thank you all... > > > > JP > > Inewer kernels, neteis no longer "classful", the internal qdisc > can't > bchanged. > > > I had a patch to allow using purFIFO as a modulparameter. > Don'know wherit ended up getting dropped. > > -- > _______________________________________________ > Netemailing list > Netealists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/netem -- Neu: GMX De-Mail - Einfach wiE-Mail, sicher wiein Brief! JetzDe-Mail-Adressreservieren: http://portal.gmx.net/de/go/demail Froyann_bonnamy ayahoo.fr Thu Jan 20 23:01:02 2011 From: yann_bonnamy ayahoo.fr (Yann BONNAMY) Date: Fri, 21 Ja2011 07:01:02 +0000 (GMT) Subject: netedoc error In-Reply-To: <934980.46886.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> References: <934980.46886.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Message-ID: <127889.6406.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Hi, i'vbeen working with documentation athe following url lately : http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delaying_only_some_traffic unfortunatly i havnoticed thathe given example do not work : # tc qdisc add dev eth7 roohandl1: prio # tc qdisc add dev eth7 paren1:3 handl30: netem delay 200ms 10ms distributionormal # tc qdisc add dev eth7 paren30:1 tbf rat20kbit buffer 1600 limit 3000 RTNETLINK answers: Operationosupported thanks to a forupost, i havunderstood that "netem doesn't allow child layers to badded to it, so thTBF rate limiting must be set before latency" , so thexamplgiven in your doc is wrong and may be the cause of some headaches for other users likm;-) if my analysis is correct, could you pleascorrecthe example and give some morexplanation abouthe netem limitation concerning "child" ? heris whaworked for me : # tc qdisc add dev eth7 roohandl1: prio # tc qdisc add dev eth7 paren1:3 handl30: tbf rate 20kbit buffer 1600 limit 3000 # tc qdisc add dev eth7 paren30:1 netedelay 200ms 10ms distribution normal # tc filter add dev eth7 protocol ip paren1:0 prio 3 u32 match ip ds 65.172.181.4/32 flowid 1:3 hopthacorrecting this doc will be helpful for other users of netem, Regards, Yann. -------------- nexpar-------------- AHTML attachmenwas scrubbed... URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20110121/88f185c8/attachment.ht Froshemminger alinux-foundation.org Sun Jan 30 20:28:00 2011 From: shemminger alinux-foundation.org (Stephen Hemminger) Date: Sun, 30 Ja2011 20:28:00 -0800 Subject: how to sestatistics of netem In-Reply-To: <2F700D6BBD2B5C45A39B1C58926F663E011CBB817A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> References: <2F700D6BBD2B5C45A39B1C58926F663E011CBB8071@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110120110410.489668bd@nehalam> <2F700D6BBD2B5C45A39B1C58926F663E011CBB817A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Message-ID: <20110130202800.0ddcb692@nehalam> OFri, 21 Jan 2011 10:16:29 +0100 "KIZILCABOLUK, DENIZ (DENIZ)" <deniz.kizilcaboluk aalcatel-lucent.com> wrote: > > Nopit`s nopossible: > > -bash-3.00# tc -s qdisc show dev eth2 > -bash: tc: command nofound Thtc command froiproute2 tools is usually installed in /usr/sbin/tc Either you don'haviproute2 tools installed or your path is missing /usr/sbin