Exercises lb: Difference between revisions

Jump to navigation Jump to search
(Created page with "= Exercise: Load balancers = * Setup will be as shown in Figure [https://dl.dropboxusercontent.com/u/1652374/SDN_course_WS2015-2016/Exercises/ex2/Load_balancer-fig.pdf] * (40P) P...")
 
Line 3: Line 3:
* (40P) Pre-defined servers
* (40P) Pre-defined servers
** AIM: Http requests from different clients will be directed to different pre-defined servers
** AIM: Http requests from different clients will be directed to different pre-defined servers
** $ sudo mn --topo single,6 --mac --arp --controller remote
  $ sudo mn --topo single,6 --mac --arp --controller remote
** $ ./pox.py log.level -DEBUG misc.ip_loadbalancer -ip=10.0.1.1 -servers=10.0.0.1,10.0.0.2
  $./pox/pox.py log.level --DEBUG misc.ip_loadbalancer --ip=10.0.1.1 --servers=10.0.0.1,10.0.0.2  
 
** Start HTTP servers on h1, h2
** Start HTTP servers on h1, h2
*** > xterm h1,h2
  mininet> xterm h1
*** h1$ python –m SimpleHTTPServer 80
  mininet> xterm h2
*** h2$ python –m SimpleHTTPServer 80
  h1$ python –m SimpleHTTPServer 80
  h2$ python –m SimpleHTTPServer 80
 
** Get webpage from clients (h3)
** Get webpage from clients (h3)
*** > xterm h3
  mininet> xterm h3
*** h3$ curl 10.0.1.1
  h3$ curl 10.0.1.1
 
** Observe in Pox controller, which server is it connecting to. Continue to obtain webpage from the same client and one other client and observe the results
** Observe in Pox controller, which server is it connecting to. Continue to obtain webpage from the same client and one other client and observe the results
*** Are both servers getting an equal share
*** Are both servers getting an equal share
783

edits

Navigation menu