扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
四、园区网QOS典型配置
1、语音流量的Qos配置
第一步 在整个交换机上启用Qos
3550G#config t
3550G(config)#mls qos
第二步 配置CoS-ToS map
3550G(config)#mls qos map cos-dscp 0 8 16 26 34 46 48 56
第三步 LLQ配置部分。启用PQ,并将CoS 5映射到pq 4
3550Gconfig)#interface range g 0/1 - 12
3550G(config-if-range)#priority-queue out
3550G(config-if-range)#wrr-queue cos-map 4 5
第四步 创建ACL并标记语音流量及语音控制流量
3550G(config)#ip access-list extended VOICE
3550G(config-ext-nacl)#remark Match the UDP ports that VoIPuses for Bearer
Traffic
3550G(config-ext-nacl)#permit udp any any range 16384 32767
3550G(config)#ip access-list extended VOICE-CONTROL
3550G(config-ext-nacl)#remark Match VoIP Control Traffic
3550G(config-ext-nacl)#remark SCCP
3550G(config-ext-nacl)#permit tcp any any range 2000 2002
3550G(config-ext-nacl)#remark H323 Fast Start
3550G(config-ext-nacl)#permit tcp any any eq 1720
3550G(config-ext-nacl)#remark H323 Slow Start
3550G(config-ext-nacl)#permit tcp any any range 11000 11999
3550G(config-ext-nacl)#remark H323 MGCP
3550G(config-ext-nacl)#permit udp any any eq 2427
第五步 创建类
3550G(config)#class-map match-all VOICE
3550G(config-cmap)#description VOIP Bearer Traffic
3550G(config-cmap)#match access-group name VOICE
3550G(config)#class-map match-all VOICE-CONTROL
3550G(config-cmap)#description VOIP Control Traffic
3550G(config-cmap)#match access-group name VOICE-CONTROL
第六步 创policy-map并配置dscp PHB标签
3550G(config)#policy-map ACCESS-C3550-LAN-EDGE-IN
3550G(config-pmap)#class VOICE-CONTROL
3550G(config-pmap-c)#set ip dscp 26
3550G(config-pmap)#class VOICE
3550G(config-pmap-c)#set ip dscp 46
第七步 将policy-map应用到接口上
3550G(config-if)#service-policy input ACCESS-C3550-LAN-EDGE-IN
2、呼叫控制(基于catos)
skinny:
set qos enable
set qos acl ip ACL_IP-PHONES DSCP 26 tcp any any range 2000 2002
set qos acl ip ACL_IP-PHONES trust-cos ip any any
set qos acl ip ACL_VOIP_CONTROL dscp 26 tcp any any range 2000 2002
set port qos 5/1-58 trust trust-cos
set port qos 5/1-48 vlan-based
set port qos 5/1-48 trust-ext untrusted
set port qos 4/2 port-based ///4/2接的CCM
commit qos acl all
set qos acl map ACL_IP-PHONES 110
set qos acl map ACL_VOIP_CONTROL 4/2
H323:
set qos acl ip acl-voip-control dscp 26 tcp any any eq 1720
set qos acl ip acl-voip-control dscp 26 tcp any any ramge 11000 11999
set port qos 4/2 port-based
set port qos 4/3 port-based ///H323 GK
commit qos acl acl-voip-control
set qos acl map acl-voip-control 4/2
set qos acl map acl-voip-control 4/3
MGCP:
set qos acl ip acl-voip-control dscp 26 tcp any any eq 2427
set port qos 4/2 port-based
set port qos 4/4 port-based ///MGCP GK
commit qos acl acl-voip-control
set qos acl map acl-voip-control 4/2
set qos acl map acl-voip-control 4/4
3、关键业务数据(基于IOS)
#conf t
(config)#qos map cos 3 to dscp 26
(config)#qos map cos 4 to dscp 34
(config)#qos map cos 5 to dscp 46
(config)#int fa 3/4
(config-if)#tx-queue 3
(config-if)#priority high
(config)#ip access-list extended GOLD-DATA
(config-ext-nacl)#remark Match IP Address of the application server
(config-ext-nacl)#permit ip any host 192.168.100.1
(config-ext-nacl)#permit ip host 192.168.100.1 any
(config)#class-map match-all GOLD-DATA
(config-cmap)#description Mission Critical Traffic
(config-cmap)#match access-group name GOLD-DATA
(config)#policy-map ACCESS-C4006-LAN-EDGE-IN
(config-pmap)#description Set DSCP PerHopBehavior Label for MissionCritical Traffic
(config-pmap)#class GOLD-DATA
(config-pmap-c)#set ip dscp 18
(config)#int fa 3/4
(config-if)#service-policy input ACCESS-C4006-LAN-EDGE-IN
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者