This is an implementation of a simple Load balancer performing ip.src hashing algorithm and strict priority ToS queueing Simple modifications to the core load balancer algorithm will enable WFQ and other hashing strategies.
- JVM 1.7+
- Maven 3.1.1+:
sudo apt-get install maven - Libpcap:
sudo apt-get install libpcap-dev
- For hardcoded interface values skip the step 2
- If you want to use an interactive menu, uncomment the upper block in:
src/main/java/eu/neclab/loadbalancer/LoadBalancerApp.java - build the project:
mvn clean install
- Create a back-end virtual interface by running
create_interface.sh. - Start the load balancer:
sudo mvn exec:java - For debug mode:
sudo mvn exec:java -X - Enter a front-end IP (e.g. the eth0 IP address with any active tcp connections)
- Dump the back-end interface to observe the load-balanced traffic:
sudo tcpdump -i s1-veth1
This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html.
E-mail: Anton Matsiuk (anton.matsiuk at gmail.com)