Hi,
I could not reproduce the problem again.
I experimented in the following procedures:
1) run mininet
# sudo mn --custom videoNet5-7.py --topo mytopo --switch ovsk --controller
remote
2) copy HListener.c for each host
# cp HListener.c H1Listener.c
# cp HListener.c H2Listener.c
# ...
# cp HListener.c H6Listener.c
3) modify HxListener.c for each host
for h2, IP address in lines 62 of H2Listener.c is '10.0.0.2'.
4) compile HxListener.c for each host
# cc H1Listener.c -o h1
# cc H2Listener.c -o h2
# ...
# cc H6Listener.c -o h6
5) run hx for each host
h1 # ./h1
h2 # ./h2
...
h6 # ./h6
6) modify HSender.c for h7
IP address in lines 47 of HSender.c is '10.0.0.7'.
7) compile HSender.c
# cc HSender.c -o HSender
8) modify ryu/app/simple_switch_igmp.py
dpid = 0000000000000005, server_port=3 in lines 38 of simple_switch_igmp.py.
9) run ryu/app/simple_switch_igmp.py
# ryu-manager ryu/app/simple_switch_igmp.py
10) run HSender and wait for several minutes
h7 # ./HSender
it works fine.
11) stop h6 and wait for several minutes
send Ctrl+C on h6
h6 stops and others work fine yet.
12) start h6 and wait for several minutes
h6 # ./h6
h6 works fine again.
By the way, is your Ryu the latest version?
There is a bug about IGMP in Ryu before the version 3.8.
On Wed, 4 Jun 2014 18:37:14 -0400
Md. Amjad Hossain wrote:
> Hello,
>
> I have tried with a little bit large topology too. Please find the log file
> and topology in the attachment. I have set dpid = 00000.......05, port =3 in
> igmp.py.
>
> Could you please run the topology for me? Use the sender & Listener file in
> the attachment. After running all hosts ( at least on host per switch),
> sender at host 7, everyone will get the message. Stop receiving on Host 6 (
> press ctrl +C) and run again. This time running the receiver again on host6
> stop other host to receive and after few seconds/ minutes others also start
> receiving again.
>
> Is that above situation a problem?
>
> Thanks for your kind help
>
>
> Amjad
>
>
>
>
> On Wed, Jun 4, 2014 at 5:32 PM, Md. Amjad Hossain <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi Yuichi,
>
> I have tried with 4 host and 2 switch. I see that no flow entry in the
> switch is being send:
> root@ryu-vm:~# ovs-ofctl dump-flows s2
> NXST_FLOW reply (xid=0x4):
> root@ryu-vm:~# ovs-ofctl dump-flows s1
> NXST_FLOW reply (xid=0x4):
>
> So, switches are always flooding the message. Everyone receiving message
> but multicasting is not working.
> Please find the topology and igmp log file in the attachment.
>
>
>
>
>
> On Tue, Jun 3, 2014 at 10:11 PM, Yuichi Ito <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi Amjad,
>
>
> Thank you for providing information.
> Unfortunately, I could not reproduce the problem.
> Looking at the log file you attached, I think the program worked good.
>
>
> > >> [snoop][DEBUG]
> igmp(address='225.0.1.37',csum=2010,maxresp=0,msgtype=22)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=1 IGMP received.
> [REPORT]
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Member Changed: [225.0.1.37] querier:[1]
> hosts:[1, 2]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=0000b25eadcac643 PORT=1 IGMP received.
> [QUERY]
> > >> packet in 196119712417347 02:53:3a:5a:65:fa
> 33:33:00:00:00:01 1
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=1 IGMP received.
> [QUERY]
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 138641775921991 02:53:3a:5a:65:fa
> 33:33:00:00:00:01 1
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 28695830094665 02:53:3a:5a:65:fa 33:33:00:00:00:01
> 4
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Removed: [225.0.1.37] querier:[1] hosts:[]
>
> It seems that host 1 and 2 did not reply IGMP REPORT messages.
> This is not under control of Ryu IGMP.
> Could you try on smaller topology for locating a problem?
>
>
>
> On Tue, 3 Jun 2014 14:56:24 -0400
> Md. Amjad Hossain wrote:
>
> > hello Yuichi,
> >
> > I was doing that experiment on GENI Testbed. I have tried same
> experiment using mininet. Previously on mininet I got same problem as I was
> getting using GENI. But today I see that mininet always flood messages when I
> run using ryu Igmp.
> >
> > Please find the attachments:
> > 1. Command outputs
> > 2. Mininet topology I am using, ( running controller as remotely
> with loopback IP)/ so, consider the topology without VM in the previous
> topology in PNG file.
> > 3. Output log file : igmp.log
> > 4. The multicast sender & Listner I am using for test
> >
> > Please let me know if you need anything else.
> >
> > Best regards
> > Amjad
> >
> >
> >
> >
> > On Tue, Jun 3, 2014 at 3:08 AM, Yuichi Ito <[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>>> wrote:
> >
> > Hi,
> >
> > I will construct the same environment you use using mininet.
> > Could you tell me the following informations?
> >
> > - result of 'sudo ovs-vsctl list Bridge'
> > - result of 'sudo ovs-vsctl list Port'
> > - results of 'sudo ovs-ofctl dump-ports-desc (each switches)'
> > - results of 'ifconfig' of each hosts
> > - network topology (same as former topology.png?)
> >
> > And could you give me a whole log file?
> > To output a log file, please append options as follows:
> >
> > # ryu-manager ryu.app.simple_switch_igmp --verbose
> --log-file=igmp.log
> >
> > On Tue, 03 Jun 2014 15:15:51 +0900
> > Yuichi Ito <[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>>> wrote:
> >
> > > Hmm, I can't reproduce this situation yet.
> > > Please give me a little time.
> > >
> > > On Tue, 3 Jun 2014 00:56:36 -0400
> > > Md. Amjad Hossain wrote:
> > >
> > >> Hi Yuichi,
> > >>
> > >> Thanks I found dpid and port and updated as you told me in
> .....igmp.py file. But still getting same problem. Initially everyone was
> getting multicast message but after few seconds some of them stopped
> receiving. I can't make everyone to receive message at the same time. Could
> you please help me with this problem?
> > >>
> > >> Do I have to change anything else? This is the part of
> console output in ryu controller I am getting:
> > >>
> > >> packet in 28695830094665 02:8a:bb:7f:54:5c 33:33:00:00:00:01
> 3
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 138641775921991 02:8a:bb:7f:54:5c
> 33:33:00:00:00:01 3
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 196119712417347 02:8a:bb:7f:54:5c
> 33:33:00:00:00:01 2
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Removed: [225.0.1.37] querier:[2] hosts:[]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='225.0.1.37',csum=2010,maxresp=0,msgtype=22)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=2 IGMP received.
> [REPORT]
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Added: [225.0.1.37] querier:[2] hosts:[]
> > >> Multicast Group Member Changed: [225.0.1.37] querier:[2]
> hosts:[2]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 28695830094665 02:8f:24:90:61:96 33:33:00:00:00:01
> 2
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 138641775921991 02:8f:24:90:61:96
> 33:33:00:00:00:01 3
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 196119712417347 02:8f:24:90:61:96
> 33:33:00:00:00:01 2
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=0000b25eadcac643 PORT=3 IGMP received.
> [QUERY]
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 196119712417347 02:e6:66:06:56:88
> 33:33:00:00:00:01 3
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=1 IGMP received.
> [QUERY]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 138641775921991 02:e6:66:06:56:88
> 33:33:00:00:00:01 1
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 28695830094665 02:e6:66:06:56:88 33:33:00:00:00:01
> 4
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='225.0.1.37',csum=2010,maxresp=0,msgtype=22)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=1 IGMP received.
> [REPORT]
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Member Changed: [225.0.1.37] querier:[1]
> hosts:[1, 2]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=0000b25eadcac643 PORT=1 IGMP received.
> [QUERY]
> > >> packet in 196119712417347 02:53:3a:5a:65:fa
> 33:33:00:00:00:01 1
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=1 IGMP received.
> [QUERY]
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 138641775921991 02:53:3a:5a:65:fa
> 33:33:00:00:00:01 1
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 28695830094665 02:53:3a:5a:65:fa 33:33:00:00:00:01
> 4
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Removed: [225.0.1.37] querier:[1] hosts:[]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='225.0.1.37',csum=2010,maxresp=0,msgtype=22)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=1 IGMP received.
> [REPORT]
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Added: [225.0.1.37] querier:[1] hosts:[]
> > >> Multicast Group Member Changed: [225.0.1.37] querier:[1]
> hosts:[1]
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=2 IGMP received.
> [QUERY]
> > >> packet in 138641775921991 02:21:ab:1b:7e:b2
> 33:33:00:00:00:01 2
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='0.0.0.0',csum=61083,maxresp=100,msgtype=17)
> > >> [snoop][INFO] SW=0000b25eadcac643 PORT=2 IGMP received.
> [QUERY]
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 196119712417347 02:21:ab:1b:7e:b2
> 33:33:00:00:00:01 2
> > >> packet in 28695830094665 02:21:ab:1b:7e:b2 33:33:00:00:00:01
> 4
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 28695830094665 02:8a:bb:7f:54:5c 33:33:00:00:00:01
> 3
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 138641775921991 02:8a:bb:7f:54:5c
> 33:33:00:00:00:01 3
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> EVENT igmplib->SimpleSwitchIgmp EventPacketIn
> > >> packet in 196119712417347 02:8a:bb:7f:54:5c
> 33:33:00:00:00:01 2
> > >> EVENT ofp_event->igmplib EventOFPPacketIn
> > >> [snoop][DEBUG]
> igmp(address='225.0.1.37',csum=2010,maxresp=0,msgtype=22)
> > >> [snoop][INFO] SW=00007e180dce0b47 PORT=2 IGMP received.
> [REPORT]
> > >> EVENT igmplib->SimpleSwitchIgmp
> EventMulticastGroupStateChanged
> > >> Multicast Group Member Changed: [225.0.1.37] querier:[2]
> hosts:[1, 2]
> > >>
> > >>
> > >> Best Regards
> > >> Amjad
> > >>
> > >>
> > >>
> > >>
> > >> On Tue, Jun 3, 2014 at 12:35 AM, Yuichi Ito
> <[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>
> <mailto:[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>>> wrote:
> > >>
> > >> Hi, I'm glad you got well again.
> > >>
> > >> ovs-vsctl helps you to know datapath id, name, ports,
> and so on:
> > >>
> > >> # sudo ovs-vsctl list Bridge
> > >>
> > >> To know port numbers, please use ovs-ofctl:
> > >>
> > >> # sudo ovs-ofctl dump-ports-desc (datapath name)
> > >>
> > >> For more information, please refer to manpages of these
> commands.
> > >>
> > >>
> > >> On Mon, 2 Jun 2014 23:40:12 -0400
> > >> Md. Amjad Hossain wrote:
> > >>
> > >> > Hello Yuichi Ito,
> > >> >
> > >> > Sorry for replying after long time. Actually I had to
> stop working for my physical condition and other reasons.
> > >> >
> > >> > Thank you for your suggestions. I want to start my
> work again. Could you please tell me How can I know the datapath ID of a OVS
> ? Manually I can find the port number of the VM-2 where VM-7 is connected, Do
> you know any easy way to find that port?
> > >> >
> > >> > Best Regards
> > >> > Amjad
> > >> >
> > >> >
> > >> > On Thu, Mar 6, 2014 at 8:50 PM, Yuichi Ito
> <[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>
> <mailto:[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>>
> <mailto:[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>
> <mailto:[email protected] <mailto:[email protected]>
> <mailto:[email protected] <mailto:[email protected]>>>>> wrote:
> > >> >
> > >> > hi.
> > >> >
> > >> > simple_switch_igmp.py requires rewriting according
> to environments when a querier does not exist.
> > >> >
> > >> > please set the followings:
> > >> > - the datapath id of VM-2 switch
> > >> > - the port number of VM-2 switch that is linked
> to VM-7
> > >> >
> > >> >
> https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_igmp.py#L38
> > >> >
> > >> >
> > >> > On Thu, 6 Mar 2014 00:06:04 -0500
> > >> > Md. Amjad Hossain <[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>> <mailto:[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>>> <mailto:[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>> <mailto:[email protected]
> <mailto:[email protected]> <mailto:[email protected]
> <mailto:[email protected]>>>>> wrote:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > I am trying to do video streaming using ryu
> controller's multicast module " simpe_switch_igmp.py". My topology is
> attached. when video streamer start streaming , video should be received by
> everyone listening in the multicasting group. But most of the cases its not
> happening. Seems like when H4 is receiving video, no other hosts getting it;
> when H4 is not listening other host can receive video but sometimes need to
> flush switch forwarding table manually.
> > >> > >
> > >> > >
> > >> > > My question is, can anyone please let me know
> whether the implementation of the IGMP module perfect. I mean, is there
> anyone who has been successful doing multicasting with this existing IGMP
> module?
> > >> > >
> > >> > > Any suggestion for doing video streaming by
> multicasting would be greatly appreciated.
> > >> > >
> > >> > >
> > >> > > Thanks
> > >> > > Amjad
> > >> > >
> > >> > >
> > >> > >
> ------------------------------------------------------------------------------
> > >> > > Subversion Kills Productivity. Get off
> Subversion & Make the Move to Perforce.
> > >> > > With Perforce, you get hassle-free workflows.
> Merge that actually works.
> > >> > > Faster operations. Version large binaries.
> Built-in WAN optimization and the
> > >> > > freedom to use Git, Perforce or both. Make the
> move to Perforce.
> > >> > >
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> > >> > >
> > >> > >
> > >> > >
> > >> > > _______________________________________________
> > >> > > Ryu-devel mailing list
> > >> > > [email protected]
> <mailto:[email protected]>
> <mailto:[email protected]
> <mailto:[email protected]>>
> <mailto:[email protected]
> <mailto:[email protected]>
> <mailto:[email protected]
> <mailto:[email protected]>>>
> <mailto:[email protected]
> <mailto:[email protected]>
> <mailto:[email protected]
> <mailto:[email protected]>>
> <mailto:[email protected]
> <mailto:[email protected]>
> <mailto:[email protected]
> <mailto:[email protected]>>>>
> > >> > >
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> > >> > >
> > >> >
> > >> >
> > >>
> > >>
> >
> >
>
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel