[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 1439] Re: How to process the packets?
n2689146@sparc1.cc.ncku.edu.tw wrote:
> I have seen the previous articals about the inbound processing!!
> Now, I have some problems about the processing of ALTQ.
> I wish to mark the packets when they arrival and do some work before forwarding them.
> Should I encode only the output queue?
> I don't really know that if the arrival packets and forwarding packets are all processed by the same output queuing scheme when they pass the same ethernet card.
Sorry, I should say more clearly.
For example, when I use ALTQ as follw,
+-------+ +----------------+ +---------+
+Server +----------+RED router(ALTQ)+-----------+Client +
+-------+1000Base +-------+--------+1000Base +---------+
(ti0) (ti0) (ti1) (ti0)
192.168.0.1 192.168.0.2 192.168.1.2 192.168.1.1
I know that I should write to /etc/rc.conf below to configure a RED router.
interface ti0 bandwidth 1000M red
interface ti1 bandwidth 1000M red
My question is that if there are two processes when packets enter the ti0 and leave the ti0.
In other words, supposing I wish to process incoming packets by RED and outgoing packets by WFQ when packets go through the ti0, is that possible?
Maybe I should write a new queuing code, QQQ, which combines RED and WFQ, then write "interface ti0 bandwidth 1000M QQQ" in /etc/rc.conf ?
Thank you very much for your reply.