Legacy Frame Relay Traffic Shaping
int s0/0/0
band 1536
frame-relay traffic-shaping
frame-relay interface-dlci 513
class MC_513
frame-relay interface-dlci 504
class MC_504
exit
exit
map-class frame-relay MC_513
frame-relay cir 128000
frame-relay bc 6400
frame-relay be 51200
frame-relay mincir 96000
frame-relay adaptive-shaping becn
map-class frame-relay MC_504
frame-relay cir 512000
frame-relay bc 25600
frame-relay be 0
frame-relay mincir 384000
frame-relay adaptive-shaping becn
exit
Class-Based Generic Traffic Shaping for Frame Relay
class-map CM_DLCI_513
match fr-dlci 513
class-map CM_DLCI_504
match fr-dlci 504
exit
policy-map PM_FRTS
class CM_DLCI_513
shape average 128000 6400 0
shape adaptive 96000
class CM_DLCI_504
shape average 512000 25600 51200
shape adaptive 384000
exit
exit
int s0/0/0
bandwidth 1536
no frame-relay traffic-shaping
service-policy output PM_FRTS
exit
MQC-based Frame Relay Traffic Shaping
int s0/0/0
band 1536
no frame-relay traffic-shaping
frame-relay interface dlci 513
class MC_513
frame-relay interface dlci 504
class MC_504
exit
exit
map-class frame-relay MC_513
service-policy out PM_513
map-class frame-relay MC_504
service-policy out PM_504
exit
policy-map PM_513
class class-default
shape average 128000 6400 0
shape adaptive 96000 ! automatically adapt to BECN
exit
exit
policy-map PM_504
class class-default
shape average 512000 25600 51200
shape adaptive 384000 ! automatically adapt to BECN
exit
exit
Notes.
Bc = CIR (in bits per seconds) * (Tc/1000)
(Bc + Be) / (Tc/1000) = AIR
Example.
Bc = CIR (in bits per seconds) * (Tc/1000)
Bc = 512000 * 50/1000
Bc = 512000 * 0.05
Bc = 25600
(Bc + Be) / (Tc/1000) = AIR
(25600 + Be) / 0.05 = 1536000
Be = (1536000 * 0.05) – 25600
Be = 51200
Note – 30 December 2011.
For MQC-based Frame Relay Traffic Shaping, inside the policy-map, command shape average needs to be applied first.
ROUTER(config)#policy-map PM_513
ROUTER(config-pmap)# class class-default
ROUTER(config-pmap-c)# shape adaptive 256000
Traffic Shaping must be enabled on this class before the command can be issued
ROUTER(config-pmap-c)# shape average 384000
ROUTER(config-pmap-c)#shape adaptive 256000