1 .. _pcep-user-guide-session-statistics:
5 The PCEP statistics provides information about PCE <-> PCC session and its stateful listener (topology-provider).
10 **URL:** ``/restconf/operational/network-topology:network-topology/topology/pcep-topology/node/pcc:%2F%2F43.43.43.43/pcep-session-state``
12 **RFC8040 URL:** ``/rests/data/network-topology:network-topology/topology=pcep-topology/node=pcc%3A%2F%2F43.43.43.43/pcep-session-state?content=nonconfig``
24 :emphasize-lines: 3,4,5,6,7,8,9,10,12,13,14,15,24,25,26,27,30,31,32,33,36,37,38,40,41,42
26 <pcep-session-state xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep:stats">
28 <last-received-rpt-msg-timestamp xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">1512640592</last-received-rpt-msg-timestamp>
29 <sent-upd-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-upd-msg-count>
30 <received-rpt-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">2</received-rpt-msg-count>
31 <sent-init-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-init-msg-count>
32 <sent-msg-count>0</sent-msg-count>
33 <last-sent-msg-timestamp>0</last-sent-msg-timestamp>
34 <unknown-msg-received>0</unknown-msg-received>
35 <received-msg-count>2</received-msg-count>
37 <last-sent-error></last-sent-error>
38 <received-error-msg-count>0</received-error-msg-count>
39 <sent-error-msg-count>0</sent-error-msg-count>
40 <last-received-error></last-received-error>
43 <average-time>0</average-time>
44 <min-time>0</min-time>
45 <max-time>0</max-time>
49 <keepalive>30</keepalive>
50 <deadtimer>120</deadtimer>
51 <ip-address>127.0.0.1</ip-address>
52 <session-id>0</session-id>
55 <keepalive>30</keepalive>
56 <deadtimer>120</deadtimer>
57 <ip-address>127.0.0.1</ip-address>
58 <session-id>0</session-id>
61 <stateful xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</stateful>
62 <instantiation xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</instantiation>
63 <active xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</active>
65 <session-duration>0:00:00:18</session-duration>
66 <delegated-lsps-count>1</delegated-lsps-count>
67 <synchronized>true</synchronized>
70 @line 3: **last-received-rpt-msg-timestamp** - The timestamp of last received PCRpt message.
72 @line 4: **sent-upd-msg-count** - The number of sent PCUpd messages.
74 @line 5: **received-rpt-msg-count** - The number of received PcRpt messages.
76 @line 6: **sent-init-msg-count** - The number of sent PCInitiate messages.
78 @line 7: **sent-msg-count** - Total number of sent PCEP messages.
80 @line 8: **last-sent-msg-timestamp** - The timestamp of last sent message.
82 @line 9: **unknown-msg-received** - The number of received unknown messages.
84 @line 10: **received-msg-count** - Total number of received PCEP messages.
86 @line 12: **last-sent-error** - Type/value tuple of last sent error.
88 @line 13: **received-error-msg-count** - Total number of received PCErr messages.
90 @line 14: **sent-error-msg-count** - Total number of sent PCErr messages.
92 @line 15: **last-received-error** - Type/value tuple of last sent error.
94 @line 24: **keepalive** - Advertised keep-alive value.
96 @line 25: **deadtimer** - Advertised deadtimer value.
98 @line 26: **ip-address** - Peer's IP address.
100 @line 27: **session-id** - Peer's session identifier.
102 @line 30: **keepalive** - Advertised keep-alive value.
104 @line 31: **deadtimer** - Advertised deadtimer value.
106 @line 32: **ip-address** - Peer's IP address.
108 @line 33: **session-id** - Peer's session identifier.
110 @line 35: **stateful** - Represents peer's stateful/stateless capability.
112 @line 36: **instantiation** - Represents peer's instantiation capability.
114 @line 37: **active** - Represents peer's LSP update capability.
116 @line 40: **session-duration** - Elapsed time (in d:H:m:s) from session-up until last statistic update.
118 @line 41: **delegated-lsps-count** - The number of delegated LSPs (tunnels) from PCC.
120 @line 42: **synchronized** - Represents synchronization status.
128 :emphasize-lines: 4,5,6,7,8,9,10,11,13,14,15,16,25,26,27,28,31,32,33,34,37,38,39,41,42,43
131 "pcep-session-state": {
133 "last-received-rpt-msg-timestamp": 1512640592,
134 "sent-upd-msg-count": 0,
135 "received-rpt-msg-count": 2,
136 "sent-init-msg-count": 0,
138 "last-sent-msg-timestamp": 0,
139 "unknown-msg-received": 0,
140 "received-msg-count": 2,
142 "last-sent-error": null,
143 "received-error-msg-count": 0,
144 "sent-error-msg-count": 0,
145 "last-received-error": null
156 "ip-address": "127.0.0.1",
162 "ip-address": "127.0.0.1",
165 "peer-capabilities": {
167 "instantiation": true,
170 "session-duration": "0:00:00:18",
171 "delegated-lsps-count": 1,
176 @line 4: **last-received-rpt-msg-timestamp** - The timestamp of last received PCRpt message.
178 @line 5: **sent-upd-msg-count** - The number of sent PCUpd messages.
180 @line 6: **received-rpt-msg-count** - The number of received PcRpt messages.
182 @line 7: **sent-init-msg-count** - The number of sent PCInitiate messages.
184 @line 8: **sent-msg-count** - Total number of sent PCEP messages.
186 @line 9: **last-sent-msg-timestamp** - The timestamp of last sent message.
188 @line 10: **unknown-msg-received** - The number of received unknown messages.
190 @line 11: **received-msg-count** - Total number of received PCEP messages.
192 @line 13: **last-sent-error** - Type/value tuple of last sent error.
194 @line 14: **received-error-msg-count** - Total number of received PCErr messages.
196 @line 15: **sent-error-msg-count** - Total number of sent PCErr messages.
198 @line 16: **last-received-error** - Type/value tuple of last sent error.
200 @line 25: **keepalive** - Advertised keep-alive value.
202 @line 26: **deadtimer** - Advertised deadtimer value.
204 @line 27: **ip-address** - Peer's IP address.
206 @line 28: **session-id** - Peer's session identifier.
208 @line 31: **keepalive** - Advertised keep-alive value.
210 @line 32: **deadtimer** - Advertised deadtimer value.
212 @line 33: **ip-address** - Peer's IP address.
214 @line 34: **session-id** - Peer's session identifier.
216 @line 37: **stateful** - Represents peer's stateful/stateless capability.
218 @line 38: **instantiation** - Represents peer's instantiation capability.
220 @line 39: **active** - Represents peer's LSP update capability.
222 @line 41: **session-duration** - Elapsed time (in d:H:m:s) from session-up until last statistic update.
224 @line 42: **delegated-lsps-count** - The number of delegated LSPs (tunnels) from PCC.
226 @line 43: **synchronized** - Represents synchronization status.
228 Following RPC can be used to fetch PCEP session statistics. If PCEP topology and/or PCC node is not specified in input,
229 statistics for all PCEP sessions under the context are returned.
234 **URL:** ``/restconf/operations/pcep-topology-stats-rpc:get-stats``
236 **RFC8040 URL:** ``/rests/operations/pcep-topology-stats-rpc:get-stats``
244 **Content-Type:** ``application/xml``
250 <input xmlns="urn:opendaylight:params:xml:ns:yang:pcep:topology:stats:rpc">
252 <topology-id>pcep-topology</topology-id>
254 <node-id>pcc://43.43.43.43</node-id>
263 <output xmlns="urn:opendaylight:params:xml:ns:yang:pcep:topology:stats:rpc">
265 <topology-id>pcep-topology</topology-id>
267 <node-id>pcc://43.43.43.43</node-id>
269 <synchronized>true</synchronized>
271 <stateful xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</stateful>
272 <instantiation xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</instantiation>
273 <active xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</active>
276 <keepalive>30</keepalive>
277 <deadtimer>120</deadtimer>
278 <session-id>1</session-id>
279 <ip-address>127.0.0.1</ip-address>
281 <session-duration>4:01:59:46</session-duration>
283 <unknown-msg-received>0</unknown-msg-received>
284 <received-msg-count>11752</received-msg-count>
287 <error-type>0</error-type>
288 <error-value>0</error-value>
290 <received-error-msg-count>0</received-error-msg-count>
291 <last-received-error>
292 <error-type>0</error-type>
293 <error-value>0</error-value>
294 </last-received-error>
295 <sent-error-msg-count>0</sent-error-msg-count>
297 <sent-msg-count>11759</sent-msg-count>
298 <last-sent-msg-timestamp>1553547804</last-sent-msg-timestamp>
300 <average-time>0</average-time>
301 <min-time>0</min-time>
302 <max-time>0</max-time>
304 <received-rpt-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">1</received-rpt-msg-count>
305 <sent-init-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-init-msg-count>
306 <last-received-rpt-msg-timestamp xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">1553195032</last-received-rpt-msg-timestamp>
307 <sent-upd-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-upd-msg-count>
310 <keepalive>30</keepalive>
311 <deadtimer>120</deadtimer>
312 <session-id>8</session-id>
313 <ip-address>127.0.0.1</ip-address>
315 <delegated-lsps-count>0</delegated-lsps-count>
316 </pcep-session-state>
323 **Content-Type:** ``application/json``
333 "topology-id": "pcep-topology",
336 "node-id": "pcc://43.43.43.43"
351 "topology-id": "pcep-topology",
353 "node-id": "pcc://43.43.43.43",
354 "pcep-session-state": {
355 "synchronized": true,
356 "peer-capabilities": {
358 "instantiation": true,
365 "ip-address": "127.0.0.1"
367 "session-duration": "4:01:59:46",
369 "unknown-msg-received": 0,
370 "received-msg-count": 11752,
376 "received-error-msg-count": 0,
377 "last-received-error": {
381 "sent-error-msg-count": 0
383 "sent-msg-count": 11759,
384 "last-sent-msg-timestamp": 1553547804,
390 "received-rpt-msg-count": 1,
391 "sent-init-msg-count": 0,
392 "last-received-rpt-msg-timestamp": 1553195032,
393 "sent-upd-msg-count": 0
399 "ip-address": "127.0.0.1"
401 "delegated-lsps-count": 0