Day 39: Trial 5 - Completion of Phase 1 of Implementation

As discussed in previous article, we shall be achieving what we wanted to on Day 36, by manually assigning VIPs to our load balancers. Once I figure out how to use keepalived, I shall automate the process of switching between master and slave load balancer.

Please refer to the video to refer to the architecture we shall be building. The configuration details are as given below:

The configuration of switches, controller and hosts remain as given in previous posts. Only load balancer cum router configuration has changed from the last few posts:

> sudo ip addr add 10.0.0.10/24 dev enp2s0
> sudo ip addr add 20.0.0.10/24 dev eth2
> sudo ifconfig enp2s0 10.0.0.5 netmask 255.255.255.0
> sudo ifconfig eth2 20.0.0.5 netmask 255.255.255.0
> sudo sysctl -w net.ipv4.ip_forward=1
> sudo sysctl -w net.ipv4.conf.all.send_redirects=0

On active load balancer:
> arping -q -U -c 3 -I enp2s0 10.0.0.5
> arping -q -U -c 3 -I eth2 20.0.0.5

My previous post explains why these steps are necessary. Follow the below video to see how the setup can be achieved.



From my next article, I shall be concentrating on how to duplicate the packets that reach the load balancer and send them to the master controller. I shall also be looking into how to define ACLs in HAProxy to achieve NAT functionality to redirect switch packets to a controller other than the one assigned to it.

Refer to previous and next posts here.

Author: Shravanya
Co-Author: Swati

Comments

Popular posts from this blog

Day 12: Master Slave SDN Controller Architecture

Day 50: Tcpreplay and tcpliveplay approach

Day 10: Mininet Simulation of a basic distributed SDN controller architeture