首页> 外国专利> 一种流量整形方法及相关设备

一种流量整形方法及相关设备

机译:一种流量整形方法及相关设备

摘要

Embodiments of the present application provide a traffic shaping method and a related device. The method comprises: a device obtains a scheduling cycle of a scheduler and a bucket filling cycle of a token bucket, wherein the number of clock cycles included in the bucket filling cycle of the token bucket is equal to the number of clock cycles included in the scheduling cycle of the scheduler; and the device schedules the X output ports of the device according to the scheduling cycle and fills the token bucket according to the bucket filling cycle, wherein the number of clock cycles occupied by a first port in the scheduling cycle is positively related to the proportion of the bandwidth of the first port in the total output bandwidth of the device, the first port being any one of the output ports of the device, and X is a positive integer greater than or equal to 1. By using the embodiments of the present application, implementation costs can be significantly reduced.
机译:本申请实施例提供了一种流量整形方法及相关设备。该方法包括:设备获取调度器的调度周期和令牌桶的桶填充周期,其中,令牌桶的桶填充周期中包括的时钟周期数等于令牌桶中包括的时钟周期数。调度程序的调度周期;所述设备根据所述调度周期对所述设备的X个输出端口进行调度,并根据所述桶填充周期对所述令牌桶进行填充,其中,所述调度周期中第一端口占用的时钟周期数与所述比例成正相关。设备的总输出带宽中的第一端口的带宽,第一端口为设备的输出端口中的任意一个,X为大于或等于1的正整数。 ,可以大大降低实施成本。

著录项

获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号