Networking Forums

Networking Forums > Computer Networking > Linux Networking > tc, netem: Emulating multiple connections, problem with limit on the number of PRIO bands

Reply
Thread Tools Display Modes

tc, netem: Emulating multiple connections, problem with limit on the number of PRIO bands

 
 
Patrick Reinhardt
Guest
Posts: n/a

 
      08-28-2007, 12:13 PM
Hi,

to emulate a wireless network I have to assign a packet loss depending on
the target IP address. The idea was to use a PRIO qdisc with n bands for n
nodes and use filters to assign packets to the appropriate band depending
on the target address.

Unfortunately, the number of bands is limited to 16 (TC_PRIO_MAX in kernel
and iproute2). Because of the possible occurence of side-effects of
changing TC_PRIO_MAX to let's say 1000 I am looking for an alternative.
Distributing all packets to about 60 ifb-devices doesn't seem to be a
perfect idea either.

Any ideas would be greatly appreciated.

Thank you in advance.

Patrick
 
Reply With Quote
 
 
 
 
Markus Rehbach
Guest
Posts: n/a

 
      08-28-2007, 06:37 PM
Patrick Reinhardt wrote:

> Hi,
>
> to emulate a wireless network I have to assign a packet loss depending on
> the target IP address. The idea was to use a PRIO qdisc with n bands for n
> nodes and use filters to assign packets to the appropriate band depending
> on the target address.
>
> Unfortunately, the number of bands is limited to 16 (TC_PRIO_MAX in kernel
> and iproute2). Because of the possible occurence of side-effects of
> changing TC_PRIO_MAX to let's say 1000 I am looking for an alternative.
> Distributing all packets to about 60 ifb-devices doesn't seem to be a
> perfect idea either.


You could build a HTB hierachy and use NETEM as the leaf queuing discipline.

Markus
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables trick to limit number of connections on a router Eric Tao Linux Networking 5 08-19-2010 08:45 PM
Emulating multiple nics with one Mambazo Linux Networking 7 11-07-2007 04:16 PM
Netem with high limit value and memory leaks in 2.4 kernel. Sergey Prokoshev Linux Networking 0 04-29-2005 09:57 AM
how to limit number of connections Robert Ber³owski Linux Networking 2 11-24-2004 11:11 AM
Can iproute2 delete rule by prio number? alfasun Linux Networking 0 09-13-2003 11:41 PM



1 2 3 4 5 6 7 8 9 10 11