You just ned make simple code revision to work with INCM packets work in your case. As Murphy suggested, current module is TCP_balancer. Why not try iperf in mininet?
Weiyang 2014-04-10 5:09 GMT-07:00 shads s <shasi0...@gmail.com>: > Hello > > > How do I execute it with only TCP? > > When i give h1 ping h2 in Mininet without the remote POX controller it > executes and gives the following output. > > mn > *** Creating network > *** Adding controller > *** Adding hosts: > h1 h2 > *** Adding switches: > s1 > *** Adding links: > (h1, s1) (h2, s1) > *** Configuring hosts > h1 h2 > *** Starting controller > *** Starting 1 switches > s1 > *** Starting CLI: > mininet> h1 ping h2 > PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. > 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=2.71 ms > 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.202 ms > > But when I run with POX controller why doesn't it ping? > > > On Thu, Apr 10, 2014 at 12:57 PM, Murphy McCauley < > murphy.mccau...@gmail.com> wrote: > >> I think the answer to this is hinted at in a comment in ip_loadbalancer. >> As shipped, it really only works with TCP. I think it'd be easy enough to >> make it work with ICMP, but... why bother? Maybe it should be named >> tcp_loadbalancer. >> >> -- Murphy >> >> >> On Apr 10, 2014, at 12:14 AM, shads s <shasi0...@gmail.com> wrote: >> >> Hello All, >> >> I have tried to execute misc.ip_loadbalancer example along with mininet. >> But I am not able to ping between hosts. When i do a tcpdump -i s1-eth1 -n >> i can see only ARP request packets going to the servers but no reply >> packets coming back to the clients. I dont know what is the error. Kindly >> advise. >> >> >> >> *Following is the output of >> POX:---------------------------------------------*./pox.py >> misc.ip_loadbalancer --ip=10.1.2.3 >> --servers=10.0.0.5,10.0.0.6,10.0.0.7,10.0.0.8 >> POX 0.2.0 (carp) / Copyright 2011-2013 James McCauley, et al. >> INFO:core:POX 0.2.0 (carp) is up. >> INFO:openflow.of_01:[00-00-00-00-00-01 1] connected >> INFO:iplb:IP Load Balancer Ready. >> INFO:iplb:Load Balancing on [00-00-00-00-00-01 1] >> INFO:iplb.00-00-00-00-00-01:Server 10.0.0.5 up >> INFO:iplb.00-00-00-00-00-01:Server 10.0.0.6 up >> INFO:iplb.00-00-00-00-00-01:Server 10.0.0.7 up >> INFO:iplb.00-00-00-00-00-01:Server 10.0.0.8 up >> >> >> *Mininet Network details:* >> *-----------------------------------* >> mininet> net >> h1 h1-eth0:s1-eth1 >> h2 h2-eth0:s1-eth2 >> h3 h3-eth0:s1-eth3 >> h4 h4-eth0:s1-eth4 >> h5 h5-eth0:s1-eth5 >> h6 h6-eth0:s1-eth6 >> h7 h7-eth0:s1-eth7 >> h8 h8-eth0:s1-eth8 >> s1 lo: s1-eth1:h1-eth0 s1-eth2:h2-eth0 s1-eth3:h3-eth0 s1-eth4:h4-eth0 >> s1-eth5:h5-eth0 s1-eth6:h6-eth0 s1-eth7:h7-eth0 s1-eth8:h8-eth0 >> c0 >> >> >> >> *TCPDUMP logs:------------------------* >> # tcpdump -i s1-eth1 -n >> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode >> listening on s1-eth1, link-type EN10MB (Ethernet), capture size 65535 >> bytes >> 12:24:31.983329 IP 10.0.0.1 > 10.0.0.5: ICMP echo request, id 6952, seq >> 8, length 64 >> 12:24:32.983326 IP 10.0.0.1 > 10.0.0.5: ICMP echo request, id 6952, seq >> 9, length 64 >> 12:24:33.056225 ARP, Request who-has 10.0.0.7 (Broadcast) tell 10.1.2.3, >> length 28 >> 12:24:33.983326 IP 10.0.0.1 > 10.0.0.5: ICMP echo request, id 6952, seq >> 10, length 64 >> 12:24:34.350903 ARP, Request who-has 10.0.0.8 (Broadcast) tell 10.1.2.3, >> length 28 >> >> Thanks >> Sharadhi >> >> >> On Thu, Apr 10, 2014 at 11:05 AM, Weiyang Mo <moweiyang1...@gmail.com>wrote: >> >>> Hi, >>> >>> You may refer to misc.ip_loadbalancer in pox folder. >>> >>> Weiyang >>> >>> >>> 2014-04-09 22:29 GMT-07:00 shads s <shasi0...@gmail.com>: >>> >>> Hello all >>>> >>>> I am new to networking and SDN. >>>> Although I have tried few examples in mininet using POX controller, I >>>> need guidance in executing a simple Loadbalancer. >>>> Hoping to get some solution >>>> >>>> Thanks >>>> Sharadhi >>>> >>> >>> >> >> >