Configuring PCEP on a PE Router (from the CLI)
A Path Computation Client (PCC) supports the configurations related to the Path Computation Element (PCE) and communicates with the NorthStar Controller, which by default is configured to accept a Path Computation Element Protocol (PCEP) connection from any source address. However, you must configure PCEP on each PE router to configure the router as a PCC and establish a connection between the PCC and the NorthStar Controller. A PCC initiates path computation requests, which are then executed by the NorthStar Controller.
Each PCC in the network that the NorthStar Controller can access must be running a Junos OS release that is officially supported by the NorthStar Controller as designated in the NorthStar Controller Release Notes (jinstall 32 bit).
For a PCEP connection, the PCC can connect to the NorthStar Controller using an in-band or out-of-band management network, provided that IP connectivity is established between the Path Computation Server (PCS) and the specified PCEP local address. In some cases, an additional static route might be required from the NorthStar Controller to reach the PCC, if the IP address is unreachable from the NorthStar Controller default gateway.
To configure a PE router as a PCC:
- Enable external control of LSPs from the PCC router to
the NorthStar Controller.[edit protocols]user@PE1# set mpls lsp-external-controller pccd
- Specify the loopback address of the PCC router as the
local address, for example:[edit protocols]user@PE1# set pcep pce northstar1 local-address 10.0.0.101
Note As a best practice, the router ID is usually the loopback address, but it is not necessarily configured that way.
- Specify the NorthStar Controller (northstar1) as the PCE that the PCC connects to, and specify the NorthStar
Controller host external IP address as the destination address.[edit protocols]user@PE1# set pcep pce northstar1 destination-ipv4-address 10.99.99.1
- Configure the destination port for the PCC router that
connects to the NorthStar Controller (PCE server) using the TCP-based
PCEP.[edit protocols]user@PE1# set pcep pce northstar1 destination-port 4189
- Configure the PCE type.[edit protocols]user@PE1# set pcep pce northstar1 pce-type activeuser@PE1# set pcep pce northstar1 pce-type stateful
- Enable LSP provisioning.[edit protocols]user@PE1# set pcep pce northstar1 lsp-provisioning
- To verify that PCEP has been configured on the router,
open a telnet session to access the router, and run the following
commands:user@PE1> show configuration protocols mpls
Sample output:
lsp-external-controller pccd;user@PE1> show configuration protocols pcepSample output:
pce northstar1 {local-address 10.0.0.101;destination-ipv4-address 10.99.99.1;destination-port 4189;pce-type active-stateful;lsp-provisioning;}