PACKET TRANSMISSION METHOD AND NETWORK DEVICE
First Claim
1. A packet transmission method, wherein the method is applied to a network comprising a first link and a second link, the method comprising:
- determining, by a transmitting device based on a length of a packet, whether a quantity of tokens in a first token bucket meets a requirement for transmitting the packet, wherein a token injection rate of the first token bucket is set based on a bandwidth of the first link;
if the quantity of tokens in the first token bucket meets the requirement for transmitting the packet, obtaining, by the transmitting device, a quantity of tokens required for transmitting the packet, and transmitting the packet by using the first link;
if the quantity of tokens in the first token bucket does not meet the requirement for transmitting the packet, further determining, by the transmitting device, whether the second link is in a congested state; and
if the second link is not in the congested state, transmitting, by the transmitting device, the packet by using the second link.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for transmitting packets includes: determining, by a transmitting device based on a length of a packet, whether a quantity of tokens in a first token bucket meets a requirement for transmitting the packet, where a token injection rate of the first token bucket is set based on bandwidth of a first link. If the quantity of tokens in the first token bucket meets the requirement for transmitting the packet, a quantity of tokens required for transmitting the packet is obtained, and the packet is transmitted using the first link. If the quantity of tokens in the first token bucket does not meet the requirement for transmitting the packet, determining whether a second link is congested. If the second link is not in a congested state, the transmitting device transmits the packet by using the second link.
4 Citations
14 Claims
-
1. A packet transmission method, wherein the method is applied to a network comprising a first link and a second link, the method comprising:
-
determining, by a transmitting device based on a length of a packet, whether a quantity of tokens in a first token bucket meets a requirement for transmitting the packet, wherein a token injection rate of the first token bucket is set based on a bandwidth of the first link; if the quantity of tokens in the first token bucket meets the requirement for transmitting the packet, obtaining, by the transmitting device, a quantity of tokens required for transmitting the packet, and transmitting the packet by using the first link; if the quantity of tokens in the first token bucket does not meet the requirement for transmitting the packet, further determining, by the transmitting device, whether the second link is in a congested state; and if the second link is not in the congested state, transmitting, by the transmitting device, the packet by using the second link. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A network device for packet transmission, comprises:
-
a network interface for transmitting a packet; a processor; and a non-transitory computer readable storage medium storing a program to be executed by the processor, the program including instructions for; determining, based on a length of the packet, whether a quantity of tokens in a first token bucket meets a requirement for transmitting the packet, wherein a token injection rate of the first token bucket is set based on a bandwidth of a first link; if the quantity of tokens in the first token bucket meets the requirement for transmitting the packet, obtaining, by the transmitting device, a quantity of tokens required for transmitting the packet, and transmitting the packet by using the first link; if the quantity of tokens in the first token bucket does not meet the requirement for transmitting the packet, further determining, by the transmitting device, whether a second link is in a congested state; and if the second link is not in the congested state, transmitting, by the transmitting device, the packet by using the second link. - View Dependent Claims (10, 11, 12, 13, 14)
-
Specification