> Ah I see.Thanks for the explanation. I have one more question to ask
> 
> I want to do something similar to the following from simple_switch.py
> application
> 
>  sw_list = ryu.topology.api.get_all_switch(self)
>  link_list = ryu.topology.api.get_all_links(self)
> 
> I basically want to modify my program so as to make it learn the topology.
> 
> Do I get an even notification whenever the connection is established
> between the switches and the conrtroler?
> 
> I am thinking of the place to put the above two lines.I eventually want to
> be able to store the topology information in a database.

you might want to monitor topology.event.EventLinkAdd and
topology.event.EventLinkDelete.

YAMAMOTO Takashi

> 
> Thanks & Regards,
> Karthik.
> 
> 
> 
> On 14 April 2014 20:06, YAMAMOTO Takashi <[email protected]> wrote:
> 
>> > I tried again and I am seeing the same result.i.e port 6633 being opened
>> by
>> > the controller.
>> >
>> > But once I connect the topology of switches(mininet) to ryu "OpenFlow
>> > Controller" (ryu-manager ryu/app/simple_switch.py).
>> >
>> > I see a lot of packet_in messages in the controller.what is the reason
>> for
>> > this?
>> > I would not expect to recieve any packet-in messages till I somehow flood
>> > some traffic through the topology.
>>
>> your operating system might send some packets automatically.
>> eg. neighbour solicitation to detect duplicate addresses
>>
>> YAMAMOTO Takashi
>>
>> >
>> > Any thought or suggestions are highly appreciated.
>> >
>> > Thanks & Regards,
>> > Karthik.
>> >
>> >
>> > On 14 April 2014 17:21, FUJITA Tomonori <[email protected]
>> >wrote:
>> >
>> >> On Sun, 13 Apr 2014 20:13:17 +1200
>> >> Karthik Sharma <[email protected]> wrote:
>> >>
>> >> > I start the simple swith application using the following command.
>> >> >
>> >> > *$  ryu-manager ryu/app/simple_switch.py*
>> >> >
>> >> > If I try to run
>> >> >
>> >> > $ sudo netstat -nltp  on the same machine from some other terminal.
>> >> >
>> >> > *$ sudo netstat -nltp *
>> >> >
>> >> >  {noformat}
>> >> > Active Internet connections (only servers)
>> >> > Proto Recv-Q Send-Q Local Address           Foreign Address
>> State
>> >> >     PID/Program name
>> >> > tcp        0      0             127.0.0.1:53            0.0.0.0:*
>> >> >       LISTEN      1892/dnsmasq
>> >> > tcp        0      0              0.0.0.0:22               0.0.0.0:*
>> >> >         LISTEN      580/sshd
>> >> > tcp        0      0             127.0.0.1:631           0.0.0.0:*
>> >> >       LISTEN      704/cupsd
>> >> > tcp6       0     0              :::22                        :::*
>> >> >              LISTEN      580/sshd
>> >> > {noformat}
>> >> >
>> >> > I cannot find port 6633 in the list because of which my mininet
>> topology
>> >> is
>> >> > not able to connect to the controller?
>> >> >
>> >> > Is there a reason for this?
>> >>
>> >> Strange, it works on my env:
>> >>
>> >> fujita@ubuntu:~$ sudo netstat -nltp
>> >> Active Internet connections (only servers)
>> >> Proto Recv-Q Send-Q Local Address           Foreign Address
>> >> State       PID/Program name
>> >> tcp        0      0 127.0.0.1:6010          0.0.0.0:*
>> >> LISTEN      4212/0
>> >> tcp        0      0 127.0.0.1:6011          0.0.0.0:*
>> >> LISTEN      4413/2
>> >> tcp        0      0 0.0.0.0:6633            0.0.0.0:*
>> >> LISTEN      4394/python
>> >>
>> >> What messages are printed when you execute `ryu-manager
>> >> ryu/app/simple_switch.py`?
>> >>
>> >>
>>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to