天下网吧 >> 网吧方案 >> 方案实例 >> 正文

构建新一代-QOS设计与配置(3)


  四、园区网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 VoIP uses 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
  
  (未完...待续)

本文来源:天下网吧 作者:网吧方案

声明
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系Email:support@txwb.com,系统开号,技术支持,服务联系QQ:1175525021本站所有有注明来源为天下网吧或天下网吧论坛的原创作品,各位转载时请注明来源链接!
天下网吧·网吧天下