|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Yury Trembach 2:5020/400 27 Apr 2004 18:30:42 To : Eugene B. Berdnikov Subject : Re: Два линка соеденить -------------------------------------------------------------------------------- Eugene B. Berdnikov <berd@desert.ihep.su> wrote: EBB> Hасколько я владею iproute+tcpdump, у меня route equalize отдыхает. :) EBB> В смысле таймера нет. Конкретно на 2.4.18 из разлива rh-7.3. Есть идеи? Есть. Я, кажется, жестоко ошибаюсь. ;( Во-первых, пользовался документацией к патчу, который в ядро не входит, во-вторых, по памяти не вполне верно привел ее смысл. Исправляюсь... из ip-cref. - equalize - --- allow packet by packet randomization on multipath routes. Without this modifier, the route will be frozen to one selected nexthop, so that load splitting will only occur on per-flow base. equalize only works if the kernel is patched. А вот ссылочка на патч: http://trash.net/~kaber/equalize/equalize_2.4.18.patch и цитата оттуда: However, once a packet arrives, and it matches a multipath route, a (quasi random) device out of the list of nexthops is taken for its destination. That's okay, but after that the kernel puts everything into a hash table, and the next time a packet with the same source/dest/tos arrives, it finds it is in the hash table, and routes it via the same device as last time. The adjustment I made is as follows: If the kernel sees that the route to be taken has got the 'equalize' flag set, it not only selects the random device, but also tags the packet with the RTCF_EQUALIZE flag . If another packet of the same kind arrives, it is looked up in the hash table. It then checks if our flag is set, and if so, it deletes the entry in the cache and has to recalculate the destination again. Hасколько я понимаю, это просто частичное отключение route-cache для некоторых направлений и переход к per-packet балансировке. Без этого патча equalize, судя по всему не делает ничего. -- С уважением Yury, посыпая голову чем попадется. --- ifmail v.2.15dev5.3 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/657797b67c9a.html, оценка из 5, голосов 10
|