Re: Ethloop

Linux Advanced Routing and Traffic Control

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

 



On Sunday 07 September 2003 05:25, Yves Bergeron wrote:
> Hi,
>
> This is my scenario
>
> I have a 100mbit for 400 routes and the rest of Internet is at 2mbit
>
> #
> #                1:1
> #              /     \
> #            1:2      1:12
> #           /   \
> #       1:10   1:11
>
>
>         tc qdisc del dev lo root handle 1: htb default 10
>         tc qdisc add dev lo root handle 1: htb default 10
>
>         tc class add dev lo parent 1: classid 1:1 htb rate 100mbit quantum
> 1500
>
>         tc class add dev lo parent 1:1 classid 1:2 htb rate 1950kbit
>
>         tc class add dev lo parent 1:2 classid 1:10 htb rate 1500kbit ceil
> 1900kbit tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbit ceil
> 1000kbit
>
>         tc class add dev lo parent 1:1 classid 1:12 htb rate 98mbit quantum
> 1500
>
>         tc qdisc add dev lo parent 1:10 handle 10: sfq perturb 10
>         tc qdisc add dev lo parent 1:11 handle 11: sfq perturb 10
>         tc qdisc add dev lo parent 1:12 handle 12: sfq perturb 10
>
>
>
> Is my class Ok ?
>
>
> I want to make simulation with Ethloop, How can I known which flow
> correspond to which classid ?
I use ethloop also and 0x10010 is class 1:10, 0x10011 is class 1:11.
(ethloop is a tool that can be used to test htb, see htb home page).

Example :

tc qdisc del dev lo root

ifconfig lo mtu 1500

tc qdisc add dev lo root handle 1: htb default 10
TC="tc class add dev lo parent"

$TC 1:  classid 1:1     htb rate 100kbps

$TC 1:1   classid 1:10  htb rate  40kbps ceil 100kbps
$TC 1:1   classid 1:11  htb rate  60kbps ceil 100kbps

tc qdisc add dev lo parent 1:10 pfifo
tc qdisc add dev lo parent 1:11 pfifo

0       i       0       lo
0       i       1       lo
0       P       0       0x10010
0       P       1       0x10011
0       S       0       1500
0       S       1       1500
# start all flows
0       R       0       120k
0       R       1       120k
12000   X       0       0

Stef

-- 

stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux