add-host-intent with bandwith parameter doesn't work

213 views
Skip to first unread message

Hakan Calim

unread,
Oct 18, 2016, 8:17:48 AM10/18/16
to ONOS Developers
Hi all,

I executed in the onos cli the following command:

onos> add-host-intent -b 5000000 52:54:00:DF:97:69/None 52:54:00:7B:4A:8F/None
Host to Host intent submitted:
HostToHostIntent{id=0x200000, key=0x200000, appId=DefaultApplicationId{id=2, name=org.onosproject.cli}, priority=100, resources=[52:54:00:DF:97:69/None, 52:54:00:7B:4A:8F/None], selector=DefaultTrafficSelector{criteria=[]}, treatment=DefaultTrafficTreatment{immediate=[NOACTION], deferred=[], transition=None, meter=None, cleared=false, metadata=null}, constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}, BandwidthConstraint{bandwidth=5000000}], one=52:54:00:DF:97:69/None, two=52:54:00:7B:4A:8F/None}
onos>

It seems that the call is accepted. But when I call the summary command there are no flows or intent installed:

onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=2, SCC(s)=1, flows=9, intents=0
onos>

It is the same summary before the add-host-intent call. I checked the karaf log and see many exceptions. I added some logs here. What is wrong here?

Thanks for help.

Best regards,
Hakan

karaf.log

You Wang

unread,
Oct 18, 2016, 1:46:05 PM10/18/16
to Hakan Calim, ONOS Developers
Hi Hakan,

It seems there’s a related Jira ticket: https://jira.onosproject.org/browse/ONOS-2300

Can you verify whether you are having the same issue? If yes, can you comment on that ticket with your setup and steps to reproduce the problem?

Thanks,
You

--
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/7309153f-b7fe-49d0-8350-ef27f1c58429%40onosproject.org.
<karaf.log>

Hakan Calim

unread,
Oct 21, 2016, 7:52:12 AM10/21/16
to You Wang, ONOS Developers

Hi,


can anyone say me which instruction in a flow ruloe I can use to add bandwidth limit in a flow rule?


Thanks,

Hakan



On 10/19/2016 09:28 PM, You Wang wrote:
Hi Hakan,

Thanks for the info. I’ll update the jira ticket and let you know if there’s any progress on fixing this issue.

You

On Oct 19, 2016, at 1:26 AM, Hakan Calim <hakan...@fau.de> wrote:

Hi You,


I have no ONOS JIRA account. I try to describe here my test scenario. maybe you can add this as a comment:


1. I have a test enviroment with 3 physical OpenFllow switches. They are connected as a triangle. Every swith has one host connected. All switches are controlled by the same ONOS controller.

2. On the controller host I get a clone of the onos repository. I build the ONOS system with the 1.7.0. For build instructions I used this documentation: https://wiki.onosproject.org/display/ONOS/Installing+and+Running+ONOS

3. After build I adde this to my local file: .profile:

export ONOS_ROOT=~/onos
source $ONOS_ROOT/tools/dev/bash_profile
export ONOS_APPS=drivers,openflow,proxyarp,mobility


4. Started ONOS with the following command: ok clean

5. Then I executed this command to see what is known by ONOS:

onos> summary

node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=0, SCC(s)=1, flows=9, intents=0
onos>

6. I see that the hosts are not recognized by ONOS. Therefore I started the ping command on a host which is connected on a switch. The ping was not successfully because there are no flows or intents are installed for the hosts.

7. Executed again the summary command again to see if the hosts are recognized. They are. Additionally I executed the hosts command to get information from the hosts:

onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=2, SCC(s)=1, flows=9, intents=0

onos> hosts
id=52:54:00:7B:4A:8F/None, mac=52:54:00:7B:4A:8F, location=of:000244319265b549/8, vlan=None, ip(s)=[10.0.10.2]
id=52:54:00:DF:97:69/None, mac=52:54:00:DF:97:69, location=of:000378485966e180/12, vlan=None, ip(s)=[10.0.10.1]
onos>

8. Try to install intent for this hosts with the bandwith parameter:

onos> add-host-intent -b 5000000 52:54:00:DF:97:69/None 52:54:00:7B:4A:8F/None
Host to Host intent submitted:

HostToHostIntent{id=0x0, key=0x0, appId=DefaultApplicationId{id=2, name=org.onosproject.cli}, priority=100, resources=[52:54:00:DF:97:69/None, 52:54:00:7B:4A:8F/None], selector=DefaultTrafficSelector{criteria=[]}, treatment=DefaultTrafficTreatment{immediate=[NOACTION], deferred=[], transition=None, meter=None, cleared=false, metadata=null}, constraints=[LinkTypeConstraint{inclusive=false, types=[OPTICAL]}, BandwidthConstraint{bandwidth=5000000}], one=52:54:00:DF:97:69/None, two=52:54:00:7B:4A:8F/None}
onos>

9. I get no errors. Therefore I checked again with the summary command if the intent is successfully installed.

onos> summary
node=127.0.0.1, version=1.7.0
nodes=1, devices=3, links=6, hosts=2, SCC(s)=1, flows=9, intents=0
onos>

10. No intent or flows are installed. I try to install the intent without the bandwith parameter and this works fine.


Hope this helps.


Best regards,

Hakan

Pier Luigi Ventre

unread,
Oct 21, 2016, 2:33:30 PM10/21/16
to ONOS Developers, y...@onlab.us
Hi,
I don't think we support the bw enforcement right now, probably I am wrong but I cannot find any code related to the bw management.

Pier

Luca Prete

unread,
Oct 21, 2016, 3:39:42 PM10/21/16
to Pier Luigi Ventre, ONOS Developers, y...@onlab.us
We don't.

We do bandwidth scheduling at control plane level. For enforcement a patch submitted by Jordi and Alaitz is in Gerrit under review for p2p intents.
SP2MP and MP2SP will come soon.

-Luca
Reply all
Reply to author
Forward
0 new messages