It's been a while since i've studied Qos but getting back on the horse.
Lets say CIR = 64,000 , Tc= 125 ms => Bc = 8000
"Shape average 64000 8000 0" which means 8000 bits are allowed to be sent every 125ms
Next we add a Be = 8000
"Shape average 64000 8000 8000" which means 8000 bits are allowed every 125ms and when we send less than 8000 bits per interval, Be can accumulate tokens to allow us in the future to send 8000 bits + Be accumulated bits per Tc.
Now if we use the peak command, Bc = Be , Tc = 125ms
PIR = CIR(1+Be/Bc) => PIR = 2CIR
"Shape Peak 32000 4000 4000" this means we can send Be + Bc every Tc i.e. 4000 + 4000 = 8000 bits every Tc.
A little long winded, but my question is what is the difference between
"Shape Peak 32000 4000 4000" and "Shape Average 64000".As far as i can see there is no difference as with the peak command you guarantee Bc+Be every Tc and no marking occurs to differentiate between Bc and Be traffic.
I've looked at the following link:
Understanding the “shape peak” command - CCIE Blog
But using "shape average 128000 12800 0" " instead of the shape peak 64000 6400 6400" would yeild exactly the same result.
:edit: I'm thinking that maybe the behavior is different between these commands if congestion is detected on the egress tx-ring, under congestion maybe peak will only guaranteee Bc and not Be.