[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 671] Running CBQ
Hello all,
Can you please have a look at this config and altqstat and see if this
config is optimal or not:
Config:
interface dc0 bandwidth 10M cbq
class cbq dc0 root NULL pbandwidth 100
class cbq dc0 ctl_class root pbandwidth 4 control
class cbq dc0 def_class root borrow pbandwidth 95 default
#
# Internal usage
#
class cbq dc0 internal def_class exactbandwidth 10Kbps
filter dc0 internal 213.156.65.74 0 0 0 6
altqstat:
Root Class for Interface dc0: root
priority: 0 depth: 2 offtime: 1 [us] wrr_allot: 1500 bytes
nsPerByte: 800 (10.00M Mbps), Measured: 10.61K [Mbps]
pkts: 677, bytes: 404328
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 37 [us], (maxidle: 37 minidle: -1200 [us])
Default Class for Interface dc0: def_class
priority: 1 depth: 1 offtime: 128 [us] wrr_allot: 4318 bytes
nsPerByte: 842 (9.50M Mbps), Measured: 0 [Mbps]
pkts: 35, bytes: 8295
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 21 [us], (maxidle: 39 minidle: -1263 [us])
Ctl Class for Interface dc0: ctl_class
priority: 1 depth: 0 offtime: 58515 [us] wrr_allot: 181 bytes
nsPerByte: 20000 (400.00K Mbps), Measured: 0.11K [Mbps]
pkts: 6, bytes: 504
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 3828 [us], (maxidle: 3828 minidle: -30000 [us])
Class 0 on Interface dc0: internal
priority: 1 depth: 0 offtime: 2434375 [us] wrr_allot: 4 bytes
nsPerByte: 800000 (10.00K Mbps), Measured: 10.50K [Mbps]
pkts: 636, bytes: 395529
overs: 58, overactions: 58
borrows: 0, delays: 58
drops: 56890, drop_bytes: 56890
QCount: 30, (qmax: 30)
AvgIdle: -23031 [us], (maxidle: 159375 minidle: -1200000 [us])
Root Class for Interface dc0: root
priority: 0 depth: 2 offtime: 1 [us] wrr_allot: 1500 bytes
nsPerByte: 800 (10.00M Mbps), Measured: 21.62K [Mbps]
pkts: 695, bytes: 417850
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 37 [us], (maxidle: 37 minidle: -1200 [us])
Default Class for Interface dc0: def_class
priority: 1 depth: 1 offtime: 128 [us] wrr_allot: 4318 bytes
nsPerByte: 842 (9.50M Mbps), Measured: 0.18K [Mbps]
pkts: 36, bytes: 8405
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 39 [us], (maxidle: 39 minidle: -1263 [us])
Ctl Class for Interface dc0: ctl_class
priority: 1 depth: 0 offtime: 58515 [us] wrr_allot: 181 bytes
nsPerByte: 20000 (400.00K Mbps), Measured: 0 [Mbps]
pkts: 6, bytes: 504
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 3828 [us], (maxidle: 3828 minidle: -30000 [us])
Class 0 on Interface dc0: internal
priority: 1 depth: 0 offtime: 2434375 [us] wrr_allot: 4 bytes
nsPerByte: 800000 (10.00K Mbps), Measured: 21.45K [Mbps]
pkts: 653, bytes: 408941
overs: 60, overactions: 60
borrows: 0, delays: 60
drops: 61968, drop_bytes: 61968
QCount: 30, (qmax: 30)
AvgIdle: -19752 [us], (maxidle: 159375 minidle: -1200000 [us])
Root Class for Interface dc0: root
priority: 0 depth: 2 offtime: 1 [us] wrr_allot: 1500 bytes
nsPerByte: 800 (10.00M Mbps), Measured: 21.61K [Mbps]
pkts: 716, bytes: 431361
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 25 [us], (maxidle: 37 minidle: -1200 [us])
Default Class for Interface dc0: def_class
priority: 1 depth: 1 offtime: 128 [us] wrr_allot: 4318 bytes
nsPerByte: 842 (9.50M Mbps), Measured: 0.74K [Mbps]
pkts: 38, bytes: 8870
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 19 [us], (maxidle: 39 minidle: -1263 [us])
Ctl Class for Interface dc0: ctl_class
priority: 1 depth: 0 offtime: 58515 [us] wrr_allot: 181 bytes
nsPerByte: 20000 (400.00K Mbps), Measured: 0 [Mbps]
pkts: 6, bytes: 504
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 3828 [us], (maxidle: 3828 minidle: -30000 [us])
Class 0 on Interface dc0: internal
priority: 1 depth: 0 offtime: 2434375 [us] wrr_allot: 4 bytes
nsPerByte: 800000 (10.00K Mbps), Measured: 20.86K [Mbps]
pkts: 672, bytes: 421987
overs: 62, overactions: 62
borrows: 0, delays: 62
drops: 63907, drop_bytes: 63907
QCount: 17, (qmax: 30)
AvgIdle: -36316 [us], (maxidle: 159375 minidle: -1200000 [us])
Root Class for Interface dc0: root
priority: 0 depth: 2 offtime: 1 [us] wrr_allot: 1500 bytes
nsPerByte: 800 (10.00M Mbps), Measured: 9.41K [Mbps]
pkts: 725, bytes: 437245
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 29 [us], (maxidle: 37 minidle: -1200 [us])
Default Class for Interface dc0: def_class
priority: 1 depth: 1 offtime: 128 [us] wrr_allot: 4318 bytes
nsPerByte: 842 (9.50M Mbps), Measured: 0 [Mbps]
pkts: 38, bytes: 8870
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 24 [us], (maxidle: 39 minidle: -1263 [us])
Ctl Class for Interface dc0: ctl_class
priority: 1 depth: 0 offtime: 58515 [us] wrr_allot: 181 bytes
nsPerByte: 20000 (400.00K Mbps), Measured: 0 [Mbps]
pkts: 6, bytes: 504
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 3828 [us], (maxidle: 3828 minidle: -30000 [us])
Class 0 on Interface dc0: internal
priority: 1 depth: 0 offtime: 2434375 [us] wrr_allot: 4 bytes
nsPerByte: 800000 (10.00K Mbps), Measured: 9.41K [Mbps]
pkts: 681, bytes: 427871
overs: 63, overactions: 63
borrows: 0, delays: 63
drops: 63907, drop_bytes: 63907
QCount: 18, (qmax: 30)
AvgIdle: -3266 [us], (maxidle: 159375 minidle: -1200000 [us])
Root Class for Interface dc0: root
priority: 0 depth: 2 offtime: 1 [us] wrr_allot: 1500 bytes
nsPerByte: 800 (10.00M Mbps), Measured: 22.71K [Mbps]
pkts: 750, bytes: 451459
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 27 [us], (maxidle: 37 minidle: -1200 [us])
Default Class for Interface dc0: def_class
priority: 1 depth: 1 offtime: 128 [us] wrr_allot: 4318 bytes
nsPerByte: 842 (9.50M Mbps), Measured: 0 [Mbps]
pkts: 38, bytes: 8870
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 21 [us], (maxidle: 39 minidle: -1263 [us])
Ctl Class for Interface dc0: ctl_class
priority: 1 depth: 0 offtime: 58515 [us] wrr_allot: 181 bytes
nsPerByte: 20000 (400.00K Mbps), Measured: 0 [Mbps]
pkts: 6, bytes: 504
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 3828 [us], (maxidle: 3828 minidle: -30000 [us])
Class 0 on Interface dc0: internal
priority: 1 depth: 0 offtime: 2434375 [us] wrr_allot: 4 bytes
nsPerByte: 800000 (10.00K Mbps), Measured: 22.71K [Mbps]
pkts: 706, bytes: 442085
overs: 65, overactions: 65
borrows: 0, delays: 65
drops: 63907, drop_bytes: 63907
QCount: 15, (qmax: 30)
AvgIdle: -21350 [us], (maxidle: 159375 minidle: -1200000 [us])
Root Class for Interface dc0: root
priority: 0 depth: 2 offtime: 1 [us] wrr_allot: 1500 bytes
nsPerByte: 800 (10.00M Mbps), Measured: 11.60K [Mbps]
pkts: 763, bytes: 458713
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 25 [us], (maxidle: 37 minidle: -1200 [us])
Default Class for Interface dc0: def_class
priority: 1 depth: 1 offtime: 128 [us] wrr_allot: 4318 bytes
nsPerByte: 842 (9.50M Mbps), Measured: 0 [Mbps]
pkts: 38, bytes: 8870
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 19 [us], (maxidle: 39 minidle: -1263 [us])
Ctl Class for Interface dc0: ctl_class
priority: 1 depth: 0 offtime: 58515 [us] wrr_allot: 181 bytes
nsPerByte: 20000 (400.00K Mbps), Measured: 0 [Mbps]
pkts: 6, bytes: 504
overs: 0, overactions: 0
borrows: 0, delays: 0
drops: 0, drop_bytes: 0
QCount: 0, (qmax: 30)
AvgIdle: 3828 [us], (maxidle: 3828 minidle: -30000 [us])
Class 0 on Interface dc0: internal
priority: 1 depth: 0 offtime: 2434375 [us] wrr_allot: 4 bytes
nsPerByte: 800000 (10.00K Mbps), Measured: 11.60K [Mbps]
pkts: 719, bytes: 449339
overs: 66, overactions: 66
borrows: 0, delays: 66
drops: 63907, drop_bytes: 63907
QCount: 13, (qmax: 30)
AvgIdle: -37079 [us], (maxidle: 159375 minidle: -1200000 [us])
Is it possible to tune class bandwidth more exactly?
tbrconfig works perfectly, but I need IP-based bandwidth limiting.
--
Best regards,
Andriy mailto:akorud@polynet.lviv.ua