wierd output from pfctl -vvsq

Andy Greenwood greenwood.andy at gmail.com
Wed Apr 26 14:56:12 UTC 2006


I've got all my queuing working like I want it to, but when I run
pfctl -vvsq, I get this (sample) output

queue root_dc0 bandwidth 256Kb priority 0 cbq( wrr root ) {tcp_ack,
dns, ssh, http, std, p2p}
  [ pkts:       1018  bytes:     768010  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:    19.6 packets/s, 117.77Kb/s ]
queue  tcp_ack bandwidth 44Kb priority 7 cbq( borrow )
  [ pkts:         32  bytes:       1888  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     0.6 packets/s, 305.57 b/s ]
queue  dns bandwidth 44Kb priority 6 cbq( borrow )
  [ pkts:         11  bytes:        969  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     0.2 packets/s, 140.95 b/s ]
queue  ssh bandwidth 42Kb priority 4 {ssh_fast, ssh_bulk}
  [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     0.0 packets/s, 0 b/s ]
queue   ssh_fast bandwidth 21Kb priority 4 cbq( borrow )
  [ pkts:        147  bytes:      54638  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     2.8 packets/s, 8.64Kb/s ]
queue   ssh_bulk bandwidth 21Kb
  [ pkts:          7  bytes:       3518  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     0.1 packets/s, 538.69 b/s ]
queue  http bandwidth 42Kb priority 3 cbq( borrow )
  [ pkts:         45  bytes:      41622  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     0.9 packets/s, 6.69Kb/s ]
queue  std bandwidth 42Kb priority 2 cbq( borrow default )
  [ pkts:        327  bytes:     176278  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:     89  suspends:      0 ]
  [ measured:     6.2 packets/s, 26.89Kb/s ]
queue  p2p bandwidth 42Kb priority 0 qlimit 100 cbq( borrow )
  [ pkts:        449  bytes:     489097  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/100  borrows:    439  suspends:      0 ]
  [ measured:     8.7 packets/s, 74.57Kb/s ]

My actual question is reguarding the ssh queue. It is the parent for
ssh_fast and ssh_bulk, so I'm thinking that it should show the total
bandwidth usage for those two queues, but it shows 0 Kb/s. Like I said
everything appears to be working fine, but I just want to make sure
that it is.

the queueing section from my pf.conf is as follows

altq on $ext_if bandwidth 256Kb cbq queue { std, ssh, http, tcp_ack, dns, p2p }
queue tcp_ack bandwidth 44Kb priority 7 cbq(borrow)
queue dns bandwidth 44Kb priority 6 cbq(borrow)
queue ssh bandwidth 42Kb priority 4 cbq { ssh_bulk, ssh_fast }
queue ssh_fast bandwidth 21Kb priority 4 cbq(borrow)
queue http bandwidth 42Kb priority 3 cbq(borrow)
queue std bandwidth 42Kb priority 2 cbq(default borrow)
queue ssh_bulk bandwidth 21Kb priority 1 cbq
queue p2p bandwidth 42Kb priority 0 qlimit 100 cbq(borrow)


More information about the freebsd-questions mailing list