在此页面上
ACX 系列路由器中的分层服务等级
可以在物理和逻辑接口级别应用调度属性。服务提供商将能够在多个级别支持分层服务等级(HCoS),以满足服务级别协议和用户的带宽分配。
物理接口上的分层调度
默认情况下,支持 HCoS 的 ACX 路由器中所有物理接口上的排队模式为每个物理接口(端口)8 个队列。在分层调度程序模式下,您最多可以配置 3 个级别(物理接口、逻辑接口和队列)或 4 个级别(包括逻辑接口集),具体取决于平台。
您可以通过在层次结构下[edit interfaces interface-name]
包含 hierarchical-scheduler
CLI 命令来启用分层调度:
[edit] interfaces ge-0/0/1 { hierarchical-scheduler; }
如果将物理接口排队模式从默认更改为分层计划程序模式(反之亦然),则在模式更改期间流出物理接口的流量会导致流量数据暂时丢失。
流量控制配置文件
流量控制配置文件保存高于调度程序层次结构队列级别的参数。调度程序节点上的调度和整形配置是使用流量控制配置文件 CLI 命令配置的,调度程序适用于队列级别。流量控制配置文件定义调度程序节点的以下特征:
调度器映射
整形速率
保证利率
可以在物理接口和逻辑接口级别附加流量控制配置文件。可以使用整形率和保证速率为调度程序节点定义调度和排队特征。以下是流量控制配置文件配置示例:
[edit class-of-service traffic-control-profiles] tcp-500m-shaping-rate { shaping-rate 500m; } tcp-ifl0 { shaping-rate 200m; guaranteed-rate 100m; scheduler-map tcp-map-ifl0; # Applies scheduler maps to customer VLANs. }
调度程序
调度程序定义队列的调度和排队特征,并保存有关队列(层次结构的最后一级)的信息。以下是调度程序配置示例:
[edit class-of-service schedulers] sched-ifl0-q0 { priority low; transmit-rate 20m; buffer-size temporal 100ms; drop-profile loss-priority low dp-low; drop-profile loss-priority high dp-high; } sched-ifl-q1 { priority strict-high; shaping-rate 20m; }
丢弃配置文件
丢弃配置文件允许您指定队列特定行为,以在拥塞情况下基于 WRED 配置文件丢弃数据包。以下是丢弃配置文件配置示例:
[edit class-of-service drop-profiles] dp-low { fill-level 80 drop-probability 0; fill-level 100 drop-probability 100; } dp-high { fill-level 60 drop-probability 0; fill-level 80 drop-probability 100; }
调度器映射
流量控制配置文件引用调度程序图来定义队列。调度器图建立调度器节点上的队列数,将转发类与调度程序相关联。以下是调度程序图配置示例:
[edit class-of-service scheduler-maps] sched-map-ifl0 { forwarding-class voice scheduler sched-vlan0-qx; forwarding-class video scheduler sched-vlan0-qx; forwarding-class data scheduler sched-vlan0-qx; } tcp-map-vlan1 { forwarding-class voice scheduler sched-vlan1-q0; forwarding-class video scheduler sched-vlan1-qx; forwarding-class data scheduler sched-vlan1-qx; } tcp-map-vlanx { forwarding-class voice scheduler sched-vlanx-qx; forwarding-class video scheduler sched-vlanx-qx; forwarding-class data scheduler sched-vlanx-qx; }
应用流量控制配置文件
您可以在调度程序层次结构的各个级别附加流量控制配置文件,以实现分层服务等级。以下是应用流量控制配置文件的示例配置:
尽管整形速率可以直接应用于物理接口,但分层调度程序必须使用流量控制配置文件来保存此参数。
[edit class-of-service interfaces] ge-1/0/0 { output-traffic-control-profile tcp-500m-shaping-rate; unit 0 { output-traffic-control-profile tcp-vlan0; } }
订阅者服务
支持的 ACX 路由器支持订阅者服务的分层服务等级功能,例如第 3 层 VPN、第 2 层 VPN、以太网伪线 (VPWS) 和 AC(接入端口)上逻辑接口实例的 VPLS。
第 2 层桥接(桥接域 VLAN)服务不支持分层服务等级。
以下各节说明订阅者服务的服务配置的层次结构类:
为第 3 层 VPN 服务配置分层服务等级
通过将 UNI 端口连接到客户边缘设备,可将受支持的 ACX 路由器配置为向用户提供第 3 层 VPN 服务。物理端口可以配置为向多个订阅者提供第 3 层 VPN 服务。您可以根据与订阅者商定的 SLA 参数为不同的第 3 层 VPN 实例调度流量。
以下是提供第 3 层 VPN 服务的 PE 路由器上的 UNI 和 NNI 逻辑接口配置示例:
[edit interfaces] xe-0/0/1 { description “NNI IFL”; unit 0 { family inet { address 100.1.1.1/24; } family mpls; } } ge-0/0/1 { description “UNI IFL”; hierarchical-scheduler; flexible-vlan-tagging; unit 0 { vlan-id 100; family inet { address 20.20.0.1/24; } } unit 1 { vlan-id 101; family inet { address 20.20.1.1/24; } } unit 2 { vlan-id 2; family inet { address 20.20.2.1/24; } } unit 3 { vlan-id 3; family inet { address 20.20.3.1/24; } } unit 4 { vlan-id 4; family inet { address 20.20.4.1/24; } } ... }
可以在接口上启用调度,以实现对从 NNI 流向 UNI 方向的流量的分层服务等级支持。
为第 2 层 VPN(以太网伪线)服务配置分层服务等级
受支持的 ACX 路由器可以配置为基于以太网伪线向用户提供第 2 层 VPN 服务,其中 UNI 端口连接到 CE 设备。物理端口可以配置为向多个订阅者提供第 2 层 VPN 服务。您可以根据与订阅者商定的 SLA 参数为不同的伪线计划流量。可以为每个表示为以太网伪线连接点的 UNI 逻辑接口启用分层服务等级,以实现该功能。
以下是在提供基于以太网伪线的第 2 层 VPN 服务的 PE 路由器上配置 UNI 逻辑接口的示例:
[edit interfaces] ge-0/0/1 { hierarchical-scheduler; vlan-tagging; unit 0 { encapsulation vlan-ccc; vlan-id 0; } unit 1 { encapsulation vlan-ccc; vlan-id 1; } unit 2 { encapsulation vlan-ccc; vlan-id 2; } unit 3 { encapsulation vlan-ccc; vlan-id 3; } unit 4 { encapsulation vlan-ccc; vlan-id 4; } }
您可以在接口上启用调度,以实现从 NNI 流向 UNI 方向的流量的分层服务等级。
为 VPLS 服务配置分层服务等级
受支持的 ACX 路由器可以配置为基于 VPLS 向用户提供第 2 层 VPN 服务,其中 UNI 端口可以连接到客户边缘设备。用户网络连接到 PE 路由器上的 UNI 逻辑接口,并具有一个 VPLS 实例。同一物理端口可以为不同订阅者的多个 VPLS 实例提供服务。服务提供商可以根据与订阅者商定的 SLA 参数为不同的 VPLS 实例调度流量。您可以为订阅者启用代表 VPLS 实例的每个 UNI 逻辑接口的分层服务等级,以实现该功能。
以下是在提供 VPLS 服务的 PE 路由器上配置 UNI 逻辑接口的示例:
[edit interfaces] ge-0/0/1 { hierarchical-scheduler; vlan-tagging; encapsulation vlan-vpls; unit 0 { encapsulation vlan-vpls; vlan-id 0; } unit 1 { encapsulation vlan-vpls; vlan-id 1; } unit 2 { encapsulation vlan-vpls; vlan-id 2; } unit 3 { encapsulation vlan-vpls; vlan-id 3; } unit 4 { encapsulation vlan-vpls; vlan-id 4; } }
可以在接口上启用调度,以实现从 NNI 流向 UNI 方向的流量的分层服务等级。
验证服务配置的分层类
您可以使用以下 CLI 命令验证配置:
show interfaces queue
— 显示物理接口聚合、剩余物理接口和逻辑接口流量统计信息,以监控接收和传输的流量。以下是 CLI 命令的一些show interfaces queue
示例输出:user@host# run show interfaces queue ge-0/0/4.2 Logical interface ge-0/0/4.2 (Index 555) (SNMP ifIndex 671) Forwarding classes: 16 supported, 8 in use Egress queues: 8 supported, 8 in use Burst size: 0 Queue: 0, Forwarding classes: 8q0 Queued: Packets : 1121476 7642 pps Bytes : 587885024 32237416 bps Transmitted: Packets : 594964 3160 pps Bytes : 304621568 12946280 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 526512 4482 pps Total-dropped bytes : 283263456 19291136 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 1, Forwarding classes: 8q1 Queued: Packets : 1121476 7642 pps Bytes : 587885154 32237416 bps Transmitted: Packets : 594959 3160 pps Bytes : 304619008 12946280 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 526517 4482 pps Total-dropped bytes : 283266146 19291136 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 2, Forwarding classes: 8q2 Queued: Packets : 1119456 7321 pps Bytes : 595127702 31122568 bps Transmitted: Packets : 274601 1500 pps Bytes : 140595712 6144000 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 844855 5821 pps Total-dropped bytes : 454531990 24978568 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 3, Forwarding classes: 8q3 Queued: Packets : 1119464 7303 pps Bytes : 595131980 31122568 bps Transmitted: Packets : 274602 1500 pps Bytes : 140596224 6144000 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 844862 5803 pps Total-dropped bytes : 454535756 24978568 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 4, Forwarding classes: 8q4 Queued: Packets : 1121476 7642 pps Bytes : 587885024 32237416 bps Transmitted: Packets : 594964 3160 pps Bytes : 304621568 12946280 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 526512 4482 pps Total-dropped bytes : 283263456 19291136 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 5, Forwarding classes: 8q5 Queued: Packets : 1121476 7660 pps Bytes : 587885024 32310560 bps Transmitted: Packets : 594964 3178 pps Bytes : 304621568 13019424 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 526512 4482 pps Total-dropped bytes : 283263456 19291136 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 6, Forwarding classes: 8q6 Queued: Packets : 1121476 7017 pps Bytes : 587190842 29535136 bps Transmitted: Packets : 621684 3589 pps Bytes : 318302208 14701712 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 499792 3428 pps Total-dropped bytes : 268888634 14833424 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes Queue: 7, Forwarding classes: 8q7 Queued: Packets : 1121477 6481 pps Bytes : 586036910 27137704 bps Transmitted: Packets : 666066 3660 pps Bytes : 341025792 14994280 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 455411 2821 pps Total-dropped bytes : 245011118 12143424 bps Queue Buffer Usage: Reserved buffer : 0 pkts 0 bytes Shared buffer : 0 pkts 0 bytes
user@host# run show interfaces queue ge-0/0/4 aggregate Physical interface: ge-0/0/4, Enabled, Physical link is Up Interface index: 648, SNMP ifIndex: 1763 Description: UNI side - connected to ixia 6/9 Forwarding classes: 16 supported, 8 in use Egress queues: 8 supported, 8 in use Queue: 0, Forwarding classes: 8q0 Queued: Packets : 16762731 33205 pps Bytes : 8738362264 139058280 bps Transmitted: Packets : 8779233 13724 pps Bytes : 4494967296 56220880 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 7983498 19481 pps Total-dropped bytes : 4243394968 82837400 bps Queue Buffer Usage: Reserved buffer : 32 pkts 6656 bytes Shared buffer : 52 pkts 10816 bytes Queue: 1, Forwarding classes: 8q1 Queued: Packets : 16762732 33237 pps Bytes : 8738359966 139190408 bps Transmitted: Packets : 8779363 13756 pps Bytes : 4495033856 56353008 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 7983369 19481 pps Total-dropped bytes : 4243326110 82837400 bps Queue Buffer Usage: Reserved buffer : 32 pkts 6656 bytes Shared buffer : 43 pkts 8944 bytes Queue: 2, Forwarding classes: 8q2 Queued: Packets : 16754769 30221 pps Bytes : 8826383526 127522040 bps Transmitted: Packets : 4052168 6369 pps Bytes : 2074710016 26095472 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 12702601 23852 pps Total-dropped bytes : 6751673510 101426568 bps Queue Buffer Usage: Reserved buffer : 32 pkts 6656 bytes Shared buffer : 24232 pkts 5040256 bytes Queue: 3, Forwarding classes: 8q3 Queued: Packets : 16754937 30328 pps Bytes : 8826406908 127965968 bps Transmitted: Packets : 4052173 6378 pps Bytes : 2074646336 26134456 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 12702764 23950 pps Total-dropped bytes : 6751760572 101831512 bps Queue Buffer Usage: Reserved buffer : 32 pkts 6656 bytes Shared buffer : 24205 pkts 5034640 bytes Queue: 4, Forwarding classes: 8q4 Queued: Packets : 16762735 33406 pps Bytes : 8738360722 139886136 bps Transmitted: Packets : 8779404 13828 pps Bytes : 4495054848 56648672 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 7983331 19578 pps Total-dropped bytes : 4243305874 83237464 bps Queue Buffer Usage: Reserved buffer : 32 pkts 6656 bytes Shared buffer : 46 pkts 9568 bytes Queue: 5, Forwarding classes: 8q5 Queued: Packets : 16762734 33285 pps Bytes : 8738359924 139389112 bps Transmitted: Packets : 8779416 13788 pps Bytes : 4495060992 56485136 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 7983318 19497 pps Total-dropped bytes : 4243298932 82903976 bps Queue Buffer Usage: Reserved buffer : 32 pkts 6656 bytes Shared buffer : 52 pkts 10816 bytes Queue: 6, Forwarding classes: 8q6 Queued: Packets : 16762732 27688 pps Bytes : 8721917186 115931832 bps Transmitted: Packets : 9618678 12111 pps Bytes : 4924763136 49614432 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 7144054 15577 pps Total-dropped bytes : 3797154050 66317400 bps Queue Buffer Usage: Reserved buffer : 24 pkts 4992 bytes Shared buffer : 0 pkts 0 bytes Queue: 7, Forwarding classes: 8q7 Queued: Packets : 16762733 26045 pps Bytes : 8710804790 108947832 bps Transmitted: Packets : 10187546 11805 pps Bytes : 5216023552 48359208 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 6575187 14240 pps Total-dropped bytes : 3494781238 60588624 bps Queue Buffer Usage: Reserved buffer : 21 pkts 4368 bytes Shared buffer : 0 pkts 0 bytes
user@host# run show interfaces queue ge-0/0/4 remaining-traffic Physical interface: ge-0/0/4, Enabled, Physical link is Up Interface index: 648, SNMP ifIndex: 1763 Description: UNI side - connected to ixia 6/9 Forwarding classes: 16 supported, 8 in use Egress queues: 8 supported, 8 in use Queue: 0, Forwarding classes: 8q0 Queued: Packets : 77501 6106 pps Bytes : 41609646 26235344 bps Transmitted: Packets : 3206 243 pps Bytes : 1641472 999248 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 74295 5863 pps Total-dropped bytes : 39968174 25236096 bps Queue Buffer Usage: Reserved buffer : 8 pkts 1664 bytes Shared buffer : 1495 pkts 310960 bytes Queue: 1, Forwarding classes: 8q1 Queued: Packets : 77489 6100 pps Bytes : 41444318 26107008 bps Transmitted: Packets : 9330 732 pps Bytes : 4776960 3002344 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 68159 5368 pps Total-dropped bytes : 36667358 23104664 bps Queue Buffer Usage: Reserved buffer : 8 pkts 1664 bytes Shared buffer : 1435 pkts 298480 bytes Queue: 2, Forwarding classes: 8q2 Queued: Packets : 77485 6099 pps Bytes : 41362188 26054080 bps Transmitted: Packets : 12417 975 pps Bytes : 6357504 3996992 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 65068 5124 pps Total-dropped bytes : 35004684 22057088 bps Queue Buffer Usage: Reserved buffer : 8 pkts 1664 bytes Shared buffer : 1507 pkts 313456 bytes Queue: 3, Forwarding classes: 8q3 Queued: Packets : 77547 6114 pps Bytes : 41609314 26271632 bps Transmitted: Packets : 3261 243 pps Bytes : 1646862 999248 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 74286 5871 pps Total-dropped bytes : 39962452 25272384 bps Queue Buffer Usage: Reserved buffer : 8 pkts 1664 bytes Shared buffer : 1381 pkts 287248 bytes Queue: 4, Forwarding classes: 8q4 Queued: Packets : 77502 6105 pps Bytes : 41450894 26131200 bps Transmitted: Packets : 9349 732 pps Bytes : 4786688 3002344 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 68153 5373 pps Total-dropped bytes : 36664206 23128856 bps Queue Buffer Usage: Reserved buffer : 8 pkts 1664 bytes Shared buffer : 1366 pkts 284128 bytes Queue: 5, Forwarding classes: 8q5 Queued: Packets : 77480 6094 pps Bytes : 41358904 26032304 bps Transmitted: Packets : 12444 975 pps Bytes : 6371328 3996992 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 65036 5119 pps Total-dropped bytes : 34987576 22035312 bps Queue Buffer Usage: Reserved buffer : 8 pkts 1664 bytes Shared buffer : 1552 pkts 322816 bytes Queue: 6, Forwarding classes: 8q6 Queued: Packets : 77970 6099 pps Bytes : 41151002 25749384 bps Transmitted: Packets : 30585 2440 pps Bytes : 15659520 9997088 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 47385 3659 pps Total-dropped bytes : 25491482 15752296 bps Queue Buffer Usage: Reserved buffer : 3 pkts 624 bytes Shared buffer : 0 pkts 0 bytes Queue: 7, Forwarding classes: 8q7 Queued: Packets : 77971 6099 pps Bytes : 41151540 25749384 bps Transmitted: Packets : 30585 2440 pps Bytes : 15659520 9997088 bps Tail-dropped packets : Not Available RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps Total-dropped packets: 47386 3659 pps Total-dropped bytes : 25492020 15752296 bps Queue Buffer Usage: Reserved buffer : 3 pkts 624 bytes Shared buffer : 0 pkts 0 bytes
show class-of-service packet-buffer usage
- 显示系统的总缓冲区使用量。以下是 CLI 命令的示例show class-of-service packet-buffer usage
输出:user@host# run show class-of-service packet-buffer usage Egress: Total Buffer Bytes : 10652.89 KB in use out of 12480.00 KB Total Buffer Pkts : 52445 in use out of 61440 Dedicated Buffer Bytes : 48.14 KB in use out of 738.16 KB Dedicated Buffer Pkts : 237 in use out of 3634 Shared Buffer Bytes : 10604.75 KB in use out of 11741.84 KB Shared Buffer Pkts : 52208 in use out of 57806
您可以使用系统日志查看日志消息和错误报告。