Skip to content

This project is created using Ryu controller which performs DIJKSTRA algorithm to find best paths, based on traffic flowing through links.

Notifications You must be signed in to change notification settings

akshayxml/SDN-based-Load-Balancing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDN Ryu-Controller -- Load-Balancing with Dynamic-Routing

Project Details:

OpenFlow version used:

OpenFlow 1.3

Description:

This project is created using Ryu controller which performs DIJKSTRA algorithm to find best paths, based on traffic flowing through links. Optimal path is being choosen from possible paths. The costs are being calculated in the background (action performed by thread and the path cost is calculated via network bandwidth calculation.) and optimal path is being updated every second based on the gathered stats. Discover of topology is done automatically so we don't have to have specially prepared topology.

DIJKSTRA ALOGRITHM USED:

We have used Dijkstra algorithm to find the shortest available path from H1 to H2. The algorithm uses min heap functionality to calculate the smallest path cost. Following is the screenshot of the code.

Screenshot

TOPOLOGY USED:

We have created 2 controllers, one controller is for backup. We have created 9 switches for the connection part. All the links are connected as shown in the screenshot. There are 2 hosts in the network topology.

Screenshot

Protocols Configured:

Our Code is configured to use 4 types of protocol. The type of protocol can be found using the header values. The protocols are TCP , UDP , ICMP , ARP. Tcp is used for normal connection. UDP will be used for service packets for buffering. ICMP will be used when the link gets terminated to send a ping regarding link destruction. ARP is used when the host IP is known but MAC is not known.

Screenshot

Screenshot of Running Code:

As you can see in the screenshot the possible paths are calculated and the path will minimum cost is the final cost of the packet transmission.

Screenshot

Screenshot

Commands AND Requirements

  • ryu-manager --observe-links multipath.py (for initializing the RYU controller)

  • sudo mn -c

  • sudo python topology.py (For initializing the topology of the network)

  • Virtual Machine

  • Mininet 2.3.0

  • RYU controller

About

This project is created using Ryu controller which performs DIJKSTRA algorithm to find best paths, based on traffic flowing through links.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages