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

Re: ip, tc and more

raptor wrote:
I have a couple of questions :
1. I saw that "ip" has a thing called "multipath route" i.e.

ip route ..... nexthop via x.x.x.x  weight X nexthop via y.y.y.y weight Y

- what is the algorithm used to choose the gateway in this case...

I use;
$IP route add x.x.x.x $DEV via y.y.y.y realm 1
      for every host I put in the table of routes. The gateways IP is y.y.y.y, and the mark for the filter is the realm; 1 in this case.
If I use it to put a all network;    route add  -net x.x.x.x netmask 255.255.z.z $DEV.
- does he have some sort of fallback i.e when one of the gateways stop
responding what he does, and what when he comes-back.
The packet doesn't go (either come) anywhere.
U must take off the table and put a default gateway.
2. How exactly the classifing of packets goes i.e.  does he goes through all
the filters or through the tree. To be more clean :") if I have this tree :

   1:1 class
   1:2 class
   1:3 class

and filters
   A,B,C with parent 1:0 and X with parent 1:1

the kernel will first check filter rules A,B,C and then only the packets
goes to class 1:1 will be checked by filter X for further classifying.
Is THAT true or it checks all filters in "linear" fashon.

I think that is true. The packets go to the leaf classes, so if the packet goes to 1:2 class it doesn't go to anyother.
3. If I use u8, u16 instead u32 does this have some impact on memory usage or
I don't know. I only use u32.
Will someone of the QoS gurus finally write some simple description of
u32 classifier and/or to tc :") ?!?
U must take more references.
I've began something but there is many
"white spots" yet to be tested and understanded.
be patient. Don't believe in miracles.
 ni. Nor bestela???