×

ADAPTIVE LOAD BALANCING IN PACKET PROCESSING

  • US 20160182380A1
  • Filed: 04/07/2015
  • Published: 06/23/2016
  • Est. Priority Date: 12/22/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method of forwarding packets in a network device, the method comprising:

  • receiving a packet at the network device;

    assigning the packet to a first packet processing thread from a plurality of packet processing threads;

    determining a state of the first packet processing thread, wherein the state was set based on a monitoring of a length of a queue of the first packet processing thread, and wherein the state is determined to be one of a plurality of states including a backlogged state and a normal state;

    responsive to determining that the state of the first packet processing thread is a normal state, performing the following;

    mapping the packet to the first packet processing thread,processing the packet in the first packet processing thread, andforwarding the packet; and

    responsive to determining that the state of the first packet processing thread is a backlogged state, performing the following;

    mapping the packet to a second packet processing thread from a pool of packet processing threads based on a load balancing scheme, wherein the pool of packet processing threads includes a subset of packet processing threads from the plurality of packet processing threads, and the state of each one of the packet processing threads from the pool is the backlogged state,processing the packet in the second packet processing thread, andforwarding the packet according to a predetermined order, wherein the predetermined order is based on a position of the packet relative to positions of other packets at their receipt in the network device.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×