Segment Routing in ONOS

93 views
Skip to first unread message

tongva...@gmail.com

unread,
Sep 24, 2019, 10:10:28 AM9/24/19
to ONOS Developers
Hi all,

I am studying segment routing for one small project. When I read the source code of segment routing (SR) application in onos, I have some questions.

1. SR application creates the BFS (Breadth-first search) Tree and uses it to identify the routing paths using DFS (Depth-first search) algorithm. If there is any changes related to the configuration, topology and route-added event, SR application will update the BFS Tree to identify the new routing paths.
Is there any ways to force SR application update the BFS Tree more frequently? (I want to change the DFS algorithm and update the routing paths more frequently).
2. I followed the instructions to test the SR application, and I found out some weird. I can use iperf or hping3 to send the packets between 2 hosts, but I cannot replay a pcap file between them (to simulate the traffic of some applications).

Any body know why?

Thank you in advance.

Charles Chan

unread,
Sep 27, 2019, 5:01:05 PM9/27/19
to ONOS Developers, trellis-dev
(+trellis-dev)

1. If the topology is the same, the tree construction should have the same result. What is the purpose of having it updated more frequently? Are you trying to come up with a new path computation algorithm?
Please note that this is not a supported feature and it will require code change. DefaultRoutingHandler should be the place to look at.

2. The article you referred to is very old. You can find a more updated version here: https://github.com/opennetworkinglab/routing/tree/master/trellis
The latest documentation about Trellis can be found here: https://docs.trellisfabric.org/

Thanks,
Charles

Sreenivasulu Saya

unread,
Sep 28, 2019, 1:21:18 AM9/28/19
to Charles Chan, ONOS Developers, trellis-dev
  Hi Charles,

> The latest documentation about Trellis can be found here: https://docs.trellisfabric.org/

The Trellis documentation in the above link appears to be much better than that I found in other places.

I have one request...
If the use-case based installation instructions are provided in the documentation, then it will be easy for the first timers to get started quickly with ONOS+Trellis. 

Let us take my experience as an example....
I struggled to get the ONOS+Trellis+P4Runtime with Mininet working for the past seven weeks, but finally gave up out of disappointment/frustration as I could not make much progress! If the developers like me face challenges to work with Trellis, then there will be less traction for the project in the developers community.

Hence, the get the developers interested, using Trellis for the use-cases should be made easy. I think providing the step-by-step instructions for the Trellis uses cases will make huge difference in getting the traction...

Regards,
  --Sreeni Saya

--
You received this message because you are subscribed to the Google Groups "Trellis Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trellis-dev...@opennetworking.org.
To view this discussion on the web visit https://groups.google.com/a/opennetworking.org/d/msgid/trellis-dev/15600c00-0e4b-4f09-9a70-7db83d266d3a%40onosproject.org.

Van Tong

unread,
Sep 28, 2019, 3:53:29 AM9/28/19
to onos...@onosproject.org, trell...@opennetworking.org
Hi Charles,

1. I am implementing a new path computation algorithm using QoS parameters, and I want to evaluate the performance of this algorithm. Therefore, I want to update the routing paths more frequently. Are there any ways to do this except for simulating the signal of the change of the configuration, topology or route-added events?
2. I will study the updated version. I hope that it can help me to resolve the second problem (I am using the SR application in ONOS v2.1).

Best regards,
Van

Vào 23:01:05 UTC+2 Thứ Sáu, ngày 27 tháng 9 năm 2019, Charles Chan đã viết:

Van Tong

unread,
Oct 2, 2019, 12:08:59 PM10/2/19
to onos...@onosproject.org, trell...@opennetworking.org
Hi Charles,

I implemented the updated version, but the second problem still remains. I can use hping3 to send the packets between 2 hosts while I cannot replay a pcap file between them.
I tried with the reactive forwarding application in ONOS, and I can replay the QUIC traffic. Do you know why?

Vào 23:01:05 UTC+2 Thứ Sáu, ngày 27 tháng 9 năm 2019, Charles Chan đã viết:
(+trellis-dev)

Charles Chan

unread,
Oct 14, 2019, 12:48:39 PM10/14/19
to ONOS Developers, trell...@opennetworking.org
Could it be an MTU issue? What's the packet size in the pcap?

Thanks,
Charles

Van Tong

unread,
Oct 15, 2019, 3:39:21 AM10/15/19
to onos...@onosproject.org, trell...@opennetworking.org
Hi Charles,

I found out that the problem belongs to the MAC address of the destination of the pcap file. Then I modified the MAC address, and it works.
What is the maximum packet size that I can send between 2 hosts?

Best regards,
Van

Vào 18:48:39 UTC+2 Thứ Hai, ngày 14 tháng 10 năm 2019, Charles Chan đã viết:

Charles Chan

unread,
Oct 18, 2019, 6:48:58 PM10/18/19
to Van Tong, ONOS Developers, trellis-dev
Hi Van,

At this point my only suggestion is checking the following first

1. Identify at which hop the packets get dropped
2. Check flows and groups. Make sure the packets hit the expected entries.

Also, reactive forwarding is L2 forwarding app while SR is L3 routing app. Maybe it is worth checking your gateway/nexthop in the packet in pcap.

Thanks,
Charles Chan, Ph.D.
Member of Technical Staff, Open Networking Foundation


On Tue, Oct 15, 2019 at 12:39 AM Van Tong <tongva...@gmail.com> wrote:
Hi Charles,

The packet size in the pcap file is 1392. I modified the MTU, but it does not work.

--
You received this message because you are subscribed to a topic in the Google Groups "ONOS Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/a/onosproject.org/d/topic/onos-dev/MKKXSMpKylI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to onos-dev+u...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/8db20d5d-0e67-4e12-a8fd-58a73af49618%40onosproject.org.

Van Tong

unread,
Oct 21, 2019, 10:45:16 AM10/21/19
to ONOS Developers, tongva...@gmail.com, trell...@opennetworking.org
Hi Charles,

I resolved the problem. It results from the gateway in the packet in pcap.
Thank you very much.

Best regards,
Van 

Vào 00:48:58 UTC+2 Thứ Bảy, ngày 19 tháng 10 năm 2019, Charles Chan đã viết:
To unsubscribe from this group and all its topics, send an email to onos...@onosproject.org.
Reply all
Reply to author
Forward
0 new messages