Giter VIP home page Giter VIP logo

nayanseth / sdn-loadbalancing Goto Github PK

View Code? Open in Web Editor NEW
107.0 107.0 63.0 156 KB

To perform load balancing on fat tree topology using SDN Controller i.e. Floodlight and OpenDaylight.

License: GNU General Public License v3.0

Python 99.53% Shell 0.47%
automation floodlight floodlight-controller load-balancing networking opendaylight opendaylight-controller python rest-api sda sdn software-defined-access software-defined-networking

sdn-loadbalancing's People

Contributors

nayanseth avatar tony-ccie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdn-loadbalancing's Issues

my error while runnig loadbalancing

Hey nayan seth
thanks a lot for great description , But This error is appeared , when I run it

Traceback (most recent call last): File "./loadbalancer.py", line 328, in getResponse(deviceInfo,"deviceInfo") File "./loadbalancer.py", line 19, in getResponse deviceInformation(jData) File "./loadbalancer.py", line 35, in deviceInformation if(i['ipv4']): TypeError: string indices must be integers

Please Explain

capture
Please Explain how to remove the default balancer, and how to run the .sh script

Just for the idea to see if i have not made any mistake

The Destination host can't change.

Hi nayanseth:
I try to change H1 H4 H3 to H1 H5 H6 or H1 H7 H8, I found that the program isn't working. Why can appear such a problem?
1-5-6

how to run loadbalancer.py script

Having problem in running loadbalancer.py script which is step no. 13
already try command ./loadbalancer.py
but couldn't run that file
IS there anything to configure before running this file?

problem about #1 step

Hi,

There you said

1.Remove the official Floodlight Load Balancer.

I used the floodlight v1.2 and found the package named net.floodlightcontroller.loadbalancer, however, if i deleted this package, the floodlight wouldn't work and report the error.
screenshot from 2018-04-12 01-20-08

screenshot from 2018-04-12 01-22-30

Thank you.

Code issue

I can't understand the loadbalancer's code why node < 17.
17 means what..... I don't know where 17 comes from.
The following is the code
def findSwitchRoute():
for currentPath in nx.all_shortest_paths(G, source=src, target=dst, weight=None):
for node in currentPath:
tmp = ""
if node < 17:
pathKey = pathKey + "0" + str(hex(node)).split("x",1)[1] + "::"
tmp = "00:00:00:00:00:00:00:0" + str(hex(node)).split("x",1)[1]

expect your reply .thank you .

run Loadbalance.py

Traceback (most recent call last):
File "LoadBalance.py", line 332, in
loadbalance()
File "LoadBalance.py", line 265, in loadbalance
getLinkCost()
File "LoadBalance.py", line 147, in getLinkCost
getResponse(stats,"linkTX")
File "LoadBalance.py", line 26, in getResponse
response.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 773, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found

the bug when I run loadbalance.py
Help me fix it.
Thank you

loadbalancer.py is not running properly (TypeError: string indices must be integers)

Hi nayan, i was using your sdn load balancing project (i'm using floodlight controller)..while running loadbalancer.py i came across with this "loadbalancer.py is not running properly (TypeError: string indices must be integers)" i have given input as shown i image(which i have attached
1111
) .. in between double quotes..still i'm facing this issue..please help me to resolve this issue.

Load Balancer.py

while running the loadbalancer.py script

the error i get is type error: string indices must be integers
what format i must use for entering the host 1 host 2 and neighboring host
Please Guide

Getting error while executing odl.py file

Traceback (most recent call last):
File "/home/dheeraj/PycharmProjects/ODLPython/odl.py", line 244, in
for path in nx.all_shortest_paths(G, source=int(switch[h2].split(":", 1)[1]), target=int(switch[h1].split(":", 1)[1]), weight=None):
KeyError: '10.0.0.2'

Load balancer not working

Hi,
I followed the steps mentioned for the project. I am using the floodlight controller, and everything works fine until the step where we run the loadbalancer.py file. The file runs properly, and I also get the best path in the output.

However the last 2 steps are not working. I mean in Step 18, we should only see 10.0.0.3 packets, but I see both the packets i.e 10.0.0.3 and 10.0.0.4.

And in the last step, I don't see any packets. I have also properly selected the ports in both the steps.
Could you please help me?

Thanks

TypeError: string indices must be integers

@nayanseth Sir kindly look the issue!
\ubuntu@sdnhubvm:~/sdn-loadbalancing[02:12] (master)$ sudo python loadbalancer.y
Enter Host 1
1

Enter Host 2
4

Enter Host 3 (H2's Neighbour)
3
Traceback (most recent call last):
File "loadbalancer.py", line 328, in
getResponse(deviceInfo,"deviceInfo")
File "loadbalancer.py", line 19, in getResponse
deviceInformation(jData)
File "loadbalancer.py", line 35, in deviceInformation
if(i['ipv4']):
TypeError: string indices must be integers

Loadbalancer.py

while running the loadbalancer.py script

i get an error that import networkx as nx
Import error: no module named networkx

Please Guide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.