Re: [onos-discuss] Re: Adding host intents based on IP addresses of endpoints

16 views
Skip to first unread message

Yi Tseng

unread,
Apr 18, 2017, 4:17:10 PM4/18/17
to Hemanth Chenji, ONOS Discuss, Northbound brigade
Also c.c. to northbound brigade

Hi,

Sorry for late reply.

I think HosttoHostIntent is based on HostId (Mac + VlanId).

If you want to create routes based on IP address, I suggest using two PointToPointIntent with IP selector.

-Yi

On Tue, Apr 18, 2017 at 9:00 AM, Hemanth Chenji <cyh...@gmail.com> wrote:
Hi All,

Is this a limitation with ONOS or am I missing something here?

Regards
Hemanth

On Friday, 14 April 2017 16:39:59 UTC-4, Hemanth Chenji wrote:
Hi,

I would like to add host intents based on IP addresses of two end points instead of MAC addresses

If I don't specify valid MAC addresses in one and two as shown below, flows are not getting installed on switches even though it shows as installed on controller

curl -X POST --user onos:rocks --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "type": "HostToHostIntent", "appId": "app_test", "priority": 55, "selector": {"criteria":[{"type":"IPV4_SRC", "ip":"10.2.205.40/32"}, {"type":"IPV4_DST", "ip":"10.2.205.39/32"}]}, "one": "00:00:00:00:00:00/-1", "two": "00:00:00:00:00:00/-1"}' 'http://10.2.205.45:8181/onos/v1/intents'


onos> intents
id=0xac2, state=INSTALLED, key=0xac2, type=HostToHostIntent, appId=app_test
    resources=[00:00:00:00:00:00/None]
    selector=[IPV4_SRC:10.2.205.40/32, IPV4_DST:10.2.205.39/32]
    treatment=[NOACTION]
    constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}]
    host1=00:00:00:00:00:00/None, host2=00:00:00:00:00:00/None


Is this a limitation or do we have an option to add host intents based on IP addresses?

Regards
Hemanth

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss+unsubscribe@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-discuss/b12e14b2-2de9-4352-84c9-7f83f8e2da5e%40onosproject.org.

Hemanth Chenji

unread,
Apr 18, 2017, 6:03:13 PM4/18/17
to ONOS Discuss, cyh...@gmail.com, brigade-n...@onosproject.org
Hi Yi,

Thanks for the reply. In PointToPointIntent, we have to specify the device info as well where the flow should be installed isn't it? In hosttohost intent, based on the MACs, it identifies the shortest path b/w two endpoints and installs flows in the appropriate switches. That does not happen in case of pointtopoint intent isn't it?

Even in the CLI, it prompts for port id when i try to add point intent

onos> add-point-intent of:0000001e080008
Display all 104 possibilities? (y or n)


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

To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Yi Tseng

unread,
Apr 18, 2017, 7:03:52 PM4/18/17
to Hemanth Chenji, ONOS Discuss, Northbound brigade
Hi

For example, you can add two point to point intent by giving it host location (connect point) and IP selector

add-point-intent --ethType 2048 --ipDst 192.168.5.3/32 of:0000000000000001/3 of:0000000000000005/5
add-point-intent --ethType 2048 --ipDst 192.168.1.1/32 of:0000000000000005/5 of:0000000000000001/3

I think the reason we don't use IP address for host to host intent because different host might have same IP address.

If more than one Host(with different connect port) with same IP address, we can't determine which connect point is ingress/egress port.

---
Yi


--
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.
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/cded9f54-046a-479b-8a42-c9f58db7a38c%40onosproject.org.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.

Hemanth Chenji

unread,
Apr 19, 2017, 7:00:30 AM4/19/17
to ONOS Discuss, cyh...@gmail.com, brigade-n...@onosproject.org
Hi,

Our application (remote) will interact with ONOS controller via REST and install flows to handle real time traffic and meter the traffic. It will not be aware of topology of the SDN network. It can provide IP address, udp port and bandwidth information to SDN controller via REST. SDN controller should be able to determine the shortest path based on the IP address and install flows on switches in the path. Our application will not have port (connect port/point) information  (Ex: of:0000000000000001/3) to install the flows mentioned below. Is there any option to achieve this?

Regards
Hemanth
To post to this group, send email to brigade-n...@onosproject.org.

Jordi Ortiz

unread,
Apr 19, 2017, 11:54:51 AM4/19/17
to Hemanth Chenji, ONOS Discuss, Northbound brigade
Hi,

my 2 cents.

Hosts' ips are discovered by onos after the device/hosts starts
sending traffic. Once that is done you can recover the host location,
meaning dpid:port (+ vlan).
I think you need proxyarp and hostprovider apps activated.
So I guess you can just through rest recover the hosts with their
locations and then create the intents based on that info.
Off course this has troubles with host mobility. There is a
hostmobility app but no idea if that is what would solve the problem.
If you don't want to generate traffic from hosts prior to discovery
you might implement something with broadcast sending through each
device port without link.

Regards
>>> email to brigade-northbo...@onosproject.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/ce674f95-0b7f-4e8e-8b9b-d941a23ac2c8%40onosproject.org.

Hemanth Chenji

unread,
Apr 20, 2017, 9:11:14 AM4/20/17
to ONOS Discuss, cyh...@gmail.com, brigade-n...@onosproject.org
Hi,

Thanks for the information. I'll dig into this bit more and get back if I need further clarification

Regards
Hemanth
>>> 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/cded9f54-046a-479b-8a42-c9f58db7a38c%40onosproject.org.
>>> For more options, visit
>>> https://groups.google.com/a/onosproject.org/d/optout.
>>
>>
> --
> 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

Mariana Cruz

unread,
Apr 22, 2021, 2:56:49 PM4/22/21
to ONOS Discuss, Hemanth Chenji, brigade-n...@onosproject.org
Hi everyone,

I would like to know if its possible to create intents based on port bridges? If yes, how can i do it?

Thanks
Reply all
Reply to author
Forward
0 new messages