摘要 |
A method for sending a packet includes determining whether a packet is a fragmented packet, if the packet is a fragmented packet, determining whether the number of tokens in a token bucket is sufficient, when the number of tokens in the token bucket is sufficient, sending the fragmented packet, and deducting the number of tokens in the token bucket, where the deducted number of tokens corresponds to the number of bytes of the sent fragmented packet, when the number of tokens in the token bucket is insufficient, sending the fragmented packet, and deducting the number of tokens in the token bucket, where the deducted number of tokens corresponds to the number of bytes of the sent fragmented packet, and the number of tokens in the token bucket is a negative number after the number of tokens corresponding to the number of bytes of the sent fragmented packet is deducted. |