Quality of Service and Traffic Shaping on Cisco Routers

WAR

You have 1Gbps access with 100Mbps port on our WAN link… are you sure you have your router configured properly?

A year ago I was asked to investigate why VoIP calls were experiencing poor audio quality across an AT&T AVPN (Ethernet to MPLS) WAN link. After some research and examining the router configuration and logs I realized that the router had never been configured properly to support the 1Gbps access and 100Mbps port. While the router was physically connecting to the AT&T Cisco ONS via 1Gbps, AT&T was only allowing 100Mbps worth of traffic to pass through that connection. In this specific case traffic shaping wasn’t setup to properly limit the amount of traffic through the interface. I also found some occasions in the router logs where the BGP session was flapping due to BFD packets being lost between our router and AT&T’s router, again because QoS and traffic shaping hadn’t been setup properly on the Cisco router and the traffic was bursting well past the 100Mbps allocated from AT&T and that traffic was being dropped by AT&T.

The solution was to chain multiple policies together, first the traffic shaping policy and then the QoS policy. Here’s an example configuration I use on an AT&T AVPN 1Gbps Access with 100Mbps Port with 4 CoS queues assigned at 20% RT, 60/30/10. You need to shape the traffic to 100Mbps and then apply the QoS policies once you’ve shaped the traffic.

class-map match-any COS1
  description REAL-TIME VOICE
  match precedence 5
class-map match-any COS2
  description STREAMING VIDEO
  match precedence 4 6 7
class-map match-any COS3
  description CALL SIGNALLING
  match precedence 2 3
class-map match-any COS4
  description BEST EFFORT
  match precedence 0 1

policy-map QOSPOLICY
  description ATT Profile 113 20%RT/60/30/10
  class COS1
    priority 20000
  class COS2
    bandwidth remaining percent 60
  class COS3
    bandwidth remaining percent 30
  class class-default
    fair-queue

policy-map SHAPEPOLICY
  class class-default
    shape average 100000000
    service-policy QOSPOLICY

interface GigabitEthernet0/1
  bandwidth 100000
  ip address 10.x.x.x 255.255.255.252
  service-policy output SHAPEPOLICY

With this configuration in place the BFD keepalives stopped tripping false positives on the BGP session and VoIP packets were no longer getting starved for the bandwidth they needed.

Cheers!

{ 0 comments }

HP ProCurve 5400zl IP Routing – Management VLAN

HP5400zl

I very recently had an interesting consulting engagement. The customer was using a SonicWALL firewall to do the routing for all their internal VLANs and wasn't getting the throughput or performance that they were expecting from their HP 1Gbps network. I explained to the customer that they were routing internal traffic through the SonicWALL and if they didn't have a need to isolate the VLANs using a firewall they should move the routing to their core HP 5400zl switch, thereby providing wire speed routing and switching within the internal network. In this configuration traffic would only hit the SonicWALL firewall when […] Read More

{ 0 comments }

The Phoenix Project – a confirmation and enlightening

ThePhoenixProject

I just recently finished listening to, The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win by Gene Kim, Kevin Behr and George Spafford. It was both a confirmation of the day to day struggles for those of us working in Information Technology and an enlightening book. I'm currently working in the retail vertical so the fictional Parts Unlimited story had many similarities to my current day responsibilities and struggles. In my personal career I'm currently challenged with making the leap from being a "Brent" type resource to trying to figure out how to best manage a large infrastructure and a […] Read More

{ 2 comments }

Home Desktop Upgrade 2016

samsung850ssd

It's pretty funny how I actually find these posts pretty entertaining to myself... going back and looking at all the desktop upgrades I've gone through over the years. In any case I thought it was high past time to give Windows 10 a spin so I went out and purchased a 512GB Samsung 850 Pro SSD. I did this so I could clone my 256GB Samsung 840 Pro SSD, providing me a very simple backout plan if I didn't like Windows 10 or something went terribly wrong. I fired up Clonzilla Live via a USB flash drive and quickly cloned the […] Read More

{ 6 comments }

VLANs and IP Routing on an Cisco Switch and Router

cisco3560

One of the most popular blog posts I've written in the past five years is, VLANs and IP Routing on an Ethernet Routing Switch. It continues to be the top post on my blog so I decided to write a follow-up using Cisco equipment. This has been covered many times on the Internet before but I'm going to try and add my spin to it here. In this example I'm going to take a Cisco 1921 router and a Cisco 3560-CX switch and show two different examples of how you could design a simple topology. In the old days when we only had […] Read More

{ 0 comments }