1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949
|
<pre>Internet Engineering Task Force (IETF) J. Clarke
Request for Comments: 7922 G. Salgueiro
Category: Informational C. Pignataro
ISSN: 2070-1721 Cisco
June 2016
<span class="h1">Interface to the Routing System (I2RS)</span>
<span class="h1">Traceability: Framework and Information Model</span>
Abstract
This document describes a framework for traceability in the Interface
to the Routing System (I2RS) and the information model for that
framework. It specifies the motivation, requirements, and use cases,
and defines an information model for recording interactions between
elements implementing the I2RS protocol. This framework provides a
consistent tracing interface for components implementing the I2RS
architecture to record what was done, by which component, and when.
It aims to improve the management of I2RS implementations, and can be
used for troubleshooting, auditing, forensics, and accounting
purposes.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Not all documents
approved by the IESG are a candidate for any level of Internet
Standard; see <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc7922">http://www.rfc-editor.org/info/rfc7922</a>.
<span class="grey">Clarke, et al. Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Terminology and Conventions .....................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. Motivation ......................................................<a href="#page-4">4</a>
<a href="#section-4">4</a>. Use Cases .......................................................<a href="#page-4">4</a>
<a href="#section-5">5</a>. Information Model ...............................................<a href="#page-5">5</a>
<a href="#section-5.1">5.1</a>. I2RS Traceability Framework ................................<a href="#page-5">5</a>
<a href="#section-5.2">5.2</a>. I2RS Trace Log Fields ......................................<a href="#page-7">7</a>
<a href="#section-5.3">5.3</a>. End of Message Marker .....................................<a href="#page-11">11</a>
<a href="#section-6">6</a>. Examples .......................................................<a href="#page-11">11</a>
<a href="#section-7">7</a>. Operational Guidance ...........................................<a href="#page-11">11</a>
<a href="#section-7.1">7.1</a>. Trace Log Creation ........................................<a href="#page-12">12</a>
<a href="#section-7.2">7.2</a>. Trace Log Temporary Storage ...............................<a href="#page-12">12</a>
<a href="#section-7.3">7.3</a>. Trace Log Rotation ........................................<a href="#page-13">13</a>
<a href="#section-7.4">7.4</a>. Trace Log Retrieval .......................................<a href="#page-13">13</a>
<a href="#section-7.4.1">7.4.1</a>. Retrieval via Syslog ...............................<a href="#page-14">14</a>
<a href="#section-7.4.2">7.4.2</a>. Retrieval via I2RS Information Collection ..........<a href="#page-14">14</a>
<a href="#section-7.4.3">7.4.3</a>. Retrieval via I2RS Pub/Sub .........................<a href="#page-14">14</a>
<a href="#section-8">8</a>. Security Considerations ........................................<a href="#page-15">15</a>
<a href="#section-9">9</a>. References .....................................................<a href="#page-16">16</a>
<a href="#section-9.1">9.1</a>. Normative References ......................................<a href="#page-16">16</a>
<a href="#section-9.2">9.2</a>. Informative References ....................................<a href="#page-16">16</a>
Acknowledgments ...................................................<a href="#page-17">17</a>
Authors' Addresses ................................................<a href="#page-17">17</a>
<span class="grey">Clarke, et al. Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The architecture for the Interface to the Routing System [<a href="./rfc7921" title=""An Architecture for the Interface to the Routing System"">RFC7921</a>]
specifies that I2RS clients wishing to retrieve or change the routing
state on a routing element MUST authenticate to an I2RS agent. The
I2RS client will have a unique identity it provides for
authentication, and should provide another opaque identity for
applications communicating through it. The programming of routing
state will produce a return code containing the results of the
specified operation and associated reason(s) for the result. All of
this is critical information to be used for understanding the history
of I2RS interactions.
This document defines the framework necessary to trace those
interactions between the I2RS client and I2RS agent. It goes on to
describe use cases for traceability within I2RS. Based on these use
cases, the document proposes an information model and reporting
requirements to provide for effective recording of I2RS interactions.
In this context, effective troubleshooting means being able to
identify what operation was performed by a specific I2RS client via
the I2RS agent, what was the result of the operation, and when that
operation was performed.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology and Conventions</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
The architecture specification for I2RS [<a href="./rfc7921" title=""An Architecture for the Interface to the Routing System"">RFC7921</a>] defines additional
terms used in this document that are specific to the I2RS domain,
such as "I2RS agent", "I2RS client", etc. The reader is expected to
be familiar with the terminology and concepts defined in [<a href="./rfc7921" title=""An Architecture for the Interface to the Routing System"">RFC7921</a>].
<span class="grey">Clarke, et al. Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Motivation</span>
As networks scale and policy becomes an increasingly important part
of the control plane that creates and maintains the forwarding state,
operational complexity increases as well. I2RS offers more granular
and coherent control over policy and control-plane state, but it also
removes or reduces the locality of the policy that has been applied
to the control plane at any individual forwarding device. The
ability to automate and abstract even complex policy-based controls
highlights the need for an equally scalable traceability function to
provide recording at event-level granularity of the evolution of the
routing system compliant with the requirements of I2RS (<a href="./rfc7920#section-5">Section 5 of
[RFC7920]</a>).
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Use Cases</span>
An obvious motivation for I2RS traceability is the need to
troubleshoot and identify root causes of problems in these
increasingly complex routing systems. For example, since I2RS is a
high-throughput multi-channel, full duplex, and highly responsive
interface, I2RS clients may be performing a large number of
operations on I2RS agents concurrently or at nearly the same time and
quite possibly in very rapid succession. As these many changes are
made, the network reacts accordingly. These changes might lead to a
race condition, performance issues, data loss, or disruption of
services. In order to isolate the root cause of these issues, it is
critical that a network operator or administrator has visibility into
what changes were made via I2RS at a specific time.
Some network environments have strong auditing requirements for
configuration and runtime changes. Other environments have policies
that require saving logging information for operational or regulatory
compliance considerations. These requirements therefore demand that
I2RS provides an account of changes made to network element routing
systems.
As I2RS becomes increasingly pervasive in routing environments, a
traceability model that supports controllable trace log retention
using a standardized structured data format offers significant
advantages, such as the ability to create common tools supporting
automated testing, and facilitates the following use cases:
<span class="grey">Clarke, et al. Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
o real-time monitoring and troubleshooting of router events;
o automated event correlation, trend analysis, and anomaly
detection;
o offline (manual or tools-based) analysis of router state evolution
from the retained trace logs;
o enhanced network audit, management, and forensic analysis
capabilities;
o improved accounting of routing system operations; and
o providing a standardized format for incident reporting and test
logging.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Information Model</span>
These sections describe the I2RS traceability information model and
the details about each of the fields to be logged.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. I2RS Traceability Framework</span>
This section describes a framework for I2RS traceability based on the
I2RS Architecture.
The interaction between the optional network application that drives
client activity, I2RS client, I2RS agent, the Routing System, and the
data captured in the I2RS trace log is shown in Figure 1.
<span class="grey">Clarke, et al. Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
+---------------+
+----------------+ |
|Application | |
|.............. | | 0 or more Applications
| Application ID | +
+----------------+
^
|
|
v
+-------------+
+-------------+ |
|I2RS Client | |
|.............| | 1 or more Clients
| Client ID | +
+-------------+
^
|
|
v
+-------------+ +-----------------------------+
|I2RS Agent |---------------->|Trace Log |
| | |.............................|
+-------------+ |Log Entry [1 .. N] |
| ^ |.............................|
| | |Event ID |
| | |Starting Timestamp |
| | |Request State |
| | |Client ID |
| | |Client Priority |
| | |Secondary ID |
Operation + | | Result Code |Client Address |
Op Data | | |Requested Operation |
| | |Applied Operation |
| | |Operation Data Present |
| | |Requested Operation Data |
| | |Applied Operation Data |
| | |Transaction ID |
| | |Result Code |
| | |Ending Timestamp |
| | |Timeout Occurred |
v | |End Of Message |
+-------------+ +-----------------------------+
|Routing |
|System |
+-------------+
Figure 1: I2RS Interaction Trace Log Capture
<span class="grey">Clarke, et al. Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. I2RS Trace Log Fields</span>
The following fields comprise an I2RS trace log. These fields ensure
that each I2RS interaction can be properly traced back to the client
that made the request at a specific point in time.
The list below describes the fields captured in the I2RS trace log.
This list represents a common set of fields that MUST appear in all
I2RS trace logs. In addition to these fields, I2RS agent
implementations MAY choose to log additional fields such as I2RS
client vendor or agent statistics like free memory, performance
metrics, etc.
Event ID: This is a unique identifier for each event in the I2RS
trace log. An event can be a client authenticating with the
agent, a client to agent operation, or a client disconnecting from
an agent. Operation events can either be logged atomically upon
completion (in which case they will have both a Starting and an
Ending Timestamp field) or they can be logged at the beginning of
each Request State transition. Since operations can occur from
the same client at the same time, it is important to have an
identifier that can be unambiguously associated to a specific
entry. If each state transition is logged for an operation, the
same ID MUST be used for each of the Request State log entries.
In this way, the life of a request can be easily followed in the
I2RS trace log. Beyond the requirement that the Event ID MUST be
unique for each event, the specific type and value is left up to
the implementation.
Starting Timestamp: The specific time at which the I2RS operation
enters the specified Request State within the agent. If the log
entry covers the entire duration of the request, then this will be
the time that it was first received by the agent. This field MUST
be present in all entries that specify the beginning of the state
transition, as well as those entries that log the entire duration
of the request. The time is passed in the full timestamp format
[<a href="./rfc3339" title=""Date and Time on the Internet: Timestamps"">RFC3339</a>], including the date and offset from Coordinated
Universal Time (UTC). Given that many I2RS operations can occur
in rapid succession, the fractional seconds element of the
timestamp MUST be used to provide adequate granularity.
Fractional seconds SHOULD be expressed with at least three
significant digits in second.microsecond format.
<span class="grey">Clarke, et al. Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
Request State: The state of the given operation within the I2RS
agent state machine at the specified Starting or Ending
Timestamps. The I2RS agent SHOULD generate a log entry at the
moment a request enters and exits a state. Upon entering a new
state, the log entry will have a Starting Timestamp set to the
time of entry and no Ending Timestamp. Upon exiting a state, the
log entry will have an Ending Timestamp set to the time of exit
and no Starting Timestamp. The progression of the request through
its various states can be linked using the Event ID. The states
can be one of the following values:
PENDING: The request has been received and queued for
processing.
IN PROCESS: The request is currently being handled by the I2RS
agent.
COMPLETED: The request has reached a terminal point.
Every state transition SHOULD be logged unless doing so will put
an undue performance burden on the I2RS agent. However, an entry
with the Request State set to COMPLETED MUST be logged for all
operations. If the COMPLETED state is the only entry for a given
request, then it MUST have both Starting and Ending Timestamps
that cover the entire duration of the request from ingress to the
agent until completion.
Client Identity: The I2RS client identity used to authenticate the
client to the I2RS agent.
Client Priority: The I2RS client priority assigned by the access
control model that authenticates the client. For example, this
can be set by the Network Configuration Protocol (NETCONF) Access
Control Model (NACM) as described in [<a href="./rfc6536" title=""Network Configuration Protocol (NETCONF) Access Control Model"">RFC6536</a>].
Secondary Identity: This is an opaque identity that may be known to
the client from a controlling network application. This is used
to trace the network application driving the actions of the
client. The client may not provide this identity to the agent if
there is no external network application driving the client.
However, this field MUST be logged even if the client does not
provide a Secondary Identity. In that case, the field will be
logged with an empty value.
Client Address: This is the network address of the client that
connected to the agent. For example, this may be an IPv4 or an
IPv6 address.
<span class="grey">Clarke, et al. Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
Requested Operation: This is the I2RS operation that was requested
to be performed. For example, this may be an add route operation
if a route is being inserted into a routing table. This may not
be the operation that was actually applied to the agent.
In the case of a client authenticating to the agent, the Requested
Operation MUST be "CLIENT AUTHENTICATE". In the case of a client
disconnecting from the agent, the Requested Operation MUST be
"CLIENT DISCONNECT".
Applied Operation: This is the I2RS operation that was actually
performed. This can differ from the Requested Operation in cases
where the agent cannot satisfy the Requested Operation. This
field may not be logged unless the Request State is COMPLETED.
Operation Data Present: This is a Boolean field that indicates
whether or not additional per-Operation Data is present.
Requested Operation Data: This field comprises the data passed to
the agent to complete the desired operation. For example, if the
operation is a route add operation, the Operation Data would
include the route prefix, prefix length, and next-hop information
to be inserted as well as the specific routing table to which the
route will be added. If Operation Data is provided, then the
Operation Data Present field MUST be set to TRUE. Some operations
may not provide operation data. In those cases, the Operation
Data Present field MUST be set to FALSE, and this field MUST be
empty. This may not represent the data that was used for the
operation that was actually applied on the agent.
When a client authenticates to the agent, the Requested Operation
Data MUST contain the client priority. Other attributes such as
credentials used for authentication MAY be logged.
Applied Operation Data: This field comprises the data that was
actually applied as part of the Applied Operation. If the agent
cannot satisfy the Requested Operation with the Requested
Operation Data, then this field can differ from the Requested
Operation Data. This field will be empty unless the Requested
Operation Data was specified. This field may not be logged unless
the Request State is COMPLETED.
<span class="grey">Clarke, et al. Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
Transaction ID: The Transaction Identity represents that this
particular operation is part of a long-running I2RS transaction
that can consist of multiple, related I2RS operations. Using this
value, one can relate multiple log entries together as they are
part of a single, overall I2RS operation. This is an optional
field that may not be logged unless the event is part of a long-
running transaction.
Result Code: This field holds the result of the operation once the
Request State is COMPLETED. In the case of Routing Information
Base (RIB) operations, this MUST be the return code as specified
in Section 4 of [<a href="#ref-RIBINFO" title=""Routing Information Base Info Model"">RIBINFO</a>]. The operation may not complete with a
result code in the case of a timeout. If the operation fails to
complete, it MUST still log the attempted operation with an
appropriate result code.
Timeout Occurred: This is a Boolean field that indicates whether or
not a timeout occurred in the operation. When this is true, the
value of the Ending Timestamp MUST be set to the time the agent
recorded for the timeout occurrence. This field may not be logged
unless the Request State is COMPLETED.
Ending Timestamp: The specific time at which the I2RS operation
exits the specified Request State within the I2RS agent. If the
log entry covers the entire duration of the request, then this
will be the time that the request reached a terminal point within
the agent. This field MUST be present in all entries that specify
the ending of the state transition, as well as those entries that
log the entire duration of the request. The time is passed in the
full timestamp format [<a href="./rfc3339" title=""Date and Time on the Internet: Timestamps"">RFC3339</a>], including the date and offset
from Coordinated Universal Time (UTC). See the description for
Starting Timestamp above for the proper format of the Ending
Timestamp.
End Of Message: Each log entry SHOULD have an appropriate End Of
Message (EOM) indicator. See <a href="#section-5.3">Section 5.3</a> below for more details.
<span class="grey">Clarke, et al. Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. End of Message Marker</span>
Because of variability within I2RS trace log fields, implementors
MUST use a format-appropriate End Of Message (EOM) indicator in order
to signify the end of a particular record. That is, regardless of
format, the I2RS trace log MUST provide a distinct way of
distinguishing between the end of one record and the beginning of
another. For example, in a linear-formatted log (similar to a
syslog) the EOM marker may be a newline character. In an XML-
formatted log, the schema would provide for element tags that denote
the beginning and end of records. In a JSON-formatted log, the
syntax would provide record separation (likely by comma-separated
array elements).
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Examples</span>
This section shows a sample of what the fields and values could look
like.
Event ID: 1
Starting Timestamp: 2013-09-03T12:00:01.21+00:00
Request State: COMPLETED
Client ID: 5CEF1870-0326-11E2-A21F-0800200C9A66
Client Priority: 100
Secondary ID: com.example.RoutingApp
Client Address: 2001:db8:c0c0::2
Requested Operation: ROUTE_ADD
Applied Operation: ROUTE_ADD
Operation Data Present: TRUE
Requested Operation Data: PREFIX 2001:db8:feed:: PREFIX-LEN 64
NEXT-HOP 2001:db8:cafe::1
Applied Operation Data: PREFIX 2001:db8:feed:: PREFIX-LEN 64
NEXT-HOP 2001:db8:cafe::1
Transaction ID: 2763461
Result Code: SUCCESS(0)
Timeout Occurred: FALSE
Ending Timestamp: 2013-09-03T12:00:01.23+00:00
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Operational Guidance</span>
Specific operational procedures regarding temporary log storage,
rollover, retrieval, and access of I2RS trace logs is out of scope
for this document. Organizations employing I2RS trace logging are
responsible for establishing proper operational procedures that are
appropriately suited to their specific requirements and operating
environment. In this section, we only provide fundamental and
generalized operational guidelines that are implementation
independent.
<span class="grey">Clarke, et al. Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Trace Log Creation</span>
The I2RS agent interacts with the Routing and Signaling functions of
the Routing Element. Since the I2RS agent is responsible for
actually making the routing changes on the associated network device,
it creates and maintains a log of operations that can be retrieved to
troubleshoot I2RS-related impact to the network. Changes that occur
to the network element's local configuration outside of the I2RS
protocol that preempt I2RS state will only be logged if the network
element notifies the I2RS agent.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Trace Log Temporary Storage</span>
The trace information may be temporarily stored either in an
in-memory buffer or as a file local to the agent. Care should be
given to the number of I2RS operations expected on a given agent so
that the appropriate storage medium is used, and to maximize the
effectiveness of the log while not impacting the performance and
health of the agent. client requests may not always be processed
synchronously or within a bounded time period. Consequently, to
ensure that trace log fields, such as "Operation" and "Result Code",
are part of the same trace log record, buffering of the trace log
entries may be required. This buffering may result in additional
resource load on the agent and the network element.
<a href="#section-7.3">Section 7.3</a> discusses rotating the trace log in order to preserve the
operation history without exhausting agent or network device
resources. It is perfectly acceptable, therefore, to use both an
in-memory buffer for recent operations while rotating or archiving
older operations to a local file.
It is outside the scope of this document to specify the
implementation details (i.e., size, throughput, data protection,
etc.) for the physical storage of the I2RS log file. In terms of
data retention, attention should be paid to the length of time that
the I2RS trace log data is kept when that data contains security- or
privacy-sensitive attributes. The longer this data is retained, the
higher the impact if it were to be leaked. It is also possible that
legislation may impose some additional requirements on the minimum
and/or maximum durations for which some kinds of data may be
retained.
<span class="grey">Clarke, et al. Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. Trace Log Rotation</span>
In order to prevent the exhaustion of resources on the I2RS agent or
its associated network device, it is RECOMMENDED that the I2RS agent
implements trace log rotation. The details on how this is achieved
are left to the implementation and are outside the scope of this
document. However, it should be possible to do a file rotation based
on either the time or size of the current trace log. If file
rollover is supported, multiple archived log files should be
supported in order to maximize the troubleshooting and accounting
benefits of the trace log.
<span class="h3"><a class="selflink" id="section-7.4" href="#section-7.4">7.4</a>. Trace Log Retrieval</span>
Implementors are free to provide their own, proprietary interfaces
and develop custom tools to retrieve and display the I2RS trace log.
These may include the display of the I2RS trace log as command-line
interface (CLI) output. However, a key intention of defining this
information model is to establish a vendor-agnostic and consistent
interface to collect I2RS trace data. Correspondingly, retrieval of
the data should also be made vendor-agnostic.
Despite the fact that export of I2RS trace log information could be
an invaluable diagnostic tool for off-box analysis, exporting this
information MUST NOT interfere with the ability of the agent to
process new incoming operations.
The following three sections describe potential ways the trace log
can be accessed. The use of I2RS pub/sub for accessing trace log
data is mandatory-to-implement, while others are optional.
<span class="grey">Clarke, et al. Informational [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h4"><a class="selflink" id="section-7.4.1" href="#section-7.4.1">7.4.1</a>. Retrieval via Syslog</span>
The syslog protocol [<a href="./rfc5424" title=""The Syslog Protocol"">RFC5424</a>] is a standard way of sending event
notification messages from a host to a collector. However, the
protocol does not define any standard format for storing the
messages, and thus implementors of I2RS tracing would be left to
define their own format. So, while the data contained within the
syslog message would adhere to this information model, and may be
consumable by a human operator, it would not be easily parseable by a
machine. Syslog MAY be employed as a means of retrieving or
disseminating the I2RS trace log contents.
If syslog is used for trace log retrieval, then existing logging
infrastructure and capabilities of syslog [<a href="./rfc5424" title=""The Syslog Protocol"">RFC5424</a>] should be
leveraged without the need to define or extend existing formats.
That is, the various fields described in <a href="#section-5.2">Section 5.2</a> SHOULD be
modeled and encoded as Structured Data Elements (referred to as
"SD-ELEMENT"), as described in <a href="./rfc5424#section-6.3.1">Section 6.3.1 of [RFC5424]</a>.
<span class="h4"><a class="selflink" id="section-7.4.2" href="#section-7.4.2">7.4.2</a>. Retrieval via I2RS Information Collection</span>
<a href="#section-7.7">Section 7.7</a> of the I2RS architecture [<a href="./rfc7921" title=""An Architecture for the Interface to the Routing System"">RFC7921</a>] defines a mechanism
for information collection. The information collected includes
obtaining a snapshot of a large amount of data from the network
element. It is the intent of I2RS to make this data available in an
implementor-agnostic fashion. Therefore, the I2RS trace log SHOULD
be made available via the I2RS information collection mechanism
either as a single snapshot or via a subscription stream.
<span class="h4"><a class="selflink" id="section-7.4.3" href="#section-7.4.3">7.4.3</a>. Retrieval via I2RS Pub/Sub</span>
<a href="#section-7.6">Section 7.6</a> of the I2RS architecture [<a href="./rfc7921" title=""An Architecture for the Interface to the Routing System"">RFC7921</a>] goes on to describe
notification mechanisms for a feed of changes happening within the
I2RS layer. Specifically, the requirements for a publish-subscribe
system for I2RS are defined in [<a href="./rfc7923" title=""Requirements for Subscription to YANG Datastores"">RFC7923</a>]. I2RS agents MUST support
publishing I2RS trace log information to that feed as described in
[<a href="./rfc7923" title=""Requirements for Subscription to YANG Datastores"">RFC7923</a>]. Subscribers would then receive a live stream of I2RS
interactions in trace log format and could flexibly choose to do a
number of things with the log messages. For example, the subscribers
could log the messages to a datastore, aggregate, and summarize
interactions from a single client, etc. The full range of potential
activities is virtually limitless and the details of how they are
performed are outside the scope of this document, however.
<span class="grey">Clarke, et al. Informational [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
The I2RS trace log, like any log file, reveals the state of the
entity producing it as well as the identifying information elements
and detailed interactions of the system containing it. The
information model described in this document does not itself
introduce any security issues, but it does define the set of
attributes that make up an I2RS log file. These attributes may
contain sensitive information, and thus should adhere to the
security, privacy, and permission policies of the organization making
use of the I2RS log file.
It is outside the scope of this document to specify how to protect
the stored log file, but it is expected that adequate precautions and
security best practices such as disk encryption, appropriately
restrictive file/directory permissions, suitable hardening and
physical security of logging entities, mutual authentication,
transport encryption, channel confidentiality, and channel integrity
if transferring log files. Additionally, the potentially sensitive
information contained in a log file SHOULD be adequately anonymized
or obfuscated by operators to ensure its privacy.
<span class="grey">Clarke, et al. Informational [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. References</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC3339">RFC3339</a>] Klyne, G. and C. Newman, "Date and Time on the Internet:
Timestamps", <a href="./rfc3339">RFC 3339</a>, DOI 10.17487/RFC3339, July 2002,
<<a href="http://www.rfc-editor.org/info/rfc3339">http://www.rfc-editor.org/info/rfc3339</a>>.
[<a id="ref-RFC5424">RFC5424</a>] Gerhards, R., "The Syslog Protocol", <a href="./rfc5424">RFC 5424</a>,
DOI 10.17487/RFC5424, March 2009,
<<a href="http://www.rfc-editor.org/info/rfc5424">http://www.rfc-editor.org/info/rfc5424</a>>.
[<a id="ref-RFC7921">RFC7921</a>] Atlas, A., Halpern, J., Hares, S., Ward, D., and T.
Nadeau, "An Architecture for the Interface to the Routing
System", <a href="./rfc7921">RFC 7921</a>, DOI 10.17487/RFC7921, June 2016,
<<a href="http://www.rfc-editor.org/info/rfc7921">http://www.rfc-editor.org/info/rfc7921</a>>.
[<a id="ref-RFC7923">RFC7923</a>] Voit, E., Clemm, A., and A. Gonzalez Prieto, "Requirements
for Subscription to YANG Datastores", <a href="./rfc7923">RFC 7923</a>,
DOI 10.17487/RFC7923, June 2016.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Informative References</span>
[<a id="ref-RFC6536">RFC6536</a>] Bierman, A. and M. Bjorklund, "Network Configuration
Protocol (NETCONF) Access Control Model", <a href="./rfc6536">RFC 6536</a>,
DOI 10.17487/RFC6536, March 2012,
<<a href="http://www.rfc-editor.org/info/rfc6536">http://www.rfc-editor.org/info/rfc6536</a>>.
[<a id="ref-RFC7920">RFC7920</a>] Atlas, A., Ed., Nadeau, T., Ed., and D. Ward, "Problem
Statement for the Interface to the Routing System",
<a href="./rfc7923">RFC 7923</a>, DOI 10.17487/RFC7923, June 2016,
<<a href="http://www.rfc-editor.org/info/rfc7920">http://www.rfc-editor.org/info/rfc7920</a>>.
[<a id="ref-RIBINFO">RIBINFO</a>] Bahadur, N., Ed., Kini, S., Ed., and J. Medved, "Routing
Information Base Info Model", Work in Progress,
<a href="./draft-ietf-i2rs-rib-info-model-08">draft-ietf-i2rs-rib-info-model-08</a>, October 2015.
<span class="grey">Clarke, et al. Informational [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc7922">RFC 7922</a> I2RS Traceability June 2016</span>
Acknowledgments
The authors would like to thank Alia Atlas for her initial feedback
and overall support for this work. Additionally, the authors
acknowledge Alvaro Retana, Russ White, Matt Birkner, Jeff Haas, Joel
Halpern, Dean Bogdanovich, Ignas Bagdonas, Nobo Akiya, Kwang-koog
Lee, Sue Hares, Mach Chen, Alex Clemm, Stephen Farrell, Benoit
Claise, Les Ginsberg, Suresh Krishnan, and Elwyn Davies for their
reviews, contributed text, and suggested improvements to this
document.
Authors' Addresses
Joe Clarke
Cisco Systems, Inc.
7200-12 Kit Creek Road
Research Triangle Park, NC 27709
United States
Phone: +1-919-392-2867
Email: jclarke@cisco.com
Gonzalo Salgueiro
Cisco Systems, Inc.
7200-12 Kit Creek Road
Research Triangle Park, NC 27709
United States
Email: gsalguei@cisco.com
Carlos Pignataro
Cisco Systems, Inc.
7200-11 Kit Creek Road
Research Triangle Park, NC 27709
United States
Email: cpignata@cisco.com
Clarke, et al. Informational [Page 17]
</pre>
|