QQRead:http://www.qqread.com/net-case/p111175081.html
This example shows that all packets that contain MPLS experimental value 4 are matched by the traffic class exp4:
Router(config)# class-map exp4
Router(config-cmap)# match mpls experimental 4
Router(config-cmap)# exit
This example shows that the value in the MPLS experimental field of each packet that is matched by the class-map exp4 is set to 5:
Router(config)# policy-map set_experimental_5
Router(config-pmap)# class exp4
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 is attached to an POS output interface:
Router(config)# interface POS6/1
Router(config-if)# service-policy output set_experimental_5
Router(config-if)# exit
Ingress PE Router Configuration
In the following example, IP packets with IP precedence 1 entering an MPLS network are shaped to 2000000 bits per second and set to MPLS experimental field 5. When IP packets with IP precedence 0 enter the MPLS network, they are shaped to 3000000 bits per second and set to MPLS experimental field 3. When IP packets with any other IP precedence value enter the MPLS network, they are shaped to 5000000 bits per second.
Step 1 Define two traffic classes:
Router(config)# class-map gold
Router(config-cmap)# match mpls experimental 1
Router(config-cmap)# exit
Router(config)# class-map silver
Router(config-cmap)# match mpls experimental 0
Router(config-cmap)# exit
Step 2 Define a policy to take different actions
Router(config)# policy-map policy1
Router(config-pmap)# class gold
Router(config-pmap-c)# set mpls experimental 5
Router(config-pmap-c)# shape average 2000000
Router(config-pmap-c)# exit
Router(config-pmap)# class silver
Router(config-pmap-c)# set mpls experimental 3
Router(config-pmap-c)# shape average 3000000
Router(config-pmap-c)# exit
Router(config-pmap)# class class-default
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 output policy1
Step 4 Verify the QoS configuration:
Router# show policy-map interface POS6/2
POS6/2
service-policy outputolicy1
class-map:gold (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
match:mpls experimental 1
queue size 0, queue limit 500
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
set:
mpls experimental 5
shape:cir 2000000, Bc 8000, Be 8000
output bytes 0, shape rate 0 bps
class-map:silver (match-all)
9521 packets, 9425790 bytes
30 second offered rate 3681000 bps, drop rate 1505000 bps
match:mpls experimental 0
queue size 0, queue limit 128
packets output 2845, packet drops 6676
tail/random drops 6676, no buffer drops 0, other drops 0
set:
mpls experimental 3
shape:cir 3000000, Bc 12000, Be 12000
output bytes 2816550, shape rate 642000 bps
class-map:class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
match:any
0 packets, 0 bytes
30 second rate 0 bps
queue size 0, queue limit 128
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
shape:cir 5000000, Bc 20000, Be 20000
output bytes 0, shape rate 0 bps
Router#
更多内容请看QoS服务质量专题、MPLS路由协议专题、MPLS协议专题,或进入讨论组讨论。
This example shows that all packets that contain MPLS experimental value 4 are matched by the traffic class exp4:
Router(config)# class-map exp4
Router(config-cmap)# match mpls experimental 4
Router(config-cmap)# exit
This example shows that the value in the MPLS experimental field of each packet that is matched by the class-map exp4 is set to 5:
Router(config)# policy-map set_experimental_5
Router(config-pmap)# class exp4
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 is attached to an POS output interface:
Router(config)# interface POS6/1
Router(config-if)# service-policy output set_experimental_5
Router(config-if)# exit
Ingress PE Router Configuration
In the following example, IP packets with IP precedence 1 entering an MPLS network are shaped to 2000000 bits per second and set to MPLS experimental field 5. When IP packets with IP precedence 0 enter the MPLS network, they are shaped to 3000000 bits per second and set to MPLS experimental field 3. When IP packets with any other IP precedence value enter the MPLS network, they are shaped to 5000000 bits per second.
Step 1 Define two traffic classes:
Router(config)# class-map gold
Router(config-cmap)# match mpls experimental 1
Router(config-cmap)# exit
Router(config)# class-map silver
Router(config-cmap)# match mpls experimental 0
Router(config-cmap)# exit
Step 2 Define a policy to take different actions
Router(config)# policy-map policy1
Router(config-pmap)# class gold
Router(config-pmap-c)# set mpls experimental 5
Router(config-pmap-c)# shape average 2000000
Router(config-pmap-c)# exit
Router(config-pmap)# class silver
Router(config-pmap-c)# set mpls experimental 3
Router(config-pmap-c)# shape average 3000000
Router(config-pmap-c)# exit
Router(config-pmap)# class class-default
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 output policy1
Step 4 Verify the QoS configuration:
Router# show policy-map interface POS6/2
POS6/2
service-policy outputolicy1
class-map:gold (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
match:mpls experimental 1
queue size 0, queue limit 500
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
set:
mpls experimental 5
shape:cir 2000000, Bc 8000, Be 8000
output bytes 0, shape rate 0 bps
class-map:silver (match-all)
9521 packets, 9425790 bytes
30 second offered rate 3681000 bps, drop rate 1505000 bps
match:mpls experimental 0
queue size 0, queue limit 128
packets output 2845, packet drops 6676
tail/random drops 6676, no buffer drops 0, other drops 0
set:
mpls experimental 3
shape:cir 3000000, Bc 12000, Be 12000
output bytes 2816550, shape rate 642000 bps
class-map:class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
match:any
0 packets, 0 bytes
30 second rate 0 bps
queue size 0, queue limit 128
packets output 0, packet drops 0
tail/random drops 0, no buffer drops 0, other drops 0
shape:cir 5000000, Bc 20000, Be 20000
output bytes 0, shape rate 0 bps
Router#
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- QoS服务质量专题 (284篇文章)
- MPLS路由协议专题 (545篇文章)
- MPLS协议 (398篇文章)
- 行业方案:HP校园网数据中心存储解决方案 (13次浏览)
- 贵阳ADSL2+AnnexM全球眼承载解决方案 (11次浏览)
- 大唐高鸿校园网VoIP解决方案 (7次浏览)
- 瑞斯康达治安监控系统接入解决方案 (5次浏览)
- 新格林耐特运营级宽带驻地网解决方案 (5次浏览)
- 行业典型案例:医疗业存储备份系统建设解决方 (4次浏览)
- 综合布线测试 网络多种测试方法的分类介绍 (3次浏览)
- 公安系统VoIP语音解决方案 (2次浏览)
- Entrust IdentityGuard 身份认证企业解决方案 (1次浏览)
- 诺西联手Airvana推Femto住宅接入解决方案 (1次浏览)



