Alcatel设备上的分类只能用其内部命名的8个,分别是:nc,h1,ef,h2,L1,af,l2,be,不能
更改这些命名,也不能定义其他转发类(sap端口可以定义转发子类,但不建议使用转发子类,因为network端口识别不了,配置会很复杂)。7750将
nc,h1,ef,h2四个FC作为高优先级考虑。L1,af,l2,be四个FC作为低优先级考虑。
转发的优先顺序如下(由高到低):
1.高优先级的Inprofile的包;
2.低优先级的Inprofile的包;
3.高优先级和低优先级的Outprofile的包。
注明:Inprofile,Outprofile是由每个FC映射的队列的CIR、PIR决定的。当流量速率小于或等于CIR的包标记上Inprofile;当流量速率大于CIR小于PIR的包标记上Outprofile;大于PIR的包丢弃。
1.1 配置队列调度
(1)网络口的分类和标记(网络口一般指设备的上联接口)
# */基于EXP字段进行分类*/
#*/策略:ingress方向信任EXP,DSCP标记;egress方向重新标记*/
config qos
network 100 create
description "NETWORK QoS POLICY Ingress classification,Egressremarking"
scope template
ingress
default-action fc be profileout
no ler-use-dscp
dscp be fc be profile out
dscp cs1 fc l2 profile in
dscp cs2 fc af profile in
dscp cs3 fc l1 profile in
dscp cs4 fc h2 profile in
dscp cs5 fc ef profile in
dscp nc1 fc h1 profile in
dscp nc2 fc nc profile in
lsp-exp 0 fc be profile out
lsp-exp 1 fc l2 profile in
lsp-exp 2 fc af profile in
lsp-exp 3 fc l1 profile in
lsp-exp 4 fc h2 profile in
lsp-exp 5 fc ef profile in
lsp-exp 6 fc h1 profile in
lsp-exp 7 fc nc profile in
exit
egress
remarking
fc af
dscp-in-profile cs2
dscp-out-profile cs2
lsp-exp-in-profile 2
lsp-exp-out-profile 2
dot1p-in-profile 2
dot1p-out-profile 2
exit
fc be
dscp-in-profile be
dscp-out-profile be
lsp-exp-in-profile 0
lsp-exp-out-profile 0
dot1p-in-profile 0
dot1p-out-profile 0
exit
fc ef
dscp-in-profile cs5
dscp-out-profile cs5
lsp-exp-in-profile 5
lsp-exp-out-profile 5
dot1p-in-profile 5
dot1p-out-profile 5
exit
fc h1
dscp-in-profile nc1
dscp-out-profile nc1
lsp-exp-in-profile 6
lsp-exp-out-profile 6
dot1p-in-profile 6
dot1p-out-profile 6
exit
fc h2
dscp-in-profile cs4
dscp-out-profile cs4
lsp-exp-in-profile 4
lsp-exp-out-profile 4
dot1p-in-profile 4
dot1p-out-profile 4
exit
fc l1
dscp-in-profile cs3
dscp-out-profile cs3
lsp-exp-in-profile 3
lsp-exp-out-profile 3
dot1p-in-profile 3
dot1p-out-profile 3
exit
fc l2
dscp-in-profile cs1
dscp-out-profile cs1
lsp-exp-in-profile 1
lsp-exp-out-profile 1
dot1p-in-profile 1
dot1p-out-profile 1
exit
fc nc
dscp-in-profile nc2
dscp-out-profile nc2
lsp-exp-in-profile 7
lsp-exp-out-profile 7
dot1p-in-profile 7
dot1p-out-profile 7
exit
exit
*/策略:应用到网络接口*/
config router
interface "xxxx" #进入逻辑端口
port x/x/x
QoS 100
exit
exit
exit
1.2 配置用户口的分类和标记(用户口是指接业务的逻辑端口)
注:每个sap的策略里都有一个queue1和queue11,这两个队列是自动创建的,queue1为单播队列,queue2为组播队列
(1)配置标记的策略,标记的是服务等级,而不是具体的数字
标记 服务等级
7 nc
6 h1
5 ef
4 h2
3 l1
2 af
1 l2
0 be
config qos
sap-ingress 111 create
description "sap_NetCtrl_Remark"
queue 1 create
exit
queue 11 multipoint create
exit
default-fc "l2"
exit
sap-ingress 122 create
description "sap_VIP_Remark"
queue 1 create
exit
queue 11 multipoint create
exit
default-fc "af"
exit
sap-ingress 133 create
description "sap_IPTV_Remark"
queue 1 create
exit
queue 11 multipoint create
exit
default-fc "l1"
exit
sap-ingress 144 create
description "sap_VPN(gold)_Remark"
queue 1 create
exit
queue 11 multipoint create
exit
default-fc "h2"
exit
sap-ingress 155 create
description "sap_NGN_Remark"
queue 1 create
exit
queue 11 multipoint create
exit
default-fc "ef"
exit
(2)将标记策略应用到sap端口上,例如接NGN的sap端口上
config service
vprnxxx
interface "GE1/2/9:20"
sap 1/2/9:20
ingress
qos 155
exit
1.3 配置网络口的出队列调度
(1)配置策略
config qos
network-queue "NetworkEgressQ"create
queue 1 create
rate 100 cir 18
mbs 50
cbs 1
high-prio-only 10
exit
queue 2 best-effort create
rate 100 cir 5
high-prio-only 10
exit
queue 3 best-effort create
rate 100 cir 15
high-prio-only 10
exit
queue 4 best-effort create
rate 100 cir 30
high-prio-only 10
exit
queue 5 expedite create
rate 100 cir 20
high-prio-only 10
exit
queue 6 expedite create
rate 10 cir 10
high-prio-only 10
exitqueue 7 expedite create
rate 2 cir 2
high-prio-only 10
exit
fc af create
multicast-queue 9
queue 3
exit
fc be create
multicast-queue 9
queue 1
exit
fc ef create
multicast-queue 9
queue 6
exit
fc h2 create
multicast-queue 9
queue 5
exit
fc l1 create
multicast-queue 9
queue 4
exit
fc l2 create
multicast-queue 9
queue 2
exit
exit
(2)将策略应用到上行口的出方向
port 1/2/1
ethernet
network
queue-policy "NetworkEgressQ"
exit
exit
exit
阅读(876) | 评论(0) | 转发(0) |