PCEP Sessions

How PCCs connect to Pola, timer settings, Keepalive negotiation, and session inspection.

Pola listens for PCEP connections on global.pcep.address and global.pcep.port. Configure each PCC to connect to that address. Pola accepts one session per peer address; another connection from the same address is answered with PCErr 9/1 and closed.

Timers Pola advertises

keepalive and deadTimer under global.pcep are the values Pola advertises in its Open message (RFC 5440, Section 7.3).

KeyDefaultRule
keepalive300-255 seconds. 0 disables Keepalive transmission.
deadTimer4 x keepalive, capped at 2550 or greater than keepalive. Must be 0 if keepalive is 0. Because of the cap, keepalive: 255 requires deadTimer: 0.

Pola sends Keepalives every keepalive seconds, or every deadTimer / 4 seconds if that is shorter, with a minimum interval of 1 second. If deadTimer is 0, it uses keepalive. If keepalive is 0, it sends no Keepalives.

global:
  pcep:
    address: "192.0.2.254"
    port: 4189
    keepalive: 30
    deadTimer: 120

Peer timers

Pola closes the session with Close reason “DeadTimer expired” if no message arrives within the peer’s advertised DeadTimer.

Pola does not time out the session if the peer advertises a Keepalive or DeadTimer of 0. A Keepalive of 0 also disables DeadTimer processing, even if the DeadTimer is nonzero.

Validating the peer’s Keepalive

minKeepalive sets the lower bound and maxKeepalive sets the upper bound for the Keepalive in a peer’s Open. Each bound is optional: the lower bound defaults to 0 and the upper bound to 255. Omit both to disable the check.

A peer’s Open is also unacceptable if its DeadTimer is nonzero and not greater than its nonzero Keepalive.

allowNegotiation (default true) decides what Pola does with an unacceptable Open:

ValueBehavior
truePola sends PCErr 1/4 proposing a Keepalive clamped to the configured range and a DeadTimer of four times that value, capped at 255 (0 when the Keepalive is 255). If the peer’s next Open is still unacceptable, Pola sends PCErr 1/5 and closes the session.
falsePola sends PCErr 1/3 and closes the session.
global:
  pcep:
    address: "192.0.2.254"
    port: 4189
    minKeepalive: 10
    maxKeepalive: 60
    allowNegotiation: true

Pola accepts a PCErr 1/4 proposal for its own Open only if the proposed values satisfy the same rules, including the minKeepalive/maxKeepalive range. For the full negotiation, see Session State Machine.

Capabilities

Pola advertises the Stateful PCE capability with support for LSP updates and instantiation (RFC 8231, RFC 8281), the Color capability (RFC 9863), and the SR-MPLS (RFC 8664) and SRv6 (RFC 9603) path setup types.

Pola refuses the session if the PCC’s PATH-SETUP-TYPE-CAPABILITY lists no path setup type (PCErr 10/11) or none that Pola supports (PCErr 21/2).

Pola does not track delegation. It ignores the D flag in PCC reports and sets D in every PCInitiate and PCUpd it sends. Pola answers stateless PCReq messages with PCErr 2/0.

Inspecting and closing sessions

pola session                   # list all sessions and their state
pola session 192.0.2.1 detail  # also show creation time, initiator, and message counters
pola session delete 192.0.2.1  # send Close and drop the session

Session states are tcp-pending, open-wait, keep-wait, and up.

SR Policies can be provisioned only when the session is up and LSP-DB synchronization is finished. Synchronization finishes when the PCC sends its end-of-sync report (a PCRpt with PLSP-ID 0, RFC 8231, Section 5.6).

After pola session delete, the PCC normally reconnects according to its own retry timer. When polad stops, it sends Close to every session.

See the pola reference for the output format.

Last modified November 20, 2026: docs: modernize documentation site (74dd3de)