Abstract:Load balancing algorithm is an important research direction in computer network, which can improve the utilization of network resources by scheduling the traffic in the network. In order to solve the load imbalance problems such as network congestion caused by elephant flow and queue delay of rat flow in the network, the bandwidth and delay weighted load balancing (BD-WLB) algorithm is proposed to improve the load balancing performance. The path calculation method of the traditional algorithm is improved by considering the different traffic characteristics between small and large streams. The algorithm obtains network traffic and state information through the controller. Then the optimal path is calculated for elephant flow and mouse flow respectively by using network state parameters such as bandwidth and delay. P4 language is used to optimize the data plane forwarding process. The experimental results show that the BD-WLB algorithm improves the network throughput by 38.4%, the link utilization by 41.9% and the network delay by 41.8% compared with the ECMP algorithm at high load. It makes better use of network resources and proves the feasibility and effectiveness of BD-WLB algorithm.