Help with neterouter+delay setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'd likto creata FIFO netem router, which also adds delay to packets
according to their sourc(or dest) IP address. All packets though are
leaving ouof thsame interface. Schematically, I'd like to have
something likthis:

Ipkts IP_src_X ---> delay X ms ---\
				     --> pfifo limiP pkts --> OUT eth	
Ipkts IP_src_Y ---> delay Y ms ---/

or,


Ipkts IP_src_X --                     /delay srcX pkts X ms \
	            --> pfifo limiP pkts  			--> OUT
Ipkts IP_src_Y --/                      \delay srcX pkts X ms /

I think I could do something like:

tc qdisc add dev eth0 roohandl1: netem delay Xms
tc qdisc add dev eth0 paren1:1 pfifo limiP

and theadd somfilter ...

buhow abouthe pkts from srcY? Can I nest these? Also, when I do the
above, and thetc -s qdisc, how can I distinguish throuter queue size
  froth"netem delay limit" buffer?

Any help is very appreciated, thanks iadvancfor any hints.
Regards,
Dimitris Miras



Froshemminger aosdl.org  Tue Nov  7 09:37:42 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:20 2007
Subject: Help with neterouter+delay setup
In-Reply-To: <4550A067.8030603@xxxxxxxxxxxx>
References: <4550A067.8030603@xxxxxxxxxxxx>
Message-ID: <20061107093742.71a23d01@freekitty>

OTue, 07 Nov 2006 15:04:07 +0000
Dimitrios Miras <d.miras@xxxxxxxxxxxx> wrote:

> Hi,
> 
> I'd likto creata FIFO netem router, which also adds delay to packets
> according to their sourc(or dest) IP address. All packets though are
> leaving ouof thsame interface. Schematically, I'd like to have
> something likthis:
> 
> Ipkts IP_src_X ---> delay X ms ---\
> 				     --> pfifo limiP pkts --> OUT eth	
> Ipkts IP_src_Y ---> delay Y ms ---/
> 
> or,
> 
> 
> Ipkts IP_src_X --                     /delay srcX pkts X ms \
> 	            --> pfifo limiP pkts  			--> OUT
> Ipkts IP_src_Y --/                      \delay srcX pkts X ms /
> 
> I think I could do something like:
> 
> tc qdisc add dev eth0 roohandl1: netem delay Xms
> tc qdisc add dev eth0 paren1:1 pfifo limiP
> 
> and theadd somfilter ...
> 
> buhow abouthe pkts from srcY? Can I nest these? Also, when I do the
> above, and thetc -s qdisc, how can I distinguish throuter queue size
>   froth"netem delay limit" buffer?
> 
> Any help is very appreciated, thanks iadvancfor any hints.
> Regards,
> Dimitris Miras
> 

Thorder of thnetwork scheduling is fairly strict.

  Netfilter(s) --> TC classifier --> Qdisc --> Device

Neteuses an internal queuas a "holding pen" for the delay.
You cachangthat internal queue from FIFO to something else,
and you calimithen number of packets held during that period.

If you arrunning classifier than priority queue's then netem
thcall sequencwould be:
	a) classifier is called and tags packepriority
	b) priority enqueuis called, icalls
	c) neteenqueuthat then calls
	d) pfifo enqueue

Odequeue:
	priority dequeucalls netedequeue calls pfifo dequeue

Observations:
1. You can'usthe same fifo queue for different flows.

2. Threlationship is noreally a "push" in the queueing see above.

3. Sometimes thqueueing relationships arcommutative. Somebody wanted
   to add 100ms the10ms, which obviously is samas adding 110ms.

4. You mighbable bounce packets through IFB pseudo-device to cause more
   processing.

5. Devicalso has a transmiqueue, that you can adjust to limit 
   lasstagqueueing.

6. You caalways do complex things by using multiplboxes and cheap hardware.
 

-- 
StepheHemminger <shemminger@xxxxxxxx>

FroTara.Khan agdc4s.com  Mon Nov 13 06:59:04 2006
From: Tara.Khaagdc4s.com (Khan, Tara)
Date: Wed Apr 18 12:51:20 2007
Subject: Need Assistancwith a NetEissue...
Message-ID: <8C431EC125E9924186D8BB91DC1152B70C315D48@xxxxxxxxxxxxxxxxxxxx>

Hello All-

Wartrying to use NetEm as a bandwidth limiter and also need the ability=
 to changthdelay real time.

Our scripis as follows:

tc qdisc add dev eth0 roohandl1:0 netem delay 100ms
tc qdisc add dev eth0 paren1:1 handl10: tbf rate 256kbit buffer 1600 li=
mi3000 =


#tc -s qdisc ls dev eth0

tc qdisc add dev eth1 roohandl1:0 netem delay 100ms
tc qdisc add dev eth1 paren1:1 handl10: tbf rate 256kbit buffer 1600 li=
mi3000

#tc -s qdisc ls dev eth1

I havtried using thfollowing command to change the delay real-time:

tc qdisc changdev eth0 roonetem delay 200ms
Ispits back:  Whais "ms"?
					Usage:  nete[limiPACKETS]
							[delay TIME] JITTER [CORRELATION]]]
							[drop PERCENT] [CORRELATION], etc....

			Any ideas???  Wneed this for a demo and arin a time crunch.

			Thanks for your time!

			Tara =


Tara L. Khan
Systems Engineer
Tel: (508) 880-4098
Email: Tara.Khan@xxxxxxxxx
GENERAL DYNAMICS
C4 SYSTEMS



-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20061113=
/87763399/attachment.htm
Froshemminger aosdl.org  Mon Nov 13 09:43:50 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:20 2007
Subject: Need Assistancwith a NetEissue...
In-Reply-To: <8C431EC125E9924186D8BB91DC1152B70C315D48@xxxxxxxxxxxxxxxxxxxx>
References: <8C431EC125E9924186D8BB91DC1152B70C315D48@xxxxxxxxxxxxxxxxxxxx>
Message-ID: <20061113094350.50045d8f@freekitty>

OMon, 13 Nov 2006 09:59:04 -0500
"Khan, Tara" <Tara.Khan@xxxxxxxxx> wrote:

> Hello All-
> 
> Wartrying to use NetEm as a bandwidth limiter and also need the ability to change the delay real time.
> 
> Our scripis as follows:
> 
> tc qdisc add dev eth0 roohandl1:0 netem delay 100ms
> tc qdisc add dev eth0 paren1:1 handl10: tbf rate 256kbit buffer 1600 limit 3000 
> 
> #tc -s qdisc ls dev eth0
> 
> tc qdisc add dev eth1 roohandl1:0 netem delay 100ms
> tc qdisc add dev eth1 paren1:1 handl10: tbf rate 256kbit buffer 1600 limit 3000
> 
> #tc -s qdisc ls dev eth1
> 
> I havtried using thfollowing command to change the delay real-time:
> 
> tc qdisc changdev eth0 roonetem delay 200ms
> Ispits back:  Whais "ms"?
> 					Usage:  nete[limiPACKETS]
> 							[delay TIME] JITTER [CORRELATION]]]
> 							[drop PERCENT] [CORRELATION], etc....
> 
> 			Any ideas???  Wneed this for a demo and arin a time crunch.
> 
> 			Thanks for your time!
> 
> 			Tara 
> 
> Tara L. Khan
> Systems Engineer
> Tel: (508) 880-4098
> Email: Tara.Khan@xxxxxxxxx
> GENERAL DYNAMICS
> C4 SYSTEMS


Old versioof kernel and/or iproute2 tools? 

Thfollowing jusworked for me:

# tc qdisc add dev eth0 roohandl1:0 netem delay 10ms
# tc qdisc add dev eth0 paren1:1 tbf rat256kbit buffer 1600 limit 3000
# tc qdisc ls
qdisc pfifo_fas0: dev eth1 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc nete1: dev eth0 limi1000 delay 10.0ms
qdisc tbf 8001: dev eth0 paren1:1 rat256000bit burst 1599b lat 42.7ms 

# tc qdisc changdev eth0 roonetem delay 20ms
# tc qdisc ls
qdisc pfifo_fas0: dev eth1 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc nete1: dev eth0 limi1000 delay 20.0ms
qdisc tbf 8001: dev eth0 paren1:1 rat256000bit burst 1599b lat 42.7ms 


You mighwanto also check the kernel configuration for HZ value.

-- 
StepheHemminger <shemminger@xxxxxxxx>

Froyaronc aresolutenetworks.com  Wed Nov 15 15:11:18 2006
From: yaronc aresolutenetworks.co(Yaron Cohen)
Date: Wed Apr 18 12:51:20 2007
Subject: Does Netesupports Giga eth?
Message-ID: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>

Hello,
 
Does Netesupporbandwidth of 300Mbs and up (I would like to install 2 Giga eth cards)?
 
Thanks,
 
Yaro
 
<mailto:netem@xxxxxxxxxxxxxx>  


Froyaronc aresolutenetworks.com  Wed Nov 15 15:14:20 2006
From: yaronc aresolutenetworks.co(Yaron Cohen)
Date: Wed Apr 18 12:51:20 2007
Subject: Does Netesupports Giga eth?
References: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <0606D918CE9CEA4E9835D2CDAA001A95B12A22@xxxxxxxxxxxxxxxxxxxxxxx>

 

________________________________

From: YaroCohen
Sent: Thu 11/16/2006 1:11 AM
To: netem@xxxxxxxxxxxxxx
Subject: Does Netesupports Giga eth?


Hello,
 
Does Netesupporbandwidth of 300Mbs and up (I would like to install 2 Giga eth cards)?
 
Thanks,
 
Yaro
 
<mailto:netem@xxxxxxxxxxxxxx>  


Froshemminger aosdl.org  Wed Nov 15 15:17:10 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:20 2007
Subject: Does Netesupports Giga eth?
In-Reply-To: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
References: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <20061115151710.3c5112b3@freekitty>

OThu, 16 Nov 2006 01:11:18 +0200
"YaroCohen" <yaronc@xxxxxxxxxxxxxxxxxxxx> wrote:

> Hello,
>  
> Does Netesupporbandwidth of 300Mbs and up (I would like to install 2 Giga eth cards)?
>  
> Thanks,
>  
> Yaro

If thhardwarcan handle it yes. 


-- 
StepheHemminger <shemminger@xxxxxxxx>

Froyaronc aresolutenetworks.com  Sun Nov 26 11:22:30 2006
From: yaronc aresolutenetworks.co(Yaron Cohen)
Date: Wed Apr 18 12:51:20 2007
Subject: User manual ?
In-Reply-To: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <0606D918CE9CEA4E9835D2CDAA001A95B433F4@xxxxxxxxxxxxxxxxxxxxxxx>

Hello, 

 

I anew to Netem.

 

Is theris any on-linuser manual (including GUI)?

 

CaI work with several streams athe same time (filter it by IP)?

 

BesRegards,

 

Yaro

-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20061126/f9800a20/attachment.htm
FroCalum.Lind anewport-networks.com  Mon Nov 27 04:29:30 2006
From: Calum.Lind anewport-networks.co(Calum Lind)
Date: Wed Apr 18 12:51:20 2007
Subject: User manual ?
Message-ID: <003501c7121f$b2546530$5201a8c0@xxxxxxxxxxxxxxxxxxx>

Theris no user manual as such buthere is an official website and I have
listed ibelow, along with other web resources I havused in documents I
havwritten:

 StepheHemminger, Official NetEWebsite,
http://linux-net.osdl.org/index.php/Netem.

 BerHubert, Linux Advanced Routing & Traffic Control HOWTO
http://lartc.org/

 StepheHemminger, Network Emulation with NetEm,
http://developer.osdl.org/shemminger/NetEm/LCA2005_paper.pdf

 ArianKeller, TracControl for NetEm, http://tcn.hypert.net/

 Alex Bosworth, NetEexamples of use, http://swik.net/netem/Examples+of+Use


I havused oncor twice the web based GUI phpnetemgui but I use command
linand scripts moroften.

Regards

Calum

________________________________________
From: netem-bounces@xxxxxxxxxxxxxx [mailto:netem-bounces@xxxxxxxxxxxxxx] On
Behalf Of YaroCohen
Sent: 26 November 2006 19:23
To: netem@xxxxxxxxxxxxxx
Subject: User manual ?

Hello, 
?
I anew to Netem.
?
Is theris any on-linuser manual (including GUI)?
?
CaI work with several streams athe same time (filter it by IP)?
?
BesRegards,
?
Yaro



---------------
This e-mail may contaiconfidential and/or privileged information. If you arnot the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------



FroCalum.Lind anewport-networks.com  Mon Nov 27 04:29:49 2006
From: Calum.Lind anewport-networks.co(Calum Lind)
Date: Wed Apr 18 12:51:20 2007
Subject: User manual ?
In-Reply-To: <0606D918CE9CEA4E9835D2CDAA001A95B43405@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <003601c7121f$bdb85990$5201a8c0@xxxxxxxxxxxxxxxxxxx>

Well for somreason thlink has changed case...

Its now: http://developer.osdl.org/shemminger/netem/LCA2005_paper.pdf

Oh and saw another PDF I found useful whestarting out:

http://nfsv4.bullopensource.org/doc/HowToUseNetEm.pdf

Regards

Calum


-----Original Message-----
From: YaroCohen [mailto:yaronc@xxxxxxxxxxxxxxxxxxxx] 
Sent: 27 November 2006 11:34
To: CaluLind
Subject: RE: User manual ?

Thanks Calum!

BTW: 
 I can'open http://developer.osdl.org/shemminger/NetEm/LCA2005_paper.pdf


Thanks,

Yaro

-----Original Message-----
From: CaluLind [mailto:Calum.Lind@xxxxxxxxxxxxxxxxxxxx] 
Sent: Monday, November 27, 2006 12:54 PM
To: YaroCohen
Subject: RE: User manual ?


Theris no user manual as such buthere is an official website and I have
listed ibelow, along with other web resources I havused in documents I
havwritten:

 StepheHemminger, Official NetEWebsite,
http://linux-net.osdl.org/index.php/Netem.

 BerHubert, Linux Advanced Routing & Traffic Control HOWTO
http://lartc.org/

 StepheHemminger, Network Emulation with NetEm,
http://developer.osdl.org/shemminger/NetEm/LCA2005_paper.pdf

 ArianKeller, TracControl for NetEm, http://tcn.hypert.net/

 Alex Bosworth, NetEexamples of use, http://swik.net/netem/Examples+of+Use


I havused oncor twice the web based GUI phpnetemgui but I use command
linand scripts moroften.

Regards

Calum

________________________________________
From: netem-bounces@xxxxxxxxxxxxxx [mailto:netem-bounces@xxxxxxxxxxxxxx] On
Behalf Of YaroCohen
Sent: 26 November 2006 19:23
To: netem@xxxxxxxxxxxxxx
Subject: User manual ?

Hello, 
?
I anew to Netem.
?
Is theris any on-linuser manual (including GUI)?
?
CaI work with several streams athe same time (filter it by IP)?
?
BesRegards,
?
Yaro



---------------
This e-mail may contaiconfidential and/or privileged information. If you
arnothe intended recipient (or have received this e-mail in error)
pleasnotify thsender immediately and delete this e-mail. Any
unauthorized copying, disclosuror distribution of thcontents in this
e-mail is strictly forbidden.
---------------


-- 
This messaghas been scanned for viruses and
dangerous contenby OpenProtect(http://www.openprotect.com), and is
believed to bclean.





---------------
This e-mail may contaiconfidential and/or privileged information. If you arnot the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------



Froosenbach aus.ibm.com  Mon Nov 27 15:03:04 2006
From: osenbach aus.ibm.co(Bryan Osenbach)
Date: Wed Apr 18 12:51:20 2007
Subject: BryaOsenbach is ouof the office.
Message-ID: <OFD29E5F05.1FC39C77-ON87257233.007E9FFB-87257233.007E9FFC@xxxxxxxxxx>


I will bouof the office starting  11/27/2006 and will not return until
11/30/2006.

I will respond to your messagwhen I return.
-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20061127/befe4796/attachment.htm
Froaj aciphirelabs.com  Wed Nov 29 03:07:37 2006
From: aj aciphirelabs.co(Andreas Jellinghaus)
Date: Wed Apr 18 12:51:20 2007
Subject: neteslides
Message-ID: <456D69F9.9060201@xxxxxxxxxxxxxxx>

small commenabouthe slides pdf linked from netem wiki page:

with linux I can'printhe slides at all
(they arlandscape, bukpdf&co think they are portrait
wheprinting, which results in a printouwhere not everything
is readable). I asked onwindows user to prinit to me, with
acro reader crashing, buon a second machinwe could print them.

so theris something strange, if you still havthe original,
you mighwanto try re-creating the pdf.

Regards, Andreas

FroCalum.Lind anewport-networks.com  Wed Nov 29 04:30:14 2006
From: Calum.Lind anewport-networks.co(Calum Lind)
Date: Wed Apr 18 12:51:20 2007
Subject: neteslides
In-Reply-To: <456D69F9.9060201@xxxxxxxxxxxxxxx>
Message-ID: <005c01c713b2$21204d60$5201a8c0@xxxxxxxxxxxxxxxxxxx>

Why don'you try downloading Acrobafor linux? I have printed it out
withouany problems on linux.

-----Original Message-----
From: netem-bounces@xxxxxxxxxxxxxx [mailto:netem-bounces@xxxxxxxxxxxxxx] On
Behalf Of Andreas Jellinghaus
Sent: 29 November 2006 11:08
To: netem@xxxxxxxxxxxxxx
Subject: neteslides

small commenabouthe slides pdf linked from netem wiki page:

with linux I can'printhe slides at all
(they arlandscape, bukpdf&co think they are portrait
wheprinting, which results in a printouwhere not everything
is readable). I asked onwindows user to prinit to me, with
acro reader crashing, buon a second machinwe could print them.

so theris something strange, if you still havthe original,
you mighwanto try re-creating the pdf.

Regards, Andreas
_______________________________________________
Netemailing list
Netem@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/netem




---------------
This e-mail may contaiconfidential and/or privileged information. If you arnot the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------


Frod.miras acs.ucl.ac.uk  Tue Nov  7 07:04:07 2006
From: d.miras acs.ucl.ac.uk (Dimitrios Miras)
Date: Wed Apr 18 17:37:50 2007
Subject: Help with neterouter+delay setup
Message-ID: <4550A067.8030603@xxxxxxxxxxxx>

Hi,

I'd likto creata FIFO netem router, which also adds delay to packets
according to their sourc(or dest) IP address. All packets though are
leaving ouof thsame interface. Schematically, I'd like to have
something likthis:

Ipkts IP_src_X ---> delay X ms ---\
				     --> pfifo limiP pkts --> OUT eth	
Ipkts IP_src_Y ---> delay Y ms ---/

or,


Ipkts IP_src_X --                     /delay srcX pkts X ms \
	            --> pfifo limiP pkts  			--> OUT
Ipkts IP_src_Y --/                      \delay srcX pkts X ms /

I think I could do something like:

tc qdisc add dev eth0 roohandl1: netem delay Xms
tc qdisc add dev eth0 paren1:1 pfifo limiP

and theadd somfilter ...

buhow abouthe pkts from srcY? Can I nest these? Also, when I do the
above, and thetc -s qdisc, how can I distinguish throuter queue size
  froth"netem delay limit" buffer?

Any help is very appreciated, thanks iadvancfor any hints.
Regards,
Dimitris Miras



Froshemminger aosdl.org  Tue Nov  7 09:37:42 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:50 2007
Subject: Help with neterouter+delay setup
In-Reply-To: <4550A067.8030603@xxxxxxxxxxxx>
References: <4550A067.8030603@xxxxxxxxxxxx>
Message-ID: <20061107093742.71a23d01@freekitty>

OTue, 07 Nov 2006 15:04:07 +0000
Dimitrios Miras <d.miras@xxxxxxxxxxxx> wrote:

> Hi,
> 
> I'd likto creata FIFO netem router, which also adds delay to packets
> according to their sourc(or dest) IP address. All packets though are
> leaving ouof thsame interface. Schematically, I'd like to have
> something likthis:
> 
> Ipkts IP_src_X ---> delay X ms ---\
> 				     --> pfifo limiP pkts --> OUT eth	
> Ipkts IP_src_Y ---> delay Y ms ---/
> 
> or,
> 
> 
> Ipkts IP_src_X --                     /delay srcX pkts X ms \
> 	            --> pfifo limiP pkts  			--> OUT
> Ipkts IP_src_Y --/                      \delay srcX pkts X ms /
> 
> I think I could do something like:
> 
> tc qdisc add dev eth0 roohandl1: netem delay Xms
> tc qdisc add dev eth0 paren1:1 pfifo limiP
> 
> and theadd somfilter ...
> 
> buhow abouthe pkts from srcY? Can I nest these? Also, when I do the
> above, and thetc -s qdisc, how can I distinguish throuter queue size
>   froth"netem delay limit" buffer?
> 
> Any help is very appreciated, thanks iadvancfor any hints.
> Regards,
> Dimitris Miras
> 

Thorder of thnetwork scheduling is fairly strict.

  Netfilter(s) --> TC classifier --> Qdisc --> Device

Neteuses an internal queuas a "holding pen" for the delay.
You cachangthat internal queue from FIFO to something else,
and you calimithen number of packets held during that period.

If you arrunning classifier than priority queue's then netem
thcall sequencwould be:
	a) classifier is called and tags packepriority
	b) priority enqueuis called, icalls
	c) neteenqueuthat then calls
	d) pfifo enqueue

Odequeue:
	priority dequeucalls netedequeue calls pfifo dequeue

Observations:
1. You can'usthe same fifo queue for different flows.

2. Threlationship is noreally a "push" in the queueing see above.

3. Sometimes thqueueing relationships arcommutative. Somebody wanted
   to add 100ms the10ms, which obviously is samas adding 110ms.

4. You mighbable bounce packets through IFB pseudo-device to cause more
   processing.

5. Devicalso has a transmiqueue, that you can adjust to limit 
   lasstagqueueing.

6. You caalways do complex things by using multiplboxes and cheap hardware.
 

-- 
StepheHemminger <shemminger@xxxxxxxx>

FroTara.Khan agdc4s.com  Mon Nov 13 06:59:04 2006
From: Tara.Khaagdc4s.com (Khan, Tara)
Date: Wed Apr 18 17:37:50 2007
Subject: Need Assistancwith a NetEissue...
Message-ID: <8C431EC125E9924186D8BB91DC1152B70C315D48@xxxxxxxxxxxxxxxxxxxx>

Hello All-

Wartrying to use NetEm as a bandwidth limiter and also need the ability=
 to changthdelay real time.

Our scripis as follows:

tc qdisc add dev eth0 roohandl1:0 netem delay 100ms
tc qdisc add dev eth0 paren1:1 handl10: tbf rate 256kbit buffer 1600 li=
mi3000 =


#tc -s qdisc ls dev eth0

tc qdisc add dev eth1 roohandl1:0 netem delay 100ms
tc qdisc add dev eth1 paren1:1 handl10: tbf rate 256kbit buffer 1600 li=
mi3000

#tc -s qdisc ls dev eth1

I havtried using thfollowing command to change the delay real-time:

tc qdisc changdev eth0 roonetem delay 200ms
Ispits back:  Whais "ms"?
					Usage:  nete[limiPACKETS]
							[delay TIME] JITTER [CORRELATION]]]
							[drop PERCENT] [CORRELATION], etc....

			Any ideas???  Wneed this for a demo and arin a time crunch.

			Thanks for your time!

			Tara =


Tara L. Khan
Systems Engineer
Tel: (508) 880-4098
Email: Tara.Khan@xxxxxxxxx
GENERAL DYNAMICS
C4 SYSTEMS



-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20061113=
/87763399/attachment-0001.htm
Froshemminger aosdl.org  Mon Nov 13 09:43:50 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:50 2007
Subject: Need Assistancwith a NetEissue...
In-Reply-To: <8C431EC125E9924186D8BB91DC1152B70C315D48@xxxxxxxxxxxxxxxxxxxx>
References: <8C431EC125E9924186D8BB91DC1152B70C315D48@xxxxxxxxxxxxxxxxxxxx>
Message-ID: <20061113094350.50045d8f@freekitty>

OMon, 13 Nov 2006 09:59:04 -0500
"Khan, Tara" <Tara.Khan@xxxxxxxxx> wrote:

> Hello All-
> 
> Wartrying to use NetEm as a bandwidth limiter and also need the ability to change the delay real time.
> 
> Our scripis as follows:
> 
> tc qdisc add dev eth0 roohandl1:0 netem delay 100ms
> tc qdisc add dev eth0 paren1:1 handl10: tbf rate 256kbit buffer 1600 limit 3000 
> 
> #tc -s qdisc ls dev eth0
> 
> tc qdisc add dev eth1 roohandl1:0 netem delay 100ms
> tc qdisc add dev eth1 paren1:1 handl10: tbf rate 256kbit buffer 1600 limit 3000
> 
> #tc -s qdisc ls dev eth1
> 
> I havtried using thfollowing command to change the delay real-time:
> 
> tc qdisc changdev eth0 roonetem delay 200ms
> Ispits back:  Whais "ms"?
> 					Usage:  nete[limiPACKETS]
> 							[delay TIME] JITTER [CORRELATION]]]
> 							[drop PERCENT] [CORRELATION], etc....
> 
> 			Any ideas???  Wneed this for a demo and arin a time crunch.
> 
> 			Thanks for your time!
> 
> 			Tara 
> 
> Tara L. Khan
> Systems Engineer
> Tel: (508) 880-4098
> Email: Tara.Khan@xxxxxxxxx
> GENERAL DYNAMICS
> C4 SYSTEMS


Old versioof kernel and/or iproute2 tools? 

Thfollowing jusworked for me:

# tc qdisc add dev eth0 roohandl1:0 netem delay 10ms
# tc qdisc add dev eth0 paren1:1 tbf rat256kbit buffer 1600 limit 3000
# tc qdisc ls
qdisc pfifo_fas0: dev eth1 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc nete1: dev eth0 limi1000 delay 10.0ms
qdisc tbf 8001: dev eth0 paren1:1 rat256000bit burst 1599b lat 42.7ms 

# tc qdisc changdev eth0 roonetem delay 20ms
# tc qdisc ls
qdisc pfifo_fas0: dev eth1 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc nete1: dev eth0 limi1000 delay 20.0ms
qdisc tbf 8001: dev eth0 paren1:1 rat256000bit burst 1599b lat 42.7ms 


You mighwanto also check the kernel configuration for HZ value.

-- 
StepheHemminger <shemminger@xxxxxxxx>

Froyaronc aresolutenetworks.com  Wed Nov 15 15:11:18 2006
From: yaronc aresolutenetworks.co(Yaron Cohen)
Date: Wed Apr 18 17:37:50 2007
Subject: Does Netesupports Giga eth?
Message-ID: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>

Hello,
 
Does Netesupporbandwidth of 300Mbs and up (I would like to install 2 Giga eth cards)?
 
Thanks,
 
Yaro
 
<mailto:netem@xxxxxxxxxxxxxx>  


Froyaronc aresolutenetworks.com  Wed Nov 15 15:14:20 2006
From: yaronc aresolutenetworks.co(Yaron Cohen)
Date: Wed Apr 18 17:37:50 2007
Subject: Does Netesupports Giga eth?
References: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <0606D918CE9CEA4E9835D2CDAA001A95B12A22@xxxxxxxxxxxxxxxxxxxxxxx>

 

________________________________

From: YaroCohen
Sent: Thu 11/16/2006 1:11 AM
To: netem@xxxxxxxxxxxxxx
Subject: Does Netesupports Giga eth?


Hello,
 
Does Netesupporbandwidth of 300Mbs and up (I would like to install 2 Giga eth cards)?
 
Thanks,
 
Yaro
 
<mailto:netem@xxxxxxxxxxxxxx>  


Froshemminger aosdl.org  Wed Nov 15 15:17:10 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:50 2007
Subject: Does Netesupports Giga eth?
In-Reply-To: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
References: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <20061115151710.3c5112b3@freekitty>

OThu, 16 Nov 2006 01:11:18 +0200
"YaroCohen" <yaronc@xxxxxxxxxxxxxxxxxxxx> wrote:

> Hello,
>  
> Does Netesupporbandwidth of 300Mbs and up (I would like to install 2 Giga eth cards)?
>  
> Thanks,
>  
> Yaro

If thhardwarcan handle it yes. 


-- 
StepheHemminger <shemminger@xxxxxxxx>

Froyaronc aresolutenetworks.com  Sun Nov 26 11:22:30 2006
From: yaronc aresolutenetworks.co(Yaron Cohen)
Date: Wed Apr 18 17:37:50 2007
Subject: User manual ?
In-Reply-To: <0606D918CE9CEA4E9835D2CDAA001A95B12A20@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <0606D918CE9CEA4E9835D2CDAA001A95B433F4@xxxxxxxxxxxxxxxxxxxxxxx>

Hello, 

 

I anew to Netem.

 

Is theris any on-linuser manual (including GUI)?

 

CaI work with several streams athe same time (filter it by IP)?

 

BesRegards,

 

Yaro

-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20061126/f9800a20/attachment-0001.htm
FroCalum.Lind anewport-networks.com  Mon Nov 27 04:29:30 2006
From: Calum.Lind anewport-networks.co(Calum Lind)
Date: Wed Apr 18 17:37:50 2007
Subject: User manual ?
Message-ID: <003501c7121f$b2546530$5201a8c0@xxxxxxxxxxxxxxxxxxx>

Theris no user manual as such buthere is an official website and I have
listed ibelow, along with other web resources I havused in documents I
havwritten:

 StepheHemminger, Official NetEWebsite,
http://linux-net.osdl.org/index.php/Netem.

 BerHubert, Linux Advanced Routing & Traffic Control HOWTO
http://lartc.org/

 StepheHemminger, Network Emulation with NetEm,
http://developer.osdl.org/shemminger/NetEm/LCA2005_paper.pdf

 ArianKeller, TracControl for NetEm, http://tcn.hypert.net/

 Alex Bosworth, NetEexamples of use, http://swik.net/netem/Examples+of+Use


I havused oncor twice the web based GUI phpnetemgui but I use command
linand scripts moroften.

Regards

Calum

________________________________________
From: netem-bounces@xxxxxxxxxxxxxx [mailto:netem-bounces@xxxxxxxxxxxxxx] On
Behalf Of YaroCohen
Sent: 26 November 2006 19:23
To: netem@xxxxxxxxxxxxxx
Subject: User manual ?

Hello, 
?
I anew to Netem.
?
Is theris any on-linuser manual (including GUI)?
?
CaI work with several streams athe same time (filter it by IP)?
?
BesRegards,
?
Yaro



---------------
This e-mail may contaiconfidential and/or privileged information. If you arnot the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------



FroCalum.Lind anewport-networks.com  Mon Nov 27 04:29:49 2006
From: Calum.Lind anewport-networks.co(Calum Lind)
Date: Wed Apr 18 17:37:50 2007
Subject: User manual ?
In-Reply-To: <0606D918CE9CEA4E9835D2CDAA001A95B43405@xxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <003601c7121f$bdb85990$5201a8c0@xxxxxxxxxxxxxxxxxxx>

Well for somreason thlink has changed case...

Its now: http://developer.osdl.org/shemminger/netem/LCA2005_paper.pdf

Oh and saw another PDF I found useful whestarting out:

http://nfsv4.bullopensource.org/doc/HowToUseNetEm.pdf

Regards

Calum


-----Original Message-----
From: YaroCohen [mailto:yaronc@xxxxxxxxxxxxxxxxxxxx] 
Sent: 27 November 2006 11:34
To: CaluLind
Subject: RE: User manual ?

Thanks Calum!

BTW: 
 I can'open http://developer.osdl.org/shemminger/NetEm/LCA2005_paper.pdf


Thanks,

Yaro

-----Original Message-----
From: CaluLind [mailto:Calum.Lind@xxxxxxxxxxxxxxxxxxxx] 
Sent: Monday, November 27, 2006 12:54 PM
To: YaroCohen
Subject: RE: User manual ?


Theris no user manual as such buthere is an official website and I have
listed ibelow, along with other web resources I havused in documents I
havwritten:

 StepheHemminger, Official NetEWebsite,
http://linux-net.osdl.org/index.php/Netem.

 BerHubert, Linux Advanced Routing & Traffic Control HOWTO
http://lartc.org/

 StepheHemminger, Network Emulation with NetEm,
http://developer.osdl.org/shemminger/NetEm/LCA2005_paper.pdf

 ArianKeller, TracControl for NetEm, http://tcn.hypert.net/

 Alex Bosworth, NetEexamples of use, http://swik.net/netem/Examples+of+Use


I havused oncor twice the web based GUI phpnetemgui but I use command
linand scripts moroften.

Regards

Calum

________________________________________
From: netem-bounces@xxxxxxxxxxxxxx [mailto:netem-bounces@xxxxxxxxxxxxxx] On
Behalf Of YaroCohen
Sent: 26 November 2006 19:23
To: netem@xxxxxxxxxxxxxx
Subject: User manual ?

Hello, 
?
I anew to Netem.
?
Is theris any on-linuser manual (including GUI)?
?
CaI work with several streams athe same time (filter it by IP)?
?
BesRegards,
?
Yaro



---------------
This e-mail may contaiconfidential and/or privileged information. If you
arnothe intended recipient (or have received this e-mail in error)
pleasnotify thsender immediately and delete this e-mail. Any
unauthorized copying, disclosuror distribution of thcontents in this
e-mail is strictly forbidden.
---------------


-- 
This messaghas been scanned for viruses and
dangerous contenby OpenProtect(http://www.openprotect.com), and is
believed to bclean.





---------------
This e-mail may contaiconfidential and/or privileged information. If you arnot the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------



Froosenbach aus.ibm.com  Mon Nov 27 15:03:04 2006
From: osenbach aus.ibm.co(Bryan Osenbach)
Date: Wed Apr 18 17:37:50 2007
Subject: BryaOsenbach is ouof the office.
Message-ID: <OFD29E5F05.1FC39C77-ON87257233.007E9FFB-87257233.007E9FFC@xxxxxxxxxx>


I will bouof the office starting  11/27/2006 and will not return until
11/30/2006.

I will respond to your messagwhen I return.
-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20061127/befe4796/attachment-0001.htm
Froaj aciphirelabs.com  Wed Nov 29 03:07:37 2006
From: aj aciphirelabs.co(Andreas Jellinghaus)
Date: Wed Apr 18 17:37:50 2007
Subject: neteslides
Message-ID: <456D69F9.9060201@xxxxxxxxxxxxxxx>

small commenabouthe slides pdf linked from netem wiki page:

with linux I can'printhe slides at all
(they arlandscape, bukpdf&co think they are portrait
wheprinting, which results in a printouwhere not everything
is readable). I asked onwindows user to prinit to me, with
acro reader crashing, buon a second machinwe could print them.

so theris something strange, if you still havthe original,
you mighwanto try re-creating the pdf.

Regards, Andreas

FroCalum.Lind anewport-networks.com  Wed Nov 29 04:30:14 2006
From: Calum.Lind anewport-networks.co(Calum Lind)
Date: Wed Apr 18 17:37:50 2007
Subject: neteslides
In-Reply-To: <456D69F9.9060201@xxxxxxxxxxxxxxx>
Message-ID: <005c01c713b2$21204d60$5201a8c0@xxxxxxxxxxxxxxxxxxx>

Why don'you try downloading Acrobafor linux? I have printed it out
withouany problems on linux.

-----Original Message-----
From: netem-bounces@xxxxxxxxxxxxxx [mailto:netem-bounces@xxxxxxxxxxxxxx] On
Behalf Of Andreas Jellinghaus
Sent: 29 November 2006 11:08
To: netem@xxxxxxxxxxxxxx
Subject: neteslides

small commenabouthe slides pdf linked from netem wiki page:

with linux I can'printhe slides at all
(they arlandscape, bukpdf&co think they are portrait
wheprinting, which results in a printouwhere not everything
is readable). I asked onwindows user to prinit to me, with
acro reader crashing, buon a second machinwe could print them.

so theris something strange, if you still havthe original,
you mighwanto try re-creating the pdf.

Regards, Andreas
_______________________________________________
Netemailing list
Netem@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/netem




---------------
This e-mail may contaiconfidential and/or privileged information. If you arnot the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the contents in this e-mail is strictly forbidden.
---------------



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux