发明名称 Method and system for controlling packet traffic
摘要 The present invention applies to the field of communications technologies and provides a method and a system for controlling packet traffic. The method includes: comparing the number of tokens in a token bucket at a current time point with a length of a packet to be sent and a preset virtual threshold when the packet to be sent is received, refreshing the current number of tokens in the token bucket according to a comparison result, and marking the packet to be sent with a color.
申请公布号 US9264367(B2) 申请公布日期 2016.02.16
申请号 US201313901842 申请日期 2013.05.24
申请人 Huawei Technologies Co., Ltd. 发明人 Wang Changhong;Chen Lue
分类号 H04L12/819;H04L12/833 主分类号 H04L12/819
代理机构 Slater & Matsil, L.L.P. 代理人 Slater & Matsil, L.L.P.
主权项 1. A system for controlling packet traffic, wherein a token bucket algorithm is an SrTCM algorithm in color-blind mode or an MEF10 algorithm in color-blind mode and wherein the system comprises: a processor; and a computer-readable storage medium storing a program to be executed by the processor, the program including instructions for: determining a number of tokens in a C bucket and a number of tokens in an E bucket at the current time point when the packet to be sent is received;determining whether the number of tokens in the C bucket at the current time point is greater than or equal to the length of the packet to be sent and is greater than the preset virtual threshold;refreshing, in response to determining that the number of tokens in the C bucket at the current time point is greater than or equal to the length of the packet to be sent and is greater than the preset virtual threshold, the number of tokens in the C bucket so that the number of tokens in the C bucket is the number of tokens in the C bucket at the current time point minus the number of tokens needed to be subtracted when the packet to be sent passes; and marking the packet to be sent with green;determining, in response to determining that the number of tokens in the C bucket at the current time point is not greater than or equal to the length of the packet to be sent and is not greater than the preset virtual threshold, whether the number of tokens in the E bucket at the current time point is greater than or equal to the length of the packet to be sent and is greater than the preset virtual threshold;refreshing, in response to determining that the number of tokens in the E bucket at the current time point is greater than or equal to the length of the packet to be sent and is greater than the preset virtual threshold, the number of tokens in the E bucket so that the number of tokens in the E bucket is the number of tokens in the E bucket at the current time point minus the number of tokens needed to be subtracted when the packet to be sent passes; and marking the packet to be sent with yellow; andkeeping, in response to determining that the number of tokens in the E bucket at the current time point is not greater than or equal to the length of the packet to be sent and is not greater than the preset virtual threshold, the number of tokens in the C bucket and the number of tokens in the E bucket unchanged and marking the packet to be sent with red, wherein the preset virtual threshold is configured according to a target passing ratio of long packets to short packets.
地址 Shenzhen CN