8.1 PQ 典型配置
需求:
来自10.10.0.0/24 网段的报文优先,从serial0 口来的报文其次
配置:
! 适用版本vrp1.7
[Router] version 1.74
[Router] qos pql 1 queue Top queue-length 10 高优先级队列为10
[Router] qos pql 1 protocol ip acl 1 queue Top 符合acl1 的为高
[Router] qos pql 2 inbound-interface Serial0 queue Middle 由s0 来的为中
!
[Router] acl 1 match-order auto
[Router-acl-1] rule normal permit source 10.10.0.0 0.0.0.255
!
[Router] interface Serial0
[Router-serial0] link-protocol ppp
[Router-serial0] ip add 1.1.1.1 255.255.255.0
[Router-serial0] qos pq pql 1 接口使能pq
!
[Router] interface Serial1
[Router-serial1] link-protocol ppp
[Router-serial1] Ip add 2.2.2.2 255.255.255.0
[Router-serial1] qos pq pql 2 接口使能pq
!
return
8.2 CQ 典型配置
组网:
http://blog.163.com/zhangyulong2087/manage/?&fromMail#m=0&t=0
需求:
8-74
在广域网上建立两条对应同一物理线路的并行Tunnel 通道封装GRE ,要求实现两条tunnel 上的业务对物理线路带
宽的按比例分配.
Router A 的配置:
! 适用版本vrp1.7
[Router] version 1.74
[Router] qos cql 1 queue 1 queue-length 100
[Router] qos cql 1 queue 1 serving 5000
[Router] qos cql 1 queue 2 queue-length 100
[Router] qos cql 1 queue 2 serving 1000
[Router] qos cql 1 protocol ip acl 107 queue 1
[Router] qos cql 1 protocol ip acl 108 queue 2
!
[Router] acl 105 match-order auto
[Router-acl-105] rule normal permit ip source 10.1.4.0 0.0.0.255
destination 10.1.5.0 0.0.0.255
[Router-acl-105] rule normal deny ip source any destination any
!
[Router] acl 107 match-order auto
[Router-acl-107] rule normal permit ip source 192.168.0.2 0.0.0.0
destination 192.168.0.1 0.0.0.0
!
[Router] acl 108 match-order auto
[Router-acl-108] rule normal permit ip source 192.168.1.2 0.0.0.0
destination 192.168.1.1 0.0.0.0
!
[Router] interface Serial0
[Router-serial0] link-protocol ppp
[Router-serial0] ip address 192.168.0.1 255.255.255.252
[Router-serial0] ip address 192.168.1.1 255.255.255.252 sub
[Router-serial0] qos cq cql 1
!
[Router] interface Tunnel0
[Router-Tunnel0] link-protocol tunnel
[Router-Tunnel0] ip address 10.1.2.2 255.255.255.0
[Router-Tunnel0] source 192.168.0.1
[Router-Tunnel0] destination 192.168.0.2
!
[Router] interface Tunnel1
[Router-Tunnel1] link-protocol tunnel
[Router-Tunnel1] ip address 10.1.7.2 255.255.255.0
[Router-Tunnel1] source 192.168.1.1
[Router-Tunnel1] destination 192.168.1.2
!
return
Router B 的配置:
! 适用版本vrp1.7
8-75
[Router] version 1.74
[Router] qos cql 1 queue 1 queue-length 100
[Router] qos cql 1 queue 1 serving 5000
[Router] qos cql 1 queue 2 queue-length 100
[Router] qos cql 1 queue 2 serving 1000
[Router] qos cql 1 protocol ip acl 107 queue 1
[Router] qos cql 1 protocol ip acl 108 queue 2
!
[Router] acl 105 match-order auto
[Router-acl-105] rule normal permit ip source 10.1.5.0 0.0.0.255
destination 10.1.4.0 0.0.0.255
[Router-acl-105] rule normal deny ip source any destination any
!
[Router] acl 107 match-order auto
[Router-acl-107] rule normal permit ip source 192.168.0.1 0.0.0.0
destination 192.168.0.2 0.0.0.0
!
[Router] acl 108 match-order auto
[Router-acl-108] rule normal permit ip source 192.168.1.1 0.0.0.0
destination 192.168.1.2 0.0.0.0
!
[Router] interface Serial0
[Router-serial0] link-protocol ppp
[Router-serial0] ip address 192.168.0.2 255.255.255.252
[Router-serial0] ip address 192.168.1.2 255.255.255.252 sub
[Router-serial0] qos cq cql 1
!
[Router] interface Tunnel0
[Router-Tunnel0] link-protocol tunnel
[Router-Tunnel0] ip address 10.1.2.1 255.255.255.0
[Router-Tunnel0] source 192.168.0.2
[Router-Tunnel0] destination 192.168.0.1
!
[Router] interface Tunnel1
[Router-Tunnel1] link-protocol tunnel
[Router-Tunnel1] ip address 10.1.7.1 255.255.255.0
[Router-Tunnel1] source 192.168.1.2
[Router-Tunnel1] destination 192.168.1.1
!
return
8.3 WFQ 典型配置
需求:
配置WFQ,保证某个网段的流量异常时,对其他网段的业务没有影响.
8-76
配置:
! 适用版本vrp1.7
[Router] interface Ethernet0
[Router-Ethernet0] ip address 1.1.1.1 255.255.255.0
[Router-Ethernet0] qos wfq queue-length 64 queue-number 512 配置一个WFQ 队
列,其拥塞丢弃门
限为64 个包,512
个动态队列
!
8.4 FRTS
说明: 在帧中继网络中,如果不同的网络段带宽不匹配,往往会使网络段的交界处产生瓶颈.如果192K 端向64K 端大流量
发送报文时,会在帧中继网络与64K 链路连接处产生瓶颈发生拥塞,导致无法正常传送数据.因此,在DTE 端应用流量×××
机制,DCE 端应用拥塞管理机制.当网络空闲时,用户可以以大于CIR 在图中CIR 为32K 的复用带宽,当网络发送拥塞
时DCE 端会通知DTE,网络已经发生了拥塞,DTE 端会通过流量×××调整发送速率,使DTE 出接口的发送速率降为32000
以缓解DCE 端的拥塞状况,使通讯正常进行.而且在DTE 端应用流量×××,可以向用户提供承诺信息速率(CIR).当网络空
闲时,用户可以以大于CIR 的速率复用带宽;当网络发送拥塞时,用户仍然可以以CIR 的速率发送数据.
组网:
http://blog.163.com/zhangyulong2087/manage/?&fromMail#m=0&t=0
配置:
DUT 的配置:
! 适用版本vrp1.7
[DUT] interface ethernet 0
[DUT-Ethernet0] ip add 172.31.1.2 255.255.255.0
!
[DUT] interface Serial0
[DUT-Serial0] link-protocol fr
[DUT-Serial0] ip address 10.110.1.1 255.255.255.0
[DUT-Serial0] fr dlci 100
[DUT-Serial0] fr traffic-shaping 启用FRTS
[DUT-Serial0] fr dlci 100
[DUT-Serial0] fr-class frts
!
8-77
[DUT] fr class frts 配置帧中继Class
[DUT-fr-classfrts]
cir allow 64000 设置CIR 值为64K
!
[DUT-Serial0] quit
!
[DUT] ip route-static 192.16.1.0 255.255.255.0
10.110.1.2
[DUT] ip route-static 193.16.1.0 255.255.255.0
10.110.1.2
!
RTA 的配置:
! 适用版本vrp1.7
[Router] interface ethernet 0
[Router-Ethernet0] ip add 192.16.1.2 255.255.255.0
!
[Router-Ethernet0] interface Serial0
[Router-Serial0] link-protocol fr
[Router-Serial0] ip address 10.110.1.2 255.255.255.0
[Router-Serial0] Fr dlci 200
!
[Router] ip route-static 172.31.1.0 255.255.255.0
10.110.1.1
Frame-relay Switching 的配置:
在与DUT 相连的接口上配置Dlci 100 和101,在与RTA 相连的接口上配置Dlci200 和201,并在100 和200 之间,101
和201 之间做交换.
用路由器来代替帧中继交换机:
! 适用版本vrp1.7
[Router] fr switching
!
[Router] interface Serial0
[Router-Serial0] link-protocol fr
[Router-Serial0] fr interface-type dce
[Router-Serial0] fr dlci 100
[Router-Serial0] fr dlci 101
[Router-Serial0] fr dlci-switch pvc 100 interface serial 1 dlci
200
[Router-Serial0] fr dlci-switch pvc 101
!
[Router-Serial1] interface Serial1
[Router-Serial1] link-protocol fr
[Router-Serial1] fr interface-type DCE
[Router-Serial1] fr dlci 200
[Router-Serial1] fr dlci 201
[Router-Serial1] fr dlci-switch pvc 200 interface Serial 0 dlci
100
[Router-Serial1] fr dlci-switch pvc 201 interface Serial 0 dlci
8-78
101
Pc 的设置:
Server 的网关设置为172.31.1.2
PC-Client 1 的网关设置为192.16.1.2
PC-Client 2 的网关设置为193.16.1.2
结果:
在Server 上启动ftp 服务,同时在PC-Client 1 端启动ftp 客户端软件如cuteftp 或flashget,并开始下载Server
上的大文件,在DUT 上应用FRTS 后,客户端下载速率逐渐变小,逐步收敛于64k 左右.
转载于:https://blog.51cto.com/kalng/895978