I have a custom topology created using mininet with multiple paths between a pair of hosts (topology script below). Ping between the hosts works. But I would like to know which path has been selected by the opendaylight controller.
traceroute from host 1 just prints the following:
root@ubuntu:~/Desktop# traceroute 10.0.0.2 traceroute to 10.0.0.2 (10.0.0.2), 30 hops max, 60 byte packets 1 10.0.0.2 (10.0.0.2) 0.304 ms 0.135 ms 0.187 ms
Multipath Mininet Topology Script:
def mpTopo(): "Create an empty network and add nodes to it." info( '*** Adding controller\n' ) ctrlr = lambda n: RemoteController(n, ip='127.0.0.1') net = Mininet(controller=ctrlr) c0 = net.addController('c0') info( '*** Adding hosts\n' ) leftHost = net.addHost('h1') rightHost = net.addHost('h2') info( '*** Adding switch\n' ) leftSwitch = net.addSwitch('s3') rightSwitch = net.addSwitch('s4') thirdSwitch = net.addSwitch('s5') info( '*** Creating links\n' ) net.addLink(leftHost, leftSwitch) net.addLink(leftSwitch, rightSwitch) net.addLink(rightSwitch, rightHost) net.addLink(rightSwitch, thirdSwitch) net.addLink(leftSwitch, thirdSwitch) info( '*** Starting network\n') net.start() info( '*** Running CLI\n' ) CLI(net) info( '*** Stopping network' ) net.stop() if __name__ == '__main__': setLogLevel( 'info' ) mpTopo()
EDIT: I ran wireshark tool to capture "lo" interface traffic and applied "of" filter. It also just shows the mac addresses of two hosts as source and destination when I ran ping command. I could not figure out which path has been chosen. Attached screenshot. I'm not sure where I'm wrong. Please advise.
Please help. Thanks.