问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

华为ENSP-QOS服务质量实验配置

创作时间:
作者:
@小白创作中心

华为ENSP-QOS服务质量实验配置

引用
CSDN
1.
https://blog.csdn.net/m0_61979535/article/details/140205547

本文详细介绍了华为ENSP(Enterprise Network Simulation Platform)中的QoS(Quality of Service)服务质量实验配置。通过具体的实验拓扑、步骤和配置命令,展示了如何实现流分类、流量监管、拥塞避免、拥塞管理和流量整形等功能。对于网络工程技术人员和对QoS配置感兴趣的读者具有较高的参考价值。

一、实验拓扑

二、实验步骤

  1. 配置基本的IGP互联。
  2. 接入设备上配置流分类,将不同的业务流量区分开。
  3. 入方向配置流量监管。
  4. 出方向配置拥塞避免、拥塞管理和流量整形。

三、实验具体配置

1. SW1

vlan batch 10 20 30 100
interface Vlanif10
 ip address 192.168.10.254 255.255.255.0
interface Vlanif20
 ip address 192.168.20.254 255.255.255.0
interface Vlanif30
 ip address 192.168.30.254 255.255.255.0
interface Vlanif100
 ip address 10.10.100.1 255.255.255.252
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 100
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 10
interface GigabitEthernet0/0/4
 port link-type access
 port default vlan 20
interface GigabitEthernet0/0/5
 port link-type access
 port default vlan 30
ospf 10 router-id 10.10.10.10
import-route direct
area 0.0.0.1
 network 10.10.100.0 0.0.0.3

**配置流分类:**
acl number 3001
 rule 5 permit ip source 192.168.10.0 0.0.0.255
acl number 3002
 rule 5 permit ip source 192.168.20.0 0.0.0.255
acl number 3003
 rule 5 permit ip source 192.168.30.0 0.0.0.255
traffic classifier data
 if-match acl 3003
traffic classifier video
 if-match acl 3002
traffic classifier voice
 if-match acl 3001
traffic behavior data
 remark 8021p 4
traffic behavior video
 remark 8021p 5
traffic behavior voice
 remark 8021p 6
traffic policy data
 classifier data behavior data
traffic policy video
 classifier video behavior video
traffic policy voice
 classifier voice behavior voice
interface GigabitEthernet0/0/3
 traffic-policy voice inbound
interface GigabitEthernet0/0/4
 traffic-policy video inbound
interface GigabitEthernet0/0/5
 traffic-policy data inbound

2. SW2

vlan batch 100 200
interface Vlanif100
 ip address 10.10.100.2 255.255.255.252
interface Vlanif200
 ip address 10.10.200.2 255.255.255.252
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 200
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 100
ospf 10 router-id 20.20.20.20
area 0.0.0.0
 network 10.10.200.0 0.0.0.3
area 0.0.0.1
 network 10.10.100.0 0.0.0.3

**流量监管:**
traffic classifier tc1
 if-match any
traffic behavior tb1
 car cir 100000 pir 300000 cbs 12500000 pbs 37500000
traffic policy tp1
 classifier tc1 behavior tb1
interface GigabitEthernet0/0/2
 traffic-policy tp1 inbound

**拥塞避免:**
diffserv domain dd1
 8021p-inbound 4 phb ef red
 8021p-inbound 5 phb ef yellow
 8021p-inbound 6 phb ef green
drop-profile wred1
 color green low-limit 80 high-limit 100 discard-percentage 80
 color yellow low-limit 70 high-limit 80 discard-percentage 90
 color red low-limit 50 high-limit 70 discard-percentage 100
interface GigabitEthernet0/0/1
 qos queue 4 wred wred1
 qos queue 5 wred wred1
 qos queue 6 wred wred1

**拥塞管理:**
interface GigabitEthernet0/0/1
 qos pq

**流量整形:**
interface GigabitEthernet0/0/1
 qos queue 4 shaping cir 100000 pir 100000 cbs 150000 pbs 150000
 qos queue 5 shaping cir 200000 pir 200000 cbs 250000 pbs 250000
 qos queue 6 shaping cir 100000 pir 200000 cbs 400000 pbs 800000

3. AR1

interface GigabitEthernet0/0/1
 ip address 10.10.200.1 255.255.255.252
interface LoopBack10
 ip address 1.1.1.1 255.255.255.255
ospf 10 router-id 1.1.1.1
import-route direct
area 0.0.0.0
 network 10.10.200.0 0.0.0.3

**接口限速:**
interface GigabitEthernet0/0/1
 qos lr pct 95

四、配置检查

  • 检查流策略的应用记录(以SW1为例)
  • 检查接口上应用的流策略(以SW1的g0/0/3接口为例)
  • 检查DS域(以SW2为例)
  • 检查接口下的QoS配置信息(display qos configuration,以SW2的g0/0/1为例)
© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号