  LilYoda Feline with squirel personality disorder Premium join:2004-09-02 Mountains
2 edits | reply to LilYoda [Config] QoS+VoIP on a Cisco - queuing
And here's the beauty, the queuing engine Took me a while to figure it out
class-map match-any VoIP-Class-Outbound match ip precedence 7 class-map match-any Hi-Class-Outbound match ip precedence 6 match ip precedence 5 class-map match-any Med-Class-Outbound match ip precedence 4 match ip precedence 3 class-map match-any Lo-Class-Outbound match ip precedence 2 match ip precedence 1 Queueing for data only. Parameters unsure for the random-detect, although they work fine for me... The current setting make the low class really hammered when there is traffic in the high & medium classes make the exponential-weighting-constant the same as the others if you want them to be more equal.
But in my experience, you have to be really aggressive to slow down eMule and Bittorent traffic.
policy-map Data-Only-Queueing class Hi-Class-Outbound bandwidth percent 50 random-detect prec-based random-detect exponential-weighting-constant 8 random-detect precedence 6 20 60 20 random-detect precedence 5 6 15 6 class Med-Class-Outbound bandwidth percent 25 random-detect prec-based random-detect exponential-weighting-constant 8 random-detect precedence 4 15 30 15 random-detect precedence 3 1 15 3 class Lo-Class-Outbound bandwidth percent 25 random-detect prec-based random-detect exponential-weighting-constant 3 random-detect precedence 2 15 30 15 random-detect precedence 1 1 15 3 Class for all traffic. Uses LLQ with 72Kbps assigned to the Voice class, and 171Kbps assigned to data, using the queuing defined above
policy-map Packet-Queueing class VoIP-Class-Outbound priority 72 class class-default shape average 171000 bandwidth 171 service-policy Data-Only-Queueing Apply policy to your outbound interface (replace ethernet0 by your outside interface) max-reserved-bandwidth 95 leaves 14Kbps (in my case) for anything that wasn't foreseen (routing updates, uncolored traffic, etc...)
interface Ethernet0 bandwidth 256 max-reserved-bandwidth 95 service-policy output Packet-Queueing tx-ring-limit 2 tx-queue-limit 2 EDIT: made a simpler version using precedence instead of DSCP |
|
 hlygrail
join:2002-09-08
| God Bless You!!
I was getting ready to post a question looking for a way to assign priority queueing to my 1720, having tried and failed (now I see why!).
Thank you for doing -- and DOCUMENTING -- the legwork for all to benefit. |
|
 paarlberg
join:2000-07-28 Lilburn, GA
| Here is what I used on my 2621 to add QoS for H.323 and 3Com NBX pbx and phones. The "match ip dscp 46" was for the 3Com NBX portion.
********************************************** ip cef class-map match-any VOICE match protocol rtp match ip dscp 46 exit policy-map QOS-RTP class VOICE priority percent 50 exit **********************************************
Then you must apply to each interface that you want it to use.. ********************************************** interface service-policy output QOS-RTP **********************************************
You can also set priority by max bandwidth instead of percent (128k in the example below). Would recommend percent on ADSL and bandwidth for ethernet or high-speed serial. If you use both create a new policy-map for that.. QOS-RTP-DSL and QOS-RTP-ETH, or something like that..
********************************************** priority bandwidth 128 ********************************************** |
|