Re: Intents with meters

144 views
Skip to first unread message

Andrea Campanella

unread,
Jul 20, 2017, 3:52:54 AM7/20/17
to Pradeep Jha, Thomas Vachuska, ONOS Developers
Hi Pradeep,

please do ask these question on the onos...@onosproject.org mailing list (which i've cc'ed). You'll find a much bigger audience and someone who can surely reply to your questions. 

Cheers,
Andrea Campanella

Member of Technical Staff at ONF
Member of Ambassador Steering Team, ONOS and CORD Community



On Jul 20, 2017, at 9:43 AM, Pradeep Jha <pj.pra...@gmail.com> wrote:

Hi Thomas,

I'm looking to use meters for applying QoS. I have meters and queues set up on my switch. But I cannot figure out how to point an intent to the given meter. 

I can point the intents to queues using the --setQueue option but I don't see anything to set the intent to a meter. Is it possible yet? If not, then what are the alternatives to use meters from ONOS.


Thanks,

Pradeep Jha

Pradeep Jha

unread,
Jul 20, 2017, 3:54:14 AM7/20/17
to Andrea Campanella, ONOS Developers, Thomas Vachuska
Thanks Andrea.

Thanks,

Pradeep Jha

Luca Prete

unread,
Jul 20, 2017, 5:34:36 AM7/20/17
to Andrea Campanella, Pradeep Jha, ONOS Developers, Thomas Vachuska
Pradeep,

This is something still not available. It's not really a top priority at the moment, but we'd like to make it happen quite soon. We'd love to find someone from the community helping us designing and developing this under a common guidance.

If you're interested to collaborate, please let us know.

-Luca

--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org.
To post to this group, send email to onos...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/CAF1fXR0EmFrw%2B%2Bo4gK2THKgwFrACbtseyG4crV7k5DH%3DeRdixA%40mail.gmail.com.
--
Luca Prete
Open Networking Foundation

Pradeep Jha

unread,
Jul 20, 2017, 10:05:59 AM7/20/17
to ONOS Developers, and...@opennetworking.org, pj.pra...@gmail.com, t...@opennetworking.org
Hi Luca,

Thanks for the reply. I am still in the early stages of exploring ONOS and SDN in general. I do not think I am skilled enough yet to contribute to the project. Thanks for asking though, I'd love to get involved sometime in future.

Coming to the issue, when you say that "this is something not available", do you mean to say that the intent subsystem cannot work with meters yet? or do you mean more generally ONOS doesn't work with meters yet (I am able to create meters on the Lagopus switch from ONOS REST API successfully)....

If its just the intent subsystem that does not work with meters, is it possible by some other means to install flows that point to the installed meters on the device?

Luca Prete

unread,
Jul 20, 2017, 10:48:38 AM7/20/17
to ONOS Developers, Pradeep Jha, and...@opennetworking.org, brigade-n...@onosproject.org, t...@opennetworking.org
Hello Pradeep,

Intents don't (yet) suppprt meters, but onos in general of course does.
You should create the meters separately and then point the flows to them.

Unfortunately I'm ooo with my phone only, but hopefully you'll be able to receive more specific pointers from someone else in the community.

I'm putting in cc the northbound brigade.

-Luca

Pradeep Jha

unread,
Jul 20, 2017, 10:57:19 AM7/20/17
to Luca Prete, t...@opennetworking.org, ONOS Developers, and...@opennetworking.org, brigade-n...@onosproject.org
Thanks again.

I have setup meters seperately on the switch. All I want is to point flows to the meter. Which I was trying to do with intents. add-host-intent

I do not know of another way to add flows. And then to point them to meters.

 I once used the REST API to add a flow with meter instructions. The meter command on the switch showed the number of flows pointing to the meter=1. But the flows remained PENDING_ADD on ONOS.

Thanks,

Pradeep Jha

To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+unsubscribe@onosproject.org.

Jordi Ortiz

unread,
Jul 21, 2017, 2:05:52 PM7/21/17
to Pradeep Jha, Luca Prete, t...@opennetworking.org, ONOS Developers, and...@opennetworking.org, brigade-n...@onosproject.org
Hi,

On Thu, 20 Jul 2017 15:57:15 +0100
Pradeep Jha <pj.pra...@gmail.com> wrote:

> Thanks again.
>
> I have setup meters seperately on the switch. All I want is to point flows
> to the meter. Which I was trying to do with intents. add-host-intent

If I understand correctly you have created the meters from the switch admin interface, right? Those meters will be removed by onos. You should add them by using meter-add command in the onos cli.
>
> I do not know of another way to add flows. And then to point them to meters.

Regarding pointing an intent to a meter, I don't know how, if possible, to do it but I guess you could create point-intents from first switch to the last one and then on them create the meter and create the flow that finally gives the traffic to the host. Let me try to explain
H1 - p1S1p2 - p1S2p2 - p1S3p2 - H2
<= Met => * --p2pint-- *
Create point intent from p1s2 to S3p2 and then create meter in S1, and make any traffic directed to/from H1 go through the meter.
In S1:
Input p1; meter=1, output=p2
Input=p2; meter=1, output=p1

I might have missed something but I hope you grab the idea.

>
> I once used the REST API to add a flow with meter instructions. The meter
> command on the switch showed the number of flows pointing to the meter=1.
> But the flows remained PENDING_ADD on ONOS.

Which device were you trying to instantiate the meter on?

Regards
> >> onosproject.org/d/msgid/onos-dev/9fe18fa4-2798-48c3-9c22-
> >> 44e40ecee0d4%40onosproject.org.
> >>
> > --
> > Luca Prete
> > Open Networking Foundation
> > lu...@opennetworking.org
> >
>
> --
> You received this message because you are subscribed to the Google Groups "Northbound brigade" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to brigade-northbo...@onosproject.org.
> To post to this group, send email to brigade-n...@onosproject.org.
> Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-northbound/.
> To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-northbound/CAF1fXR2_a0WJj785D5XodPe2BhGvYEwq8mRGr74uufGWJhx3qw%40mail.gmail.com.
> For more options, visit https://groups.google.com/a/onosproject.org/d/optout.


--
Jordi Ortiz
jordi.o...@gmail.com
(+34)868888532
http://webs.um.es/jordi.ortiz/
Dpto. Ingeniería de la Información y las Comunicaciones
Universidad de Murcia

Pradeep Jha

unread,
Jul 22, 2017, 7:51:32 AM7/22/17
to Jordi Ortiz, Luca Prete, Thomas Vachuska, ONOS Developers, Andrea Campanella, brigade-n...@onosproject.org
Hi Jordi,

Thanks for the reply.

> I created the meter using ONOS REST API.


Regarding pointing an intent to a meter, I don't know how, if possible, to do it but I guess you could create point-intents from first switch to the last one and then on them create the meter and create the flow that finally gives the traffic to the host. Let me try to explain
H1 - p1S1p2 - p1S2p2 - p1S3p2 - H2
   <= Met =>   * --p2pint-- *
Create point intent from p1s2 to S3p2 and then create meter in S1, and make any traffic directed to/from H1 go through the meter.
In S1:
Input p1; meter=1, output=p2
Input=p2; meter=1, output=p1

> I understood everything that what you are saying, except the part in RED. This is exactly my question i.e. how do I direct traffic to a particular meter from ONOS?

> I am trying to instantiate meters on Lagopus switch.


> >> To post to this group, send email to onos...@onosproject.org.
> >> Visit this group at https://groups.google.com/a/
> >> onosproject.org/group/onos-dev/.
> >> To view this discussion on the web visit https://groups.google.com/a/
> >> onosproject.org/d/msgid/onos-dev/9fe18fa4-2798-48c3-9c22-
> >> 44e40ecee0d4%40onosproject.org.
> >>
> > --
> > Luca Prete
> > Open Networking Foundation
> > lu...@opennetworking.org
> >
>
> --
> You received this message because you are subscribed to the Google Groups "Northbound brigade" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to brigade-northbound+unsub...@onosproject.org.
> To post to this group, send email to brigade-northbound@onosproject.org.



--
Thanks and Regards,

Pradeep Jha,
(+91) 705 933 6360

Jordi Ortiz

unread,
Jul 25, 2017, 3:59:55 AM7/25/17
to Pradeep Jha, Luca Prete, Thomas Vachuska, ONOS Developers, Andrea Campanella, brigade-n...@onosproject.org
On Sat, 22 Jul 2017 12:51:28 +0100
Pradeep Jha <pj.pra...@gmail.com> wrote:

> Hi Jordi,
>
> Thanks for the reply.
>
> > I created the meter using ONOS REST API.
>
>
>
>
>
>
>
>
>
> *Regarding pointing an intent to a meter, I don't know how, if possible, to
> do it but I guess you could create point-intents from first switch to the
> last one and then on them create the meter and create the flow that finally
> gives the traffic to the host. Let me try to explain H1 - p1S1p2 - p1S2p2 -
> p1S3p2 - H2 <= Met => * --p2pint-- * Create point intent from p1s2 to
> S3p2 and then create meter in S1, and make any traffic directed to/from H1
> go through the meter. In S1: Input p1; meter=1, output=p2 Input=p2;
> meter=1, output=p1*
> > I understood everything that what you are saying, except the part in RED.
> This is exactly my question i.e.
>
> *how do I direct traffic to a particular meter from ONOS?*

I might not have make my point clear:
In S1:
Create Meter 1 in S1 with desired characteristics
Create flow Input=p1; meter=1, output=p2
Create flow Input=p2; meter=1, output=p1

where:
H1 - p1S1p2 - p1S2p2 - p1S3p2 - H2

H1/H2 are hosts
S1/S2/S3 are switches
p1/p2 are ports on those switches

You might (probably) want to add hwaddress filtering to the flows, so that they do only affect to H1.

I hope it is clearer.


> > I am trying to instantiate meters on Lagopus <http://www.lagopus.org/>
> > > >> onosproject.org/d/msgid/onos-dev/9fe18fa4-2798-48c3-9c22-
> > > >> 44e40ecee0d4%40onosproject.org.
> > > >>
> > > > --
> > > > Luca Prete
> > > > Open Networking Foundation
> > > > lu...@opennetworking.org
> > > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> > Groups "Northbound brigade" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> > an email to brigade-northbo...@onosproject.org.
> > > To post to this group, send email to brigade-n...@onosproject.org.
> > > Visit this group at https://groups.google.com/a/
> > onosproject.org/group/brigade-northbound/.
> > > To view this discussion on the web visit https://groups.google.com/a/
> > onosproject.org/d/msgid/brigade-northbound/CAF1fXR2_
> > a0WJj785D5XodPe2BhGvYEwq8mRGr74uufGWJhx3qw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages