Token Bucket with Active Queue Management
The token bucket technology of active queue management solves the congestion problem caused by insufficient data packet processing capacity in the communication network, achieves more efficient data transmission and lower latency, and supports more QoS classes and burst traffic.
Patent Information
- Application Number
- CN202210433924.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-17
- Filing Date
- 2022-04-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-24
AI Technical Summary
Existing communication networks are prone to congestion when processing large amounts of data packets, traditional QoS primitives are difficult to expand, and priority queues and traditional token buckets have insufficient performance under high load conditions, resulting in data loss and delay.
It adopts Token Bucket Management (TBAQM) technology to achieve flow control through token bucket status, and combines the AQM algorithm and PI controller to dynamically adjust the queue length and dequeue rate, reduce data loss and delay, and improve network transmission efficiency.
TBAQM effectively reduces network congestion, improves data transmission efficiency, reduces data loss and delay, supports larger QoS classes and burst traffic, and provides better scalability and fine-grained congestion control.
Smart Images

Figure CN116266824B_ABST
Abstract
Description
Background Art
[0001] It is common to transmit data packets through a communication network. When a large number of data packets are transmitted at the same time, the processing of these data packets will be delayed when the existing network equipment cannot handle the processing capacity. Therefore, a large number of data packets causes network congestion in a wider communication network.
[0002] One metric that helps minimize network congestion includes defining a predetermined incoming packet rate. However, among a set of network devices in a communication network, the incoming packet rate can vary. If any network device involved in data packet processing receives packets at a rate higher than it can handle, the data packets can back up, which can result in a delayed queue of data packets.
[0003] Larger-scale data processing congestion can occur when network equipment is overloaded and the number of data packets backed up in queues is excessive. As a simple example, a network router has a finite amount of buffer space to queue data packets awaiting transmission over an outgoing network path. If the incoming data packet rate is too high, the queue length can increase to the point where the router buffers are too full to adequately handle the incoming and outgoing traffic. In some cases, data packets are dropped and data loss or further delays may result.
[0004] Traditionally, communication networks provide a "best effort" service where all users in the network receive the same level of service. However, network Quality of Service (QoS) policies can allow the network to provide different levels of service to different users, connections, data types, protocols, requesting devices, network environments, geographic locations, etc. For example, some users may receive higher priority, higher bandwidth, or lower latency from the network. QoS can be implemented through network devices and network traffic rules using QoS primitives implemented in the network devices.
[0005] QoS primitives execute on network devices and perform various tasks related to QoS policies. In some examples, QoS primitives can process data packets and implement QoS policies in the network. In other examples, QoS primitives can notify devices of QoS requirements, process data packets, and make decisions that affect the level of service received by packets, such as when packets will be forwarded by the device, in a platform-independent implementation. In some examples, QoS primitives include priority queues (e.g., each data packet has a priority value associated with it, and data packets with the highest priority are transmitted / processed first) and traffic controllers (e.g., monitor data traffic to enforce QoS policies associated therein, and discard or mark data traffic that does not comply). BRIEF DESCRIPTION OF THE DRAWINGS
[0006] According to one or more different examples, the present disclosure is described in detail with reference to the following drawings. The drawings provided are for illustration purposes only and depict only typical examples.
[0007] Figure 1 A communication network using QoS policies according to some examples of the present disclosure is shown.
[0008] Figure 2 The use of active queue management (AQM) techniques according to some examples of the present disclosure is shown to process data packets to be added to a queue.
[0009] Figure 3 Processing of data packets to be added to a queue using an AQM technique using a PI controller according to some examples of the present disclosure is shown.
[0010] Figure 4 Processing packets, refilling tokens from a policer implemented using a token bucket, and removing tokens according to some examples of the present disclosure are shown.
[0011] Figure 5 The different components of a token bucket with active queue management (TBAQM) and how it processes packets according to some examples of the present disclosure are shown.
[0012] Figure 6 A process implemented by a token bucket with active queue management (TBAQM) according to some examples of the present disclosure is shown.
[0013] Figure 7 are example computing components that can be used to implement various features of the examples described in this disclosure.
[0014] Figure 8 A block diagram of an example computer system is depicted upon which various examples described herein may be implemented.
[0015] The drawings are not exhaustive and do not limit the disclosure to the precise forms disclosed. DETAILED DESCRIPTION
[0016] Existing QoS primitives have limitations. For example, priority queues are difficult to scale to a large number of QoS classes (e.g., more than 1,000). In another example, the performance of the policyr may be poor for ordinary Transmission Control Protocol / Internet Protocol (TCP / IP) traffic.
[0017] The example application describes a token bucket with active queue management (TBAQM) that can correspond to a new type of QoS primitive that has better performance than traditional QoS primitives. TBAQM can limit the transmission or acceptance rate of network traffic by not using queues (like most standard QoS primitives) but instead using a policer implemented through a token bucket (e.g., where the policer uses the token bucket state as input). For example, when the policer of TBAQM processes a data packet, it can make an immediate decision to do one of the following: let the data packet pass unmodified, change the header value and then let the data packet pass, or drop the data packet. The action taken is based on the number of tokens in the token bucket and the output of the TBAQM.
[0018] TBAQM also improves upon standard QOS primitives by combining any AQM algorithm designed for queues and relying on a standard queue length or estimated dequeue rate to regulate traffic or data packet processing. For example, TBAQM employs a proportional-integral controller algorithm that replaces the queue length variable with the difference between the token bucket size and the number of tokens, and replaces the estimated dequeue rate with the configured rate of the token bucket.
[0019] The TBAQM QoS primitive can reduce jitter and bursts on the communication network, making TCP traffic flow more smoothly throughout the communication network, minimizing the time that the communication network is oversubscribed, and minimizing the time that TCP cannot use the bandwidth provided by the QoS primitive. In some examples, the TBAQM QoS primitive is an improved policer, and because it is a policer, it can also achieve greater scalability than priority queues.
[0020] Technical improvements are achieved throughout the disclosure. For example, the token bucket with active queue management (TBAQM) described herein can reduce congestion, enable large data packet burst sizes to improve data packet transmission efficiency across the network, and reduce data packet loss. This can improve data networks as a whole. These technical improvements can also be achieved by users who rely on communication networks. For example, real-time applications (e.g., streaming video) will be less frequently affected by high network usage, and data packet loss or network transmission hiccups from TCP applications can be reduced.
[0021] In addition, TBAQM can also create scalable QoS primitives with good TCP congestion control performance. It can replace the traditional token bucket, is less sensitive to the configuration of burst size, better regulates TCP throughput, and better supports burst traffic.
[0022] Furthermore, TBAQM can be implemented in hardware and software in any network device to implement QoS control and rate limiting. When implemented by processing data packets as services, TBAQM can improve the QoS provided to users, enabling users to better manage their networks. Improved scalability can be associated with a more fine-grained QoS implementation and can support a large number of tenants or applications.
[0023] Figure 1 Some conventional forms of implementing a communication network using QoS policies according to some examples of the present disclosure are shown.In an illustrative computing environment 100, a sender computing device 110, a network 120, and a receiver computing device 130 are provided.
[0024] In this illustration, a sender computing device 110 sends one or more data packets to a recipient computing device 130 via a network 120 (shown as a first network 120a and a second network 120b). The sender computing device 110 and the recipient computing device 130 (e.g., client, server) can be endpoints in a communication network that connects endpoints. Various sender computing devices can send data packets to various recipient computing devices, although a single sender computing device and a single recipient computing device are provided for simplicity of illustration.
[0025] The computing environment 100 can connect these and other computing devices (e.g., client devices or servers) to forward data packets and allow data transmission between the sender computing device 110 and the recipient computing device 130 via the network 120. Each of these devices can forward data packets from a source to a destination, whether the source is the original device that generates the data packet or the original recipient that will ultimately receive the data packet. Each of these devices can exist along a network path that spans multiple network devices.
[0026] The default forwarding behavior of the network device computing environment 100 may correspond to a "best effort" for transmitting data packets. Each data packet is forwarded in the same manner, so each user in the network can receive the same level of service when transmitting data. The best effort of the network is often based on data packets, so each user has the same chance to forward a data packet.
[0027] The computing environment 100 can enable data packet transmission using QoS policies. The QoS policies can provide different levels of service for data packets transmitted via the network 120. In some examples, the QoS policies can correspond to multiple QoS classes or QoS policies, where each QoS class is a management unit of the QoS policy. Each QoS class can also correspond to a different service level. For example, one QoS class may receive a higher priority, higher bandwidth, or lower latency than another QoS class. Traffic from users and network devices can be associated with various QoS classes based on complex policies implemented by the network device 140.
[0028] The network device 140 can be roughly divided into three parts, including a QoS controller 142, a QoS classifier 144, and a QoS primitive 146. In some examples, the QoS controller 142 is implemented outside the network device 140, and a single QoS controller 142 can manage multiple QoS devices. In some examples, the QoS primitive 146 can include a scheduler. In some examples, the network device 140 can be considered to include these three QoS related parts, the QoS controller 142, the QoS classifier 144, and the QoS primitive 146. The QoS primitive 146 typically processes packets, implements QoS classes, and implements QoS policies. The QoS primitive 146 can decide what is the packet priority, when the packet will be forwarded, or whether the packet should be discarded. The QoS primitive 146 can be manually configured by an administrator or dynamically configured by the QoS controller 142.
[0029] QoS controller 142 is configured to manage QoS policies. It can assign classes to users based on identity, user needs, and QoS policies, and can verify that users have not violated the terms of the policies. It can manage QoS policies and can change the overall allocation of network resources to meet the goals of each policy. In some examples, QoS controller 142 is not implemented programmatically, and a network administrator statically configures QoS policies in network devices.
[0030] The QoS classifier 144 is configured to identify traffic and associate it with its corresponding QoS class. There are many different ways to implement such a classifier. In some cases, an application on a sending device can mark its traffic with a QoS class, such as by setting the Differentiated Services Code Point (DSCP) field of the TCP header with an appropriate value. In other examples, a network device can use sophisticated packet parsing and deep packet inspection to infer the QoS class from the traffic itself.
[0031] QoS primitives 146 can be implemented with network devices that process packets, implement QoS classes, and enforce QoS policies. It can decide what is the packet priority, when a packet can be forwarded, or whether a packet should be dropped. QoS primitives can be manually configured by an administrative user, or dynamically configured by a QoS controller 142.
[0032] In some examples, computing environment 100 can implement one or more network queues and schedules in QoS primitives 146. A scheduler can be part of a QoS primitive. A scheduler can be implemented with a queue or a set of queues and can decide in what order to process packets and how often to process packets. With a suitable set of queues and QoS classifiers, very complex and sophisticated QoS policies can be implemented.
[0033] Figure 2 The use of active queue management (AQM) techniques to process packets to be added to a queue according to some examples of the present disclosure is shown. In this diagram 200, active queue management (AQM) 230, queue 240, and scheduler 250 are provided to process one or more packets 202 in the updated QoS primitive 210 of the network device 140. The remaining devices and networks can remain similar to Figure 1 The illustrative example shown includes a sender computing device 110 , a network 120 , a recipient computing device 130 , and other components associated with a network device 140 (eg, a QoS controller 142 and a QoS classifier 144 ).
[0034] In some examples, the scheduler 250 can implement prioritization. For example, certain queues are prioritized over other queues. A classifier can determine in which queue a received data packet should be placed. The scheduler 250 can dequeue queues starting with the highest priority queue. These data packets in the high priority queue can be forwarded before data packets in the low priority queue and will experience lower latency.
[0035] In some examples, the scheduler 250 can also control bandwidth. The process of the scheduler controlling bandwidth can include allocating a specific amount of bandwidth to a specific queue, each queue being mapped to a QoS class. This mapping can be managed individually (e.g., by an administrative user) and obtain a specific service level.
[0036] The disadvantages of the queues and scheduler 250 are that they are complex, expensive to implement, and they do not scale to a large number of classes. In theory, for each packet that needs to be forwarded, the scheduler 250 can be configured to consult all queues to make a decision, and the decision scales linearly with the number of queues. To reduce the overhead of the scheduler 250, some schedulers group data into batches rather than dequeueing them individually, but this reduces the effectiveness of QoS and can introduce performance issues for TCP congestion control.
[0037] The number of queues managed by the scheduler 250 can be a trade-off between the need for more QoS classes and the overhead of having more queues. In most hardware and software implementations, the number of queues may be around 1024. As the number of tenants and applications in a data center continues to increase, such a number is insufficient to provide a QoS class for each tenant or application.
[0038] In some examples, queue 240 is implemented as a first-in, first-out (FIFO) queue. For example, incoming data packets are simply added to the tail of the queue (input), and scheduler 250 removes them from the head of queue 240 (output) for forwarding.
[0039] Some FIFO queues may have a maximum size corresponding to the maximum number of packets or bytes. If packets arrive at a queue faster than scheduler 250 can process them, packets may accumulate in the queue and the queue may become longer. When a queue is full, incoming packets may be dropped, which is sometimes referred to as "tail drop." When network traffic surges, the queue may need to be large enough to handle the burst of traffic in normal operation without dropping too many packets.
[0040] In some examples, tail drops can be avoided. Some reasons for avoiding tail drops are that the dropped packets can be retransmitted to avoid losing data contained in the packets. This retransmission can take additional time and slow down the processing of other packet transmissions. Therefore, congestion caused by packet drops can indicate that too many packets are being sent to a queue using network 120.
[0041] Some conventional systems use versions of TCP congestion control that rely solely on packet loss values as a way to adjust the rate at which data is sent to avoid network congestion. These versions of TCP congestion control can repeatedly induce tail drops to infer when a network path is congested, and packet loss can identify when the network is congested and initiate TCP congestion control.
[0042] In some examples, tail drops and large queues can cause performance issues for TCP congestion control. With tail drops, TCP congestion control can stop pushing more traffic when the queue is full, so the queue may be close to full on average (e.g., within a threshold of the maximum queue value). This makes queuing delays high because newly transmitted data packets may wait for the entire queue to be processed. Congestion signals indicated by packet drops may wait for the entire queue to be processed, which increases latency in the TCP control loop and can also cause TCP oscillations and starvation.
[0043] In some examples, active queue management (AQM) 230 can make up for the shortcomings of tail drops. AQM 230 can implement congestion signals with lower latency and finer granularity. AQM 230 can add additional processing at queue 240 to drop packets before queue 240 is full. TCP congestion control responds to these losses by reducing its sending rate. The end result is that the sender computing device 110 can slow down data transmission before queue 240 is full, and the average size of queue 240 can be smaller. AQM 230 can reduce the overall latency of packets and congestion signals, which can improve TCP performance.
[0044] In some examples, random early detection (RED) can implement AQM 230. RED can define a drop probability based on queue occupancy. For example, when queue 240 is almost empty, the probability value may be close to zero, and packet loss may be very unlikely. When queue 240 is almost full, the probability value may be higher, and packet loss may be more likely.
[0045] Other processes may also implement AQM 230, such as Blue, Adaptive Random Early Detection (ARED), Proportional Integral Controller Enhancement (PIE), and Controlled Delay (CoDel). In these processes, the queue 240 may be maintained at a low occupancy by preventively and proactively dropping packets. The probability of dropping may be based on the queuing delay. For example, CoDel attempts to maintain the queue delay for data packets below a configured threshold.
[0046] In some examples, using AQM 230 can reduce packet loss, but may not completely eliminate packet loss because packet loss slows down TCP congestion control. Explicit congestion notification (ECN) can add a mechanism to the TCP protocol to carry congestion signals without dropping packets. A bit or flag in the TCP header portion of the packet can be updated from zero to 1 to indicate congestion. For example, the sender computing device 110 can set the bit to zero. In some examples, other network devices can also experience congestion by setting the bit or flag. When the receiving computing device 130 can reflect the bit to the sender computing device 110. If the sender computing device 110 sees the bit set, it can assume that congestion exists and reduce its sending rate as if the packet was dropped.
[0047] In some examples, ECN can be combined with a form of AQM 230 without the implementation of tail drop. When AQM 230 detects congestion at queue 240 and the packet supports ECN, the sender computing device 110 can set the ECN bit in the TCP header to signal the congestion instead of dropping the packet.
[0048] However, not all implementations support ECN. Therefore, when the network experiences congestion, a device implementing AQM 230 can mark packets that need to carry congestion signals. If the packet supports ECN, the packet can be marked. This marking can result in modifying the packet to set the ECN bit. Otherwise, marking the data may cause the packet to be dropped.
[0049] The ECN bit can identify congestion in the network and replace packet loss. The ECN bit can have statistical properties. Specifically, packet loss can be low to avoid network inefficiency, so the probability of AQM 230 dropping a packet or setting the ECN bit can be low (e.g., about 1% to 2% in practice).
[0050] Having such a low probability of a congestion signal may be problematic in practice. For fairly strong congestion levels, a congestion signal may be generated. Congestion may accumulate for some time before an ECN signal is sent. The reaction of the sender computing device 110 to such a signal may be strong because it indicates strong congestion. Therefore, in practice, the signal may not be sent often according to the stored instructions and rules. This may result in delays when notifying the sender computing device 110 of a new congestion level. Such delays can make the overall feedback loop of the control system quite slow and unstable.
[0051] In some examples, the Signal Congestion Experience (SCE) process can be implemented as a more fine-grained congestion signal. For example, SCE may correspond to the adaptation of congestion signals in Data Center TCP (DCTCP) regardless of packet loss. In an implementation of SCE, bits / flags can be sent more frequently than ECN and can be associated with lower congestion levels. In some examples, the probability of SCE in a packet stream can encode the actual congestion level in the network. SCE can help TCP congestion control adapt to actual congestion closer and faster, for example, by identifying network congestion without waiting until the queue is full.
[0052] Figure 3 The use of a PI controller according to some examples of the present disclosure using an active queue management (AQM) technique to process data packets to be added to a queue is shown. For example, a proportional integral controller enhancement (PIE) or a proportional integral (PI2) algorithm using square improvements may be used to add processing packets to a queue, which may correspond to an AQM technique using a PI controller.
[0053] In the illustrative example 300, PIE and PI are shown. 2 AQM both. For example, when packets arrive, the PI controller 350 can calculate the marking probability 'p' of the data packet and can estimate the queuing delay 342. The queuing delay 342 can be based on the length of the queue 370 and the estimated dequeue rate 340. The PI controller 350 can then compare the queuing delay 342 to the target delay 322 and determine the difference between the queuing delay 342 and the target delay 322. The standard policer may not implement the marking probability based on the number of tokens, or implement the second action based on the marking probability.
[0054] The PI controller 350 may calculate a probability 'p' 360 of marking a packet based on the difference between the queuing delay 342 and the target delay 322 and using parameters α and β. For example, α and β may configure the reaction strength of the PI controller 350. In some examples, α and β may be adjusted so that the PI controller 350 reacts fast enough but does not over-react.
[0055] The drop probability 'p' is compared 324 to the pseudo-random process 320. This comparison can help decide whether to mark the incoming packet. If the incoming data is determined to be marked, the marking block 330 will mark the data packet by "dropping the data packet" or "changing the ECN bit in the header". If the incoming data packet is determined to be unmarked, it is passed to the queue 370 without modification.
[0056] In some examples, a proportional-integral (PI) controller 350 may be implemented with the computing environment 300 to assist the sender computing device 310 and the receiver computing device 312. The PI controller 350 may maintain a process variable (PV) at a particular set point (SP). For example, the PI controller 350 may measure an error (e.g., the difference between the PV and the SP) and include two feedback components, one proportional to the error and one using the integral of the error. The proportional component may provide a larger correction when the two values are far apart, and a smaller correction when the two values are close (e.g., within a threshold). The integral component may eliminate bias in sensing and actuation by tracking how the proportional component deviates from a target.
[0057] Proportional Integral Enhancement (PIE) processing can apply PI controller 350 and control theory to AQM. The goal of PI controller 350 is to maintain the queuing delay 342 of data packets below a specific duration. PIE may not directly affect the sending rate of packets at the sender computing device 310, so PI controller 350 can use packet loss or set ECN to generate congestion signals to achieve its goals. In some examples, queuing delay 342 may not be measured, but inferred from queue length 370 and estimated output rate of queue 340. PIE processing can derive the optimal data packet marking probability from the predicted queuing delay 342. Packet marking can be achieved by dropping data packets or setting ECN bits in the header of the packet.
[0058] PI 2 The process can improve the PIE by implementing the same PI controller 350 and changing the formulas and heuristics to derive a more general and simpler packet label. 2 Processing can produce more fine-grained congestion signals, which is somewhat similar to SCE processing.
[0059] In some examples, a rate limiter is implemented in the QoS primitive 146 of the computing environment 100. Rate limiting may help enforce network policies. For example, a rate limiter may be used to confirm that traffic does not exceed a certain rate. This may be implemented for policy reasons (e.g., as a result of a contractual agreement) or to smooth the burstiness of traffic across the network.
[0060] Rate limiting can be implemented as a shaper. A shaper can correspond to a queue where the scheduler can process packets that do not exceed the committed rate. Queues in a shaper can help handle traffic bursts and smooth traffic, but can also increase latency. The behavior of a shaper can be similar to the other queues discussed in this article and can correspond to the same scalability issues.
[0061] Rate limiting can be implemented as a meter or a policer. A policer can enforce a committed rate by dropping excess traffic. A policer may not have queues. Instead, a policer can process packets immediately and decide whether they should be kept, dropped, or have certain parts of the header modified.
[0062] One of the challenges facing policers is how to handle the common burstiness of traffic. For example, if traffic arrives in bursts, the instantaneous rate during the burst may exceed the committed rate. If traffic arrives between bursts, the policer may be idle for a while and the instantaneous rate may be below the committed rate. In some examples, the policer can include a burst mechanism that allows bandwidth utilization to be averaged across bursts. The policer can also allow traffic to exceed the committed rate for short periods of time as long as the average value of the traffic does not exceed the committed rate over a longer period of time.
[0063] In some examples, a token bucket or a leaky bucket may be implemented. A token bucket may implement a rate limiter, a shaper (e.g., using a queue), or a policer (e.g., with dropped data packets). A leaky bucket may be similar to a token bucket used as a shaper.
[0064] Figure 4 Processing data packets, refilling tokens, and removing tokens from a policer implemented using a token bucket are shown according to some examples of the present disclosure. As described herein, an illustrative policer 400 includes a token bucket 405 having a plurality of tokens 415 added to and removed from the token bucket 405.
[0065] Token bucket 405 of policer 400 may attempt to enforce a long-term rate (e.g., sometimes referred to as a target rate or committed rate) for traffic passing through it. This enforcement may be achieved by dropping data packets that exceed the committed rate. Some network traffic may be discrete (e.g., data packets may not be fragmented) and bursty, so token bucket 405 may include a mechanism for averaging enforcement.
[0066] Policer 400 may perform action 425 on the data packet. Action 425 may enforce existing rules to, for example, retain, drop, or modify the data packet in some manner (e.g., the header of the packet). In some examples, action 425 may be implemented by dropping packets that exceed the committed rate. Alternatively, action 425 may be implemented by changing a drop precedence value in a DSCP field of a packet header, which may cause those packets to be dropped in subsequent processing.
[0067] The token bucket 405 may be a container for virtual credits or tokens 415 that may allow for smoothing and averaging of transient variations in incoming traffic. For example, when a data packet is ready to be forwarded, at block 410, a plurality of credits or tokens 415 may be removed from the token bucket 405.
[0068] In some examples, action 425 may be performed based on the number of tokens in token bucket 405. If token bucket 405 is empty (e.g., zero tokens), then no tokens may be removed and the packet may be discarded as action 425. At block 420, token bucket 405 may be refilled with tokens 415 at a constant rate (e.g., a desired committed rate), and the size of token bucket 405 may correspond to a burst size (BS) and / or a maximum capacity. When token bucket 405 is full, new tokens may be discarded so that the token bucket does not grow beyond its maximum size BS and prevents excessively long bursts of packets.
[0069] Token bucket 405 can produce changes in instantaneous output rate. If the input traffic rate is lower than the target rate for a period of time, token bucket 405 can become full. If new traffic arrives at token bucket 405, as long as there are available tokens in token bucket 405, its output rate can be unrestricted. The burst of data packets can have a rate (e.g., burst rate) far higher than the target rate. When token bucket 405 is finally empty, the target rate can be enforced on traffic and / or other new data packets. In some examples, controller 400 does not have a queue for handling traffic changes and bursts (e.g., on the contrary, it has token bucket 405). In these examples, token bucket 405 can use a burst mechanism to allow traffic to exceed its committed rate in a short period of time.
[0070] In some examples, policer 400 may not have queues to handle traffic variations and bursts (e.g., Figure 2 and Figure 3 405). Instead, the policer 400 may use a burst mechanism to allow traffic to exceed its committed rate for a short period of time. This configuration of the burst mechanism is accomplished using a burst size BS, i.e., the maximum number of tokens that can be accumulated in the token bucket 405. The burst size BS may represent the number of packets or bytes.
[0071] The configuration of the burst mechanism may sometimes result in poor performance of the policer. When the burst size BS is too small, the policer 400 may not adapt to the common traffic bursts. For example, the tail end of the traffic burst may exceed the number of tokens available in the token bucket 405, and the tail end of the packet may be dropped. The packet drop has an impact on TCP, thereby reducing the sending rate. On the other hand, the idle time between bursts may not be fully attributed to the rate average because not enough tokens are accumulated in the token bucket 405. In this case, the policer may not be fully utilized and the traffic may not fully utilize the committed bandwidth.
[0072] When the burst size BS is too large, the policer 400 may generate long sequences of data packets that exceed the committed rate. During the duration of the burst, the policer 400 may not protect the network downstream from excessive traffic, and the long sequence may affect the QoS of other traffic competing downstream. Excess traffic may overflow the downstream queue. In some examples, the long sequence may also increase TCP's reaction time because TCP may take more time to see congestion losses. This may make TCP congestion control unstable because TCP sees congested and non-congested paths alternately.
[0073] The burst size BS may be configured as a tradeoff between being too small and being too large. Some of these tradeoffs may depend on traffic characteristics, such as the type of TCP congestion control, the total round trip time for that particular path, and the timing behavior of other network devices (e.g., devices upstream of policer 400, devices that are unknown in advance, or devices that may vary over time). In some examples, policer 400 may not be configured to provide good TCP performance with minimal impact (e.g., downstream network paths with large bandwidth delays).
[0074] Therefore, conventional network solutions may not be adequate to manage data packet delays (eg, due to the difficulty in managing burst mechanisms, there is a preference to deploy shapers that are more predictable and have better performance).
[0075] The policer 400 can use the token bucket 405 to implement rate limiting of network traffic. For example, the token bucket 405 can immediately make a decision to perform one of the following actions 425: let the packet pass without modification, change the header value and then let the packet pass, or drop the packet. For the system, determining a specific action 425 can be based on the number of tokens in the token bucket 405. In some examples, the action 425 is taken only when the number of tokens in the token bucket 405 is zero. In some examples, the action 425 is taken based on the policer configuration and information present in the data packet header (e.g., the value of the drop priority in the DSCP field of the data packet header or other values in the header of the data packet).
[0076] Figure 5 5 shows different components of a token bucket with active queue management (TBAQM) and how it processes packets according to some examples of the present disclosure. TBAQM 500 can be an updated QoS primitive 502 of network device 140. QoS primitive 502 can implement TPBIC 500. The rest of the devices and networks associated with network device 140 can remain similar to Figure 1 The illustrative example shown includes a sender computing device 110 , a network 120 , a recipient computing device 130 , and other components associated with a network device 140 (eg, a QoS controller 142 and a QoS classifier 144 ).
[0077] In some examples, TBAQM 500 implements Figure 4 4. Because TBAQM 500 implements a policer, it can also achieve greater scalability than priority queues implemented as standard QoS primitives. TBAQM 500 can smooth traffic flows, minimize the time when the communication network is oversubscribed, and minimize the time when TCP cannot use the bandwidth provided by certain QoS primitives implemented in other systems, such as using Figure 4 Token bucket policer 400 shown in FIG. 4 , as described herein.
[0078] TBAQM 500 may be an improved QoS primitive 502 to rate limit traffic using token buckets 505 and PI controller 545 to generate fine-grained congestion signals and better interact with TCP congestion control. TBAQM 500 may improve traffic queues and policers by having great scalability and good performance for TCP traffic. TBAQM 500 may implement the following processes: (1) rate limit traffic to the configured bandwidth, (2) integrate into existing QoS frameworks, (3) increase scalability to help support a large number of QoS classes without degrading performance and limiting implementation footprint, (4) improve performance with maximum TCP traffic throughput close to the configured bandwidth, and maintain QoS downstream of TBAQM 500 in a small time frame.
[0079] Token bucket 505 is implemented with TBAQM 500. Token bucket 505 can help implement rate limiting of network traffic by not using queues, but using policer 560 that takes the state of token bucket 505 as input. For example, when the policer processes a packet, it can immediately make a decision at 525, 570 to perform one of the following actions: let the packet pass unmodified, change the header value and then let the packet pass, or drop the packet. The action taken is based on the number of tokens in the token bucket and the output of the TBAQM.
[0080] In some examples, action 525 can perform actions similar to those described with action 425 in Figure 425. For example, action 525 can implement existing rules to, for example, retain, discard, or modify data packets in some manner (e.g., the header of the packet). In some examples, action 525 can be implemented by discarding packets that exceed the committed rate. Alternatively, action 525 can be implemented by changing the discard priority value in the DSCP field of the packet header, which can cause those packets to be discarded in subsequent processing.
[0081] In some examples, action 570 may differ from action 525 in the timing of performing various actions. For example, whether action 570 is taken is based on the output of PI controller 545. Which action 570 is performed may be based on the configuration of TBAQM 500.
[0082] In some examples, by using token bucket 505, TBAQM 500 can use action 570 to implement early loss, rather than waiting for the burst mechanism to run out of tokens and applying action 525. For example, token bucket 505 can implement a burst mechanism to average out burst traffic. Experience with AQM and queues shows that TCP can perform better when congestion signals (e.g., bit / flag or packet loss) are transmitted before determining that the queue is full. Similarly, TCP can perform better when TBAQM 500 transmits congestion signals earlier than when determining that the token bucket has run out of tokens.
[0083] In some examples, the solution to resolve congestion may be more gradual and proportional to the level of congestion. In this way, congestion signals may be sent to sender device 110 earlier than conventional policers so that TBAQM 500 may begin signaling congestion before token bucket 505 runs out of tokens.
[0084] The TBAQM 500 can provide good TCP performance, although the performance of TCP congestion control on complex network paths is difficult to predict. There are many variations of TCP congestion control, and the system may not know which TCP congestion control is used by each traffic source using the token bucket. In addition, TCP congestion control can be a moving target as new TCP congestion controls are designed to better take advantage of modern networks and AQM.
[0085] The TBAQM 500 may be similar to an existing AQM process that implements queues instead of token buckets as described herein. The TBAQM 500 may replace queues with token buckets 505, which may respond to congestion in the same manner as queues with AQM, but improve upon queues in that it may allow for smoothing and averaging of instantaneous variations in input traffic. In other words, the profile of congestion signals at different congestion levels may be similar to that of an AQM queue. In this way, the TBAQM 500 may take portions of an existing AQM designed for queues and adapt them to work in the context of token buckets, while also creating new attributes that rely on traditional queue attributes.
[0086] An illustrative process for using TBAQM 500 is also provided. For example, at block 520, tokens may be added to token bucket 505 (eg, as an initial step). In some examples, tokens may be added based on a configured rate and tokens may be subtracted based on data packets processed at block 510.
[0087] When the token bucket 505 receives the data packet 515 , the TBAQM 500 may determine whether there are remaining tokens in the token bucket 505 .
[0088] If there are available tokens, TBAQM 500 may calculate a marking probability 545 based on the number of remaining tokens. In some examples, marking probability 545 may correspond to a PIE or PI implemented by TBAQM 500. 2 Processing to calculate a marking probability 545 based on the number of tokens. In some examples, the marking probability 545 can correspond to an algorithm that increases the probability as the number of tokens decreases.
[0089] In some examples, the TBAQM 500 may determine whether to mark a data packet. The TBAQM 500 may use a pseudo-random process 550 to decide whether a data packet must be marked. The pseudo-random process may be based on a marking probability.
[0090] In some examples, the TBAQM 500 may allow packets to be passed unmodified to the recipient computing device 130. This block may allow packets to be passed in an unmodified state without dropping data packets or marking packets.
[0091] In some examples, TBAQM 500 may determine whether packet marking is enabled in a data packet and / or whether packet marking is implemented and configured in TBAQM. A determination from this block may drop a received packet as an action 570 or change a value in a header of a received data packet as an action 570.
[0092] In some examples, as action 570, TBAQM 500 can be statically configured to only drop packets or only perform ECN (e.g., change the header value of the received packet). In another example, packet marking can be performed by changing one or more other fields in the packet header. For example, action 570 modifies the SCE bit of the Type of Service (ToS) field header in the packet header. In other examples, action 570 modifies the drop priority in the DSCP field in the packet header. In another example, a bit in the packet TCP header indicates whether this TCP connection supports ECN. If ECN support is indicated, ECN marking is used. If ECN support is not indicated, packet dropping is used.
[0093] In some examples, the packet may be dropped and not sent to the recipient computing device 130, as act 570. Otherwise, a packet value in the header may be changed, as act 570. For example, a bit or flag in the TCP header portion of the data packet may be updated from 0 to 1 to indicate congestion, as act 570. Once the data packet value is changed, the packet may be sent from the TBAQM 500 to the recipient computing device 130, as act 570.
[0094] In some examples, the AQM process may be re-implemented in TBAQM 500, where the queue length variable is replaced by the difference between the size of token bucket 505 and the number of tokens.
[0095] For example, using the correlation between the policer and the tail-drop queue, the conventional AQM process can be at least partially adapted to the token bucket implementation. Then, the strategy for implementing the AQM process can be applied to the tail-drop queue corresponding to the token bucket. For example, the AQM process measures certain properties of the queue, so if the policer is replaced with the corresponding tail queue, then certain properties of the corresponding queue may also be relevant to the AQM process.
[0096] exist Figure 5 In the process, the token bucket 505 with rate TR, burst size BS (maximum number of tokens) and current number of tokens tn can be assumed. For simplicity, it is assumed that TR is provided in the form of data packets per second, and data packets arrive at the token bucket at rate SP. If queues are implemented instead of token buckets 505, the corresponding queues will have a maximum size BS. Data packets can be removed from the queue at rate TR, and the queue size will be Qn.
[0097] If SP is greater than TR (block 560), tokens may be consumed at rate SP at block 510 and replenished at rate TR at block 520, thus reducing at a net rate of SP-TR until Tn reaches zero. If queues are implemented instead of token buckets 505, the corresponding queues will be filled at rate SP and emptied at rate TR. Before Qn reaches BS, the net increment may correspond to SP-TR. For token buckets, once Tn reaches zero, the committed rate may be applied and packets may be dropped at rate SP-TR. For queues, once Qn reaches BS, the queue may be full (in tail drop mode) and packets may be dropped at rate SP-TR.
[0098] If SP is less than TR, tokens may be replenished at rate TR at block 520 and consumed at rate SP at block 510, so the net increase rate may be TR-SP until Tn reaches BS. If queues are implemented instead of token buckets 505, the corresponding queues may be emptied at rate TR and filled at rate SP, so the net decrease may be TR-SP until Qn reaches zero. For token buckets, no loss occurs if Tn is not zero. For queues, no loss occurs if Qn is not BS.
[0099] Therefore, with respect to loss, the token bucket 505 can behave as a tail drop queue of the same size and the same rate, corresponding to Qn=BS-Tn. This correlation can be applied to the loss and queue size between the token bucket and the queue, and the delay and burst of data packets may be different between the token bucket and the queue. The calculation of the queue delay can depend on the queue size Qn and the rate TR. The correlation between the queue and the token bucket can also be applied to the input of the queue (e.g., packets are allowed to enter the queue), while the output of the token bucket and the output of the queue can be different (e.g., the queue increases the delay).
[0100] The TBAQM 500 may also apply AQM processing to the state of the corresponding queue that matches the state of the token bucket 505. In some examples, a somewhat CoDel-like process may be implemented (e.g., not a CoDel process because it is difficult to adapt to a token bucket). For example, on a periodic basis, CoDel may drop data packets from the output of a queue. This may be implemented with the TBAQM 500, where data packets are dequeued.
[0101] Utilizing PIE and PI 2 , when the queue receives a data packet, processing can be completed at the input end of the queue. When a data packet is received, PIE or PI 2 The process decides whether it should be marked (e.g., discarded or modified) or queued. Most of the processing is on the input side of the queue, which makes these processes highly compatible with token buckets.
[0102] In some examples, PIE and PI 2 The queue length and queue output rate are measured to estimate the queue delay. In contrast, for a token bucket, the length of the corresponding queue is the difference between the bucket size and the number of tokens. For TBAQM 500 implementing token bucket 505, PIE and PI are replaced by BS-TN. 2 The length of the queue being processed.
[0103] In some examples, PIE and PI 2The average dequeue rate of the queue can be used. In the corresponding queue, data packets cannot be dequeued at a rate greater than TR (e.g., the committed rate of the token bucket 505). The average output rate of the token bucket (e.g., when busy) is its committed rate TR, so that the output rate of the corresponding queue is the same and the rate cannot exceed TR. If the input rate is lower than TR and the queue is temporarily empty, the rate can be less than TR.
[0104] However, since the queue is temporarily empty, this may lead to queue starvation and affect PIE and PI 2 In some examples, the estimate of the delay of packets in a queue assumes the estimated rate when the queue is fully busy processing packets, because any queue starvation will not increase data packet delay. 2 This underestimation of the rate can be ignored, since data packet marking may only be required when the queue is congested. For this reason, TR may be a suitable estimate of the dequeue rate for the corresponding queue, and when PIE and PI are 2 In subsequent processing modeling, the estimated rate can be replaced by TR.
[0105] When the token bucket is congested, packet marking can be implemented. In some examples, the average output rate of the token bucket can correspond to its committed rate. The output rates of the corresponding queues can be the same, so when implementing PIE and PI 2 When processing, the TBAQM can replace the estimated rate with TR. In this way, the TBAQM 500 can include a PIE or PI with a modified 2 The token bucket of the controller 545. The queue length variable can be replaced by the inverse of the number of remaining tokens, BS-Tn. The estimated rate variable can be replaced by the committed rate TR.
[0106] In some examples, PIE and PI 2 The process may also include two configuration parameters, α and β, that facilitate control feedback. The PI controller 545 may be based on either PIE or PI 2 BS-Tn, TR, α and β are processed and used to calculate the marking probability 'p'. These parameters may depend on TCP congestion control and may be implemented with TBAQM 500. For example, PIE and PI 2 Depending on the support of ECN and SCE, the packet may be marked by modifying or dropping the packet in act 570. This may remain the same for token buckets 500 implemented with TBAQM 500. In some examples, TBAQM 500 may generate ECN and SCE signals that can help reduce packet loss.
[0107] With TBAQM 500, a similar approach to PIE and PI can be achieved 2For example, TBAQM500 may implement one or more of the heuristics available in PIE. 2 In the present invention, the marking probability can be used with TBAQM 500 to support multiple types of congestion control (e.g., similar to classic TCP (probability is squared) and DCTCP (probability is not squared)). 2 When applied to token buckets 505 in this manner, they can modify or drop packets just as if the token buckets were replaced by queues, so the impact on TCP can be the same.
[0108] TBAQM 500 can appropriately adjust TCP congestion control by using PIE and PI 2 The TBAQM 500 may improve the policer by signaling congestion (e.g., sending an early congestion signal). In this example, there may be less need to make the burst size of the token bucket 505 smaller because the traditional disadvantages associated with large burst sizes may be less likely to occur. The burst size can be safely increased, which can make the token bucket 505 more friendly to burst traffic and also reduce data packet loss. By using a larger token bucket 505 size and ECN and SCE marking, the TBAQM 500 can regulate TCP traffic with little data packet loss and improve network efficiency.
[0109] Figure 6 2 shows a process implemented by a token bucket with active queue management (TBAQM) according to some examples of the present disclosure. In this diagram, Figure 5 The TBAQM 500 can perform these steps.
[0110] At block 605, the token bucket 505 may be implemented with the TBAQM 500. In this initial step, tokens may also be added to the token bucket based on a configured rate and subtracted based on the data packets processed.
[0111] At block 610 , the token bucket 505 may receive a data packet.
[0112] At block 615, the TBAQM may determine whether there are remaining tokens in the token bucket. If there are no remaining tokens, the process may proceed to block 620. If there are remaining tokens, the process may proceed to block 625.
[0113] At block 620, the received data packet is discarded.
[0114] At block 625, if there are available tokens, the TBAQM may calculate a marking probability based on the number of remaining tokens. In some examples, the marking probability may correspond to a PIE or PI implemented by the TBAQM. 2Processing to calculate a marking probability based on the number of tokens. In some examples, the marking probability can correspond to an algorithm that increases the probability as the number of tokens decreases.
[0115] At block 630, the TBAQM may determine whether to mark the data packet. The TBAQM 500 may use a pseudo-random process to decide whether the data packet must be marked. The pseudo-random process may be based on a marking probability. If yes, the process may proceed to block 635. If no, the process may proceed to block 640.
[0116] At block 635, the TBAQM may allow the packet to be passed unmodified to the recipient computing device 130. This block may allow the packet to be passed unmodified, without dropping the packet and without marking the packet.
[0117] At block 640, the TBAQM may determine whether packet marking is enabled in the data packet and / or whether data packet marking is implemented and configured in the TBAQM 500. The determination from this block may discard the received data packet or change a value in the header of the received data packet. If yes, the process may proceed to block 650. If no, the process may proceed to block 645.
[0118] Various implementations are possible for block 640. For example, the TBAQM may be statically configured to only drop data packets or to only perform ECN. In another example, a bit in the data packet TCP header indicates whether this TCP connection supports ECN. If ECN support is indicated, ECN marking is used. If ECN support is not indicated, data packet dropping is used.
[0119] At block 645 , the data packet may be discarded and not sent to the recipient computing device 130 .
[0120] At block 650, a packet value in the header may be changed. For example, a bit or flag in the TCP header portion of the data packet may be updated from 0 to 1 to indicate congestion. Once the packet value is changed, the data packet may be transmitted from the TBAQM to the receiving computing device 130.
[0121] In some examples, an AQM process may be implemented in which the queue length variable is replaced by the difference between the bucket size and the number of tokens.
[0122] For example, conventional AQM processing can be adapted, at least in part, to a token bucket implementation using a correlation between a policer and a tail-drop queue. The strategy for implementing the AQM processing can then be applied to the tail-drop queue corresponding to the token bucket. For example, the AQM processing measures certain properties of the queue, so if the policer is replaced with a corresponding tail-drop queue, certain properties of the corresponding queue may also be relevant to the AQM processing.
[0123] In this illustration, it is assumed that the token bucket has a rate TR, a burst size BS (maximum number of tokens), and a current number of tokens Tn. For simplicity, it is assumed that TR is provided in the form of data packets per second, and data packets arrive at the token bucket at a rate SP. The corresponding queue will have a maximum size BS. Data packets can be removed from the queue at a rate TR, and the queue size will be Qn.
[0124] If SP is greater than TR, tokens may be consumed at rate SP and replenished at rate TR, so the net reduction rate is SP-TR before Tn is zero. In the corresponding queue, it is filled at rate SP and emptied at rate TR. Before Qn is BS, the net increase may correspond to SP-TR. For the token bucket, once Tn is zero, the committed rate may be applied and data packets may be dropped at rate SP-TR. For the queue, once Qn is BS, the queue may be full (in tail drop mode) and data packets may be dropped at rate SP-TR.
[0125] If SP is less than TR, tokens can be replenished at rate TR and consumed at rate SP, so the net increase rate can be TR-SP before Tn is BS. In the corresponding queue, it can be emptied at rate TR and filled at rate SP, so the net decrease can be TR-SP before Qn reaches zero. For the token bucket, if Tn is not zero, no loss will occur. For the queue, if Qn is not BS, no loss will occur.
[0126] Thus, with respect to loss, the token bucket may behave as a tail drop queue of the same size and the same rate, corresponding to Qn=BS-Tn. This correlation may apply to loss and queue size between the token bucket and the queue, and the delay and burst of data packets may be different between the token bucket and the queue. The calculation of the delay of the queue may depend on the queue size Qn and the rate RT. The correlation between the queue and the token bucket may also apply to the input of the queue (e.g., where data packets are allowed to enter the queue), while the output of the token bucket and the output of the queue may be different (e.g., the queue adds delay).
[0127] TBAQM can also apply AQM processing to the state of the corresponding queue that matches the token bucket state. In some examples, a process somewhat similar to CoDel can be implemented (e.g., not CoDel processing because it is difficult to adapt to token buckets). For example, on a periodic basis, CoDel can drop packets from the output of the queue. This can be implemented with TBAQM, where data packets are dequeued.
[0128] For PIE and PI 2, when the queue receives a data packet, all processing is done at the input end of the queue. When a data packet is received, PIE or PI 2 The process decides whether it should be marked (e.g., discarded or modified) or queued. The fact that most of the processing is on the input side of the queue makes these processes highly compatible with token buckets.
[0129] In some examples, PIE and PI 2 The queue length and queue output rate are measured to estimate the queue delay. In contrast, for a token bucket, the length of the corresponding queue is the difference between the bucket size and the number of tokens. For TBAQM, PIE and PI 2 The queue length in process is replaced by BS-Tn.
[0130] In some examples, PIE and PI 2 The average dequeue rate of the queue can be used. In the corresponding queue, data packets cannot be dequeued at a rate greater than TR (e.g., the committed rate of the token bucket). The average output rate of the token bucket (e.g., when busy) is its committed rate TR, so that the output rate of the corresponding queue is the same and cannot exceed TR. If the input rate is lower than TR and the queue is temporarily empty, the rate can be less than TR. However, this may cause queue starvation and have an impact on PIE and PI. 2 In some examples, the estimate of the delay of packets in a queue assumes the estimated rate when the queue is fully busy processing data packets, because any queue starvation will not increase data packet delay. 2 This underestimation of the rate can be ignored, since data packet marking may be required when the queue is congested. For this reason, TR can be a suitable estimate of the dequeue rate for the corresponding queue, and when PIE and P I2 In subsequent processing modeling, the estimated rate can be replaced by TR.
[0131] When the token bucket is congested, packet marking can be implemented. In some examples, the average output rate of the token bucket can correspond to its committed rate. The output rates of the corresponding queues can be the same, so when implementing PIE and PI 2 When processing, TBAQM can replace the estimated rate with TR. In this way, TBAQM can include PIE or PI with modification 2 The token bucket of the controller. The queue length variable can be replaced by the inverse of the number of remaining tokens, BS-Tn. The estimated rate variable can be replaced by the committed rate TR.
[0132] In some examples, PIE and PI 2The process may also include two configuration parameters, α and β, that help control feedback. These parameters may rely on TCP congestion control and may be implemented with TBAQM. For example, PIE and PI 2 Data packets may be marked by modifying or dropping them, depending on the support for ECN and SCE. This may remain unchanged for token buckets implemented using TBAQM. In some examples, TBAQM may generate ECN and SCE signals that help reduce data packet loss.
[0133] A certain degree of similarity to PIE and PI can be achieved through TBAQM 2 For example, TBAQM can implement one or more heuristics available in PIE. 2 In , marking probabilities can be used with TBAQM to support multiple types of congestion control (such as classic TCP (probability is squared) and DCTCP (probability is not squared)). 2 When applied to token buckets in this way, they can modify or drop data packets just as if the token buckets were replaced by queues, so the impact on TCP is the same.
[0134] TBAQM can improve PIE and PI by properly adjusting TCP congestion control. 2 signal congestion (e.g., it may prematurely implement TCP). In such an example, there may be less need to make the burst size of the token bucket smaller, as the traditional disadvantages associated with large burst sizes may be less likely to occur. The burst size can be safely increased, which can make the token bucket more friendly to bursty traffic and reduce data packet loss. By using a larger bucket size and ECN and SCE marking, TBAQM can regulate TCP traffic with little data packet loss and improve network efficiency.
[0135] It should be noted that the terms "optimize," "optimal," and the like as used herein may be used to refer to making a performance as efficient or perfect as possible or achieving a performance as efficient or perfect as possible. However, as one of ordinary skill reading this document will recognize, perfection may not always be achieved. Therefore, these terms may also include making a performance as efficient or perfect or practical as possible or achieving a performance as efficient or perfect or practical as possible under given circumstances, or making a performance better than that which could be achieved with other settings or parameters or achieving a performance better than that which could be achieved with other settings or parameters.
[0136] Figure 7 Example computing components that can be used to implement a token bucket with active queue management according to various examples are shown. Figure 7For example, computing component 700 may be a server computer, a controller, or any other similar computing component capable of processing data. Figure 7 In an example implementation of , computing component 700 includes a hardware processor 702 and a machine-readable storage medium for 704 .
[0137] The hardware processor 702 may be one or more central processing units, semiconductor-based microprocessors, and / or other hardware devices suitable for retrieving and executing instructions stored in the machine-readable storage medium 704. The hardware processor 702 may fetch, decode, and execute instructions such as instructions 706-712 to control a process or operation for implementing a token bucket with active queue management. Alternatively or in addition to retrieving and executing instructions, the hardware processor 702 may include one or more electronic circuits including electronic components for performing the functions of one or more instructions, such as a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other electronic circuits.
[0138] A machine-readable storage medium, such as machine-readable storage medium 704, may be any electronic, magnetic, optical, or other physical storage device that contains or stores executable instructions. Thus, for example, machine-readable storage medium 704 may be a random access memory (RAM), a non-volatile RAM (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a storage device, an optical disk, etc. In some examples, machine-readable storage medium 704 may be a non-transitory storage medium, where the term "non-transitory" does not include transient propagating signals. As described in detail below, machine-readable storage medium 704 may be encoded with executable instructions, such as instructions 706-712.
[0139] Hardware processor 702 may execute instructions 706 to receive a data packet. For example, a network device including a controller (eg, implementing a token bucket with active queue management (TBAQM)) may receive the data packet. The data packet may be processed by the TBAQM at the network device.
[0140] Hardware processor 702 may execute instructions 708 to adjust the number of tokens associated with the TBAQM. For example, the network device may adjust the number of tokens associated with the TBAQM, where tokens are added based on a configured rate and tokens are subtracted in association with processing data packets.
[0141] The hardware processor 702 may execute instructions 710 to determine the number of tokens associated with the TBAQM. For example, the network device may determine the number of tokens associated with the TBAQM. When the TBAQM has zero tokens, the network device may drop the data packet. When the TBAQM has greater than zero tokens, the network device may determine a marking probability based on the number of tokens.
[0142] The hardware processor 702 can execute instructions 712 to initiate an action. For example, the network device can initiate an action based on the marking probability. As described throughout the disclosure, more than one action can be performed.
[0143] In some examples, the marking probability is based on the number of tokens. The network device can implement a pseudo-random process based on the marking probability; and based on the pseudo-random process, determine that the data packet will be marked as the action.
[0144] In some examples, when the data packet is to be marked, it is determined as an action to drop the data packet. In some examples, when the data packet is to be marked, it is determined as an action to change a value in a header of the data packet.
[0145] Figure 8 A block diagram of an example computer system 800 is depicted in which various examples described herein may be implemented. The computer system 800 includes a bus 802 or other communication mechanism for communicating information, and one or more hardware processors 804 coupled to the bus 802 for processing information. For example, the hardware processor 804 may be one or more general-purpose microprocessors.
[0146] The computer system 800 also includes a main memory 806, such as a random access memory (RAM), cache, and / or other dynamic storage device, coupled to the bus 802 for storing information and instructions to be executed by the processor 804. The main memory 806 may also be used for storing temporary variables or other intermediate information during execution of instructions to be executed by the processor 804. When such instructions are stored in a storage medium accessible to the processor 804, the computer system 800 is presented as a special-purpose machine customized to perform the operations specified in the instructions.
[0147] The computer system 800 also includes a read only memory (ROM) 808 or other static storage device coupled to the bus 802 for storing static information and instructions for the processor 804. A storage device 810, such as a magnetic disk, optical disk, or USB thumb drive (flash drive), is provided and coupled to the bus 802 for storing information and instructions.
[0148] The computer system 800 may be coupled to a display 812, such as a liquid crystal display (LCD) (or touch screen), via the bus 802 for displaying information to a computer user. An input device 814, including alphanumeric and other keys, is coupled to the bus 802 for communicating information and command selections to the processor 804. Another type of user input device is a cursor controller 816, such as a mouse, trackball, or cursor direction keys, for communicating direction information and command selections to the processor 804 and for controlling cursor movement on the display 812. In some examples, the same direction information and command selections as cursor control may be achieved by receiving touches on a touch screen without a cursor.
[0149] The computing system 800 may include a user interface module to implement a GUI that may be stored in a mass storage device as executable software code executed by the computing device. By way of example, this module and other modules may include components, such as software components, object-oriented software components, class components, and task components, procedures, functions, properties, processes, subroutines, program code segments, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables.
[0150] In general, the words "component", "engine", "system", "database", "data storage", etc., as used herein, may refer to logic contained in hardware or firmware, or to a collection of software instructions that may have entry and exit points, which are written in a programming language (e.g., Java, C, or C++). Software components can be compiled and linked into an executable program, installed in a dynamic link library, or written in an interpreted programming language, such as BASIC, Perl, or Python. It should be understood that software components can be called from other components or from themselves, and / or can be called in response to detected events or interrupts. Software components configured for execution on a computing device may be provided on a computer-readable medium, such as a compressed disk, a digital video disk, a flash drive, a magnetic disk, or any other tangible medium, or as a digital download (and may be initially stored in a compressed or installable format that needs to be installed, decompressed, or decrypted prior to execution). Such software code may be stored in part or in whole on a storage device of the executing computing device for execution by the computing device. The software instructions may be embedded in firmware, such as an EPROM. It will also be understood that hardware components may include connected logic units, such as gates and flip-flops, and / or may include programmable units, such as programmable gate arrays or processors.
[0151] The computer system 800 can implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that, in conjunction with the computer system, makes the computer system 800 a special purpose machine or programs it as a special purpose machine. According to one example, the computer system 800 performs the techniques herein in response to the processor 804 executing one or more sequences of one or more instructions contained in the main memory 806. Such instructions may be read into the main memory 806 from another storage medium such as the storage device 810. Execution of the sequences of instructions contained in the main memory 806 causes the processor 804 to perform the processing steps described herein. In alternative examples, hardwired circuitry may be used in place of or in combination with software instructions.
[0152] As used herein, the term "non-transitory medium" and similar terms refer to any medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such non-transitory media may include non-volatile media and / or volatile media. For example, non-volatile media include optical or magnetic disks such as storage device 810. Volatile media include dynamic memory, such as main memory 806. For example, common forms of non-transitory media include floppy disks, flexible disks, hard disks, solid-state drives, tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with hole patterns, RAM, PROMs and EPROMs, FLASH-EPROMs, NVRAMs, any other memory chips or cartridges, and network versions thereof.
[0153] Non-transient media are distinct from, but may be used in conjunction with, transmission media. Transmission media involve the transfer of information between non-transient media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the wires that make up bus 802. Transmission media may also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.
[0154] The computer system 800 also includes a communication interface 818 coupled to the bus 802. The communication interface 818 provides a two-way data communication coupling with one or more network links connected to one or more local networks. For example, the communication interface 818 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, the communication interface 818 can be a local area network (LAN) card to provide a data communication connection to a compatible LAN (or a WAN component that communicates with a WAN). A wireless link can also be implemented. In any such implementation, the communication interface 818 sends and receives electrical, electromagnetic, or optical signals that carry digital data streams representing various types of information.
[0155] A network link typically provides data communication through one or more networks to other data devices. For example, a network link may provide a connection to a host computer or to data devices operated by an Internet Service Provider (ISP) through a local network. The ISP, in turn, provides data communication services through the global packet data communication network now commonly referred to as the "Internet." Both local networks and the Internet use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks and on the network link and through the communication interface 818, which transmit the digital data to and from the computer system 800, are exemplary forms of transmission media.
[0156] Computer system 800 can send messages and receive data, including program code, through the network, network link and communication interface 818. In the Internet example, a server can transmit the requested code for an application program through the Internet, ISP, local network and communication interface 818.
[0157] The received code may be executed by processor 804 as it is received, and / or stored in storage device 810 or other non-volatile storage for later execution.
[0158] Each of the processes, methods, and algorithms described in the preceding sections may be embodied in a code component executed by one or more computer systems or computer processors including computer hardware, and may be fully or partially automated by the code component. One or more computer systems or computer processors may also operate to support the performance of related operations in a "cloud computing" environment or as "software as a service" (SaaS). The processes and algorithms may be implemented in part or in whole in application-specific circuits. The various features and processes described above may be used independently of one another, or may be combined in various ways. Different combinations and sub-combinations are intended to fall within the scope of the present disclosure, and certain methods or process blocks may be omitted in some implementations. The methods and processes described herein are also not limited to any particular sequence, and the blocks or states associated therewith may be executed in other appropriate sequences, or may be executed in parallel, or in some other manner. Blocks or states may be added to or removed from the disclosed examples. The performance of certain operations or processes may be distributed between computer systems or between computer processors, not only residing in a single machine, but also deployed on multiple machines.
[0159] As used herein, any form of hardware, software, or combination thereof may be utilized to implement a circuit. For example, one or more processors, controllers, ASICs, PLAs, PALs, CPLDs, FPGAs, logic components, software routines, or other mechanisms may be implemented to form a circuit. In implementation, the various circuits described herein may be implemented as discrete circuits, or the functions and features described may be shared in part or in whole between one or more circuits. Even if the various features or elements of a function may be described or claimed as separate circuits separately, these features and functions may be shared in one or more common circuits, and such description does not require or imply the need for separate circuits to implement these features or functions. In the case where the circuit is implemented in whole or in part using software, such software may be implemented to operate together with a computing or processing system capable of performing the functions described therein, such as computer system 800.
[0160] As used herein, the term "or" may be interpreted in an inclusive or exclusive sense. In addition, singular descriptions of resources, operations, or structures should not exclude the plural. Conditional language such as "may," "could," "might," or "might," among others, unless otherwise specifically stated or otherwise understood in the context of use, is generally intended to convey that certain examples include, while other examples do not include, certain features, elements, and / or steps.
[0161] Terms and phrases used in this document, and variations thereof, unless expressly stated otherwise, should be construed as open ended, and not limiting. Adjectives such as "conventional," "conventional," "normal," "standard," "known," and terms of similar meaning should not be construed to limit the items described to items available in a given period of time or at a given time, but should be construed to include conventional, traditional, normal, or standard technology available or known at any time now or in the future. The presence of broadening words and phrases such as "one or more," "at least," "but not limited to," or other similar phrases, in certain cases, should not be construed to mean that a narrower context is intended or required where such broadening phrases might not exist.
Claims
1. A computer-implemented method comprising: receiving a data packet at a network device including a token bucket, wherein the data packet is processed by the token bucket at the network device; adjusting a number of tokens associated with the token bucket, wherein the tokens are added based on a configured rate and subtracted in association with processing the data packet; Determining a number of tokens associated with the token bucket includes: When the token bucket has zero tokens, initiating a first action on the data packet, wherein the first action includes discarding the data packet or modifying a header of the data packet; When the token bucket has more than zero tokens: Determine active queue management (AQM) techniques including queue length variables; replacing the queue length variable with the difference between the size of the token bucket and the number of tokens to generate an improved AQM technique; and implementing the improved AQM technique at the network device to determine a marking probability based on the number of the tokens, the marking probability representing a probability of marking the data packet; and A second action is initiated based on the marking probability, wherein the second action includes dropping the data packet or modifying a header of the data packet, or passing the data packet without modification.
2. The method according to claim 1, when the marking probability is determined based on the number of the tokens, the method further comprises: Implementing pseudo-random processing based on the marking probability; as well as Based on the pseudo-random processing, it is determined that the data packet is to be marked as the second action. 3 . The method according to claim 2 , wherein when the data packet is to be marked, it is determined as the first action to discard the data packet. 4 . The method according to claim 2 , wherein when the data packet is to be marked, changing a value in a header of the data packet is determined as the first action.
5. The method of claim 3, wherein determining the marking probability based on the number of the tokens is accomplished using a proportional-integral (PI) controller. The method of claim 1 , wherein the marking probability is determined using an enhanced proportional integral (PIE) algorithm.
7. The method according to claim 1, wherein the marking probability is calculated using a squared improved proportional integral (PI) 2 Determined by the algorithm.
8. The method according to claim 1, wherein the active queue management (AQM) technology further includes a dequeue rate variable, the method further comprising: Replacing the dequeue rate variable with the configured rate of the token bucket to generate a further improved AQM technique; as well as The further improved AQM technique is implemented at the network device to determine the marking probability.
9. A network device comprising: Token bucket; Memory; as well as One or more processors configured to execute machine-readable instructions stored in the memory for performing a method comprising: receiving a data packet, wherein the data packet is processed by the token bucket at the network device; adjusting a number of tokens associated with the token bucket, wherein the tokens are added based on a configured rate and subtracted in association with processing the data packet; Determining a number of tokens associated with the token bucket includes: When the token bucket has zero tokens, initiating a first action on the data packet, wherein the first action includes discarding the data packet or modifying a header of the data packet; and When the token bucket has more than zero tokens: Determine active queue management (AQM) techniques including queue length variables; replacing the queue length variable with the difference between the size of the token bucket and the number of tokens to generate an improved AQM technique; and implementing the improved AQM technique at the network device to determine a marking probability based on the number of the tokens, the marking probability representing a probability of marking the data packet; and A second action is initiated based on the marking probability, wherein the second action includes dropping the data packet or modifying a header of the data packet, or passing the data packet without modification.
10. The network device according to claim 9, when the marking probability is determined based on the number of the tokens, the method further comprises: Implementing pseudo-random processing based on the marking probability; as well as Based on the pseudo-random processing, it is determined that the data packet is to be marked as the second action. 11 . The network device according to claim 10 , wherein when the data packet is to be marked, it is determined to drop the data packet as the second action.
12. The network device according to claim 10, wherein when the data packet is to be marked, changing a value in a header of the data packet is determined as the second action.
13. The network device of claim 10, wherein determining the marking probability based on the number of the tokens is accomplished using a proportional-integral (PI) controller.
14. A non-transitory computer-readable storage medium storing a plurality of instructions executable by one or more processors, which, when executed by the one or more processors, cause the one or more processors to: receiving a data packet, wherein the data packet is processed by a token bucket at a network device; adjusting a number of tokens associated with the token bucket, wherein the tokens are added based on a configured rate and subtracted in association with processing the data packet; Determining a number of tokens associated with the token bucket includes: When the token bucket has zero tokens, initiating a first action on the data packet, wherein the first action includes discarding the data packet or modifying a header of the data packet or letting the data packet pass without modification; When the token bucket has more than zero tokens: Determine active queue management (AQM) techniques including queue length variables; replacing the queue length variable with the difference between the size of the token bucket and the number of tokens to generate an improved AQM technique; and implementing the improved AQM technique at the network device to determine a marking probability based on the number of the tokens, the marking probability representing a probability of marking the data packet; and A second action is initiated based on the marking probability, wherein the second action includes dropping the data packet or modifying a header of the data packet, or passing the data packet without modification.
15. The computer-readable storage medium of claim 14, wherein when the marking probability is determined based on the number of tokens, the plurality of instructions, when executed by the one or more processors, further cause the one or more processors to: Implementing pseudo-random processing based on the marking probability; and Based on the pseudo-random processing, it is determined that the data packet is to be marked as the second action.
16. The computer-readable storage medium of claim 14, wherein determining the marking probability based on the number of tokens is accomplished using a proportional-integral (PI) controller.
17. The computer-readable storage medium of claim 14, wherein the marking probability is determined using an enhanced proportional-integral (PIE) algorithm.
18. The computer-readable storage medium of claim 14, wherein the labeling probability is calculated using a squared improved proportional integral (PI) 2 Determined by the algorithm.
