本页内容
示例:配置静态整形参数以考虑下游流量速率中的开销
本主题介绍两种方案,您可以为其配置静态整形参数以考虑下游网络中的数据包开销。
图 1 显示了示例引用的示例网络。

管理使用不同封装的流量
在此示例中, 图 1 所示的 MX 系列路由器将堆叠的 VLAN 帧发送到 DSLAM,DSLAM 将单标记的 VLAN 帧发送到住宅网关。
为了准确调整住宅网关的流量,MX 系列路由器必须考虑到不同的帧大小。路由器发送的堆叠 VLAN (S-VLAN) 帧与住宅网关接收的单标记 VLAN 帧之间的差值为 4 字节 VLAN 标记。住宅网关接收的帧少于 4 个字节。
考虑到不同的帧大小,网络管理员使用 –4 字节调整配置帧整形模式:
网络管理员配置流量整形参数并将其附加到接口。
启用间接费用核算功能会影响生成的整形率、保证率和超额率参数(如果已配置)。
[edit] class-of-service { traffic-control-profiles { tcp-example-overhead-accounting-frame-mode { shaping-rate 10m; shaping-rate-priority-high 4m; guaranteed-rate 2m; excess-rate percent 50; overhead-accounting frame-mode bytes -4; } } interfaces { ge-1/0/0 { output-traffic-control-profile tcp-example-overhead-accounting-frame-mode; } } } }
网络管理员验证调整后的速率。
user@host#show class-of-service traffic-control-profile Traffic control profile: tcp-example-overhead-accounting-frame-mode, Index: 61785 Shaping rate: 10000000 Shaping rate priority high: 4000000 Excess rate 50 Guaranteed rate: 2000000 Overhead accounting mode: Frame Mode Overhead bytes: —4
管理基于单元的下游流量
在此示例中, 图 1 所示的 DSLAM 和住宅网关通过基于 ATM 信元的网络连接。MX 系列路由器将以太网帧发送到 DSLAM,DSLAM 将 ATM 信元发送到住宅网关。
为了准确调整住宅网关的流量,MX 系列路由器必须考虑不同的物理网络特性。
考虑到不同的帧大小,网络管理员使用 –4 字节调整配置信元整形模式:
配置流量整形参数并将其附加到接口。
启用间接费用核算功能会影响生成的整形率、保证率和超额率参数(如果已配置)。
[edit] class-of-service { traffic-control-profiles { tcp-example-overhead-accounting-cell-mode { shaping-rate 10m; shaping-rate-priority-high 4m; guaranteed-rate 2m; excess-rate percent 50; overhead-accounting cell-mode; } } interfaces { ge-1/0/0 { output-traffic-control-profile tcp-example-overhead-accounting-cell-mode; } } } }
验证调整后的费率。
user@host#show class-of-service traffic-control-profile Traffic control profile: tcp-example-overhead-accounting-cell-mode, Index: 61785 Shaping rate: 10000000 Shaping rate priority high: 4000000 Excess rate 50 Guaranteed rate: 2000000 Overhead accounting mode: Cell Mode Overhead bytes: 0
为了考虑 ATM 分段,MX 系列路由器将所有速率调整 48/53,以考虑 ATM AAL5 封装。此外,路由器还考虑了信元填充,并在内部将每帧调整了 8 个字节以考虑 ATM 拖车。