Hi all,

I might find a bug about get_links of topology discovery. I really want to know 
the reason.


First of all, I start ryu by: 
         ryu-manager --observe-links app/simple_switch_13.py 
ryu.topology.switches ryu.app.rest_topology ryu.app.ofctl_rest


Then , I start Mininet by :
         sudo mn --controller=remote --topo tree,2,3    


From the mininet startup script, we can know the topo, and I type net into 
mininet CLI to show net:


*** Starting 4 switches
s1 s2 s3 s4 
*** Starting CLI:
mininet> net
h1 h1-eth0:s2-eth1
h2 h2-eth0:s2-eth2
h3 h3-eth0:s2-eth3
h4 h4-eth0:s3-eth1
h5 h5-eth0:s3-eth2
h6 h6-eth0:s3-eth3
h7 h7-eth0:s4-eth1
h8 h8-eth0:s4-eth2
h9 h9-eth0:s4-eth3
s1 lo:  s1-eth1:s2-eth4 s1-eth2:s3-eth4 s1-eth3:s4-eth4
s2 lo:  s2-eth1:h1-eth0 s2-eth2:h2-eth0 s2-eth3:h3-eth0 s2-eth4:s1-eth1
s3 lo:  s3-eth1:h4-eth0 s3-eth2:h5-eth0 s3-eth3:h6-eth0 s3-eth4:s1-eth2
s4 lo:  s4-eth1:h7-eth0 s4-eth2:h8-eth0 s4-eth3:h9-eth0 s4-eth4:s1-eth3
c0
mininet> 



Easy to find out that S3 has no link to S4.


But when I use postman to send request of 
http://localhost:8080/v1.0/topology/links, it shows below:


[
   
    # delete correct information.
    {
        "src": {
            "hw_addr": "b6:d7:29:42:0a:ac",
            "name": "s3-eth4",
            "port_no": "00000004",
            "dpid": "0000000000000003"
        },
        "dst": {
            "hw_addr": "d2:61:a1:ca:72:74",
            "name": "s4-eth4",
            "port_no": "00000004",
            "dpid": "0000000000000004"
        }
    },
    {
        "src": {
            "hw_addr": "42:35:b3:c2:af:d6",
            "name": "s1-eth1",
            "port_no": "00000001",
            "dpid": "0000000000000001"
        },
        "dst": {
            "hw_addr": "26:20:b8:2f:b8:ea",
            "name": "s2-eth4",
            "port_no": "00000004",
            "dpid": "0000000000000002"
        }
    }
]





we can find out that there is a link between S3 and S4, It is really strange!


In conclusion, I use the RESTAPI provided by rest_topology to get links, but it 
turns out error links information with too many links which dose not existed 
yet.


I am looking forward to your reply.


Best Regards.






























------------------
Li Cheng ????_____________________________________________________
School of Information and Communication Engineering
Beijing University of Posts and Telecommunications
Beijing 100876, PR China

??????????????????????????????????????????
_____________________________________________________
Mobile Phone: 
(+86) 151-1698-3550 Beijing 
E-mail:
350959...@qq.com
licheng185...@gmail.com
Homepage:
http://www.muzixing.com
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to