# SR-TE PCC Features

Load **isis.sr.vpnv4.and.te.enabled.cfg**

```
configure
load bootflash:isis.sr.vpnv4.and.te.enabled.cfg
commit replace
y
```



Configure R10 as a PCE and R1 as a PCC. Use the password **PASSWORD** for the PCEP session.



Configure a locally-calculated policy on R1 with R7 as the endpoint using an IGP metric. Configure R1 to report this policy to R10.













































## Answer <a href="#id-7d69cc22-7651-4ab1-a8ac-49e2c5ac74bc" id="id-7d69cc22-7651-4ab1-a8ac-49e2c5ac74bc"></a>

```
#R1
segment-routing
 traffic-eng
  policy POL1
   color 10 end-point ipv4 7.7.7.1
   candidate-paths
    preference 100
     dynamic
      metric
       type igp
  !
  pcc
   source-address ipv4 1.1.1.1
   pce address ipv4 10.10.10.1
    password clear PASSWORD
   !
   report-all

#R10
pce
 address ipv4 10.10.10.1
 password clear PASSWORD
```



## Explanation <a href="#id-4bbbbc43-dd18-4ee2-9ef0-4ef51393b138" id="id-4bbbbc43-dd18-4ee2-9ef0-4ef51393b138"></a>

Similar to BGP and LDP, you can use TCP option 19 (MD5 Signature) for authentication with PCEP sessions. You simply specify a password for the pce server:

```
#R1
segment-routing
 traffic-eng
  pcc
   source-address ipv4 1.1.1.1
   pce address ipv4 10.10.10.1
    password clear PASSWORD

#R10
pce
 address ipv4 10.10.10.1
 password clear PASSWORD
```



You can verify that the MD5 flag is on in the TCP details:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FoD9bUfDcZtyMUAYhErDn%2Fimage.png?alt=media&#x26;token=803ab321-9d5e-4c1d-8104-4a97880e1d00" alt=""><figcaption></figcaption></figure></div>



By default, the PCC does not report its locally-calculated policies to the PCE. You might want even locally-calculated policies to be reported to the PCE so that it can use that information itself, or provide all path information to applications through the PCE’s own northbound interface. At this moment, I’ve configured the policy on R1 but I am not reporting all policies to the PCE yet. Notice that R10 does not know of any LSPs yet:

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2Fk6j4xTQiqOSSeq1MkEz1%2Fimage.png?alt=media&#x26;token=4ed8c703-4278-4adc-b1c7-f7aea0bc1ba8" alt=""><figcaption></figcaption></figure></div>



We’ll now configure R1 to report all LSPs:

```
#R1
segment-routing
 traffic-eng
  pcc
   report-all
```



Immediately, R1 reports its single LSP to the PCE.

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2F5w3dWqtVqm5Sig1jlCWW%2Fimage.png?alt=media&#x26;token=dd829d0a-4aa8-4c2b-9093-ff4a011d702c" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FLZmnXpfBpnrunjJawj7X%2Fimage.png?alt=media&#x26;token=ff580861-9981-46ad-80e6-0dee8bf75bd3" alt=""><figcaption></figcaption></figure></div>



Above, we can tell that this policy was only reported to the PCE because the computed path section is “None.”
