Patent ID: 7898959

Claim:
A method for load-balancing traffic in a Link Aggregation Group (LAG) which comprises a plurality of LAG members, the method comprising: generating a logical identity of a packet; associating a weight with each LAG member, the weight corresponding to a percentage of network traffic that is to be assigned to the LAG member, wherein a weight associated with a first LAG member is different from a weight associated with a second LAG member; determining a range of logical identities assignable to the first LAG member according to the weight associated with the first LAG member; and distributing the packet, by a network traffic distributing device, to the first LAG member if the packet's logical identity falls into the range of logical identities assignable to the first LAG member, wherein the determining further comprises: determining a logical identity boundary for the first LAG member, wherein the number of logical identities assignable to the second LAG member is a difference between boundaries of the first LAG member and the second LAG member, wherein the boundary of the range of logical identities is determined using the following equation: R i =R i-1 W i *2 n /W , and wherein i is an LAG member number; R i is a boundary value associated with an LAG member i; W i is a weight associated with an LAG member i: n is the hash index width; and W is the sum of all W i 's associated with valid LAG members.