IPFW queue, weight , queue kb/s - what does it mean ?

Hello guys,

Im starting with ipfw and reading documentation with some examples. Im really confused because i don't understand a few meanings.
Code:
ipfw add queue 1 ip from 192.168.0.2 to any out xmit xl0
ipfw add queue 2 ip from any to 192.168.0.2 in recv xl0
ipfw queue 1 config pipe 1 weight 3 queue 2Kbytes
ipfw queue 2 config pipe 2 weight 3 queue 6Kbytes

ipfw add queue 3 ip from 192.168.0.3 to any out xmit xl0
ipfw add queue 4 ip from any to 192.168.0.3 in recv xl0
ipfw queue 3 config pipe 1 weight 1 queue 2Kbytes
ipfw queue 4 config pipe 2 weight 1 queue 6Kbytes
For example those rules above. What is the different between queue vs queue 2Kbytes and weight. If i good think weight set some priority who will get more bandwidth. But what about these queue. Ahh one option more. I saw something like skipto 100. Either i couldn't find it :( :( Is it really necessary to make easy control bandwidth for jail with public ip ? Does someone link to easy rules ipfw examples ?

I would be really graceful for explain to me.[/cmd]
 
Code:
ipfw add queue 1 ip from 192.168.0.2 to any out xmit xl0
This line directs traffic matching your critera through the queue

Code:
ipfw queue 1 config pipe 1 weight 3 queue 2Kbytes
This line configures the queue with a 2K buffer, attached to pipe 1. The weight is when more than one queue is attached to the pipe, how to distribute between the queues.

In your example, pipe 1 will pass 3 packets from 192.168.0.2 (weight 3) for each 1 packet from 192.168.0.3 (weight 1). There's a 3:1 ratio.

You'll need to configure pipe 1 with a bandwidth, i.e.
Code:
ipfw pipe 1 config bw 100Mbit/s
 
Back
Top