nayanseth / sdn-loadbalancing Goto Github PK
View Code? Open in Web Editor NEWTo perform load balancing on fat tree topology using SDN Controller i.e. Floodlight and OpenDaylight.
License: GNU General Public License v3.0
To perform load balancing on fat tree topology using SDN Controller i.e. Floodlight and OpenDaylight.
License: GNU General Public License v3.0
@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
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'
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 .
while running the loadbalancer.py script
i get an error that import networkx as nx
Import error: no module named networkx
Please Guide
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
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
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
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?
Could you upload the load balancing code using the REST API for the ONOS controller?
Thank you!
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
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
) .. in between double quotes..still i'm facing this issue..please help me to resolve this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.