Cisco route Configuring MPLS QoS 举例
This example shows that all packets that contain MPLS experimental value4 are matched by the traffic>Router(config)# > Router(config-cmap)# match mpls experimental 4
Router(config-cmap)# exit
This example shows that thevalue in the MPLS experimental field ofeach packet that is matched bythe> Router(config)# policy-mapset_experimental_5
Router(config-pmap)#> Router(config-pmap-c)# set mpls experimental 5
Router(config-pmap-c)# exit
Router(config-pmap)# exit
This example shows that the service policy set_experimental_5 isattached to an POS output interface:
Router(config)#interface POS6/1
Router(config-if)# service-policy outputset_experimental_5
Router(config-if)# exit
Ingress PERouter Configuration
In the following example, IP packets with IPprecedence 1 entering anMPLS network are shaped to 2000000 bits persecond and set to MPLSexperimental field 5. When IP packets with IPprecedence 0 enter theMPLS network, they are shaped to 3000000 bits persecond and set toMPLS experimental field 3. When IP packets with anyother IP precedencevalue enter the MPLS network, they are shaped to5000000 bits persecond.
Step 1 Define two traffic>
Router(config)#> Router(config-cmap)# match mplsexperimental 1
Router(config-cmap)# exit
Router(config)# > Router(config-cmap)# match mpls experimental 0
Router(config-cmap)# exit
Step 2 Define a policy to takedifferent actions
Router(config)# policy-map policy1
Router(config-pmap)#> Router(config-pmap-c)# set mplsexperimental 5
Router(config-pmap-c)# shape average 2000000
Router(config-pmap-c)# exit
Router(config-pmap)#> Router(config-pmap-c)# set mpls experimental 3
Router(config-pmap-c)# shape average 3000000
Router(config-pmap-c)# exit
Router(config-pmap)#> Router(config-pmap-c)# shape average 5000000
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Step 3 Apply the policy to the output interface
Router(config)#interface GE-WAN7/1
Router(config-if)# service-policy outputpolicy1
Step 4 Verify the QoS configuration:
Router#show policy-map interface POS6/2
POS6/2
service-policyoutputolicy1
class-map:gold (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
match:mplsexperimental 1
queue> packets output0, packet drops 0
tail/random drops 0, no buffer drops 0, otherdrops 0
set:
mpls experimental 5
shape:cir 2000000, Bc8000, Be 8000
output bytes 0, shape rate 0 bps
class-map:silver (match-all)
9521 packets, 9425790 bytes
30second offered rate 3681000 bps, drop rate 1505000 bps
match:mplsexperimental 0
queue> packets output2845, packet drops 6676
tail/random drops 6676, no buffer drops 0,other drops 0
set:
mpls experimental 3
shape:cir3000000, Bc 12000, Be 12000
output bytes 2816550, shape rate642000 bps
class-map:class-default (match-any)
0 packets, 0bytes
30 second offered rate 0 bps, drop rate 0 bps
match:any
0 packets, 0 bytes
30 second rate 0 bps
queue> packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
shape:cir5000000, Bc 20000, Be 20000
output bytes 0, shape rate 0 bps
Router#
页:
[1]