Skip to content

PCE developed on top of OpenDaylight for constraint based path calculation

License

Notifications You must be signed in to change notification settings

vaibhgupta157/PathCompute

Repository files navigation

published

PathCompute

PathCompute is developed on top of OpenDaylight (ODL) to represent topology in UI based on information from Link-State database. It can be used for calculating constraints based LSPs for RSVP-TE and pushing those tunnels to Path Computation Client. It also exposes REST APIs for calculating IGP path between a pair of src and dest.

PreRequisites:

The app is developed using python and requires following additional packages to work.

apt-get install python-pip
pip install flask requests

ODL Setup:

This repo requires additional plugins for BGP, PCEP and RESTCONF in OpenDaylight. The repo is tested with OpenDaylight 0.7.3(Nitrogen) and 0.9.2(Fluorine-SR2) releases.

cd karaf**
./bin/karaf
feature:install odl-restconf odl-bgpcep-bgp odl-bgpcep-bgp-openconfig-state odl-bgpcep-pcep
^d
./bin/start

Enter ODL details in odl_details.py

ODL_IP = "xx.xx.xx.xx"
ODL_PORT = "8181"
ODL_USER = "admin"
ODL_PASS = "admin"

Run pce_server.py

python pce_server.py

Open in Browser:

http://xx.xx.xx.xx:9521/pce/

PathCompute

To get started, add a BGFP instance with link-state address-family in OpenDaylight by clicking "Add Instance". Specify the local router-id (which has to be an interface IP address on the linux machine on which OpenDaylight is installed) and AS number. Once BGP instance is added, add at least one BGP-LS peer by clicking "Add Peer". A BGP-LS peer is a router which is enabled with link-state address family and is part of IGP. The BGP session between OpenDaylight and router (Peer) comes up after BGP protocol negotiation and status can be seen in UI. OpenDaylight router-id should be reachable to router's BGP router-id.

Once LS-peer state is "Established" and Linkstate is "Active", IGP topology can be seen in right half. Topology captures point-to-point and broadcast network-type by highlighting with grey and blue color respectively. To have topology view in UI, LS-peer should distribute IGP in BGP link-state.

Tunnel Manager section manages RSVP-TE for the nodes in network that are configured as Path Computation Clients (PCCs). List of PCCs can be seen from "Get PCCs" and their established tunnels. A new tunnel can be pushed to any PCC by using "Create Tunnel". It lists all possible LSPs with given constraints and corresponding IGP and TE metrics. One of them can be pushed to PCC by clicking "Push LSP".

The app considers only the interfaces that are enabled with traffic engineering for path calculation.