Looking for some validation / assistance should the following be incorrect.
The goal is to implement egress traffic shaping on the 6840 platform, while maintaining a priority queue for voice (and ideally video) data. This hardware should support a 2P6Q4T structure, and shaping is "supported" on the datasheet.
below config shows what I have used to try and achieve that....however, if i do an iperf test, using UDP traffic at a rate greater than the shape rate (say 125Mbit), voice and video quality becomes very bad on the receiving end. The priority traffic seems to be getting dropped when the interface is oversubscribed. The other end of the call remains good quality.
The iperf client is on another port, sending the traffic to the iperf server behind the shaped port. Thus, the traffic should be subject to the shaping policy. As well, there is a phone behind the port, having a telepresence enabled call with another phone upstream.
The port the policy is applied to is a trunk port to a gigabit layer 2 switch, DSCP trust is enabled on access ports and trunk port of that switch. 6840 trusts DSCP by default.
Class-maps:
class-map type lan-queuing match-all VOICE-2P6Q4T-PQ1
match dscp ef
class-map type lan-queuing match-all VIDEO-2P6Q4T-PQ2
match dscp cs4 af41 af42 af43 cs5
class-map type lan-queuing match-all TRANS_DATA-2P6Q4T-QUEUE
match dscp af21 af22 af23
class-map type lan-queuing match-all SCAVENGER-2P6Q4T-QUEUE
match dscp cs1
class-map type lan-queuing match-all BULK_DATA-2P6Q4T-QUEUE
match dscp af11 af12 af13
class-map type lan-queuing match-all CONTROL-2P6Q4T-QUEUE
match dscp cs2 cs3 cs6 cs7
class-map type lan-queuing match-all MM_STREAM-2P6Q4T-QUEUE
match dscp af31 af32 af33
Policy-maps
-
policy-map type lan-queuing QUEUING-2P6Q4T
-
class type lan-queuing VOICE-2P6Q4T-PQ1
-
priority level 1
-
class type lan-queuing VIDEO-2P6Q4T-PQ2
-
priority level 2
-
class type lan-queuing CONTROL-2P6Q4T-QUEUE
-
bandwidth remaining percent 10
-
class type lan-queuing MM_STREAM-2P6Q4T-QUEUE
-
bandwidth remaining percent 20
-
random-detect dscp-based
-
random-detect dscp 26 percent 80 100
-
random-detect dscp 28 percent 70 100
-
random-detect dscp 30 percent 60 100
-
class type lan-queuing TRANS_DATA-2P6Q4T-QUEUE
-
bandwidth remaining percent 20
-
random-detect dscp-based
-
random-detect dscp 18 percent 80 100
-
random-detect dscp 20 percent 70 100
-
random-detect dscp 22 percent 60 100
-
class type lan-queuing BULK_DATA-2P6Q4T-QUEUE
-
bandwidth remaining percent 14
-
random-detect dscp-based
-
random-detect dscp 10 percent 80 100
-
random-detect dscp 12 percent 70 100
-
random-detect dscp 14 percent 60 100
-
class type lan-queuing SCAVENGER-2P6Q4T-QUEUE
-
bandwidth remaining percent 1
-
class class-default
-
random-detect dscp-based
-
random-detect dscp 0 percent 80 100
-
policy-map type lan-queuing SHAPING-2P6Q4T
-
class class-default
-
shape average 100000000
-
service-policy QUEUING-2P6Q4T
-
-
interface TenGigabitEthernet1/2
-
switchport
-
switchport trunk native vlan 12
-
switchport mode trunk
-
switchport trunk allowed vlan 1,12,16
-
service-policy type lan-queuing output SHAPING-2P6Q4T