1 .. _pcep-user-guide-session-statistics:
5 The PCEP statistics provides information about PCE <-> PCC session and its stateful listener (topology-provider).
10 **URL:** ``/rests/data/network-topology:network-topology/topology=pcep-topology/node=pcc%3A%2F%2F43.43.43.43/pcep-session-state?content=nonconfig``
22 :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
24 <pcep-session-state xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep:stats">
26 <last-received-rpt-msg-timestamp xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">1512640592</last-received-rpt-msg-timestamp>
27 <sent-upd-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-upd-msg-count>
28 <received-rpt-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">2</received-rpt-msg-count>
29 <sent-init-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-init-msg-count>
30 <sent-msg-count>0</sent-msg-count>
31 <last-sent-msg-timestamp>0</last-sent-msg-timestamp>
32 <unknown-msg-received>0</unknown-msg-received>
33 <received-msg-count>2</received-msg-count>
35 <last-sent-error></last-sent-error>
36 <received-error-msg-count>0</received-error-msg-count>
37 <sent-error-msg-count>0</sent-error-msg-count>
38 <last-received-error></last-received-error>
41 <average-time>0</average-time>
42 <min-time>0</min-time>
43 <max-time>0</max-time>
47 <keepalive>30</keepalive>
48 <deadtimer>120</deadtimer>
49 <ip-address>127.0.0.1</ip-address>
50 <session-id>0</session-id>
53 <keepalive>30</keepalive>
54 <deadtimer>120</deadtimer>
55 <ip-address>127.0.0.1</ip-address>
56 <session-id>0</session-id>
59 <stateful xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</stateful>
60 <instantiation xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</instantiation>
61 <active xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</active>
63 <session-duration>0:00:00:18</session-duration>
64 <delegated-lsps-count>1</delegated-lsps-count>
65 <synchronized>true</synchronized>
68 @line 3: **last-received-rpt-msg-timestamp** - The timestamp of last received PCRpt message.
70 @line 4: **sent-upd-msg-count** - The number of sent PCUpd messages.
72 @line 5: **received-rpt-msg-count** - The number of received PcRpt messages.
74 @line 6: **sent-init-msg-count** - The number of sent PCInitiate messages.
76 @line 7: **sent-msg-count** - Total number of sent PCEP messages.
78 @line 8: **last-sent-msg-timestamp** - The timestamp of last sent message.
80 @line 9: **unknown-msg-received** - The number of received unknown messages.
82 @line 10: **received-msg-count** - Total number of received PCEP messages.
84 @line 12: **last-sent-error** - Type/value tuple of last sent error.
86 @line 13: **received-error-msg-count** - Total number of received PCErr messages.
88 @line 14: **sent-error-msg-count** - Total number of sent PCErr messages.
90 @line 15: **last-received-error** - Type/value tuple of last sent error.
92 @line 24: **keepalive** - Advertised keep-alive value.
94 @line 25: **deadtimer** - Advertised deadtimer value.
96 @line 26: **ip-address** - Peer's IP address.
98 @line 27: **session-id** - Peer's session identifier.
100 @line 30: **keepalive** - Advertised keep-alive value.
102 @line 31: **deadtimer** - Advertised deadtimer value.
104 @line 32: **ip-address** - Peer's IP address.
106 @line 33: **session-id** - Peer's session identifier.
108 @line 35: **stateful** - Represents peer's stateful/stateless capability.
110 @line 36: **instantiation** - Represents peer's instantiation capability.
112 @line 37: **active** - Represents peer's LSP update capability.
114 @line 40: **session-duration** - Elapsed time (in d:H:m:s) from session-up until last statistic update.
116 @line 41: **delegated-lsps-count** - The number of delegated LSPs (tunnels) from PCC.
118 @line 42: **synchronized** - Represents synchronization status.
126 :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
129 "pcep-session-state": {
131 "last-received-rpt-msg-timestamp": 1512640592,
132 "sent-upd-msg-count": 0,
133 "received-rpt-msg-count": 2,
134 "sent-init-msg-count": 0,
136 "last-sent-msg-timestamp": 0,
137 "unknown-msg-received": 0,
138 "received-msg-count": 2,
140 "last-sent-error": null,
141 "received-error-msg-count": 0,
142 "sent-error-msg-count": 0,
143 "last-received-error": null
154 "ip-address": "127.0.0.1",
160 "ip-address": "127.0.0.1",
163 "peer-capabilities": {
165 "instantiation": true,
168 "session-duration": "0:00:00:18",
169 "delegated-lsps-count": 1,
174 @line 4: **last-received-rpt-msg-timestamp** - The timestamp of last received PCRpt message.
176 @line 5: **sent-upd-msg-count** - The number of sent PCUpd messages.
178 @line 6: **received-rpt-msg-count** - The number of received PcRpt messages.
180 @line 7: **sent-init-msg-count** - The number of sent PCInitiate messages.
182 @line 8: **sent-msg-count** - Total number of sent PCEP messages.
184 @line 9: **last-sent-msg-timestamp** - The timestamp of last sent message.
186 @line 10: **unknown-msg-received** - The number of received unknown messages.
188 @line 11: **received-msg-count** - Total number of received PCEP messages.
190 @line 13: **last-sent-error** - Type/value tuple of last sent error.
192 @line 14: **received-error-msg-count** - Total number of received PCErr messages.
194 @line 15: **sent-error-msg-count** - Total number of sent PCErr messages.
196 @line 16: **last-received-error** - Type/value tuple of last sent error.
198 @line 25: **keepalive** - Advertised keep-alive value.
200 @line 26: **deadtimer** - Advertised deadtimer value.
202 @line 27: **ip-address** - Peer's IP address.
204 @line 28: **session-id** - Peer's session identifier.
206 @line 31: **keepalive** - Advertised keep-alive value.
208 @line 32: **deadtimer** - Advertised deadtimer value.
210 @line 33: **ip-address** - Peer's IP address.
212 @line 34: **session-id** - Peer's session identifier.
214 @line 37: **stateful** - Represents peer's stateful/stateless capability.
216 @line 38: **instantiation** - Represents peer's instantiation capability.
218 @line 39: **active** - Represents peer's LSP update capability.
220 @line 41: **session-duration** - Elapsed time (in d:H:m:s) from session-up until last statistic update.
222 @line 42: **delegated-lsps-count** - The number of delegated LSPs (tunnels) from PCC.
224 @line 43: **synchronized** - Represents synchronization status.
226 Following RPC can be used to fetch PCEP session statistics. If PCEP topology and/or PCC node is not specified in input,
227 statistics for all PCEP sessions under the context are returned.
232 **URL:** ``/rests/operations/pcep-topology-stats-rpc:get-stats``
240 **Content-Type:** ``application/xml``
246 <input xmlns="urn:opendaylight:params:xml:ns:yang:pcep:topology:stats:rpc">
248 <topology-id>pcep-topology</topology-id>
250 <node-id>pcc://43.43.43.43</node-id>
259 <output xmlns="urn:opendaylight:params:xml:ns:yang:pcep:topology:stats:rpc">
261 <topology-id>pcep-topology</topology-id>
263 <node-id>pcc://43.43.43.43</node-id>
265 <synchronized>true</synchronized>
267 <stateful xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</stateful>
268 <instantiation xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</instantiation>
269 <active xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">true</active>
272 <keepalive>30</keepalive>
273 <deadtimer>120</deadtimer>
274 <session-id>1</session-id>
275 <ip-address>127.0.0.1</ip-address>
277 <session-duration>4:01:59:46</session-duration>
279 <unknown-msg-received>0</unknown-msg-received>
280 <received-msg-count>11752</received-msg-count>
283 <error-type>0</error-type>
284 <error-value>0</error-value>
286 <received-error-msg-count>0</received-error-msg-count>
287 <last-received-error>
288 <error-type>0</error-type>
289 <error-value>0</error-value>
290 </last-received-error>
291 <sent-error-msg-count>0</sent-error-msg-count>
293 <sent-msg-count>11759</sent-msg-count>
294 <last-sent-msg-timestamp>1553547804</last-sent-msg-timestamp>
296 <average-time>0</average-time>
297 <min-time>0</min-time>
298 <max-time>0</max-time>
300 <received-rpt-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">1</received-rpt-msg-count>
301 <sent-init-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-init-msg-count>
302 <last-received-rpt-msg-timestamp xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">1553195032</last-received-rpt-msg-timestamp>
303 <sent-upd-msg-count xmlns="urn:opendaylight:params:xml:ns:yang:pcep:stateful:stats">0</sent-upd-msg-count>
306 <keepalive>30</keepalive>
307 <deadtimer>120</deadtimer>
308 <session-id>8</session-id>
309 <ip-address>127.0.0.1</ip-address>
311 <delegated-lsps-count>0</delegated-lsps-count>
312 </pcep-session-state>
319 **Content-Type:** ``application/json``
329 "topology-id": "pcep-topology",
332 "node-id": "pcc://43.43.43.43"
347 "topology-id": "pcep-topology",
349 "node-id": "pcc://43.43.43.43",
350 "pcep-session-state": {
351 "synchronized": true,
352 "peer-capabilities": {
354 "instantiation": true,
361 "ip-address": "127.0.0.1"
363 "session-duration": "4:01:59:46",
365 "unknown-msg-received": 0,
366 "received-msg-count": 11752,
372 "received-error-msg-count": 0,
373 "last-received-error": {
377 "sent-error-msg-count": 0
379 "sent-msg-count": 11759,
380 "last-sent-msg-timestamp": 1553547804,
386 "received-rpt-msg-count": 1,
387 "sent-init-msg-count": 0,
388 "last-received-rpt-msg-timestamp": 1553195032,
389 "sent-upd-msg-count": 0
395 "ip-address": "127.0.0.1"
397 "delegated-lsps-count": 0