Hi
If I want to get the ( continuous ) data packet flow (same as the packet flow
from one switch to another switch) from the controller to specific host/switch,
what I have to do ?
Please note that I want to get a continuous data flow from the controller to a
specific host/switch. you can compare it as the flow rule set in the switches.
Now, OFPPacketout only sends a message to switch once. But I want to get the
continuous data packet sending from the controller to a specific switch.
It will be so much helpful for me, if you kindly discuss this thing with coding
:)
Thanks
-Tanvir
________________________________________
From: [email protected]
<[email protected]>
Sent: Saturday, 6 August 2016 3:35 AM
To: [email protected]
Subject: Ryu-devel Digest, Vol 57, Issue 4
Send Ryu-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/ryu-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ryu-devel digest..."
Today's Topics:
1. How to send data from controller to the host (Alan Wang)
2. Re: How to send data from controller to the host (Iwase Yusuke)
3. Re: How to send data from controller to the host (Alan Wang)
4. Re: How to send data from controller to the host (Iwase Yusuke)
5. Re: How to send data from controller to the host (Luis Z?rate)
----------------------------------------------------------------------
Message: 1
Date: Fri, 5 Aug 2016 11:45:18 +0800
From: Alan Wang <[email protected]>
Subject: [Ryu-devel] How to send data from controller to the host
To: [email protected]
Message-ID:
<CADPRqZ8rM8aLCZeQw2wz71k9Qk3O7HWo=C1rnrmJYU=ogcr...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi All,
I want to send some data controller collected from Controller to Host.
What should i do ?
Thanks,
Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Fri, 5 Aug 2016 13:04:15 +0900
From: Iwase Yusuke <[email protected]>
Subject: Re: [Ryu-devel] How to send data from controller to the host
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi,
You can use Packet-Out messages for such purpose, I guess.
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut
Thanks,
Iwase
On 2016?08?05? 12:45, Alan Wang wrote:
> Hi All,
>
> I want to send some data controller collected from Controller to Host.
>
> What should i do ?
>
> Thanks,
>
> Alan.
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------
Message: 3
Date: Fri, 5 Aug 2016 13:19:41 +0800
From: Alan Wang <[email protected]>
Subject: Re: [Ryu-devel] How to send data from controller to the host
To: [email protected]
Message-ID:
<CADPRqZ-fsxh4NgoootA=qbu7k3jupzow6wwgqhefzcngqvt...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
HI,
Thanks for your reply!!
def send_packet_out(self, datapath, buffer_id, in_port):
ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD, 0)]
req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions)
datapath.send_msg(req)
In these codes of the example, i can't find data the controller send.
I think it can't send data what i want to send.
Thanks,
Alan
2016-08-05 12:04 GMT+08:00 Iwase Yusuke <[email protected]>:
> Hi,
>
> You can use Packet-Out messages for such purpose, I guess.
> http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ry
> u.ofproto.ofproto_v1_3_parser.OFPPacketOut
>
> Thanks,
> Iwase
>
>
>
> On 2016?08?05? 12:45, Alan Wang wrote:
>
>> Hi All,
>>
>> I want to send some data controller collected from Controller to Host.
>>
>> What should i do ?
>>
>> Thanks,
>>
>> Alan.
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 4
Date: Fri, 5 Aug 2016 14:31:00 +0900
From: Iwase Yusuke <[email protected]>
Subject: Re: [Ryu-devel] How to send data from controller to the host
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi,
Please refer to the 'data' attribute of OFPPacketOut.
You can set a binary type value, which you want send, into this attribute.
e.g.)
req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions,
data=<BINARY_TYPE_VALUE>)
FYI: For building a binary type packet data, Ryu provides the packet libraries.
'bin_packet' in the following example is a binary type value to send.
http://osrg.github.io/ryu-book/en/html/packet_lib.html#generation-of-packets-serialization
Thanks,
Iwase
On 2016?08?05? 14:19, Alan Wang wrote:
> HI,
>
> Thanks for your reply!!
>
>
> def send_packet_out(self, datapath, buffer_id, in_port):
>
> ofp = datapath.ofproto
> ofp_parser = datapath.ofproto_parser
>
> actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD, 0)]
> req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions)
> datapath.send_msg(req)
>
>
> In these codes of the example, i can't find data the controller send.
>
> I think it can't send data what i want to send.
>
> Thanks,
>
> Alan
>
>
> 2016-08-05 12:04 GMT+08:00 Iwase Yusuke <[email protected]
> <mailto:[email protected]>>:
>
> Hi,
>
> You can use Packet-Out messages for such purpose, I guess.
>
> http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut
>
> <http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut>
>
> Thanks,
> Iwase
>
>
>
> On 2016?08?05? 12:45, Alan Wang wrote:
>
> Hi All,
>
> I want to send some data controller collected from Controller to Host.
>
> What should i do ?
>
> Thanks,
>
> Alan.
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> <https://lists.sourceforge.net/lists/listinfo/ryu-devel>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------
Message: 5
Date: Fri, 5 Aug 2016 11:35:13 -0600
From: Luis Z?rate <[email protected]>
Subject: Re: [Ryu-devel] How to send data from controller to the host
To: [email protected]
Message-ID:
<cag+5vypgohn3yluqvfg9mmshoobracgbbdctye3ysnwc0qz...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
It's something like this echo package
pkt = packet.Packet()
pkt.add_protocol(ethernet.ethernet(ethertype=pkt_ethernet.ethertype,
dst=pkt_ethernet.src,
src=self.hw_addr))
pkt.add_protocol(ipv4.ipv4(dst=pkt_ipv4.src,
src=self.ip_addr,
proto=pkt_ipv4.proto))
pkt.add_protocol(icmp.icmp(type_=icmp.ICMP_ECHO_REPLY,
code=icmp.ICMP_ECHO_REPLY_CODE,
csum=0,
data=pkt_icmp.data))
pkt.serialize()
data = pkt.data
actions = [parser.OFPActionOutput(port=port)] # port of host
out = parser.OFPPacketOut(datapath=datapath,
buffer_id=ofproto.OFP_NO_BUFFER,
in_port=ofproto.OFPP_CONTROLLER,
actions=actions,
data=data)
datapath.send_msg(out)
You need to set your own configuration if you want that this example works,
but this is the idea.
2016-08-04 23:31 GMT-06:00 Iwase Yusuke <[email protected]>:
> Hi,
>
> Please refer to the 'data' attribute of OFPPacketOut.
> You can set a binary type value, which you want send, into this attribute.
> e.g.)
> req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions,
> data=<BINARY_TYPE_VALUE>)
>
> FYI: For building a binary type packet data, Ryu provides the packet
> libraries.
> 'bin_packet' in the following example is a binary type value to send.
>
> http://osrg.github.io/ryu-book/en/html/packet_lib.html#generation-of-packets-serialization
>
> Thanks,
> Iwase
>
>
> On 2016?08?05? 14:19, Alan Wang wrote:
> > HI,
> >
> > Thanks for your reply!!
> >
> >
> > def send_packet_out(self, datapath, buffer_id, in_port):
> >
> > ofp = datapath.ofproto
> > ofp_parser = datapath.ofproto_parser
> >
> > actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD, 0)]
> > req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions)
> > datapath.send_msg(req)
> >
> >
> > In these codes of the example, i can't find data the controller send.
> >
> > I think it can't send data what i want to send.
> >
> > Thanks,
> >
> > Alan
> >
> >
> > 2016-08-05 12:04 GMT+08:00 Iwase Yusuke <[email protected]
> <mailto:[email protected]>>:
> >
> > Hi,
> >
> > You can use Packet-Out messages for such purpose, I guess.
> >
> http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut
> <
> http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut
> >
> >
> > Thanks,
> > Iwase
> >
> >
> >
> > On 2016?08?05? 12:45, Alan Wang wrote:
> >
> > Hi All,
> >
> > I want to send some data controller collected from Controller to
> Host.
> >
> > What should i do ?
> >
> > Thanks,
> >
> > Alan.
> >
> >
> >
> >
>
> ------------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected] <mailto:
> [email protected]>
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel <
> https://lists.sourceforge.net/lists/listinfo/ryu-devel>
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > 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
>
--
"La utop?a sirve para caminar" Fernando Birri
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel
End of Ryu-devel Digest, Vol 57, Issue 4
****************************************
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel