Patent 7944837 was granted and assigned to Huawei on May, 2011 by the United States Patent and Trademark Office.
A method and system for controlling data flow are provided. The method includes: selecting optional reference data of a flow algorithm to generate configuration information; and performing traffic calculation based on the configuration information to determine hash distribution of the data flow to load balancing links. The flow algorithm is a HASH algorithm. The system includes: a selecting configuring unit, for selecting corresponding reference data according to the optional reference data for the flow algorithm; a controlling information processing unit, for generating a corresponding controlling parameter according to the selected reference data; a forwarding table interface unit, for generating configuration information according to the generated controlling parameter and storing the information in a corresponding forwarding table; a forwarding controlling unit, for completing the traffic calculation according to the configuration information in the forwarding table and determining the hash of the data flow on the load balancing link.