最佳答案
可以配置QOS CARL来对IP进行带宽的保障,参考命令如下:
(1) 进入系统视图。
system-view
(2) 创建CAR列表并配置匹配规则。
qos carl carl-index { dscp dscp-list | mac mac-address | mpls-exp mpls-exp-value | precedence precedence-value | { destination-ip-address | source-ip-address } { range start-ip-address to end-ip-address | subnet ip-address mask-length } [ per-address [ shared-bandwidth ] ] }
(3) 进入接口视图。
interface interface-type interface-number
(4) 在接口上配置基于CAR列表的CAR策略。
(绝对值配置方式)
qos car { inbound | outbound } carl carl-index cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [green action | red action | yellow action ] *
qos car { inbound | outbound } carl carl-index cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebsexcess-burst-size ] [ green action | red action | yellow action ] *
(百分比配置方式)
qos car { inbound | outbound } carl carl-index percent cir cir-percent [ cbs cbs-time [ ebs ebs-time ] ] [ green action | red action | yellowaction ] *
qos car { inbound | outbound } carl carl-index percent cir cir-percent [ cbs cbs-time ] pir pir-percent [ ebs ebs-time ] [ green action | red action | yellow action ] *
缺省情况下,接口上未应用CAR策略。
(0)
可以配置QOS CARL来对IP进行带宽的保障,参考命令如下:
(1) 进入系统视图。
system-view
(2) 创建CAR列表并配置匹配规则。
qos carl carl-index { dscp dscp-list | mac mac-address | mpls-exp mpls-exp-value | precedence precedence-value | { destination-ip-address | source-ip-address } { range start-ip-address to end-ip-address | subnet ip-address mask-length } [ per-address [ shared-bandwidth ] ] }
(3) 进入接口视图。
interface interface-type interface-number
(4) 在接口上配置基于CAR列表的CAR策略。
(绝对值配置方式)
qos car { inbound | outbound } carl carl-index cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [green action | red action | yellow action ] *
qos car { inbound | outbound } carl carl-index cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebsexcess-burst-size ] [ green action | red action | yellow action ] *
(百分比配置方式)
qos car { inbound | outbound } carl carl-index percent cir cir-percent [ cbs cbs-time [ ebs ebs-time ] ] [ green action | red action | yellowaction ] *
qos car { inbound | outbound } carl carl-index percent cir cir-percent [ cbs cbs-time ] pir pir-percent [ ebs ebs-time ] [ green action | red action | yellow action ] *
缺省情况下,接口上未应用CAR策略。
(0)
暂无评论
可以配置QOS CARL来对IP进行带宽的保障,参考命令如下:
(1) 进入系统视图。
system-view
(2) 创建CAR列表并配置匹配规则。
qos carl carl-index { dscp dscp-list | mac mac-address | mpls-exp mpls-exp-value | precedence precedence-value | { destination-ip-address | source-ip-address } { range start-ip-address to end-ip-address | subnet ip-address mask-length } [ per-address [ shared-bandwidth ] ] }
(3) 进入接口视图。
interface interface-type interface-number
(4) 在接口上配置基于CAR列表的CAR策略。
(绝对值配置方式)
qos car { inbound | outbound } carl carl-index cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [green action | red action | yellow action ] *
qos car { inbound | outbound } carl carl-index cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebsexcess-burst-size ] [ green action | red action | yellow action ] *
(百分比配置方式)
qos car { inbound | outbound } carl carl-index percent cir cir-percent [ cbs cbs-time [ ebs ebs-time ] ] [ green action | red action | yellowaction ] *
qos car { inbound | outbound } carl carl-index percent cir cir-percent [ cbs cbs-time ] pir pir-percent [ ebs ebs-time ] [ green action | red action | yellow action ] *
缺省情况下,接口上未应用CAR策略。
(0)
暂无评论
您好,参考
在下面的组网图中,从Device C发出的数据流经过Device A和Device B到达Device D,需求如下:
· Device C发出的数据流根据IP报文的DSCP域分为3类,要求配置QoS策略,对于DSCP域为AF11和AF21的流进行确保转发(AF),最小带宽为5%;
· 对于DSCP域为EF的流进行加速转发(EF),最大带宽为30%。
在进行配置之前,应保证:
· Device C发出的流能够通过Device A和Device B可达Device D。
· 报文的DSCP域在进入Device A之前已经设置完毕。
图5-9 基于类的队列配置组网图
Device A上的配置如下。
# 定义三个类,分别匹配DSCP域为AF11、AF21和EF的IP报文。
<DeviceA> system-view
[DeviceA] traffic classifier af11_class
[DeviceA-classifier-af11_class] if-match dscp af11
[DeviceA-classifier-af11_class] quit
[DeviceA]traffic classifier af21_class
[DeviceA-classifier-af21_class] if-match dscp af21
[DeviceA-classifier-af21_class] quit
[DeviceA] traffic classifier ef_class
[DeviceA-classifier-ef_class] if-match dscp ef
[DeviceA-classifier-ef_class] quit
# 定义流行为,配置AF,并分配最小可用带宽。
[DeviceA] traffic behavior af11_behav
[DeviceA-behavior-af11_behav] queue af bandwidth pct 5
[DeviceA-behavior-af11_behav] quit
[DeviceA] traffic behavior af21_behav
[DeviceA-behavior-af21_behav] queue af bandwidth pct 5
[DeviceA-behavior-af21_behav] quit
# 定义流行为,配置EF,并分配最大可用带宽(对于EF流,将同时保证带宽和时延)。
[DeviceA] traffic behavior ef_behav
[DeviceA-behavior-ef_behav] queue ef bandwidth pct 30
[DeviceA-behavior-ef_behav] quit
# 定义QoS策略,将已配置的流行为指定给不同的类。
[DeviceA] qos policy dscp
[DeviceA-qospolicy-dscp] classifier af11_class behavior af11_behav
[DeviceA-qospolicy-dscp] classifier af21_class behavior af21_behav
[DeviceA-qospolicy-dscp] classifier ef_class behavior ef_behav
[DeviceA-qospolicy-dscp] quit
# 将已定义的QoS策略应用在Device A的GigabitEthernet1/0/1出方向。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ip address 1.1.1.1 255.255.255.0
[DeviceA-GigabitEthernet1/0/1] qos apply policy dscp outbound
配置完成后,当发生拥塞时,可以观察到EF流以较高的优先级转发。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论