Thank you for your fast reply. I know the mirroring in action output is easy. 
you just specify another output to OFPActionOutput to mirror them to another 
port but What I am asking is how can I turn that port into a network socket to 
get the packet from switch inside the mininet and send it to another VM. You 
mentioned that I need a modified switch to do so. Is there a example or paper 
or something that I can study to understand it??

________________________________
From: Iwase Yusuke <[email protected]>
Sent: Thursday, August 18, 2016 3:45:46 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [Ryu-devel] Socket in Ryu

Hi,

To send packets to another machine without mirroring packets at switch,
it is requires such feature of switch, I think.

Because Ryu is the controller in this case, it need to receive packets
through Packet-In messages to forwarding packets to another.

I guess mirroring packets at switches is easy way...
In this case, another interface to capture (not IP 192.168.10.40) is
needed though.

               Ryu@hostA
                  |
client_1 <---> switch <---> client_2
                  |
        mirroring |
                  +-------> capture machine@hostB

Thanks,
Iwase


On 2016年08月17日 23:47, Aidin Kelki wrote:
> Hello
>
> How can I convert a switch port into socket in Ryu? Instead of mirroring 
> packets into let's say Port 3 of the switch, mirror them into a socket that 
> can be received by another machine (for example, mininet and Ryu are in host 
> A with IP 192.168.10.30 and mirror them into socket which is connected to 
> host B with IP 192.168.10.40)
>
> Thanks.
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to