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

[openbsd] Иерархические очереди hfsc



Приветствую!

вот здесь: http://www.bgnett.no/~peter/pf/en/altqsmtp.html
есть интересный пример использования иерархической очереди cbq.

Я попытался использовать то же, но с hfsc:

altq on $ext_if hfsc bandwidth 400Mb queue { def_from, from_min9 } 
 queue def_from bandwidth 300Mb hfsc (default)
 queue from_Minina_9 bandwidth 100Mb hfsc { def_from_min9, from_Cust }
  queue def_from_Minina_9       bandwidth 89Mb hfsc ( linkshare 89Mb )
  queue from_Cust            bandwidth 10Mb hfsc { from_Cust_to_World }
   queue from_Cust_to_World  bandwidth 1Mb  hfsc

Ниже по pf.conf имеются два правила:
pass out quick on $ext_if to <uaix>     tagged t_Cust        queue from_Cust
pass out quick on $ext_if to any        tagged t_Cust        queue from_Cust_to_World

Счетчики совпадений есть по обоим:
pass out quick on vlan2 from any to <uaix> flags S/SA keep state (if-bound) queue from_Cust tagged t_Cust
  [ Evaluations: 1300902   Packets: 5446783   Bytes: 5741196054  States: 30    ]
  [ Inserted: uid 0 pid 24992 State Creations: 2229  ]
pass out quick on vlan2 all flags S/SA keep state (if-bound) queue from_Cust_to_World tagged t_Cust
  [ Evaluations: 1298673   Packets: 3957775   Bytes: 3201589916  States: 470   ]
  [ Inserted: uid 0 pid 24992 State Creations: 33188 ]

Но пакеты попадают только в очередь from_Cust_to_World:

queue   from_Cust on vlan2 bandwidth 10Mb {from_Cust_to_World}
  [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50 ]
queue    from_Cust_to_World on vlan2 bandwidth 1Mb 
  [ pkts:    2225147  bytes: 1997884667  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50 ]

Почему пакеты не попадают в первую очередь? Спасибо.

-- 
MINO-RIPE

--
To unsubscribe send an e-mail to openbsd+unsubscribe@uaoug.org.ua
For retrieval in messages archive http://www.uaoug.org.ua/archive