Patent ID: 7843817

Claim:
A method comprising: receiving packets into one or more; queues in a memory; and using one or more processors to: monitor the one or more queues for congestion; if a number of packets in the one or more queues exceeds a first threshold, determine a congestion control mode; generate a congestion control message indicating the congestion control mode; and transmit the congestion control message to one or more neighboring mesh nodes, wherein determining the congestion control mode comprises: for each of the one or more queues exceeding the first threshold, determining whether there are one or more primary congested nodes; if there are one or more primary congested nodes, entering a first congestion control mode if the number of packets exceeds a second threshold; if there are one or more primary congested nodes, entering a second congestion control mode if the number of packets does not exceed the second threshold; if there are no primary congested nodes, entering a third congestion control mode if the number of packets exceeds a third threshold; and if there are no primary congested nodes and if the number of packets does not exceed the third threshold, entering a fourth congestion control mode.