Internet Engineering Task Force (IETF)                          G. Muenz
Request for Comments: 6728                                   TU Muenchen
Category: Standards Track                                      B. Claise
ISSN: 2070-1721                                                P. Aitken
                                                     Cisco Systems, Inc.
                                                            October 2012
        
Internet Engineering Task Force (IETF)                          G. Muenz
Request for Comments: 6728                                   TU Muenchen
Category: Standards Track                                      B. Claise
ISSN: 2070-1721                                                P. Aitken
                                                     Cisco Systems, Inc.
                                                            October 2012
        

Configuration Data Model for the IP Flow Information Export (IPFIX) and Packet Sampling (PSAMP) Protocols

IP流信息导出(IPFIX)和数据包采样(PSAMP)协议的配置数据模型

Abstract

摘要

This document specifies a data model for the IP Flow Information Export (IPFIX) and Packet Sampling (PSAMP) protocols. It is for configuring and monitoring Selection Processes, Caches, Exporting Processes, and Collecting Processes of IPFIX- and PSAMP-compliant Monitoring Devices using the Network Configuration Protocol (NETCONF). The data model is defined using UML (Unified Modeling Language) class diagrams and formally specified using YANG. The configuration data is encoded in Extensible Markup Language (XML).

本文档指定了IP流信息导出(IPFIX)和数据包采样(PSAMP)协议的数据模型。它用于使用网络配置协议(NETCONF)配置和监控IPFIX和PSAMP兼容监控设备的选择过程、缓存、导出过程和收集过程。数据模型使用UML(统一建模语言)类图定义,并使用YANG正式指定。配置数据以可扩展标记语言(XML)编码。

Status of This Memo

关于下段备忘

This is an Internet Standards Track document.

这是一份互联网标准跟踪文件。

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). Further information on Internet Standards is available in Section 2 of RFC 5741.

本文件是互联网工程任务组(IETF)的产品。它代表了IETF社区的共识。它已经接受了公众审查,并已被互联网工程指导小组(IESG)批准出版。有关互联网标准的更多信息,请参见RFC 5741第2节。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc6728.

有关本文件当前状态、任何勘误表以及如何提供反馈的信息,请访问http://www.rfc-editor.org/info/rfc6728.

Copyright Notice

版权公告

Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved.

版权所有(c)2012 IETF信托基金和确定为文件作者的人员。版权所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) 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

本文件受BCP 78和IETF信托有关IETF文件的法律规定的约束(http://trustee.ietf.org/license-info)自本文件出版之日起生效。请仔细阅读这些文件,因为它们描述了您对本文件的权利和限制。从该文档中提取的代码组件必须

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.

包括信托法律条款第4.e节中所述的简化BSD许可证文本,且不提供简化BSD许可证中所述的担保。

This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.

本文件可能包含2008年11月10日之前发布或公开的IETF文件或IETF贡献中的材料。控制某些材料版权的人员可能未授予IETF信托允许在IETF标准流程之外修改此类材料的权利。在未从控制此类材料版权的人员处获得充分许可的情况下,不得在IETF标准流程之外修改本文件,也不得在IETF标准流程之外创建其衍生作品,除了将其格式化以RFC形式发布或将其翻译成英语以外的其他语言。

Table of Contents

目录

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  IPFIX Documents Overview  . . . . . . . . . . . . . . . .   4
     1.2.  PSAMP Documents Overview  . . . . . . . . . . . . . . . .   5
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   5
   3.  Structure of the Configuration Data Model . . . . . . . . . .   7
     3.1.  Metering Process Decomposition in Selection Process
           and Cache . . . . . . . . . . . . . . . . . . . . . . . .   8
     3.2.  UML Representation  . . . . . . . . . . . . . . . . . . .  10
     3.3.  Exporter Configuration  . . . . . . . . . . . . . . . . .  15
     3.4.  Collector Configuration . . . . . . . . . . . . . . . . .  17
   4.  Configuration Parameters  . . . . . . . . . . . . . . . . . .  18
     4.1.  ObservationPoint Class  . . . . . . . . . . . . . . . . .  18
     4.2.  SelectionProcess Class  . . . . . . . . . . . . . . . . .  20
       4.2.1.  Selector Class  . . . . . . . . . . . . . . . . . . .  21
       4.2.2.  Sampler Classes . . . . . . . . . . . . . . . . . . .  22
       4.2.3.  Filter Classes  . . . . . . . . . . . . . . . . . . .  23
     4.3.  Cache Class . . . . . . . . . . . . . . . . . . . . . . .  25
       4.3.1.  ImmediateCache Class  . . . . . . . . . . . . . . . .  26
       4.3.2.  TimeoutCache, NaturalCache, and PermanentCache
               Class . . . . . . . . . . . . . . . . . . . . . . . .  27
       4.3.3.  CacheLayout Class . . . . . . . . . . . . . . . . . .  29
     4.4.  ExportingProcess Class  . . . . . . . . . . . . . . . . .  32
       4.4.1.  SctpExporter Class  . . . . . . . . . . . . . . . . .  34
       4.4.2.  UdpExporter Class . . . . . . . . . . . . . . . . . .  36
       4.4.3.  TcpExporter Class . . . . . . . . . . . . . . . . . .  37
       4.4.4.  FileWriter Class  . . . . . . . . . . . . . . . . . .  38
       4.4.5.  Options Class . . . . . . . . . . . . . . . . . . . .  39
     4.5.  CollectingProcess Class . . . . . . . . . . . . . . . . .  41
       4.5.1.  SctpCollector Class . . . . . . . . . . . . . . . . .  42
       4.5.2.  UdpCollector Class  . . . . . . . . . . . . . . . . .  43
        
   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  IPFIX Documents Overview  . . . . . . . . . . . . . . . .   4
     1.2.  PSAMP Documents Overview  . . . . . . . . . . . . . . . .   5
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   5
   3.  Structure of the Configuration Data Model . . . . . . . . . .   7
     3.1.  Metering Process Decomposition in Selection Process
           and Cache . . . . . . . . . . . . . . . . . . . . . . . .   8
     3.2.  UML Representation  . . . . . . . . . . . . . . . . . . .  10
     3.3.  Exporter Configuration  . . . . . . . . . . . . . . . . .  15
     3.4.  Collector Configuration . . . . . . . . . . . . . . . . .  17
   4.  Configuration Parameters  . . . . . . . . . . . . . . . . . .  18
     4.1.  ObservationPoint Class  . . . . . . . . . . . . . . . . .  18
     4.2.  SelectionProcess Class  . . . . . . . . . . . . . . . . .  20
       4.2.1.  Selector Class  . . . . . . . . . . . . . . . . . . .  21
       4.2.2.  Sampler Classes . . . . . . . . . . . . . . . . . . .  22
       4.2.3.  Filter Classes  . . . . . . . . . . . . . . . . . . .  23
     4.3.  Cache Class . . . . . . . . . . . . . . . . . . . . . . .  25
       4.3.1.  ImmediateCache Class  . . . . . . . . . . . . . . . .  26
       4.3.2.  TimeoutCache, NaturalCache, and PermanentCache
               Class . . . . . . . . . . . . . . . . . . . . . . . .  27
       4.3.3.  CacheLayout Class . . . . . . . . . . . . . . . . . .  29
     4.4.  ExportingProcess Class  . . . . . . . . . . . . . . . . .  32
       4.4.1.  SctpExporter Class  . . . . . . . . . . . . . . . . .  34
       4.4.2.  UdpExporter Class . . . . . . . . . . . . . . . . . .  36
       4.4.3.  TcpExporter Class . . . . . . . . . . . . . . . . . .  37
       4.4.4.  FileWriter Class  . . . . . . . . . . . . . . . . . .  38
       4.4.5.  Options Class . . . . . . . . . . . . . . . . . . . .  39
     4.5.  CollectingProcess Class . . . . . . . . . . . . . . . . .  41
       4.5.1.  SctpCollector Class . . . . . . . . . . . . . . . . .  42
       4.5.2.  UdpCollector Class  . . . . . . . . . . . . . . . . .  43
        
       4.5.3.  TcpCollector Class  . . . . . . . . . . . . . . . . .  44
       4.5.4.  FileReader Class  . . . . . . . . . . . . . . . . . .  45
     4.6.  Transport Layer Security Class  . . . . . . . . . . . . .  46
     4.7.  Transport Session Class . . . . . . . . . . . . . . . . .  49
     4.8.  Template Class  . . . . . . . . . . . . . . . . . . . . .  53
   5.  Adaptation to Device Capabilities . . . . . . . . . . . . . .  54
   6.  YANG Module of the IPFIX/PSAMP Configuration Data Model . . .  57
   7.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . 104
     7.1.  PSAMP Device  . . . . . . . . . . . . . . . . . . . . . . 104
     7.2.  IPFIX Device  . . . . . . . . . . . . . . . . . . . . . . 115
     7.3.  Export of Flow Records and Packet Reports . . . . . . . . 118
     7.4.  Collector and File Writer . . . . . . . . . . . . . . . . 121
     7.5.  Deviations  . . . . . . . . . . . . . . . . . . . . . . . 122
   8.  Security Considerations . . . . . . . . . . . . . . . . . . . 122
   9.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . 124
   10. Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . 125
   11. References  . . . . . . . . . . . . . . . . . . . . . . . . . 125
     11.1. Normative References  . . . . . . . . . . . . . . . . . . 125
     11.2. Informative References  . . . . . . . . . . . . . . . . . 126
        
       4.5.3.  TcpCollector Class  . . . . . . . . . . . . . . . . .  44
       4.5.4.  FileReader Class  . . . . . . . . . . . . . . . . . .  45
     4.6.  Transport Layer Security Class  . . . . . . . . . . . . .  46
     4.7.  Transport Session Class . . . . . . . . . . . . . . . . .  49
     4.8.  Template Class  . . . . . . . . . . . . . . . . . . . . .  53
   5.  Adaptation to Device Capabilities . . . . . . . . . . . . . .  54
   6.  YANG Module of the IPFIX/PSAMP Configuration Data Model . . .  57
   7.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . 104
     7.1.  PSAMP Device  . . . . . . . . . . . . . . . . . . . . . . 104
     7.2.  IPFIX Device  . . . . . . . . . . . . . . . . . . . . . . 115
     7.3.  Export of Flow Records and Packet Reports . . . . . . . . 118
     7.4.  Collector and File Writer . . . . . . . . . . . . . . . . 121
     7.5.  Deviations  . . . . . . . . . . . . . . . . . . . . . . . 122
   8.  Security Considerations . . . . . . . . . . . . . . . . . . . 122
   9.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . 124
   10. Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . 125
   11. References  . . . . . . . . . . . . . . . . . . . . . . . . . 125
     11.1. Normative References  . . . . . . . . . . . . . . . . . . 125
     11.2. Informative References  . . . . . . . . . . . . . . . . . 126
        
1. Introduction
1. 介绍

IPFIX- and PSAMP-compliant Monitoring Devices (routers, switches, monitoring probes, Collectors, etc.) offer various configuration possibilities that allow adapting network monitoring to the goals and purposes of the application, such as accounting and charging, traffic analysis, performance monitoring, and security monitoring. The use of a common vendor-independent configuration data model for IPFIX-and PSAMP-compliant Monitoring Devices facilitates network management and configuration, especially if Monitoring Devices of different implementers or manufacturers are deployed simultaneously. On the one hand, a vendor-independent configuration data model helps to store and manage the configuration data of Monitoring Devices in a consistent format. On the other hand, it can be used for local and remote configuration of Monitoring Devices.

IPFIX和PSAMP兼容的监控设备(路由器、交换机、监控探头、采集器等)提供了各种配置可能性,允许根据应用程序的目标和目的调整网络监控,如计费和计费、流量分析、性能监控和安全监控。对IPFIX和PSAMP兼容的监视设备使用通用的独立于供应商的配置数据模型有助于网络管理和配置,特别是在同时部署不同实施者或制造商的监视设备时。一方面,独立于供应商的配置数据模型有助于以一致的格式存储和管理监控设备的配置数据。另一方面,它可以用于监控设备的本地和远程配置。

The purpose of this document is the specification of a vendor-independent configuration data model that covers the commonly available configuration parameters of Selection Processes, Caches, Exporting Processes, and Collecting Processes. In addition, it includes common states parameters of a Monitoring Device. The configuration data model is defined using UML (Unified Modeling Language) class diagrams [UML], while the actual configuration data is encoded in Extensible Markup Language (XML) [W3C.REC-xml-20081126]. An XML document conforming to the configuration data model contains the configuration data of one Monitoring Device.

本文档旨在说明独立于供应商的配置数据模型,该模型涵盖了选择过程、缓存、导出过程和收集过程的常用配置参数。此外,它还包括监控设备的公共状态参数。配置数据模型是使用UML(统一建模语言)类图[UML]定义的,而实际配置数据是用可扩展标记语言(XML)[W3C.REC-XML-20081126]编码的。符合配置数据模型的XML文档包含一个监控设备的配置数据。

The configuration data model is designed for use with the NETCONF protocol [RFC6241] in order to configure remote Monitoring Devices. With the NETCONF protocol, it is possible to transfer a complete set of configuration data to a Monitoring Device, to query the current configuration and state parameters of a Monitoring Device, and to change specific parameter values of an existing Monitoring Device configuration.

配置数据模型设计用于NETCONF协议[RFC6241],以便配置远程监控设备。使用NETCONF协议,可以将一整套配置数据传输到监控设备,查询监控设备的当前配置和状态参数,并更改现有监控设备配置的特定参数值。

In order to ensure compatibility with the NETCONF protocol [RFC6241], YANG [RFC6020] is used to formally specify the configuration data model. If required, the YANG specification of the configuration data model can be converted into XML Schema language [W3C.REC-xmlschema-0-20041028] or DSDL (Document Schema Definition Languages) [RFC6110], for example, by using the pyang tool [YANG-WEB]. YANG provides mechanisms to adapt the configuration data model to device-specific constraints and to augment the model with additional device-specific or vendor-specific parameters.

为了确保与NETCONF协议[RFC6241]的兼容性,YANG[RFC6020]用于正式指定配置数据模型。如果需要,配置数据模型的YANG规范可以转换为XML模式语言[W3C.REC-xmlschema-0-20041028]或DSDL(文档模式定义语言)[RFC6110],例如,通过使用pyang工具[YANG-WEB]。YANG提供了使配置数据模型适应特定于设备的约束的机制,并使用附加的特定于设备或特定于供应商的参数来扩充模型。

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 [RFC2119].

本文件中的关键词“必须”、“不得”、“必需”、“应”、“不应”、“应”、“不应”、“建议”、“可”和“可选”应按照[RFC2119]中所述进行解释。

1.1. IPFIX Documents Overview
1.1. IPFIX文档概述

The IPFIX protocol [RFC5101] provides network administrators with access to IP Flow information. The architecture for the export of measured IP Flow information out of an IPFIX Exporting Process to a Collecting Process is defined in [RFC5470], per the requirements defined in [RFC3917]. The IPFIX protocol [RFC5101] specifies how IPFIX Data Records and Templates are carried via a number of transport protocols from IPFIX Exporting Processes to IPFIX Collecting Process. IPFIX has a formal description of IPFIX Information Elements, their name, type, and additional semantic information, as specified in [RFC5102]. [RFC6615] specifies the IPFIX Management Information Base, consisting of the IPFIX MIB module and the IPFIX SELECTOR MIB module. Finally, [RFC5472] describes what type of applications can use the IPFIX protocol and how they can use the information provided. It furthermore shows how the IPFIX framework relates to other architectures and frameworks. Methods for efficient export of bidirectional Flow information and common properties in Data Records are specified in [RFC5103] and [RFC5473], respectively. [RFC5610] addresses the export of extended type information for enterprise-specific Information Elements. The storage of IPFIX Messages in a file is specified in [RFC5655].

IPFIX协议[RFC5101]为网络管理员提供了访问IP流信息的权限。[RFC5470]根据[RFC3917]中定义的要求,定义了将测量的IP流信息从IPFIX导出过程导出到收集过程的体系结构。IPFIX协议[RFC5101]指定如何通过多个传输协议将IPFIX数据记录和模板从IPFIX导出进程传送到IPFIX收集进程。IPFIX对IPFIX信息元素、它们的名称、类型和附加语义信息进行了形式化描述,如[RFC5102]中所述。[RFC6615]指定IPFIX管理信息库,由IPFIX MIB模块和IPFIX选择器MIB模块组成。最后,[RFC5472]描述了什么类型的应用程序可以使用IPFIX协议,以及它们如何使用提供的信息。它还展示了IPFIX框架与其他体系结构和框架的关系。[RFC5103]和[RFC5473]分别规定了双向流信息的有效导出方法和数据记录中的公共属性。[RFC5610]用于导出企业特定信息元素的扩展类型信息。[RFC5655]中规定了文件中IPFIX消息的存储。

1.2. PSAMP Documents Overview
1.2. PSAMP文档概述

The framework for packet selection and reporting [RFC5474] enables network elements to select subsets of packets by statistical and other methods, and to export a stream of reports on the selected packets to a Collector. The set of packet selection techniques (Sampling, Filtering, and hashing) standardized by PSAMP is described in [RFC5475]. The PSAMP protocol [RFC5476] specifies the export of packet information from a PSAMP Exporting Process to a PSAMP Collector. Instead of exporting PSAMP Packet Reports, the stream of selected packets may also serve as input to the generation of IPFIX Flow Records. Like IPFIX, PSAMP has a formal description of its Information Elements, their name, type, and additional semantic information. The PSAMP information model is defined in [RFC5477]. [RFC6727] specifies the PSAMP MIB module as an extension of the IPFIX SELECTOR MIB module defined in [RFC6615].

分组选择和报告框架[RFC5474]使网络元件能够通过统计和其他方法选择分组子集,并将所选分组的报告流导出到收集器。[RFC5475]中描述了PSAMP标准化的一组数据包选择技术(采样、过滤和散列)。PSAMP协议[RFC5476]指定从PSAMP导出进程向PSAMP收集器导出数据包信息。除了导出PSAMP数据包报告,所选数据包的流还可以作为IPFIX流记录生成的输入。与IPFIX一样,PSAMP对其信息元素、名称、类型和附加语义信息进行了形式化描述。PSAMP信息模型在[RFC5477]中定义。[RFC6727]将PSAMP MIB模块指定为[RFC6615]中定义的IPFIX选择器MIB模块的扩展。

2. Terminology
2. 术语

This document adopts the terminologies used in [RFC5101], [RFC5103], [RFC5655], and [RFC5476]. As in these documents, all specific terms have the first letter of a word capitalized when used in this document. The following listing indicates in which references the definitions of those terms that are commonly used throughout this document can be found:

本文件采用[RFC5101]、[RFC5103]、[RFC5655]和[RFC5476]中使用的术语。在这些文件中,所有特定术语在本文件中使用时均以大写字母开头。下表列出了本文件中常用术语定义的参考文献:

o Definitions adopted from [RFC5101]: * Collection Process * Collector * Data Record * Exporter * Flow * Flow Key * Flow Record * Information Element * IPFIX Device * IPFIX Message * Observation Domain * Observation Point * (Options) Template

o [RFC5101]中采用的定义:*采集流程*采集器*数据记录*导出器*流*流键*流记录*信息元素*IPFIX设备*IPFIX消息*观测域*观测点*(选项)模板

o Definitions adopted from [RFC5103]: * Reverse Information Element

o 从[RFC5103]中采用的定义:*反向信息元素

o Definitions adopted from [RFC5655]: * File Reader * File Writer

o 从[RFC5655]采用的定义:*文件读取器*文件写入器

o Definitions adopted from [RFC5476]: * Filtering * Observed Packet Stream * Packet Report * PSAMP Device * Sampling * Selection Process * Selection Sequence * Selection Sequence Report Interpretation * Selection Sequence Statistics Report Interpretation * Selection State * Selector, Primitive Selector, Composite Selector * Selector Report Interpretation

o [RFC5476]中采用的定义:*过滤*观察到的数据包流*数据包报告*PSAMP设备*采样*选择过程*选择序列*选择序列报告解释*选择序列统计报告解释*选择状态*选择器,原语选择器,复合选择器*选择器报告解释

The terms Metering Process and Exporting Process have different definitions in [RFC5101] and [RFC5476]. In the scope of this document, these terms are used according to the following definitions, which cover the deployment in both PSAMP Devices and IPFIX Devices:

在[RFC5101]和[RFC5476]中,计量过程和输出过程这两个术语有不同的定义。在本文档的范围内,这些术语根据以下定义使用,这些定义涵盖PSAMP设备和IPFIX设备中的部署:

Metering Process

计量过程

The Metering Process generates IPFIX Flow Records or PSAMP Packet Reports, depending on its deployment as part of an IPFIX Device or PSAMP Device. Inputs to the process are packets observed at one or more Observation Points, as well as characteristics describing the packet treatment at these Observation Points. If IPFIX Flow Records are generated, the Metering Process MUST NOT aggregate packets observed at different Observation Domains in the same Flow. The function of the Metering Process is split into two functional blocks: Selection Process and Cache.

计量过程生成IPFIX流记录或PSAMP数据包报告,具体取决于其作为IPFIX设备或PSAMP设备的一部分进行的部署。过程的输入是在一个或多个观察点观察到的数据包,以及描述这些观察点数据包处理的特征。如果生成IPFIX流记录,则计量过程不得聚合在同一流中不同观察域上观察到的数据包。计量过程的功能分为两个功能块:选择过程和缓存。

Exporting Process

导出过程

Depending on its deployment as part of an IPFIX Device or PSAMP Device, the Exporting Process sends IPFIX Flow Records or PSAMP Packet Reports to one or more Collecting Processes. The IPFIX Flow Records or PSAMP Packet Reports are generated by one or more Metering Processes.

根据其作为IPFIX设备或PSAMP设备的一部分进行的部署,导出进程将IPFIX流记录或PSAMP数据包报告发送到一个或多个收集进程。IPFIX流记录或PSAMP数据包报告由一个或多个计量过程生成。

In addition to the existing IPFIX and PSAMP terminology, the following terms are defined:

除了现有的IPFIX和PSAMP术语外,还定义了以下术语:

Cache

隐藏物

The Cache is a functional block in a Metering Process that generates IPFIX Flow Records or PSAMP Packet Reports from a Selected Packet Stream, in accordance with its configuration. If

缓存是计量过程中的一个功能块,根据其配置从选定的数据包流生成IPFIX流记录或PSAMP数据包报告。如果

Flow Records are generated, the Cache performs tasks like creating new records, updating existing ones, computing Flow statistics, deriving further Flow properties, detecting Flow expiration, passing Flow Records to the Exporting Process, and deleting Flow Records. If Packet Reports are generated, the Cache performs tasks like extracting packet contents and derived packet properties from the Selected Packet Stream, creating new records, and passing them as Packet Reports to the Exporting Process.

生成流记录时,缓存将执行以下任务:创建新记录、更新现有记录、计算流统计信息、派生进一步的流属性、检测流过期、将流记录传递给导出进程以及删除流记录。如果生成了数据包报告,缓存将执行诸如从所选数据包流提取数据包内容和派生数据包属性、创建新记录以及将它们作为数据包报告传递给导出进程等任务。

Cache Layout

缓存布局

The Cache Layout defines the superset of fields that are included in the Packet Reports or Flow Records maintained by the Cache. The fields are specified by the corresponding Information Elements. In general, the largest possible subset of the specified fields is derived for every Packet Report or Flow Record. More specific rules about which fields must be included are given in Section 4.3.3.

缓存布局定义了包含在由缓存维护的数据包报告或流记录中的字段超集。字段由相应的信息元素指定。通常,为每个数据包报告或流记录导出指定字段的最大可能子集。第4.3.3节给出了关于必须包括哪些字段的更具体规则。

Monitoring Device

监测装置

A Monitoring Device implements at least one of the functional blocks specified in the context of IPFIX or PSAMP. In particular, the term Monitoring Device encompasses Exporters, Collectors, IPFIX Devices, and PSAMP Devices.

监控设备实现IPFIX或PSAMP上下文中指定的至少一个功能块。具体而言,术语监视设备包括导出器、收集器、IPFIX设备和PSAMP设备。

Selected Packet Stream

选定数据包流

The Selected Packet Stream is the set of all packets selected by a Selection Process.

所选分组流是由选择过程选择的所有分组的集合。

3. Structure of the Configuration Data Model
3. 配置数据模型的结构

The IPFIX reference model in [RFC5470] describes Metering Processes, Exporting Processes, and Collecting Processes as functional blocks of IPFIX Devices. The PSAMP framework [RFC5474] provides the corresponding information for PSAMP Devices and introduces the Selection Process as a functional block within Metering Processes. In Section 2 of the document, the Cache is defined as another functional block within Metering Processes. Further explanations about the relationship between Selection Process and Cache are given in Section 3.1. IPFIX File Reader and File Writer are defined as specific kinds of Exporting and Collecting Processes in [RFC5655].

[RFC5470]中的IPFIX参考模型将计量过程、导出过程和收集过程描述为IPFIX设备的功能块。PSAMP框架[RFC5474]为PSAMP设备提供了相应的信息,并将选择过程作为计量过程中的功能块引入。在本文档第2节中,缓存被定义为计量过程中的另一个功能块。关于选择过程和缓存之间关系的进一步解释见第3.1节。[RFC5655]将IPFIX文件读取器和文件写入器定义为特定类型的导出和收集过程。

Monitoring Device implementations usually maintain the separation of various functional blocks, although they do not necessarily implement all of them. Furthermore, they provide various configuration possibilities; some of them are specified as mandatory by the IPFIX

监控设备实现通常保持各种功能块的分离,尽管它们不一定实现所有功能块。此外,它们提供了各种配置可能性;其中一些被IPFIX指定为强制性的

protocol [RFC5101] or PSAMP protocol [RFC5476]. The configuration data model enables the setting of commonly available configuration parameters for Selection Processes, Caches, Exporting Processes, and Collecting Processes. In addition, it allows specifying the composition of functional blocks within a Monitoring Device configuration and their linkage with Observation Points.

协议[RFC5101]或PSAMP协议[RFC5476]。配置数据模型支持为选择进程、缓存、导出进程和收集进程设置常用的配置参数。此外,它允许指定监控设备配置中功能块的组成及其与观测点的连接。

The selection of parameters in the configuration data model is based on configuration issues discussed in the IPFIX and PSAMP documents [RFC3917], [RFC5101], [RFC5470], [RFC5476], [RFC5474], and [RFC5475]. Furthermore, the structure and content of the IPFIX MIB module [RFC6615] and the PSAMP MIB module [RFC6727] have been taken into consideration. Consistency between the configuration data model and the IPFIX and PSAMP MIB modules is an intended goal. Therefore, parameters in the configuration data model are named according to corresponding managed objects. Certain IPFIX MIB objects containing state data have been adopted as state parameters in the configuration data model. State parameters cannot be configured, yet their values can be queried from the Monitoring Device by a network manager.

配置数据模型中的参数选择基于IPFIX和PSAMP文档[RFC3917]、[RFC5101]、[RFC5470]、[RFC5476]、[RFC5474]和[RFC5475]中讨论的配置问题。此外,还考虑了IPFIX MIB模块[RFC6615]和PSAMP MIB模块[RFC6727]的结构和内容。配置数据模型与IPFIX和PSAMP MIB模块之间的一致性是预期目标。因此,配置数据模型中的参数是根据相应的托管对象命名的。某些包含状态数据的IPFIX MIB对象已被用作配置数据模型中的状态参数。无法配置状态参数,但网络管理器可以从监控设备查询其值。

Section 3.2 explains how UML class diagrams are deployed to illustrate the structure of the configuration data model. Thereafter, Section 3.3 and Section 3.4 explain the class diagrams for the configuration of Exporters and Collectors, respectively. Each of the presented classes contains specific configuration parameters that are specified in Section 4. Section 5 gives a short introduction to YANG concepts that allow adapting the configuration data model to the capabilities of a device. The formal definition of the configuration data model in YANG is given in Section 6. Section 7 illustrates the usage of the model with example configurations in XML.

第3.2节解释了如何部署UML类图来说明配置数据模型的结构。此后,第3.3节和第3.4节分别解释了导出器和收集器配置的类图。提供的每个类都包含第4节中指定的特定配置参数。第5节简要介绍了使配置数据模型适应设备功能的概念。第6节给出了YANG中配置数据模型的正式定义。第7节通过XML中的示例配置说明了模型的用法。

3.1. Metering Process Decomposition in Selection Process and Cache
3.1. 选择过程和缓存中的计量过程分解

In a Monitoring Device implementation, the functionality of the Metering Process is commonly split into packet Sampling and Filtering functions performed by Selection Processes, and the maintenance of Flow Records and Packet Reports is performed by a Cache. Figure 1 illustrates this separation with the example of a basic Metering Process.

在监控设备实现中,计量过程的功能通常被分成由选择过程执行的分组采样和过滤功能,并且流记录和分组报告的维护由高速缓存执行。图1以基本计量过程为例说明了这种分离。

               +-----------------------------------+
               | Metering Process                  |
               | +-----------+ Selected            |
      Observed | | Selection | Packet    +-------+ |  Stream of
      Packet  -->| Process   |---------->| Cache |--> Flow Records or
      Stream   | +-----------+ Stream    +-------+ |  Packet Reports
               +-----------------------------------+
        
               +-----------------------------------+
               | Metering Process                  |
               | +-----------+ Selected            |
      Observed | | Selection | Packet    +-------+ |  Stream of
      Packet  -->| Process   |---------->| Cache |--> Flow Records or
      Stream   | +-----------+ Stream    +-------+ |  Packet Reports
               +-----------------------------------+
        

Figure 1: Selection Process and Cache forming a Metering Process

图1:选择过程和缓存形成计量过程

The configuration data model adopts the separation of Selection Processes and Caches in order to support the flexible configuration and combination of these functional blocks. As defined in [RFC5476], the Selection Process takes an Observed Packet Stream as its input and selects a subset of that stream as its output (Selected Packet Stream). The action of the Selection Process on a single packet of its input is defined by one Selector (called a Primitive Selector) or an ordered composition of multiple Selectors (called a Composite Selector). The Cache generates Flow Records or Packet Reports from the Selected Packet Stream, depending on its configuration.

配置数据模型采用选择过程和缓存分离的方式,以支持这些功能块的灵活配置和组合。如[RFC5476]中所定义,选择过程将观察到的包流作为其输入,并选择该流的子集作为其输出(选择的包流)。选择过程对单个输入数据包的操作由一个选择器(称为基本选择器)或多个选择器的有序组合(称为复合选择器)定义。缓存根据其配置从所选数据包流生成流记录或数据包报告。

The configuration data model does not allow configuring a Metering Process without any Selection Process in front of the Cache. If all packets in the Observed Packet Stream shall be selected and passed to the Cache without any Filtering or Sampling, a Selection Process needs to be configured with a Selector that selects all packets ("SelectAll" class in Section 4.2.1).

配置数据模型不允许在缓存前面没有任何选择过程的情况下配置计量过程。如果应选择观察到的数据包流中的所有数据包并将其传递至高速缓存,而无需进行任何过滤或采样,则需要为选择过程配置一个选择所有数据包的选择器(“第4.2.1节中的SelectAll”类)。

The configuration data model enables the configuration of a Selection Process that receives packets from multiple Observation Points as its input. In this case, the Observed Packet Streams of the Observation Points are processed in independent Selection Sequences. As specified in [RFC5476], a distinct set of Selector instances needs to be maintained per Selection Sequence in order to keep the Selection States and statistics separate.

配置数据模型允许配置选择过程,该过程从多个观察点接收数据包作为其输入。在这种情况下,在独立选择序列中处理观测点的观测分组流。如[RFC5476]中所述,需要为每个选择序列维护一组不同的选择器实例,以便将选择状态和统计信息分开。

With the configuration data model, it is possible to configure a Metering Process with more than one Selection Processes whose output is processed by a single Cache. This is illustrated in Figure 2.

使用配置数据模型,可以将计量过程配置为具有多个选择过程,这些选择过程的输出由单个缓存处理。如图2所示。

              +-------------------------------------+
              | Metering Process                    |
              | +-----------+ Selected              |
     Observed | | Selection | Packet                |
     Packet  -->| Process   |----------+  +-------+ |
     Stream   | +-----------+ Stream   +->|       | |  Stream of
              |      ...                  | Cache |--> Flow Records or
              | +-----------+ Selected +->|       | |  Packet Reports
     Observed | | Selection | Packet   |  +-------+ |
     Packet  -->| Process   |----------+            |
     Stream   | +-----------+ Stream                |
              +-------------------------------------+
        
              +-------------------------------------+
              | Metering Process                    |
              | +-----------+ Selected              |
     Observed | | Selection | Packet                |
     Packet  -->| Process   |----------+  +-------+ |
     Stream   | +-----------+ Stream   +->|       | |  Stream of
              |      ...                  | Cache |--> Flow Records or
              | +-----------+ Selected +->|       | |  Packet Reports
     Observed | | Selection | Packet   |  +-------+ |
     Packet  -->| Process   |----------+            |
     Stream   | +-----------+ Stream                |
              +-------------------------------------+
        

Figure 2: Metering Process with multiple Selection Processes

图2:具有多个选择过程的计量过程

The Observed Packet Streams at the input of a Metering Process may originate from Observation Points belonging to different Observation Domains. By definition of the Observation Domain (see [RFC5101]), however, a Cache MUST NOT aggregate packets observed at different Observation Domains in the same Flow. Hence, if the Cache is configured to generate Flow Records, it needs to distinguish packets according to their Observation Domains.

在计量过程的输入处观察到的分组流可以来自属于不同观察域的观察点。但是,根据观察域的定义(请参见[RFC5101]),缓存不得在同一流中聚合在不同观察域上观察到的数据包。因此,如果缓存配置为生成流记录,则需要根据数据包的观察域来区分数据包。

3.2. UML Representation
3.2. UML表示

We use UML class diagrams [UML] to explain the structure of the configuration data model. The attributes of the classes are the configuration or state parameters. The configuration and state parameters of a given Monitoring Device are represented as objects of these classes encoded in XML.

我们使用UML类图[UML]来解释配置数据模型的结构。类的属性是配置或状态参数。给定监控设备的配置和状态参数表示为这些用XML编码的类的对象。

    +------------------------------+
    | SctpExporter                 |
    +------------------------------+    0..1 +------------------------+
    | name                         |<>-------| TransportLayerSecurity |
    | ipfixVersion = 10            |         +------------------------+
    | sourceIPAddress[0..*]        |
    | destinationIPAddress[1..*]   |    0..1 +------------------------+
    | destinationPort = 4739|4740  |<>-------| TransportSession       |
    | ifName/ifIndex[0..1]         |         +------------------------+
    | sendBufferSize {opt.}        |
    | rateLimit[0..1]              |
    | timedReliability = 0         |
    +------------------------------+
        
    +------------------------------+
    | SctpExporter                 |
    +------------------------------+    0..1 +------------------------+
    | name                         |<>-------| TransportLayerSecurity |
    | ipfixVersion = 10            |         +------------------------+
    | sourceIPAddress[0..*]        |
    | destinationIPAddress[1..*]   |    0..1 +------------------------+
    | destinationPort = 4739|4740  |<>-------| TransportSession       |
    | ifName/ifIndex[0..1]         |         +------------------------+
    | sendBufferSize {opt.}        |
    | rateLimit[0..1]              |
    | timedReliability = 0         |
    +------------------------------+
        

Figure 3: UML example: SctpExporter class

图3:UML示例:SctpExporter类

As an example, Figure 3 shows the UML diagram of the SctpExporter class, which is specified in more detail in Section 4.4.1. The upper box contains the name of the class. The lower box lists the attributes of the class. Each attribute corresponds to a parameter of the configuration data model.

作为一个示例,图3显示了SctpExporter类的UML图,第4.4.1节对其进行了详细说明。上面的框包含类的名称。下面的框列出了类的属性。每个属性对应于配置数据模型的一个参数。

Behind an attribute's name, there may appear a multiplicity indicator in brackets (i.e., between "[" and "]"). An attribute with multiplicity indicator "[0..1]" represents an OPTIONAL configuration parameter that is only included in the configuration data if the user configures it. Typically, the absence of an OPTIONAL parameter has a specific meaning. For example, not configuring rateLimit in an object of the SctpExporter class means that no rate limiting will be applied to the exported data. In YANG, an OPTIONAL parameter is specified as a "leaf" without "mandatory true" substatement. The "description" substatement specifies the behavior for the case that the parameter is not configured.

在属性名称后面,括号中可能会出现一个多重性指示符(即“[”和“]”之间)。具有多重性指示符“[0..1]”的属性表示可选配置参数,该参数仅在用户配置时包含在配置数据中。通常,缺少可选参数具有特定含义。例如,不在SctpExporter类的对象中配置rateLimit意味着不会对导出的数据应用速率限制。在YANG中,一个可选参数被指定为没有“强制true”子语句的“叶”。“description”子语句指定未配置参数的情况下的行为。

The multiplicity indicator "[0..*]" means that this parameter is OPTIONAL and MAY be configured multiple times with different values. In the example, multiple source IP addresses (sourceIPAddress) may be configured for a multihomed Exporting Process. In YANG, an attribute with multiplicity indicator "[0..*]" corresponds to a "leaf-list".

多重性指示符“[0..*]”表示此参数是可选的,可以使用不同的值多次配置。在该示例中,可以为多宿导出过程配置多个源IP地址(sourceIPAddress)。在YANG中,具有多重性指示符“[0..*]”的属性对应于“叶列表”。

The multiplicity indicator "[1..*]" means that this parameter MUST be configured at least once and MAY be configured multiple times with different values. In the example, one or more destination IP addresses (destinationIPAddress) must be configured to specify the export destination. In YANG, an attribute with multiplicity indicator "[1..*]" corresponds to a "leaf-list" with "min-elements 1" substatement. Note that attributes without this multiplicity indicator MUST NOT appear more than once in each object of the class.

多重性指示符“[1..*]”表示此参数必须至少配置一次,并且可以使用不同的值配置多次。在该示例中,必须配置一个或多个目标IP地址(destinationIPAddress)以指定导出目标。在YANG中,具有多重性指示符“[1..*]”的属性对应于具有“最小元素1”子状态的“叶列表”。请注意,没有此多重性指示符的属性在类的每个对象中不得出现多次。

Attributes without multiplicity indicator may be endued with a default value that is indicated behind the equality symbol ("="). If a default value exists, the parameter does not have to be explicitly configured by the user. If the parameter is not configured by the user, the Monitoring Device MUST use the specified default value for the given parameter. In the example, IPFIX version 10 must be used unless a different value is configured for ipfixVersion. In YANG, an attribute with default value corresponds to a "leaf" with "default" substatement.

没有多重性指示符的属性可能会被赋予一个默认值,该值在相等符号(“=”)后面指示。如果存在默认值,则用户不必显式配置参数。如果用户未配置该参数,则监控设备必须为给定参数使用指定的默认值。在本例中,除非为ipfixVersion配置了不同的值,否则必须使用IPFIX版本10。在YANG中,具有默认值的属性对应于具有“默认”子状态的“叶”。

In the example, there exist two default values for the destination port (destinationPort) -- namely, the registered ports for IPFIX with and without transport layer security (i.e., DTLS or TLS), which are 4740 and 4739, respectively. In the UML diagram, the two default values are separated by a vertical bar ("|"). In YANG, such

在该示例中,目标端口(destinationPort)存在两个默认值,即IPFIX的注册端口(具有和不具有传输层安全性(即DTL或TLS))分别为4740和4739。在UML图中,两个默认值由竖条(“|”)分隔。在杨,这样

conditional default value alternatives cannot be specified formally. Instead, they are defined in the "description" substatement of the "leaf".

无法正式指定条件默认值替代项。相反,它们在“叶”的“描述”子语句中定义。

Further attribute properties are denoted in braces (i.e., between "{" and "}"). An attribute with property "{opt.}", such as sendBufferSize in the SctpExporter class, represents a parameter that MAY be configured by the user. If not configured by the user, the Monitoring Device MUST set an appropriate value for this parameter at configuration time. As a result, the parameter will always exist in the configuration data, yet it is not mandatory for the user to configure it. This behavior can be implemented as a static device-specific default value, but does not have to be. Therefore, the user MUST NOT expect that the device always sets the same values for the same parameter. Regardless of whether the parameter value has been configured by the user or set by the device, the parameter value MUST NOT be changed by the device after configuration. Since this behavior cannot be specified formally in YANG, it is specified in the "description" substatement of the "leaf".

进一步的属性属性用大括号表示(即在“{”和“}”之间)。属性为“{opt.}”的属性(如SctpExporter类中的sendBufferSize)表示用户可以配置的参数。如果用户未进行配置,则监控设备必须在配置时为此参数设置适当的值。因此,该参数将始终存在于配置数据中,但用户不必对其进行强制配置。此行为可以实现为特定于设备的静态默认值,但不必如此。因此,用户不能期望设备总是为同一参数设置相同的值。无论参数值是由用户配置的还是由设备设置的,配置后设备不得更改参数值。由于这种行为不能在YANG中正式指定,因此在“叶子”的“描述”子语句中指定。

The availability of a parameter may depend on another parameter value. In the UML diagram, such restrictions are indicated as attribute properties (e.g., "{SCTP only}"). The given example does not show such restrictions. In YANG, the availability of a parameter is formally restricted with the "when" substatement of the "leaf".

参数的可用性可能取决于另一个参数值。在UML图中,这些限制被表示为属性属性(例如,“{SCTP only}”)。给出的示例未显示此类限制。在YANG中,参数的可用性通过“叶”的“何时”子状态正式限制。

Another attribute property not shown in the example is "{readOnly}", which specifies state parameters that cannot be configured. In YANG, this corresponds to the "config false" substatement.

示例中未显示的另一个属性属性是“{readOnly}”,它指定无法配置的状态参数。在YANG中,这对应于“config false”子语句。

Attributes without multiplicity indicator, without default value, and without "{readOnly}" property are mandatory configuration parameters. These parameters MUST be configured by the user unless an attribute property determines that the parameter is not available. In YANG, a mandatory parameter corresponds to a "leaf" with "mandatory true" substatement. In the example, the user MUST configure the name parameter.

没有多重性指示符、没有默认值和没有{readOnly}属性的属性是必需的配置参数。这些参数必须由用户配置,除非属性属性确定该参数不可用。在YANG中,强制参数对应于具有“强制true”子状态的“叶”。在本例中,用户必须配置name参数。

If some parameters are related to each other, it makes sense to group these parameters in a subclass. This is especially useful if different subclasses represent choices of different parameter sets, or if the parameters of a subclass may appear multiple times. For example, the SctpExporter class MAY contain the parameters of the TransportLayerSecurity subclass.

如果某些参数彼此相关,则将这些参数分组到子类中是有意义的。如果不同的子类表示不同参数集的选择,或者如果一个子类的参数可能出现多次,这一点尤其有用。例如,SctpExporter类可能包含TransportLayerSecurity子类的参数。

An object of a class is encoded as an XML element. In order to distinguish between classes and objects, class names start with an uppercase character while the associated XML elements start with

类的对象被编码为XML元素。为了区分类和对象,类名以大写字母开头,而关联的XML元素以大写字母开头

lowercase characters. Parameters appear as XML elements that are nested in the XML element of the object. In XML, the parameters of an object can appear in any order and do not have to follow the order in the UML class diagram. Unless specified differently, the order in which parameters appear does not have a meaning. As an example, an object of the SctpExporter class corresponds to one occurrence of

小写字符。参数显示为嵌套在对象的XML元素中的XML元素。在XML中,对象的参数可以以任何顺序出现,而不必遵循UML类图中的顺序。除非另有规定,否则参数的显示顺序没有意义。例如,SctpExporter类的对象对应于

     <sctpExporter>
       <name>my-sctp-export</name>
       ...
     </sctpExporter>
        
     <sctpExporter>
       <name>my-sctp-export</name>
       ...
     </sctpExporter>
        

There are various possibilities how objects of classes can be related to each other. In the scope of this document, we use two different types of relationship between objects: aggregation and unidirectional association. In UML class diagrams, two different arrow types are used as shown in Figure 4.

类的对象如何相互关联存在各种可能性。在本文档的范围内,我们使用两种不同类型的对象之间的关系:聚合和单向关联。在UML类图中,使用了两种不同的箭头类型,如图4所示。

            +---+   0..* +---+         +---+ 0..*  1 +---+
            | A |<>------| B |         | A |-------->| B |
            +---+        +---+         +---+         +---+
             (a) Aggregation     (b) Unidirectional association
        
            +---+   0..* +---+         +---+ 0..*  1 +---+
            | A |<>------| B |         | A |-------->| B |
            +---+        +---+         +---+         +---+
             (a) Aggregation     (b) Unidirectional association
        

Figure 4: Class relationships in UML class diagrams

图4:UML类图中的类关系

Aggregation means that one object is part of the other object. In Figure 4 (a), an object of class B is part of an object of class A. This corresponds to nested XML elements:

聚合意味着一个对象是另一个对象的一部分。在图4(a)中,类B的对象是类a对象的一部分。这对应于嵌套的XML元素:

     <a>
       <b>
         ...
       </b>
       ...
     </a>
        
     <a>
       <b>
         ...
       </b>
       ...
     </a>
        

In the example, objects of the TransportLayerSecurity class and the TransportSession class appear as nested XML elements <transportLayerSecurity> and <transportSession> within an object of the SctpExporter class <sctpExporter>.

在该示例中,TransportLayerSecurity类和TransportSession类的对象在SctpExporter类的对象中显示为嵌套的XML元素<TransportLayerSecurity>和<TransportSession>。

A unidirectional association is a reference to an object. In Figure 4(b), an object of class A contains a reference to an object of class B. This corresponds to separate XML elements that are not nested. To distinguish different objects of class B, class B must have a key. In the configuration data model, keys are string parameters called "name", corresponding to XML elements <name>. The names MUST be unique within the given XML subtree. The reference to

单向关联是对对象的引用。在图4(b)中,类A的对象包含对类b对象的引用。这对应于未嵌套的单独XML元素。为了区分B类的不同对象,B类必须有一个键。在配置数据模型中,键是称为“name”的字符串参数,对应于XML元素<name>。在给定的XML子树中,名称必须是唯一的。提及

a specific object of class B is encoded with an XML element <b>, which contains the name of an object. If an object of class A refers to the object of class B with name "foo", this looks as follows:

类B的特定对象使用包含对象名称的XML元素<B>进行编码。如果A类对象引用名为“foo”的B类对象,则如下所示:

     <a>
       ...
       <b>foo</b>
       ...
     </a>
        
     <a>
       ...
       <b>foo</b>
       ...
     </a>
        
     <b>
       <name>foo</name>
       ...
     </b>
        
     <b>
       <name>foo</name>
       ...
     </b>
        

In Figure 4, the indicated numbers define the multiplicity:

在图4中,指示的数字定义了多重性:

      "1": one only
      "0..*": zero or more
      "1..*": one or more
        
      "1": one only
      "0..*": zero or more
      "1..*": one or more
        

In the case of aggregation, the multiplicity indicates how many objects of one class may be included in one object of the other class. In Figure 4(a), an object of class A may contain an arbitrary number of objects of class B. In the case of unidirectional association, the multiplicity at the arrowhead specifies the number of objects of a given class that may be referred to. The multiplicity at the arrow tail specifies how many different objects of one class may refer to a single object of the other class. In Figure 4(b), an object of class A refers to single object of class B. One object of class B can be referred to from an arbitrary number of objects of class A.

在聚合的情况下,多重性表示一个类的多少个对象可以包含在另一个类的一个对象中。在图4(a)中,a类对象可能包含任意数量的B类对象。在单向关联的情况下,箭头处的多重性指定了可以引用的给定类对象的数量。箭头尾部的多重性指定一个类中有多少个不同的对象可以引用另一个类中的单个对象。在图4(b)中,A类对象是指b类的单个对象。b类的一个对象可以从任意数量的A类对象中引用。

Similar to classes that are referenced in UML associations, classes that contain configuration parameters and that occur in an aggregation relationship with multiplicity greater than one must have a key. This key is necessary because every configuration parameter must be addressable in order to manipulate or delete it. The key values MUST be unique in the given XML subtree (i.e., unique within the aggregating object). Hence, if class B in Figure 4(a) contains a configuration parameter, all objects of class B belonging to the same object of class A must have different key values. Again, the key appears as an attribute called "name" in the concerned classes.

与UML关联中引用的类类似,包含配置参数的类以及出现在聚合关系中且多重性大于1的类必须有一个键。此键是必需的,因为每个配置参数都必须是可寻址的,才能对其进行操作或删除。键值在给定的XML子树中必须是唯一的(即,在聚合对象中是唯一的)。因此,如果图4(a)中的类B包含一个配置参数,那么属于类a的同一对象的所有类B对象必须具有不同的键值。同样,键在相关类中显示为名为“name”的属性。

A class that contains state parameters but no configuration parameters, such as the Template class (see Section 4.8), does not have a key. This is because state parameters cannot be manipulated or deleted, and therefore do not need to be addressable.

包含状态参数但没有配置参数的类,例如模板类(参见第4.8节),没有密钥。这是因为状态参数不能被操作或删除,因此不需要是可寻址的。

Note that the usage of keys as described above is required by YANG [RFC6020], which mandates the existence of a key for elements that appear in a list of configuration data.

请注意,YANG[RFC6020]要求使用如上所述的键,这要求出现在配置数据列表中的元素存在键。

The configuration data model for IPFIX and PSAMP makes use of unidirectional associations to specify the data flow between different functional blocks. For example, if the output of a Selection Process is processed by a Cache, this corresponds to an object of the SelectionProcess class that contains a reference to an object of the Cache class. The configuration data model does not mandate that such a reference exists for every functional block that has an output. If such a reference is absent, the output is dropped without any further processing. Although such configurations are incomplete, we do not consider them invalid as they may temporarily occur if a Monitoring Device is configured in multiple steps. Also, it might be useful to pre-configure certain functions of a Monitoring Device in order to be able to switch to a new configuration more quickly.

IPFIX和PSAMP的配置数据模型利用单向关联来指定不同功能块之间的数据流。例如,如果选择过程的输出由缓存处理,则这对应于SelectionProcess类的对象,该对象包含对缓存类对象的引用。配置数据模型并不要求具有输出的每个功能块都存在这样的参考。如果不存在这样的引用,则不进行任何进一步处理就删除输出。虽然这样的配置是不完整的,但我们不认为它们是无效的,因为如果监控设备被配置成多个步骤,它们可能暂时发生。此外,为了能够更快地切换到新配置,预先配置监控设备的某些功能也可能很有用。

3.3. Exporter Configuration
3.3. 导出器配置

Figure 5 below shows the main classes of the configuration data model that are involved in the configuration of an IPFIX or PSAMP Exporter. The role of the classes can be briefly summarized as follows:

下面的图5显示了IPFIX或PSAMP导出器配置中涉及的配置数据模型的主要类。这些课程的作用可以概括如下:

o The ObservationPoint class specifies an Observation Point (i.e., an interface or linecard) of the Monitoring Device at which packets are captured for traffic measurements. An object of the ObservationPoint class may be associated with one or more objects of the SelectionProcess class configuring Selection Processes that process the observed packets in parallel. As long as an ObservationPoint object is specified without any references to SelectionProcess objects, the captured packets are not considered by any Metering Process.

o ObservationPoint类指定监控设备的观察点(即接口或线路卡),在该点捕获数据包以进行流量测量。ObservationPoint类的对象可以与SelectionProcess类的一个或多个对象相关联,SelectionProcess类配置并行处理观察到的分组的选择过程。只要指定了ObservationPoint对象而没有对SelectionProcess对象的任何引用,任何计量过程都不会考虑捕获的数据包。

o The SelectionProcess class contains the configuration and state parameters of a Selection Process. The Selection Process may be composed of a single Selector or a sequence of Selectors, defining a Primitive or Composite Selector, respectively.

o SelectionProcess类包含选择进程的配置和状态参数。选择过程可以由单个选择器或选择器序列组成,分别定义基本选择器或复合选择器。

The Selection Process selects packets from one or more Observed Packet Streams, each originating from a different Observation Point. Therefore, a SelectionProcess object MAY be referred to from one or more ObservationPoint objects.

选择过程从一个或多个观察到的分组流中选择分组,每个分组流源自不同的观察点。因此,可以从一个或多个观测点对象引用SelectionProcess对象。

A Selection Process MAY pass the Selected Packet Stream to a Cache. Therefore, the SelectionProcess class contains a reference to an object of the Cache class. If a Selection Process is configured without any reference to a Cache, the selected packets are not accounted in any Packet Report or Flow Record.

选择过程可将所选分组流传递到高速缓存。因此,SelectionProcess类包含对缓存类的对象的引用。如果配置选择过程时未引用缓存,则所选数据包不会计入任何数据包报告或流记录中。

o The Cache class contains configuration and state parameters of a Cache. A Cache may receive the output of one or more Selection Processes and maintains corresponding Packet Reports or Flow Records. Therefore, an object of the Cache class MAY be referred to from multiple SelectionProcess objects.

o Cache类包含缓存的配置和状态参数。高速缓存可以接收一个或多个选择过程的输出,并维护相应的分组报告或流记录。因此,可以从多个SelectionProcess对象引用Cache类的对象。

Configuration parameters of the Cache class specify the size of the Cache, the Cache Layout, and expiration parameters if applicable. The Cache configuration also determines whether Packet Reports or Flow Records are generated.

Cache类的配置参数指定缓存的大小、缓存布局和过期参数(如果适用)。缓存配置还确定是否生成数据包报告或流记录。

A Cache MAY pass its output to one or more Exporting Processes. Therefore, the Cache class enables references to one or more objects of the ExportingProcess class. If a Cache object does not specify any reference to an ExportingProcess object, the Cache output is dropped.

缓存可以将其输出传递给一个或多个导出进程。因此,缓存类允许引用ExportingProcess类的一个或多个对象。如果缓存对象未指定对ExportingProcess对象的任何引用,则缓存输出将被删除。

o The ExportingProcess class contains configuration and state parameters of an Exporting Process. It includes various transport-protocol-specific parameters and the export destinations. An object of the ExportingProcess class MAY be referred to from multiple objects of the Cache class.

o ExportingProcess类包含导出进程的配置和状态参数。它包括各种特定于传输协议的参数和导出目的地。ExportingProcess类的一个对象可以从缓存类的多个对象中引用。

An Exporting Process MAY be configured as a File Writer according to [RFC5655].

可根据[RFC5655]将导出过程配置为文件写入器。

                            +------------------+
                            | ObservationPoint |
                            +------------------+
                                 0..* |
                                      |
                                 0..* V
                            +------------------+
                            | SelectionProcess |
                            +------------------+
                                 0..* |
                                      |
                                 0..1 V
                            +------------------+
                            | Cache            |
                            +------------------+
                                 0..* |
                                      |
                                 0..* V
                            +------------------+
                            | ExportingProcess |
                            +------------------+
        
                            +------------------+
                            | ObservationPoint |
                            +------------------+
                                 0..* |
                                      |
                                 0..* V
                            +------------------+
                            | SelectionProcess |
                            +------------------+
                                 0..* |
                                      |
                                 0..1 V
                            +------------------+
                            | Cache            |
                            +------------------+
                                 0..* |
                                      |
                                 0..* V
                            +------------------+
                            | ExportingProcess |
                            +------------------+
        

Figure 5: Class diagram of Exporter configuration

图5:导出器配置的类图

3.4. Collector Configuration
3.4. 收集器配置

Figure 6 below shows the main classes of the configuration data model that are involved in the configuration of a Collector. An object of the CollectingProcess class specifies the local IP addresses, transport protocols, and port numbers of a Collecting Process. Alternatively, the Collecting Process MAY be configured as a File Reader according to [RFC5655].

下面的图6显示了采集器配置中涉及的配置数据模型的主要类。CollectionProcess类的对象指定采集进程的本地IP地址、传输协议和端口号。或者,可以根据[RFC5655]将收集过程配置为文件读取器。

An object of the CollectingProcess class may refer to one or more ExportingProcess objects configuring Exporting Processes that reexport the received data. As an example, an Exporting Process can be configured as a File Writer in order to save the received IPFIX Messages in a file.

CollectionProcess类的对象可能是指一个或多个ExportingProcess对象,用于配置重新导出接收数据的导出进程。例如,可以将导出过程配置为文件编写器,以便将收到的IPFIX消息保存在文件中。

                           +-------------------+
                           | CollectingProcess |
                           +-------------------+
                                0..* |
                                     |
                                0..* V
                           +-------------------+
                           | ExportingProcess  |
                           +-------------------+
        
                           +-------------------+
                           | CollectingProcess |
                           +-------------------+
                                0..* |
                                     |
                                0..* V
                           +-------------------+
                           | ExportingProcess  |
                           +-------------------+
        

Figure 6: Class diagram of Collector configuration

图6:收集器配置的类图

4. Configuration Parameters
4. 配置参数

This section specifies the configuration and state parameters of the configuration data model separately for each class.

本节分别为每个类指定配置数据模型的配置和状态参数。

4.1. ObservationPoint Class
4.1. 观测点类
         +-------------------------------+
         | ObservationPoint              |
         +-------------------------------+
         | name                          |
         | observationPointId {readOnly} |
         | observationDomainId           | 0..*
         | ifName[0..*]                  |-------------+
         | ifIndex[0..*]                 |             | 0..*
         | entPhysicalName[0..*]         |             V
         | entPhysicalIndex[0..*]        |    +------------------+
         | direction = "both"            |    | SelectionProcess |
         +-------------------------------+    +------------------+
        
         +-------------------------------+
         | ObservationPoint              |
         +-------------------------------+
         | name                          |
         | observationPointId {readOnly} |
         | observationDomainId           | 0..*
         | ifName[0..*]                  |-------------+
         | ifIndex[0..*]                 |             | 0..*
         | entPhysicalName[0..*]         |             V
         | entPhysicalIndex[0..*]        |    +------------------+
         | direction = "both"            |    | SelectionProcess |
         +-------------------------------+    +------------------+
        

Figure 7: ObservationPoint class

图7:观测点类别

Figure 7 shows the ObservationPoint class that specifies an Observation Point of the Monitoring Device.

图7显示了ObservationPoint类,该类指定了监控设备的观察点。

As defined in [RFC5101], an Observation Point can be any location where packets are observed. A Monitoring Device potentially has more than one such location. An instance of ObservationPoint class defines which location is associated with a specific Observation Point. For this purpose, interfaces and physical entities are identified using their names. Alternatively, index values of the corresponding entries in the ifTable (IF-MIB module [RFC2863]) or the entPhysicalTable (ENTITY-MIB module [RFC4133]) can be used as identifiers. However, indices SHOULD only be used as identifiers if an SNMP agent on the same Monitoring Device enables access to the corresponding MIB tables.

As defined in [RFC5101], an Observation Point can be any location where packets are observed. A Monitoring Device potentially has more than one such location. An instance of ObservationPoint class defines which location is associated with a specific Observation Point. For this purpose, interfaces and physical entities are identified using their names. Alternatively, index values of the corresponding entries in the ifTable (IF-MIB module [RFC2863]) or the entPhysicalTable (ENTITY-MIB module [RFC4133]) can be used as identifiers. However, indices SHOULD only be used as identifiers if an SNMP agent on the same Monitoring Device enables access to the corresponding MIB tables.translate error, please retry

By its definition in [RFC5101], an Observation Point may be associated with a set of interfaces. Therefore, the configuration data model allows configuring multiple interfaces and physical entities for a single Observation Point.

根据[RFC5101]中的定义,观测点可与一组接口相关联。因此,配置数据模型允许为单个观测点配置多个接口和物理实体。

The Observation Point ID (i.e., the value of the Information Element observationPointId [IANA-IPFIX]) is assigned by the Monitoring Device. It appears as a state parameter in the ObservationPoint class.

观测点ID(即信息元素observationPointId[IANA-IPFIX]的值)由监控设备分配。它在ObservationPoint类中显示为状态参数。

The configuration parameters of the Observation Point are:

观测点的配置参数为:

observationDomainId: This parameter defines the identifier of the Observation Domain the Observation Point belongs to. Observation Points that are configured with the same Observation Domain ID belong to the same Observation Domain. Note that this parameter corresponds to ipfixObservationPointObservationDomainId in the IPFIX MIB module [RFC6615].

observationDomainId:此参数定义观测点所属观测域的标识符。配置了相同观测域ID的观测点属于同一观测域。请注意,此参数对应于IPFIX MIB模块[RFC6615]中的ipfixObservationPointObservationDomainId。

ifName/ifIndex/entPhysicalName/entPhysicalIndex: These parameters identify interfaces and physical entities (e.g., linecards) that are on the Monitoring Device and are associated with the given Observation Point. An interface is either identified by its name (ifName) or the ifIndex value of the corresponding object in the IF-MIB module [RFC2863]. ifIndex SHOULD only be used if an SNMP agent enables access to the ifTable. Similarly, a physical entity is either identified by its name (entPhysicalName) or the entPhysicalIndex value of the corresponding object in the ENTITY-MIB module [RFC4133]. entPhysicalIndex SHOULD only be used if an SNMP agent enables access to the entPhysicalTable. Note that the parameters ifIndex and entPhysicalIndex correspond to ipfixObservationPointPhysicalInterface and ipfixObservationPointPhysicalEntity in the IPFIX MIB module [RFC6615].

ifName/ifIndex/entPhysicalName/entPhysicalIndex:这些参数标识监控设备上与给定观测点相关联的接口和物理实体(如线路卡)。接口由其名称(ifName)或IF-MIB模块[RFC2863]中相应对象的ifIndex值标识。仅当SNMP代理启用对ifTable的访问时,才应使用ifIndex。类似地,物理实体通过其名称(EntityPhysicalName)或entity-MIB模块[RFC4133]中相应对象的entPhysicalIndex值标识。仅当SNMP代理允许访问entPhysicalTable时,才应使用entPhysicalIndex。请注意,参数ifIndex和entPhysicalIndex对应于IPFIX MIB模块[RFC6615]中的ipfixObservationPointPhysicalInterface和ipfixObservationPointPhysicalEntity。

direction: This parameter specifies if ingress traffic, egress traffic, or both ingress and egress traffic is captured, using the values "ingress", "egress", and "both", respectively. If not configured, ingress and egress traffic is captured (i.e., the default value is "both"). If not applicable (e.g., in the case of a sniffing interface in promiscuous mode), the value of this parameter is ignored.

方向:此参数指定是否分别使用值“入口”、“出口”和“两者”捕获入口流量、出口流量或入口流量和出口流量。如果未配置,则捕获入口和出口流量(即,默认值为“两者”)。如果不适用(例如,在混杂模式下的嗅探接口的情况下),则忽略此参数的值。

An ObservationPoint object MAY refer to one or more SelectionProcess objects configuring Selection Processes that process the observed packets in parallel.

ObservationPoint对象可以指一个或多个SelectionProcess对象,这些对象配置并行处理观察到的数据包的选择过程。

4.2. SelectionProcess Class
4.2. SelectionProcess类
       +------------------+
       | SelectionProcess |
       +------------------+   1..* +----------+
       | name             |<>------| Selector |
       |                  |        +----------+
       |                  |
       |                  |   0..* +--------------------------------+
       |                  |<>------| SelectionSequence              |
       |                  |        +--------------------------------+
       |                  |        | observationDomainId {readOnly} |
       |                  |        | selectionSequenceId {readOnly} |
       |                  |        +--------------------------------+
       |                  |
       |                  | 0..*  0..1 +-------+
       |                  |----------->| Cache |
       +------------------+            +-------+
        
       +------------------+
       | SelectionProcess |
       +------------------+   1..* +----------+
       | name             |<>------| Selector |
       |                  |        +----------+
       |                  |
       |                  |   0..* +--------------------------------+
       |                  |<>------| SelectionSequence              |
       |                  |        +--------------------------------+
       |                  |        | observationDomainId {readOnly} |
       |                  |        | selectionSequenceId {readOnly} |
       |                  |        +--------------------------------+
       |                  |
       |                  | 0..*  0..1 +-------+
       |                  |----------->| Cache |
       +------------------+            +-------+
        

Figure 8: SelectionProcess class

图8:SelectionProcess类

Figure 8 shows the SelectionProcess class. The SelectionProcess class contains the configuration and state parameters of a Selection Process that selects packets from one or more Observed Packet Streams and generates a Selected Packet Stream as its output. A non-empty ordered list defines a sequence of Selectors. The actions defined by the Selectors are applied to the stream of incoming packets in the specified order.

图8显示了SelectionProcess类。SelectionProcess类包含选择过程的配置和状态参数,该选择过程从一个或多个观察到的数据包流中选择数据包,并生成所选数据包流作为其输出。非空的有序列表定义选择器序列。选择器定义的操作按指定顺序应用于传入数据包流。

If the Selection Process receives packets from multiple Observation Points, the Observed Packet Streams need to be processed independently in separate Selection Sequences. Each Selection Sequence is identified by a Selection Sequence ID that is unique within the Observation Domain the Observation Point belongs to (see [RFC5477]). Selection Sequence IDs are assigned by the Monitoring Device. As state parameters, the SelectionProcess class contains a list of (observationDomainId, selectionSequenceId) tuples specifying the assigned Selection Sequence IDs and corresponding Observation Domain IDs. With this information, it is possible to associate Selection Sequence (Statistics) Report Interpretations exported according to the PSAMP protocol specification [RFC5476] with the corresponding object of the SelectionProcess class.

如果选择过程从多个观察点接收分组,则需要在单独的选择序列中独立地处理所观察的分组流。每个选择序列由一个选择序列ID标识,该ID在观测点所属的观测域内是唯一的(参见[RFC5477])。选择序列ID由监控设备分配。作为状态参数,SelectionProcess类包含(observationDomainId,selectionSequenceId)元组列表,指定分配的选择序列ID和相应的观察域ID。利用此信息,可以将根据PSAMP协议规范[RFC5476]导出的选择序列(统计)报告解释与SelectionProcess类的相应对象相关联。

A SelectionProcess object MAY include a reference to an object of the Cache class to generate Packet Reports or Flow Records from the Selected Packet Stream.

SelectionProcess对象可以包括对缓存类对象的引用,以从所选分组流生成分组报告或流记录。

4.2.1. Selector Class
4.2.1. 选择器类
    +--------------------------------------+
    | Selector                             |
    +--------------------------------------+      1 +-----------------+
    | name                                 |<>------+ SelectAll/      |
    | packetsObserved {readOnly}           |        | SampCountBased/ |
    | packetsDropped {readOnly}            |        | SampTimeBased/  |
    | selectorDiscontinuityTime {readOnly} |        | SampRandOutOfN/ |
    |                                      |        | SampUniProb/    |
    |                                      |        | FilterMatch/    |
    |                                      |        | FilterHash/     |
    +--------------------------------------+        +-----------------+
        
    +--------------------------------------+
    | Selector                             |
    +--------------------------------------+      1 +-----------------+
    | name                                 |<>------+ SelectAll/      |
    | packetsObserved {readOnly}           |        | SampCountBased/ |
    | packetsDropped {readOnly}            |        | SampTimeBased/  |
    | selectorDiscontinuityTime {readOnly} |        | SampRandOutOfN/ |
    |                                      |        | SampUniProb/    |
    |                                      |        | FilterMatch/    |
    |                                      |        | FilterHash/     |
    +--------------------------------------+        +-----------------+
        

Figure 9: Selector class

图9:选择器类

The Selector class in Figure 9 contains the configuration and state parameters of a Selector. Standardized PSAMP Sampling and Filtering methods are described in [RFC5475]; their configuration parameters are specified in the classes SampCountBased, SampTimeBased, SampRandOutOfN, SampUniProb, FilterMatch, and FilterHash. In addition, the SelectAll class, which has no parameters, is used for a Selector that selects all packets. The Selector class includes exactly one of these sampler and filter classes, depending on the applied method.

图9中的选择器类包含选择器的配置和状态参数。[RFC5475]中描述了标准化PSAMP采样和过滤方法;它们的配置参数在类SampCountBased、SampTimeBased、SampRandOutOfN、SampUniProb、FilterMatch和FilterHash中指定。此外,SelectAll类没有参数,用于选择所有数据包的选择器。选择器类正好包括这些采样器和过滤器类中的一个,具体取决于应用的方法。

As state parameters, the Selector class contains the Selector statistics packetsObserved and packetsDropped as well as selectorDiscontinuityTime, which correspond to the IPFIX MIB module objects ipfixSelectionProcessStatsPacketsObserved, ipfixSelectionProcessStatsPacketsDropped, and ipfixSelectionProcessStatsDiscontinuityTime, respectively [RFC6615]:

作为状态参数,Selector类包含Selector statistics PacketsBovered和packetsDropped以及SelectorDiscontinuitTime,它们分别对应于IPFIX MIB模块对象IPFixSelectionProcessStatsPacketsBovered、ipfixSelectionProcessStatsPacketsDropped和IPFixSelectionProcessStatsIntercontinuctionTime[RFC6615]:

packetsObserved: The total number of packets observed at the input of the Selector. If this is the first Selector in the Selection Process, this counter corresponds to the total number of packets in all Observed Packet Streams at the input of the Selection Process. Otherwise, the counter corresponds to the total number of packets at the output of the preceding Selector. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of selectorDiscontinuityTime.

packetsObserved:选择器输入时观察到的数据包总数。如果这是选择过程中的第一个选择器,则该计数器对应于选择过程输入时所有观察到的分组流中的分组总数。否则,计数器对应于前面选择器输出的数据包总数。重新初始化管理系统时,以及在Selector或sContinuityTime值指示的其他时间,可能会出现此计数器值的不连续性。

packetsDropped: The total number of packets discarded by the Selector. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of selectorDiscontinuityTime.

packetsDropped:选择器丢弃的数据包总数。重新初始化管理系统时,以及在Selector或sContinuityTime值指示的其他时间,可能会出现此计数器值的不连续性。

selectorDiscontinuityTime: Timestamp of the most recent occasion at which one or more of the Selector counters suffered a discontinuity. In contrast to ipfixSelectionProcessStatsDiscontinuityTime, the time is absolute and not relative to sysUpTime.

Selector或sContinuitTime:最近一次一个或多个选择器计数器出现中断的时间戳。与IPFixSelectionProcessStatsInjunctionTime不同,时间是绝对的,与系统正常运行时间无关。

Note that packetsObserved and packetsDropped are aggregate statistics calculated over all Selection Sequences of the Selection Process. This is in contrast to the counter values in the Selection Sequence Statistics Report Interpretation [RFC5476], which are related to a single Selection Sequence only.

请注意,packetsObserved和packetsdroped是在选择过程的所有选择序列上计算的聚合统计信息。这与选择序列统计报告解释[RFC5476]中的计数器值形成对比,后者仅与单个选择序列相关。

4.2.2. Sampler Classes
4.2.2. 采样器类
        +----------------+   +----------------+   +----------------+
        | SampCountBased |   | SampTimeBased  |   | SampRandOutOfN |
        +----------------+   +----------------+   +----------------+
        | packetInterval |   | timeInterval   |   | population     |
        | packetSpace    |   | timeSpace      |   | size           |
        +----------------+   +----------------+   +----------------+
        
        +----------------+   +----------------+   +----------------+
        | SampCountBased |   | SampTimeBased  |   | SampRandOutOfN |
        +----------------+   +----------------+   +----------------+
        | packetInterval |   | timeInterval   |   | population     |
        | packetSpace    |   | timeSpace      |   | size           |
        +----------------+   +----------------+   +----------------+
        
        +----------------+
        | SampUniProb    |
        +----------------+
        | probability    |
        +----------------+
        
        +----------------+
        | SampUniProb    |
        +----------------+
        | probability    |
        +----------------+
        

Figure 10: Sampler classes

图10:采样器类

The Sampler classes in Figure 10 contain the configuration parameters of specific Sampling algorithms:

图10中的采样器类包含特定采样算法的配置参数:

packetInterval, packetSpace: For systematic count-based Sampling, packetInterval defines the number of packets that are consecutively sampled between gaps of length packetSpace. These parameters correspond to the Information Elements samplingPacketInterval and samplingPacketSpace [RFC5477], as well as to the PSAMP MIB objects psampSampCountBasedInterval and psampSampCountBasedSpace [RFC6727].

packetInterval,packetSpace:对于基于计数的系统采样,packetInterval定义在长度packetSpace的间隙之间连续采样的数据包数。这些参数对应于信息元素samplingPacketInterval和samplingPacketSpace[RFC5477],以及PSAMP MIB对象PSAMPSAMPSAMPCountBasedInterval和PSAMPSAMPSAMPCountBasedSpace[RFC6727]。

timeInterval, timeSpace: For systematic time-based Sampling, timeInterval defines the time interval during which all arriving packets are sampled. timeSpace is the gap between two Sampling intervals. These parameters correspond to the Information Elements samplingTimeInterval and samplingTimeSpace [RFC5477], as well as to the PSAMP MIB objects psampSampTimeBasedInterval and psampSampTimeBasedSpace [RFC6727]. The unit is microseconds.

timeInterval,timeSpace:对于系统的基于时间的采样,timeInterval定义对所有到达的数据包进行采样的时间间隔。时间间隔是两个采样间隔之间的间隔。这些参数对应于信息元素samplingTimeInterval和samplingTimeSpace[RFC5477],以及PSAMP MIB对象psampSampTimeBasedInterval和psampSampTimeBasedSpace[RFC6727]。单位是微秒。

size, population: For n-out-of-N random Sampling, size defines the number of elements taken from the parent population. population defines the number of elements in the parent population. These parameters correspond to the Information Elements samplingSize and samplingPopulation [RFC5477], as well as to the PSAMP MIB objects psampSampRandOutOfNSize and psampSampRandOutOfNPopulation [RFC6727].

大小,总体:对于n取n随机抽样,大小定义从父总体中获取的元素数。填充定义父填充中的元素数。这些参数对应于信息元素samplingSize和samplingPopulation[RFC5477],以及PSAMP MIB对象PSAMPSAMPSAMPRANDOUTOFNSIZE和PSAMPSAMPSAMPRANDOUTOFNPROPUlation[RFC6727]。

probability: For uniform probabilistic Sampling, probability defines the Sampling probability. The probability is expressed as a value between 0 and 1. This parameter corresponds to the Information Element samplingProbability [RFC5477], as well as to the PSAMP MIB object psampSampUniProbProbability [RFC6727].

概率:对于均匀概率抽样,概率定义抽样概率。概率表示为0到1之间的值。此参数对应于信息元素samplingProbability[RFC5477],以及PSAMP MIB对象PSAMPSampUnpuniProbability[RFC6727]。

4.2.3. Filter Classes
4.2.3. 过滤类
          +---------------------------+
          | FilterMatch               |
          +---------------------------+
          | ieId/ieName               |
          | ieEnterpriseNumber = 0    |
          | value                     |
          +---------------------------+
        
          +---------------------------+
          | FilterMatch               |
          +---------------------------+
          | ieId/ieName               |
          | ieEnterpriseNumber = 0    |
          | value                     |
          +---------------------------+
        
          +---------------------------+
          | FilterHash                |
          +---------------------------+    1..* +---------------+
          | hashFunction = "BOB"      |<>-------| SelectedRange |
          | initializerValue[0..1]    |         +---------------+
          | ipPayloadOffset = 0       |         | name          |
          | ipPayloadSize = 8         |         | min           |
          | digestOutput = "false"    |         | max           |
          | outputRangeMin {readOnly} |         +---------------+
          | outputRangeMax {readOnly} |
          +---------------------------+
        
          +---------------------------+
          | FilterHash                |
          +---------------------------+    1..* +---------------+
          | hashFunction = "BOB"      |<>-------| SelectedRange |
          | initializerValue[0..1]    |         +---------------+
          | ipPayloadOffset = 0       |         | name          |
          | ipPayloadSize = 8         |         | min           |
          | digestOutput = "false"    |         | max           |
          | outputRangeMin {readOnly} |         +---------------+
          | outputRangeMax {readOnly} |
          +---------------------------+
        

Figure 11: Filter classes

图11:过滤器类

The Filter classes in Figure 11 contain the configuration parameters of specific Filtering methods. For property match Filtering, the configuration parameters are:

图11中的过滤器类包含特定过滤方法的配置参数。对于属性匹配筛选,配置参数为:

ieId, ieName, ieEnterpriseNumber: The property to be matched is specified by either ieId or ieName, specifying the identifier or name of the Information Element, respectively. If ieEnterpriseNumber is zero (which is the default), this Information Element is registered in the IANA registry of IPFIX Information Elements [IANA-IPFIX]. A non-zero value of ieEnterpriseNumber specifies an enterprise-specific Information Element [IANA-ENTERPRISE-NUMBERS].

ieId、ieName、IEEnterpriseEnumber:要匹配的属性由ieId或ieName指定,分别指定信息元素的标识符或名称。如果IEEnterpriseEnumber为零(默认值),则此信息元素将在IPFIX信息元素[IANA-IPFIX]的IANA注册表中注册。IEEnterpriseEnumber的非零值指定特定于企业的信息元素[IANA-enterprise-Number]。

value: Matching value.

值:匹配值。

For hash-based Filtering, the configuration and state parameters are:

对于基于哈希的筛选,配置和状态参数为:

hashFunction: Hash function to be used. The following parameter values are defined by the configuration data model: * BOB: BOB Hash Function as specified in [RFC5475], Appendix A.2 * IPSX: IP Shift-XOR (IPSX) Hash Function as specified in [RFC5475], Appendix A.1 * CRC: CRC-32 function as specified in [RFC1141] Default value is "BOB". This parameter corresponds to the PSAMP MIB object psampFiltHashFunction [RFC6727].

hashFunction:要使用的哈希函数。以下参数值由配置数据模型定义:*BOB:BOB散列函数如[RFC5475]所述,*附录A.2*IPSX:IP移位异或(IPSX)散列函数如[RFC5475]所述,*附录A.1*CRC:CRC-32函数如[RFC1141]所述默认值为“BOB”。此参数对应于PSAMP MIB对象psampFiltHashFunction[RFC6727]。

initializerValue: Initializer value to the hash function. This parameter corresponds to the Information Element hashInitialiserValue [RFC5477], as well as to the PSAMP MIB object psampFiltHashInitializerValue [RFC6727]. If not configured by the user, the Monitoring Device arbitrarily chooses an initializer value.

initializerValue:哈希函数的初始值设定项值。此参数对应于信息元素HashInitializerValue[RFC5477],以及PSAMP MIB对象psampFiltHashInitializerValue[RFC6727]。如果用户未进行配置,监控设备可任意选择初始值设定值。

ipPayloadOffset, ipPayloadSize: ipPayloadOffset and ipPayloadSize configure the offset and the size of the payload section used as input to the hash function. Default values are 0 and 8, respectively, corresponding to the minimum configurable values according to [RFC5476], Section 6.5.2.6. These parameters correspond to the Information Elements hashIPPayloadOffset and hashIPPayloadSize [RFC5477], as well as to the PSAMP MIB objects psampFiltHashIpPayloadOffset and psampFiltHashIpPayloadSize [RFC6727].

ipPayloadOffset、ipPayloadSize:ipPayloadOffset和ipPayloadSize配置用作哈希函数输入的有效负载部分的偏移量和大小。默认值分别为0和8,与[RFC5476]第6.5.2.6节规定的最小可配置值相对应。这些参数对应于信息元素hashIPPayloadOffset和hashIPPayloadSize[RFC5477],以及PSAMP MIB对象psampFiltHashIpPayloadOffset和psampFiltHashIpPayloadSize[RFC6727]。

digestOutput: digestOutput enables or disables the inclusion of the packet digest in the resulting PSAMP Packet Report. This requires that the Cache Layout of the Cache generating the Packet Reports includes a digestHashValue field. This parameter corresponds to the Information Element hashDigestOutput [RFC5477].

digestOutput:digestOutput启用或禁用在生成的PSAMP数据包报告中包含数据包摘要。这要求生成数据包报告的缓存的缓存布局包括digestHashValue字段。此参数对应于信息元素hashDigestOutput[RFC5477]。

outputRangeMin, outputRangeMax: The values of these two state parameters are the beginning and end of the hash function's potential output range. These parameters correspond to the Information Elements hashOutputRangeMin and hashOutputRangeMax [RFC5477], as well as to the PSAMP MIB objects psampFiltHashOutputRangeMin and psampFiltHashOutputRangeMax [RFC6727].

outputRangeMin,outputRangeMax:这两个状态参数的值是哈希函数潜在输出范围的开始和结束。这些参数对应于信息元素hashOutputRangeMin和hashOutputRangeMax[RFC5477],以及PSAMP MIB对象psampFiltHashOutputRangeMin和psampFiltHashOutputRangeMax[RFC6727]。

One or more ranges of matching hash values are defined by the min and max parameters of the SelectedRange subclass. These parameters correspond to the Information Elements hashSelectedRangeMin and hashSelectedRangeMax [RFC5477], as well as to the PSAMP MIB objects psampFiltHashSelectedRangeMin and psampFiltHashSelectedRangeMax [RFC6727].

一个或多个匹配哈希值范围由SelectedRange子类的最小和最大参数定义。这些参数对应于信息元素hashSelectedRangeMin和hashSelectedRangeMax[RFC5477],以及PSAMP MIB对象psampFiltHashSelectedRangeMin和psampFiltHashSelectedRangeMax[RFC6727]。

4.3. Cache Class
4.3. 缓存类
    +-----------------------------------+
    | Cache                             |
    +-----------------------------------+        1 +------------------+
    | name                              |<>--------| immediateCache/  |
    | meteringProcessId {readOnly}      |          | timeoutCache/    |
    | dataRecords {readOnly}            |          | naturalCache/    |
    | cacheDiscontinuityTime {readOnly} |          | permanentCache   |
    |                                   |          +------------------+
    |                                   |
    |                                   |     0..* +------------------+
    |                                   |--------->| ExportingProcess |
    +-----------------------------------+          +------------------+
        
    +-----------------------------------+
    | Cache                             |
    +-----------------------------------+        1 +------------------+
    | name                              |<>--------| immediateCache/  |
    | meteringProcessId {readOnly}      |          | timeoutCache/    |
    | dataRecords {readOnly}            |          | naturalCache/    |
    | cacheDiscontinuityTime {readOnly} |          | permanentCache   |
    |                                   |          +------------------+
    |                                   |
    |                                   |     0..* +------------------+
    |                                   |--------->| ExportingProcess |
    +-----------------------------------+          +------------------+
        

Figure 12: Cache class

图12:缓存类

Figure 12 shows the Cache class that contains the configuration and state parameters of a Cache. Most of these parameters are specific to the type of the Cache and therefore contained in the subclasses immediateCache, timeoutCache, naturalCache, and permanentCache, which are presented below in Sections 4.3.1 and 4.3.2. The following three state parameters are common to all Caches and therefore included in the Cache class itself:

图12显示了包含缓存的配置和状态参数的缓存类。这些参数中的大多数特定于缓存的类型,因此包含在子类immediateCache、timeoutCache、naturalCache和permanentCache中,这些子类将在下面的第4.3.1节和第4.3.2节中介绍。以下三个状态参数对于所有缓存都是通用的,因此包含在缓存类本身中:

meteringProcessId: The identifier of the Metering Process the Cache belongs to. This parameter corresponds to the Information Element meteringProcessId [IANA-IPFIX]. Its occurrence helps to associate Metering Process (Reliability) Statistics exported according to the IPFIX protocol specification [RFC5101] with the corresponding object of the MeteringProcess class.

meteringProcessId:缓存所属的计量进程的标识符。此参数对应于信息元素meteringProcessId[IANA-IPFIX]。它的出现有助于将根据IPFIX协议规范[RFC5101]导出的计量过程(可靠性)统计数据与MeteringProcess类的相应对象相关联。

dataRecords: The number of Data Records generated by this Cache. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of cacheDiscontinuityTime. Note that this parameter corresponds to ipfixMeteringProcessDataRecords in the IPFIX MIB module [RFC6615].

dataRecords:此缓存生成的数据记录数。此计数器的值可能在管理系统重新初始化时出现不连续,也可能在CacheIntercontinuctionTime值指示的其他时间出现不连续。请注意,此参数对应于IPFIX MIB模块[RFC6615]中的ipfixMeteringProcessDataRecords。

cacheDiscontinuityTime: Timestamp of the most recent occasion at which dataRecords suffered a discontinuity. In contrast to ipfixMeteringProcessDiscontinuityTime, the time is absolute and not relative to sysUpTime. Note that this parameter functionally corresponds to ipfixMeteringProcessDiscontinuityTime in the IPFIX MIB module [RFC6615].

CacheInteractionTime:数据记录发生中断的最近时刻的时间戳。与IPFixMeteringProcessInjunctionTime相比,时间是绝对的,与系统正常运行时间无关。请注意,此参数在功能上对应于IPFIX MIB模块[RFC6615]中的IPFIXMeteringProcessInjunctionTime。

A Cache object MAY refer to one or more ExportingProcess objects configuring different Exporting Processes.

缓存对象可能指配置不同导出过程的一个或多个ExportingProcess对象。

4.3.1. ImmediateCache Class
4.3.1. 即时课程
         +-------------------------------+
         | ImmediateCache                |
         +-------------------------------+       1 +-------------+
         |                               |<>-------| CacheLayout |
         +-------------------------------+         +-------------+
        
         +-------------------------------+
         | ImmediateCache                |
         +-------------------------------+       1 +-------------+
         |                               |<>-------| CacheLayout |
         +-------------------------------+         +-------------+
        

Figure 13: ImmediateCache class

图13:ImmediateCache类

The ImmediateCache class depicted in Figure 13 is used to configure a Cache that generates a PSAMP Packet Report for each packet at its input. The fields contained in the generated Data Records are defined in an object of the CacheLayout class, which is defined below in Section 4.3.3.

图13中描述的ImmediateCache类用于配置一个缓存,该缓存在每个数据包的输入端生成一个PSAMP数据包报告。生成的数据记录中包含的字段在CacheLayout类的对象中定义,该类定义见下文第4.3.3节。

4.3.2. TimeoutCache, NaturalCache, and PermanentCache Class
4.3.2. TimeoutCache、NaturalCache和PermanentCache类
         +-------------------------------+
         | TimeoutCache                  |
         +-------------------------------+       1 +-------------+
         | maxFlows {opt.}               |<>-------| CacheLayout |
         | activeTimeout {opt.}          |         +-------------+
         | idleTimeout {opt.}            |
         | activeFlows {readOnly}        |
         | unusedCacheEntries {readOnly} |
         +-------------------------------+
        
         +-------------------------------+
         | TimeoutCache                  |
         +-------------------------------+       1 +-------------+
         | maxFlows {opt.}               |<>-------| CacheLayout |
         | activeTimeout {opt.}          |         +-------------+
         | idleTimeout {opt.}            |
         | activeFlows {readOnly}        |
         | unusedCacheEntries {readOnly} |
         +-------------------------------+
        
         +-------------------------------+
         | NaturalCache                  |
         +-------------------------------+       1 +-------------+
         | maxFlows {opt.}               |<>-------| CacheLayout |
         | activeTimeout {opt.}          |         +-------------+
         | idleTimeout {opt.}            |
         | activeFlows {readOnly}        |
         | unusedCacheEntries {readOnly} |
         +-------------------------------+
        
         +-------------------------------+
         | NaturalCache                  |
         +-------------------------------+       1 +-------------+
         | maxFlows {opt.}               |<>-------| CacheLayout |
         | activeTimeout {opt.}          |         +-------------+
         | idleTimeout {opt.}            |
         | activeFlows {readOnly}        |
         | unusedCacheEntries {readOnly} |
         +-------------------------------+
        
         +-------------------------------+
         | PermanentCache                |
         +-------------------------------+       1 +-------------+
         | maxFlows {opt.}               |<>-------| CacheLayout |
         | exportInterval {opt.}         |         +-------------+
         | activeFlows {readOnly}        |
         | unusedCacheEntries {readOnly} |
         +-------------------------------+
        
         +-------------------------------+
         | PermanentCache                |
         +-------------------------------+       1 +-------------+
         | maxFlows {opt.}               |<>-------| CacheLayout |
         | exportInterval {opt.}         |         +-------------+
         | activeFlows {readOnly}        |
         | unusedCacheEntries {readOnly} |
         +-------------------------------+
        

Figure 14: TimeoutCache, NaturalCache, and PermanentCache class

图14:TimeoutCache、NaturalCache和PermanentCache类

Figure 14 shows the TimeoutCache class, the NaturalCache class, and the PermanentCache class. These classes are used to configure a Cache that aggregates the packets at its input and generates IPFIX Flow Records. The three classes differ in when Flows expire:

图14显示了TimeoutCache类、NaturalCache类和PermanentCache类。这些类用于配置缓存,该缓存在其输入端聚合数据包并生成IPFIX流记录。这三个类别在流量到期时有所不同:

o TimeoutCache: Flows expire after active or idle timeout. o NaturalCache: Flows expire after active or idle timeout, or on natural termination (e.g., TCP FIN or TCP RST) of the Flow. o PermanentCache: Flows never expire, but are periodically exported with the interval set by exportInterval.

o TimeoutCache:流在活动或空闲超时后过期。o NaturalCache:流在活动或空闲超时后,或在流的自然终止(如TCP FIN或TCP RST)时过期。o PermanentCache:流永远不会过期,但会按照exportInterval设置的时间间隔定期导出。

The following configuration and state parameters are common to the three classes:

以下配置和状态参数是三个类的通用参数:

maxFlows: This parameter configures the maximum number of entries in the Cache, which is the maximum number of Flows that can be measured simultaneously. If this parameter is configured, the Monitoring Device MUST ensure that sufficient resources are available to store the configured maximum number of Flows. If the maximum number of Cache entries is in use, no additional Flows can be measured. However, traffic that pertains to existing Flows can continue to be measured.

maxFlows:此参数配置缓存中的最大条目数,即可以同时测量的最大流数。如果配置了此参数,监控设备必须确保有足够的资源来存储配置的最大流量。如果使用了最大数量的缓存项,则无法测量额外的流。但是,可以继续测量与现有流量相关的流量。

activeFlows: This state parameter indicates the number of Flows currently active in this Cache (i.e., the number of Cache entries currently in use). Note that this parameter corresponds to ipfixMeteringProcessCacheActiveFlows in the IPFIX MIB module [RFC6615].

activeFlows:此状态参数表示此缓存中当前活动的流数(即当前使用的缓存项数)。请注意,此参数对应于IPFIX MIB模块[RFC6615]中的ipfixMeteringProcessCacheActiveFlows。

unusedCacheEntries: The number of unused cache entries. Note that the sum of activeFlows and unusedCacheEntries equals maxFlows if maxFlows is configured. Note that this parameter corresponds to ipfixMeteringProcessCacheUnusedCacheEntries in the IPFIX MIB module [RFC6615].

unusedCacheEntries:未使用的缓存项数。请注意,如果配置了maxFlows,则activeFlows和unusedCacheEntries之和等于maxFlows。请注意,此参数对应于IPFIX MIB模块[RFC6615]中的ipfixMeteringProcessCacheUnusedCacheEntries。

The following timeout parameters are only available in the TimeoutCache class and the NaturalCache class:

以下超时参数仅在TimeoutCache类和NaturalCache类中可用:

activeTimeout: This parameter configures the time in seconds after which a Flow is expired even though packets matching this Flow are still received by the Cache. The parameter value zero indicates infinity, meaning that there is no active timeout. If not configured by the user, the Monitoring Device sets this parameter. Note that this parameter corresponds to ipfixMeteringProcessCacheActiveTimeout in the IPFIX MIB module [RFC6615].

activeTimeout:此参数以秒为单位配置流过期的时间,即使缓存仍接收到与此流匹配的数据包。参数值零表示无穷大,表示没有活动超时。如果用户未配置,监控设备将设置此参数。请注意,此参数对应于IPFIX MIB模块[RFC6615]中的ipfixMeteringProcessCacheActiveTimeout。

idleTimeout: This parameter configures the time in seconds after which a Flow is expired if no more packets matching this Flow are received by the Cache. The parameter value zero indicates infinity, meaning that there is no idle timeout. If not configured by the user, the Monitoring Device sets this parameter. Note that this parameter corresponds to ipfixMeteringProcessCacheIdleTimeout in the IPFIX MIB module [RFC6615].

idleTimeout:此参数配置当缓存没有收到更多与此流匹配的数据包时,流过期的时间(以秒为单位)。参数值零表示无穷大,表示没有空闲超时。如果用户未配置,监控设备将设置此参数。请注意,此参数对应于IPFIX MIB模块[RFC6615]中的ipfixMeteringProcessCacheIdleTimeout。

The following interval parameter is only available in the PermanentCache class:

以下间隔参数仅在PermanentCache类中可用:

exportInterval: This parameter configures the interval (in seconds) for periodical export of Flow Records. If not configured by the user, the Monitoring Device sets this parameter.

exportInterval:此参数配置定期导出流记录的时间间隔(以秒为单位)。如果用户未配置,监控设备将设置此参数。

Every generated Flow Record MUST be associated with a single Observation Domain. Hence, although a Cache MAY be configured to process packets observed at multiple Observation Domains, the Cache MUST NOT aggregate packets observed at different Observation Domains in the same Flow.

每个生成的流量记录必须与单个观测域相关联。因此,尽管高速缓存可以配置为处理在多个观察域上观察到的数据包,但高速缓存不能在同一流中聚合在不同观察域上观察到的数据包。

An object of the Cache class contains an object of the CacheLayout class that defines which fields are included in the Flow Records.

Cache类的对象包含CacheLayout类的对象,该对象定义流记录中包括哪些字段。

4.3.3. CacheLayout Class
4.3.3. 缓存布局类
         +--------------+
         | CacheLayout  |
         +--------------+   1..* +--------------------------------+
         |              |<>------| CacheField                     |
         |              |        +--------------------------------+
         |              |        | name                           |
         |              |        | ieId/ieName                    |
         |              |        | ieLength {opt.}                |
         |              |        | ieEnterpriseNumber = 0         |
         |              |        | isFlowKey[0..1] {not used with |
         |              |        |   ImmediateCache class}        |
         +--------------+        +--------------------------------+
        
         +--------------+
         | CacheLayout  |
         +--------------+   1..* +--------------------------------+
         |              |<>------| CacheField                     |
         |              |        +--------------------------------+
         |              |        | name                           |
         |              |        | ieId/ieName                    |
         |              |        | ieLength {opt.}                |
         |              |        | ieEnterpriseNumber = 0         |
         |              |        | isFlowKey[0..1] {not used with |
         |              |        |   ImmediateCache class}        |
         +--------------+        +--------------------------------+
        

Figure 15: CacheLayout class

图15:CacheLayout类

A Cache generates and maintains Packet Reports or Flow Records containing information that has been extracted from the incoming stream of packets. Using the CacheField class, the CacheLayout class specifies the superset of fields that are included in the Packet Reports or Flow Records (see Figure 15).

缓存生成并维护包含从传入数据包流提取的信息的数据包报告或流记录。CacheLayout类使用CacheField类指定包报告或流记录中包含的字段的超集(参见图15)。

If Packet Reports are generated (i.e., if ImmediateCache class is used to configure the Cache), every field specified by the Cache Layout MUST be included in the resulting Packet Report unless the corresponding Information Element is not applicable or cannot be derived from the content or treatment of the incoming packet. Any other field specified by the Cache Layout MAY only be included in the

如果生成数据包报告(即,如果使用ImmediateCache类配置缓存),则缓存布局指定的每个字段必须包含在生成的数据包报告中,除非相应的信息元素不适用或无法从传入数据包的内容或处理中派生。缓存布局指定的任何其他字段只能包含在

Packet Report if it is obvious from the field value itself or from the values of other fields in same Packet Report that the field value was not determined from the packet.

如果从字段值本身或同一数据包报告中其他字段的值可以明显看出字段值不是由数据包确定的,则数据包报告。

For example, if a field is configured to contain the TCP source port (Information Element tcpSourcePort [IANA-IPFIX]), the field MUST be included in all Packet Reports that are related to TCP packets. Although the field value cannot be determined for non-TCP packets, the field MAY be included in the Packet Reports if another field contains the transport protocol identifier (Information Element protocolIdentifier [IANA-IPFIX]).

例如,如果某个字段配置为包含TCP源端口(信息元素tcpSourcePort[IANA-IPFIX]),则该字段必须包含在与TCP数据包相关的所有数据包报告中。尽管无法确定非TCP数据包的字段值,但如果另一个字段包含传输协议标识符(信息元素protocolIdentifier[IANA-IPFIX]),则该字段可能包含在数据包报告中。

If Flow Records are generated (i.e., if TimeoutCache, NaturalCache, or PermanentCache class is used to configure the Cache), the Cache Layout differentiates between Flow Key fields and non-key fields. Every Flow Key field specified by the Cache Layout MUST be included as Flow Key in the resulting Flow Record unless the corresponding Information Element is not applicable or cannot be derived from the content or treatment of the incoming packet. Any other Flow Key field specified by the Cache Layout MAY only be included in the Flow Record if it is obvious from the field value itself or from the values of other Flow Key fields in the same Flow Record that the field value was not determined from the packet. Two packets are accounted by the same Flow Record if none of their Flow Key fields differ. If a Flow Key field can be determined for one packet but not for the other, the two packets are accounted in different Flow Records.

如果生成流记录(即,如果使用TimeoutCache、NaturalCache或PermanentCache类来配置缓存),缓存布局将区分流键字段和非键字段。缓存布局指定的每个流密钥字段必须作为流密钥包含在生成的流记录中,除非相应的信息元素不适用或无法从传入数据包的内容或处理中派生。如果从字段值本身或从同一流记录中的其他流键字段的值可以明显看出字段值不是从数据包确定的,则缓存布局指定的任何其他流键字段只能包括在流记录中。如果两个数据包的流键字段不存在差异,则由同一个流记录记录记录它们。如果可以为一个数据包确定流密钥字段,但不能为另一个数据包确定流密钥字段,则在不同的流记录中记录这两个数据包。

Every non-key field specified by the Cache Layout MUST be included in the resulting Flow Record unless the corresponding Information Element is not applicable or cannot be derived for the given Flow. Any other non-key field specified by the Cache Layout MAY only be included in the Flow Record if it is obvious from the field value itself or from the values of other fields in same Flow Record that the field value was not determined from the packet. Packets which are accounted by the same Flow Record may differ in their non-key fields, or one or more of the non-key fields can be undetermined for all or some of the packets.

缓存布局指定的每个非关键字段必须包含在结果流记录中,除非相应的信息元素不适用或无法为给定流导出。如果从字段值本身或从同一流记录中的其他字段值可以明显看出字段值不是从数据包确定的,则缓存布局指定的任何其他非关键字段只能包括在流记录中。由相同流记录记录的数据包的非关键字段可能不同,或者对于所有或部分数据包,一个或多个非关键字段可能不确定。

For example, if a non-key field specifies an Information Element whose value is determined by the first packet observed within a Flow (which is the default rule according to [RFC5102] unless specified differently in the description of the Information Element), this field MUST be included in the resulting Flow Record if it can be determined from the first packet of the Flow.

例如,如果非关键字段指定的信息元素的值由流中观察到的第一个数据包确定(根据[RFC5102]这是默认规则,除非在信息元素的描述中另有规定),如果可以从流的第一个数据包确定,则该字段必须包含在结果流记录中。

The CacheLayout class does not have any parameters. The configuration parameters of the CacheField class are as follows:

CacheLayout类没有任何参数。CacheField类的配置参数如下:

ieId, ieName, ieEnterpriseNumber: These parameters specify a field by the combination of the Information Element identifier or name, and the Information Element enterprise number. Either ieId or ieName MUST be specified. If ieEnterpriseNumber is zero (which is the default), this Information Element is registered in the IANA registry of IPFIX Information Elements [IANA-IPFIX]. A non-zero value of ieEnterpriseNumber specifies an enterprise-specific Information Element [IANA-ENTERPRISE-NUMBERS]. If the enterprise number is set to 29305, this field contains a Reverse Information Element. In this case, the Cache MUST generate Data Records in accordance to [RFC5103].

ieId、ieName、IEEnterpriseEnumber:这些参数通过信息元素标识符或名称以及信息元素企业编号的组合来指定字段。必须指定ieId或ieName。如果IEEnterpriseEnumber为零(默认值),则此信息元素将在IPFIX信息元素[IANA-IPFIX]的IANA注册表中注册。IEEnterpriseEnumber的非零值指定特定于企业的信息元素[IANA-enterprise-Number]。如果企业编号设置为29305,则此字段包含反向信息元素。在这种情况下,缓存必须根据[RFC5103]生成数据记录。

ieLength: This parameter specifies the length of the field in octets. A value of 65535 means that the field is encoded as a variable-length Information Element. For Information Elements of integer and float type, the field length MAY be set to a smaller value than the standard length of the abstract data type if the rules of reduced size encoding are fulfilled (see [RFC5101], Section 6.2). If not configured by the user, the field length is set by the Monitoring Device.

ieLength:此参数指定字段的长度(以八位字节为单位)。值65535表示字段编码为可变长度信息元素。对于整数和浮点类型的信息元素,如果满足缩减大小编码规则,则字段长度可以设置为小于抽象数据类型标准长度的值(参见[RFC5101],第6.2节)。如果用户未配置,则字段长度由监控设备设置。

isFlowKey: If present, this field is a Flow Key. If the field contains a Reverse Information Element, it MUST NOT be configured as Flow Key. This parameter is not available if the Cache is configured using the ImmediateCache class since there is no distinction between Flow Key fields and non-key fields in Packet Reports.

isFlowKey:如果存在,则此字段为流键。如果字段包含反向信息元素,则不得将其配置为流键。如果使用ImmediateCache类配置缓存,则此参数不可用,因为数据包报告中的流键字段和非键字段之间没有区别。

Note that the use of Information Elements can be restricted to certain Cache types as well as to Flow Key or non-key fields. Such restrictions may result from Information Element definitions or from device-specific constraints. According to Section 5, the Monitoring Device MUST notify the user if a Cache field cannot be configured with the given Information Element.

请注意,信息元素的使用可以限制为某些缓存类型以及流键或非键字段。此类限制可能来自信息元素定义或设备特定的限制。根据第5节,如果无法使用给定信息元素配置缓存字段,则监控设备必须通知用户。

4.4. ExportingProcess Class
4.4. 导出过程类
     +-------------------------------+
     | ExportingProcess              |
     +-------------------------------+   1..* +-------------+
     | name                          |<>------| Destination |
     | exportingProcessId {readOnly} |        +-------------+
     | exportMode = "parallel"       |        | name        |<>-+
     |                               |        +-------------+   | 1
     |                               |                          |
     |                               |               +---------------+
     |                               |               | SctpExporter/ |
     |                               |               | UdpExporter/  |
     |                               |               | TcpExporter/  |
     |                               |               | FileWriter    |
     |                               |               +---------------+
     |                               |
     |                               |   0..* +------------------+
     |                               |<>------| Options          |
     +-------------------------------+        +------------------+
        
     +-------------------------------+
     | ExportingProcess              |
     +-------------------------------+   1..* +-------------+
     | name                          |<>------| Destination |
     | exportingProcessId {readOnly} |        +-------------+
     | exportMode = "parallel"       |        | name        |<>-+
     |                               |        +-------------+   | 1
     |                               |                          |
     |                               |               +---------------+
     |                               |               | SctpExporter/ |
     |                               |               | UdpExporter/  |
     |                               |               | TcpExporter/  |
     |                               |               | FileWriter    |
     |                               |               +---------------+
     |                               |
     |                               |   0..* +------------------+
     |                               |<>------| Options          |
     +-------------------------------+        +------------------+
        

Figure 16: ExportingProcess class

图16:ExportingProcess类

The ExportingProcess class in Figure 16 specifies destinations to which the incoming Packet Reports and Flow Records are exported using objects of the Destination class. The Destination class includes one object of the SctpExporter, UdpExporter, TcpExporter, or FileWriter class which contains further configuration parameters. These classes are described in Sections 4.4.1, 4.4.2, 4.4.3, and 4.4.4.

图16中的ExportingProcess类指定使用Destination类的对象将传入数据包报告和流记录导出到的目的地。目标类包括SctpExporter、UdpExporter、TcpExporter或FileWriter类的一个对象,其中包含更多配置参数。第4.4.1节、第4.4.2节、第4.4.3节和第4.4.4节描述了这些等级。

As state parameter, the ExportingProcess class contains the identifier of the Exporting Process (exportingProcessId). This parameter corresponds to the Information Element exportingProcessId [IANA-IPFIX]. Its occurrence helps to associate Exporting Process Reliability Statistics exported according to the IPFIX protocol specification [RFC5101] with the corresponding object of the ExportingProcess class.

作为状态参数,ExportingProcess类包含导出进程的标识符(exportingProcessId)。此参数对应于信息元素exportingProcessId[IANA-IPFIX]。它的出现有助于将根据IPFIX协议规范[RFC5101]导出的导出过程可靠性统计信息与ExportingProcess类的相应对象相关联。

The order in which objects of the Destination class appear is defined by the user. However, the order has a specific meaning only if the exportMode parameter is set to "fallback". The exportMode parameter is defined as follows:

目标类对象的显示顺序由用户定义。但是,仅当exportMode参数设置为“fallback”时,顺序才具有特定含义。exportMode参数定义如下:

exportMode: This parameter determines to which configured destination(s) the incoming Data Records are exported. The following parameter values are specified by the configuration data model:

exportMode:此参数确定将传入数据记录导出到哪个配置的目标。以下参数值由配置数据模型指定:

* parallel: every Data Record is exported to all configured destinations in parallel * loadBalancing: every Data Record is exported to exactly one configured destination according to a device-specific load-balancing policy * fallback: every Data Record is exported to exactly one configured destination according to the fallback policy described below If exportMode is set to "fallback", the first object of the Destination class defines the primary destination, the second object of the Destination class defines the secondary destination, and so on. If the Exporting Process fails to export Data Records to the primary destination, it tries to export them to the secondary one. If the secondary destination fails as well, it continues with the tertiary, etc. "parallel" is the default value if exportMode is not configured.

* 并行:每个数据记录并行导出到所有配置的目的地*负载平衡:每个数据记录根据特定于设备的负载平衡策略导出到一个配置的目的地*回退:每个数据记录根据下面描述的回退策略导出到一个配置的目的地如果exportMode设置为“fallback”,则目标类的第一个对象定义主目标,目标类的第二个对象定义辅助目标,依此类推。如果导出过程无法将数据记录导出到主目标,则会尝试将其导出到辅助目标。如果次要目的地也失败,则继续执行第三目的地等。如果未配置exportMode,则默认值为“并行”。

Note that the exportMode parameter is related to the ipfixExportMemberType object in [RFC6615]. If exportMode is "parallel", the ipfixExportMemberType values of the corresponding entries in ipfixExportTable are set to parallel(3). If exportMode is "loadBalancing", the ipfixExportMemberType values of the corresponding entries in ipfixExportTable are set to loadBalancing(4). If exportMode is "fallback", the ipfixExportMemberType value that refers to the primary destination is set to primary(1); the ipfixExportMemberType values that refer to the remaining destinations need to be set to secondary(2). The IPFIX MIB module does not define any value for tertiary destination, etc.

请注意,exportMode参数与[RFC6615]中的ipfixExportMemberType对象相关。如果exportMode为“parallel”,则ipfixExportTable中相应条目的ipfixExportMemberType值设置为parallel(3)。如果exportMode为“LoadBalancement”,则ipfixExportTable中相应条目的ipfixExportMemberType值设置为LoadBalancement(4)。如果exportMode为“fallback”,则引用主目标的ipfixExportMemberType值设置为primary(1);需要将引用其余目标的ipfixExportMemberType值设置为次要(2)。IPFIX MIB模块没有为第三目标等定义任何值。

The reporting of information with Options Templates is defined with objects of the Options class.

使用选项模板报告信息是使用选项类的对象定义的。

The Exporting Process may modify the Packet Reports and Flow Records to enable a more efficient transmission or storage under the condition that no information is changed or suppressed. For example, the Exporting Process may shorten the length of a field according to the rules of reduced size encoding [RFC5101]. The Exporting Process may also export certain fields in a separate Data Record as described in [RFC5476].

导出过程可以修改分组报告和流记录,以便在没有改变或抑制信息的情况下实现更有效的传输或存储。例如,导出过程可以根据缩减大小编码的规则缩短字段的长度[RFC5101]。导出过程还可以导出单独数据记录中的某些字段,如[RFC5476]所述。

4.4.1. SctpExporter Class
4.4.1. SctpExporter类
    +------------------------------+
    | SctpExporter                 |
    +------------------------------+    0..1 +------------------------+
    | ipfixVersion = 10            |<>-------| TransportLayerSecurity |
    | sourceIPAddress[0..*]        |         +------------------------+
    | destinationIPAddress[1..*]   |
    | destinationPort = 4739|4740  |    0..1 +------------------------+
    | ifName/ifIndex[0..1]         |<>-------| TransportSession       |
    | sendBufferSize {opt.}        |         +------------------------+
    | rateLimit[0..1]              |
    | timedReliability = 0         |
    +------------------------------+
        
    +------------------------------+
    | SctpExporter                 |
    +------------------------------+    0..1 +------------------------+
    | ipfixVersion = 10            |<>-------| TransportLayerSecurity |
    | sourceIPAddress[0..*]        |         +------------------------+
    | destinationIPAddress[1..*]   |
    | destinationPort = 4739|4740  |    0..1 +------------------------+
    | ifName/ifIndex[0..1]         |<>-------| TransportSession       |
    | sendBufferSize {opt.}        |         +------------------------+
    | rateLimit[0..1]              |
    | timedReliability = 0         |
    +------------------------------+
        

Figure 17: SctpExporter class

图17:SctpExporter类

The SctpExporter class shown in Figure 17 contains the configuration parameters of an SCTP export destination. The configuration parameters are:

图17所示的SctpExporter类包含SCTP导出目的地的配置参数。配置参数包括:

ipfixVersion: Version number of the IPFIX protocol used. If omitted, the default value is 10 (=0x000a) as specified in [RFC5101].

ipfixVersion:使用的IPFIX协议的版本号。如果省略,默认值为[RFC5101]中规定的10(=0x000a)。

sourceIPAddress: List of source IP addresses used by the Exporting Process. If configured, the specified addresses are eligible local IP addresses of the multihomed SCTP endpoint. If not configured, all locally assigned IP addresses are eligible local IP addresses.

sourceIPAddress:导出进程使用的源IP地址列表。如果已配置,则指定的地址是多宿SCTP端点的合格本地IP地址。如果未配置,则所有本地分配的IP地址都是合格的本地IP地址。

destinationIPAddress: One or more IP addresses of the Collecting Process to which IPFIX Messages are sent. The user must ensure that all configured IP addresses belong to the same Collecting Process. The Exporting Process tries to establish an SCTP association to any of the configured destination IP addresses.

destinationIPAddress:IPFIX消息发送到的收集进程的一个或多个IP地址。用户必须确保所有配置的IP地址都属于同一个收集进程。导出过程尝试建立与任何配置的目标IP地址的SCTP关联。

destinationPort: Destination port number to be used. If not configured, standard port 4739 (IPFIX without TLS and DTLS) or 4740 (IPFIX over TLS or DTLS) is used.

destinationPort:要使用的目标端口号。如果未配置,则使用标准端口4739(不带TLS和DTL的IPFIX)或4740(通过TLS或DTL的IPFIX)。

ifIndex/ifName: Either the index or the name of the interface used by the Exporting Process to export IPFIX Messages to the given destination MAY be specified according to corresponding objects in the IF-MIB [RFC2863]. If omitted, the Exporting Process selects the outgoing interface based on local routing decision and accepts return traffic, such as transport-layer acknowledgments, on all available interfaces.

ifIndex/ifName:导出过程用于将IPFIX消息导出到给定目标的接口的索引或名称可以根据IF-MIB[RFC2863]中的相应对象指定。如果省略,导出过程将根据本地路由决策选择传出接口,并在所有可用接口上接受返回流量,如传输层确认。

sendBufferSize: Size of the socket send buffer in bytes. If not configured by the user, the buffer size is set by the Monitoring Device.

sendBufferSize:套接字发送缓冲区的大小(以字节为单位)。如果用户未配置,则缓冲区大小由监控设备设置。

rateLimit: Maximum number of bytes per second the Exporting Process may export to the given destination as required by [RFC5476]. The number of bytes is calculated from the lengths of the IPFIX Messages exported. If this parameter is not configured, no rate limiting is performed for this destination.

rateLimit:根据[RFC5476]的要求,导出进程每秒可导出到给定目标的最大字节数。字节数是根据导出的IPFIX消息的长度计算的。如果未配置此参数,则不会对此目的地执行速率限制。

timedReliability: Lifetime in milliseconds until an IPFIX Message containing Data Sets only is "abandoned" due to the timed reliability mechanism of the Partial Reliability extension of SCTP (PR-SCTP) [RFC3758]. If this parameter is set to zero, reliable SCTP transport MUST be used for all Data Records. Regardless of the value of this parameter, the Exporting Process MAY use reliable SCTP transport for Data Sets associated with certain Options Templates, such as the Data Record Reliability Options Template specified in [RFC6526].

timedReliability:由于SCTP(PR-SCTP)部分可靠性扩展的定时可靠性机制,“放弃”仅包含数据集的IPFIX消息之前的生存期(毫秒)[RFC3758]。如果此参数设置为零,则必须对所有数据记录使用可靠的SCTP传输。无论此参数的值如何,导出过程都可以对与某些选项模板(如[RFC6526]中指定的数据记录可靠性选项模板)关联的数据集使用可靠的SCTP传输。

Using the TransportLayerSecurity class described in Section 4.6, Datagram Transport Layer Security (DTLS) is enabled and configured for this export destination.

使用第4.6节中描述的TransportLayerSecurity类,为此导出目的地启用并配置数据报传输层安全性(DTLS)。

If a Transport Session is established to the configured destination, the SctpExporter class includes an object of the TransportSession class containing state parameters of the Transport Session. The TransportSession class is specified in Section 4.7.

如果已向配置的目的地建立传输会话,则SctpExporter类包含包含传输会话状态参数的TransportSession类的对象。TransportSession类别在第4.7节中规定。

4.4.2. UdpExporter Class
4.4.2. UdpExporter类
    +-------------------------------------+
    | UdpExporter                         |
    +-------------------------------------+   0..1 +------------------+
    | ipfixVersion = 10                   |<>------| TransportLayer-  |
    | sourceIPAddress[0..1]               |        | Security         |
    | destinationIPAddress                |        +------------------+
    | destinationPort = 4739|4740         |
    | ifName/ifIndex[0..1]                |   0..1 +------------------+
    | sendBufferSize {opt.}               |<>------| TransportSession |
    | rateLimit[0..1]                     |        +------------------+
    | maxPacketSize {opt.}                |
    | templateRefreshTimeout = 600        |
    | optionsTemplateRefreshTimeout = 600 |
    | templateRefreshPacket[0..1]         |
    | optionsTemplateRefreshPacket[0..1]  |
    +-------------------------------------+
        
    +-------------------------------------+
    | UdpExporter                         |
    +-------------------------------------+   0..1 +------------------+
    | ipfixVersion = 10                   |<>------| TransportLayer-  |
    | sourceIPAddress[0..1]               |        | Security         |
    | destinationIPAddress                |        +------------------+
    | destinationPort = 4739|4740         |
    | ifName/ifIndex[0..1]                |   0..1 +------------------+
    | sendBufferSize {opt.}               |<>------| TransportSession |
    | rateLimit[0..1]                     |        +------------------+
    | maxPacketSize {opt.}                |
    | templateRefreshTimeout = 600        |
    | optionsTemplateRefreshTimeout = 600 |
    | templateRefreshPacket[0..1]         |
    | optionsTemplateRefreshPacket[0..1]  |
    +-------------------------------------+
        

Figure 18: UdpExporter class

图18:UdpExporter类

The UdpExporter class shown in Figure 18 contains the configuration parameters of a UDP export destination. The parameters ipfixVersion, destinationPort, ifName, ifIndex, sendBufferSize, and rateLimit have the same meaning as in the SctpExporter class (see Section 4.4.1). The remaining configuration parameters are:

图18所示的UdpExporter类包含UDP导出目的地的配置参数。ipfixVersion、destinationPort、ifName、ifIndex、sendBufferSize和rateLimit参数的含义与SctpExporter类中的相同(参见第4.4.1节)。其余配置参数为:

sourceIPAddress: This parameter specifies the source IP address used by the Exporting Process. If this parameter is omitted, the IP address assigned to the outgoing interface is used as the source IP address.

sourceIPAddress:此参数指定导出进程使用的源IP地址。如果省略此参数,则分配给传出接口的IP地址将用作源IP地址。

destinationIPAddress: Destination IP address to which IPFIX Messages are sent (i.e., the IP address of the Collecting Process).

destinationIPAddress:IPFIX消息发送到的目标IP地址(即收集进程的IP地址)。

maxPacketSize: This parameter specifies the maximum size of IP packets sent to the Collector. If set to zero, the Exporting Device MUST derive the maximum packet size from path MTU discovery mechanisms. If not configured by the user, this parameter is set by the Monitoring Device.

maxPacketSize:此参数指定发送到收集器的IP数据包的最大大小。如果设置为零,则导出设备必须从路径MTU发现机制导出最大数据包大小。如果用户未配置,则该参数由监控设备设置。

templateRefreshTimeout, optionsTemplateRefreshTimeout, templateRefreshPacket, optionsTemplateRefreshPacket: These parameters specify when (Options) Templates are refreshed by the Exporting Process. templateRefreshTimeout and optionsTemplateRefreshTimeout are specified in seconds between resendings of (Options) Templates.

templateRefreshTimeout、选项templateRefreshTimeout、templateRefreshPacket、选项templateRefreshPacket:这些参数指定导出过程刷新(选项)模板的时间。templateRefreshTimeout和OptionTemplateRefreshTimeout在重新发送(选项)模板之间以秒为单位指定。

If omitted, the default value of 600 seconds (10 minutes) is used [RFC5101]. templateRefreshPacket and optionsTemplateRefreshPacket specify the number of IPFIX Messages after which (Options) Templates are resent. If omitted, the (Options) Templates are only resent after timeout. Note that the values configured for templateRefreshTimeout and optionsTemplateRefreshTimeout MUST be adapted to the templateLifeTime and optionsTemplateLifeTime parameter settings at the receiving Collecting Process (see Section 4.5.2). Note that these parameters correspond to ipfixTransportSessionTemplateRefreshTimeout, ipfixTransportSessionOptionsTemplateRefreshTimeout, ipfixTransportSessionTemplateRefreshPacket, and ipfixTransportSessionOptionsTemplateRefreshPacket in the IPFIX MIB module [RFC6615].

如果省略,则使用默认值600秒(10分钟)[RFC5101]。templateRefreshPacket和选项templateRefreshPacket指定重新发送(选项)模板之后的IPFIX消息数。如果省略,(选项)模板仅在超时后重新发送。请注意,为templateRefreshTimeout和OptionTemplateRefreshTimeout配置的值必须适应接收采集过程中的templateLifeTime和OptionTemplateLifeTime参数设置(参见第4.5.2节)。请注意,这些参数对应于IPFIX MIB模块[RFC6615]中的ipfixTransportSessionTemplateRefreshTimeout、IPFIXTransportSessionOptions TemplateRefreshTimeout、ipfixTransportSessionTemplateRefreshPacket和IPFIXTransportSessionOptions TemplateRefreshPacket。

Using the TransportLayerSecurity class described in Section 4.6, DTLS is enabled and configured for this export destination.

使用第4.6节中描述的TransportLayerSecurity类,可以为此导出目的地启用和配置DTLS。

If a Transport Session is established to the configured destination, the UdpExporter class includes an object of the TransportSession class containing state parameters of the Transport Session. The TransportSession class is specified in Section 4.7.

如果已将传输会话建立到配置的目标,UdpExporter类将包括包含传输会话状态参数的TransportSession类的对象。TransportSession类别在第4.7节中规定。

4.4.3. TcpExporter Class
4.4.3. TcpExporter类
    +------------------------------+
    | TcpExporter                  |
    +------------------------------+    0..1 +------------------------+
    | ipfixVersion = 10            |<>-------| TransportLayerSecurity |
    | sourceIPAddress[0..1]        |         +------------------------+
    | destinationIPAddress         |
    | destinationPort = 4739|4740  |    0..1 +------------------------+
    | ifName/ifIndex[0..1]         |<>-------| TransportSession       |
    | sendBufferSize {opt.}        |         +------------------------+
    | rateLimit[0..1]              |
    +------------------------------+
        
    +------------------------------+
    | TcpExporter                  |
    +------------------------------+    0..1 +------------------------+
    | ipfixVersion = 10            |<>-------| TransportLayerSecurity |
    | sourceIPAddress[0..1]        |         +------------------------+
    | destinationIPAddress         |
    | destinationPort = 4739|4740  |    0..1 +------------------------+
    | ifName/ifIndex[0..1]         |<>-------| TransportSession       |
    | sendBufferSize {opt.}        |         +------------------------+
    | rateLimit[0..1]              |
    +------------------------------+
        

Figure 19: TcpExporter class

图19:TcpExporter类

The TcpExporter class shown in Figure 19 contains the configuration parameters of a TCP export destination. The parameters have the same meaning as in the UdpExporter class (see Section 4.4.2).

图19所示的TcpExporter类包含TCP导出目的地的配置参数。这些参数的含义与UdpExporter类中的相同(见第4.4.2节)。

Using the TransportLayerSecurity class described in Section 4.6, Transport Layer Security (TLS) is enabled and configured for this export destination.

使用第4.6节中描述的TransportLayerSecurity类,为此导出目的地启用并配置传输层安全性(TLS)。

If a Transport Session is established to the configured destination, the TcpExporter class includes an object of the TransportSession class containing state parameters of the Transport Session. The TransportSession class is specified in Section 4.7.

如果向配置的目的地建立了传输会话,则TcpExporter类包括包含传输会话状态参数的TransportSession类的对象。TransportSession类别在第4.7节中规定。

4.4.4. FileWriter Class
4.4.4. 文件编写器类
      +-----------------------------------------+
      | FileWriter                              |
      +-----------------------------------------+    0..* +----------+
      | ipfixVersion = 10                       |<>-------| Template |
      | file                                    |         +----------+
      | status {readOnly}                       |
      | bytes {readOnly}                        |
      | messages {readOnly}                     |
      | discardedMessages {readOnly}            |
      | records {readOnly}                      |
      | templates {readOnly}                    |
      | optionsTemplates {readOnly}             |
      | fileWriterDiscontinuityTime {readOnly}  |
      +-----------------------------------------+
        
      +-----------------------------------------+
      | FileWriter                              |
      +-----------------------------------------+    0..* +----------+
      | ipfixVersion = 10                       |<>-------| Template |
      | file                                    |         +----------+
      | status {readOnly}                       |
      | bytes {readOnly}                        |
      | messages {readOnly}                     |
      | discardedMessages {readOnly}            |
      | records {readOnly}                      |
      | templates {readOnly}                    |
      | optionsTemplates {readOnly}             |
      | fileWriterDiscontinuityTime {readOnly}  |
      +-----------------------------------------+
        

Figure 20: FileWriter classes

图20:FileWriter类

If an object of the FileWriter class is included in an object of the Destination class, IPFIX Messages are written into a file as specified in [RFC5655]. The FileWriter class contains the following configuration parameters:

如果FileWriter类的对象包含在目标类的对象中,IPFIX消息将按照[RFC5655]中的规定写入文件。FileWriter类包含以下配置参数:

ipfixVersion: Version number of the IPFIX protocol used. If omitted, the default value is 10 (=0x000a) as specified in [RFC5101].

ipfixVersion:使用的IPFIX协议的版本号。如果省略,默认值为[RFC5101]中规定的10(=0x000a)。

file: File name and location specified as URI.

文件:指定为URI的文件名和位置。

The state parameters of the FileWriter class are:

FileWriter类的状态参数为:

bytes, messages, records, templates, optionsTemplates: The number of bytes, IPFIX Messages, Data Records, Template Records, and Options Template Records written by the File Writer. Discontinuities in the values of these counters can occur at re-initialization of the management system, and at other times as indicated by the value of fileWriterDiscontinuityTime.

字节、消息、记录、模板、选项模板:文件编写器写入的字节数、IPFIX消息、数据记录、模板记录和选项模板记录。这些计数器的值可能在管理系统重新初始化时出现不连续,也可能在fileWriterDiscontinuityTime值指示的其他时间出现不连续。

discardedMessages: The number of IPFIX Messages that could not be written by the File Writer due to internal buffer overflows, limited storage capacity, etc. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of fileWriterDiscontinuityTime.

discardedMessages:由于内部缓冲区溢出、存储容量有限等原因,文件写入程序无法写入的IPFIX消息数。此计数器的值可能在管理系统重新初始化时出现不连续,也可能在fileWriterDiscontinuityTime值指示的其他时间出现不连续。

fileWriterDiscontinuityTime: Timestamp of the most recent occasion at which one or more File Writer counters suffered a discontinuity. In contrast to discontinuity times in the IPFIX MIB module, the time is absolute and not relative to sysUpTime.

fileWriterDiscontinuityTime:最近一次一个或多个文件写入器计数器中断的时间戳。与IPFIX MIB模块中的中断时间不同,该时间是绝对的,与系统正常运行时间无关。

Each object of the FileWriter class includes a list of objects of the Template class with information and statistics about the Templates written to the file. The Template class is specified in Section 4.8.

FileWriter类的每个对象都包括Template类的对象列表,其中包含有关写入文件的模板的信息和统计信息。第4.8节规定了模板类。

4.4.5. Options Class
4.4.5. 选项类
                         +-----------------------+
                         | Options               |
                         +-----------------------+
                         | name                  |
                         | optionsType           |
                         | optionsTimeout {opt.} |
                         +-----------------------+
        
                         +-----------------------+
                         | Options               |
                         +-----------------------+
                         | name                  |
                         | optionsType           |
                         | optionsTimeout {opt.} |
                         +-----------------------+
        

Figure 21: Options class

图21:选项类

The Options class in Figure 21 defines the type of specific information to be reported, such as statistics, flow keys, Sampling and Filtering parameters, etc. [RFC5101] and [RFC5476] specify several types of reporting information that may be exported. The following parameter values are specified by the configuration data model:

图21中的选项类定义了要报告的特定信息的类型,如统计信息、流键、采样和过滤参数等[RFC5101]和[RFC5476]指定了可导出的几种类型的报告信息。以下参数值由配置数据模型指定:

meteringStatistics: Export of Metering Process statistics using the Metering Process Statistics Options Template [RFC5101].

meteringStatistics:使用计量过程统计选项模板[RFC5101]导出计量过程统计信息。

meteringReliability: Export of Metering Process reliability statistics using the Metering Process Reliability Statistics Options Template [RFC5101].

计量可靠性:使用计量过程可靠性统计选项模板[RFC5101]导出计量过程可靠性统计信息。

exportingReliability: Export of Exporting Process reliability statistics using the Exporting Process Reliability Statistics Options Template [RFC5101].

导出可靠性:使用导出过程可靠性统计选项模板[RFC5101]导出过程可靠性统计信息。

flowKeys: Export of the Flow Key specification using the Flow Keys Options Template [RFC5101].

流键:使用流键选项模板[RFC5101]导出流键规范。

selectionSequence: Export of Selection Sequence Report Interpretation and Selector Report Interpretation [RFC5476].

selectionSequence:导出选择序列报告解释和选择器报告解释[RFC5476]。

selectionStatistics: Export of Selection Sequence Statistics Report Interpretation [RFC5476].

selectionStatistics:导出选择序列统计报告解释[RFC5476]。

accuracy: Export of Accuracy Report Interpretation [RFC5476].

精度:导出精度报告解释[RFC5476]。

reducingRedundancy: Enables the utilization of Options Templates to reduce redundancy in the exported Data Records according to [RFC5473]. The Exporting Process decides when to apply these Options Templates.

ReductionRedundancy:根据[RFC5473],允许使用选项模板来减少导出数据记录中的冗余。导出过程决定何时应用这些选项模板。

extendedTypeInformation: Export of extended type information for enterprise-specific Information Elements used in the exported Templates [RFC5610].

extendedTypeInformation:导出导出模板中使用的企业特定信息元素的扩展类型信息[RFC5610]。

The Exporting Process MUST choose a Template definition according to the options type and available options data.

导出过程必须根据选项类型和可用选项数据选择模板定义。

The optionsTimeout parameter specifies the reporting interval (in milliseconds) for periodic export of the option data. A parameter value of zero means that the export of the option data is not triggered periodically, but whenever the available option data has changed. This is the typical setting for options types flowKeys, selectionSequence, accuracy, and reducingRedundancy. If optionsTimeout is not configured by the user, it is set by the Monitoring Device.

optionsTimeout参数指定定期导出选项数据的报告间隔(以毫秒为单位)。参数值为零表示选项数据的导出不会定期触发,而是在可用选项数据发生更改时触发。这是选项类型、流程键、选择顺序、准确性和减少冗余的典型设置。如果用户未配置optionsTimeout,则由监控设备设置。

4.5. CollectingProcess Class
4.5. 收集过程类
           +-------------------+
           | CollectingProcess |
           +-------------------+
           | name              |       0..* +------------------+
           |                   |<>----------| SctpCollector    |
           |                   |            +------------------+
           |                   |
           |                   |       0..* +------------------+
           |                   |<>----------| UdpCollector     |
           |                   |            +------------------+
           |                   |
           |                   |       0..* +------------------+
           |                   |<>----------| TcpCollector     |
           |                   |            +------------------+
           |                   |
           |                   |       0..* +------------------+
           |                   |<>----------| FileReader       |
           |                   |            +------------------+
           |                   |
           |                   | 0..*  0..* +------------------+
           |                   |----------->| ExportingProcess |
           +-------------------+            +------------------+
        
           +-------------------+
           | CollectingProcess |
           +-------------------+
           | name              |       0..* +------------------+
           |                   |<>----------| SctpCollector    |
           |                   |            +------------------+
           |                   |
           |                   |       0..* +------------------+
           |                   |<>----------| UdpCollector     |
           |                   |            +------------------+
           |                   |
           |                   |       0..* +------------------+
           |                   |<>----------| TcpCollector     |
           |                   |            +------------------+
           |                   |
           |                   |       0..* +------------------+
           |                   |<>----------| FileReader       |
           |                   |            +------------------+
           |                   |
           |                   | 0..*  0..* +------------------+
           |                   |----------->| ExportingProcess |
           +-------------------+            +------------------+
        

Figure 22: CollectingProcess class

图22:CollectionProcess类

Figure 22 shows the CollectingProcess class that contains the configuration and state parameters of a Collecting Process. Objects of the SctpCollector, UdpCollector, and TcpCollector classes specify how IPFIX Messages are received from remote Exporters. The Collecting Process can also be configured as a File Reader using objects of the FileReader class. These classes are described in Sections 4.5.1, 4.5.2, 4.5.3, and 4.5.4.

图22显示了CollectionProcess类,该类包含收集进程的配置和状态参数。SctpCollector、UdpCollector和TcpCollector类的对象指定如何从远程导出器接收IPFIX消息。还可以使用FileReader类的对象将收集过程配置为文件读取器。第4.5.1节、第4.5.2节、第4.5.3节和第4.5.4节描述了这些等级。

A CollectingProcess object MAY refer to one or more ExportingProcess objects configuring Exporting Processes that export the received data without modifications to a file or to another Collector.

CollectionProcess对象可能是指一个或多个ExportingProcess对象,这些对象配置导出过程,这些导出过程在不修改文件或其他收集器的情况下导出接收到的数据。

4.5.1. SctpCollector Class
4.5.1. SctpCollector类
      +--------------------------+
      | SctpCollector            |
      +--------------------------+    0..1 +------------------------+
      | name                     |<>-------| TransportLayerSecurity |
      | localIPAddress[0..*]     |         +------------------------+
      | localPort = 4739|4740    |
      |                          |    0..* +------------------------+
      |                          |<>-------| TransportSession       |
      +--------------------------+         +------------------------+
        
      +--------------------------+
      | SctpCollector            |
      +--------------------------+    0..1 +------------------------+
      | name                     |<>-------| TransportLayerSecurity |
      | localIPAddress[0..*]     |         +------------------------+
      | localPort = 4739|4740    |
      |                          |    0..* +------------------------+
      |                          |<>-------| TransportSession       |
      +--------------------------+         +------------------------+
        

Figure 23: SctpCollector class

图23:SctpCollector类

The SctpCollector class contains the configuration parameters of a listening SCTP socket at a Collecting Process. The parameters are:

SctpCollector类包含收集进程中侦听SCTP套接字的配置参数。参数包括:

localIPAddress: List of local IP addresses on which the Collecting Process listens for IPFIX Messages. The IP addresses are used as eligible local IP addresses of the multihomed SCTP endpoint [RFC4960]. If omitted, the Collecting Process listens on all local IP addresses.

LocalicIPAddress:收集进程侦听IPFIX消息的本地IP地址列表。IP地址用作多址SCTP端点[RFC4960]的合格本地IP地址。如果省略,收集进程将侦听所有本地IP地址。

localPort: Local port number on which the Collecting Process listens for IPFIX Messages. If omitted, standard port 4739 (IPFIX without TLS and DTLS) or 4740 (IPFIX over TLS or DTLS) is used.

localPort:收集进程侦听IPFIX消息的本地端口号。如果省略,则使用标准端口4739(无TLS和DTL的IPFIX)或4740(TLS或DTL上的IPFIX)。

Using the TransportLayerSecurity class described in Section 4.6, DTLS is enabled and configured for this receiving socket.

使用第4.6节中描述的TransportLayerSecurity类,为该接收套接字启用和配置DTLS。

As state data, the SctpCollector class contains the list of currently established Transport Sessions that terminate at the given SCTP socket of the Collecting Process. The TransportSession class is specified in Section 4.7.

作为状态数据,SctpCollector类包含当前建立的传输会话列表,这些会话在收集进程的给定SCTP套接字处终止。TransportSession类别在第4.7节中规定。

4.5.2. UdpCollector Class
4.5.2. UdpCollector类
   +---------------------------------+
   | UdpCollector                    |
   +---------------------------------+   0..1 +------------------------+
   | name                            |<>------| TransportLayerSecurity |
   | localIPAddress[0..*]            |        +------------------------+
   | localPort = 4739|4740           |
   | templateLifeTime = 1800         |   0..* +------------------------+
   | optionsTemplateLifeTime = 1800  |<>------| TransportSession       |
   | templateLifePacket[0..*]        |        +------------------------+
   | optionsTemplateLifePacket[0..*] |
   +---------------------------------+
        
   +---------------------------------+
   | UdpCollector                    |
   +---------------------------------+   0..1 +------------------------+
   | name                            |<>------| TransportLayerSecurity |
   | localIPAddress[0..*]            |        +------------------------+
   | localPort = 4739|4740           |
   | templateLifeTime = 1800         |   0..* +------------------------+
   | optionsTemplateLifeTime = 1800  |<>------| TransportSession       |
   | templateLifePacket[0..*]        |        +------------------------+
   | optionsTemplateLifePacket[0..*] |
   +---------------------------------+
        

Figure 24: UdpCollector class

图24:UdpCollector类

The UdpCollector class contains the configuration parameters of a listening UDP socket at a Collecting Process. The parameter localPort has the same meaning as in the SctpCollector class (see Section 4.5.1). The remaining parameters are:

UdpCollector类包含收集进程中侦听UDP套接字的配置参数。参数localPort的含义与SctpCollector类中的相同(请参阅第4.5.1节)。其余参数为:

localIPAddress: List of local IP addresses on which the Collecting Process listens for IPFIX Messages. If omitted, the Collecting Process listens on all local IP addresses.

LocalicIPAddress:收集进程侦听IPFIX消息的本地IP地址列表。如果省略,收集进程将侦听所有本地IP地址。

templateLifeTime, optionsTemplateLifeTime: (Options) Template lifetime in seconds for all UDP Transport Sessions terminating at this UDP socket. (Options) Templates that are not received again within the configured lifetime become invalid at the Collecting Process. As specified in [RFC5101], Section 10.3.7, the lifetime of Templates and Options Templates MUST be at least three times higher than the templateRefreshTimeout and optionTemplatesRefreshTimeout parameter values configured on the corresponding Exporting Processes. If not configured, the default value 1800 is used, which is three times the default (Options) Template refresh timeout (see Section 4.4.2) as specified in [RFC5101]. Note that these parameters correspond to ipfixTransportSessionTemplateRefreshTimeout and ipfixTransportSessionOptionsTemplateRefreshTimeout in the IPFIX MIB module [RFC6615].

templateLifeTime,选项templateLifeTime:(选项)终止于此UDP套接字的所有UDP传输会话的模板生存期(秒)。(选项)在配置的生存期内未再次接收的模板在收集过程中变为无效。按照[RFC5101]第10.3.7节的规定,模板和选项模板的生存期必须至少比相应导出过程中配置的templateRefreshTimeout和optionTemplatesRefreshTimeout参数值高三倍。如果未配置,则使用默认值1800,这是[RFC5101]中规定的默认(选项)模板刷新超时(见第4.4.2节)的三倍。请注意,这些参数对应于IPFIX MIB模块[RFC6615]中的ipfixTransportSessionTemplateRefreshTimeout和IPFIXTransportSessionOptions TemplateRefreshTimeout。

templateLifePacket, optionsTemplateLifePacket: If templateLifePacket is configured, Templates defined in a UDP Transport Session become invalid if they are neither included in a sequence of more than this number of IPFIX Messages nor received again within the period of time specified by templateLifeTime. Similarly, if

templateLifePacket,选项templateLifePacket:如果配置了templateLifePacket,UDP传输会话中定义的模板如果既没有包含在超过此数量的IPFIX消息序列中,也没有在templateLifeTime指定的时间内再次收到,则这些模板将无效。同样,如果

optionsTemplateLifePacket is configured, Options Templates become invalid if they are neither included in a sequence of more than this number of IPFIX Messages nor received again within the period of time specified by optionsTemplateLifeTime. If not configured, Templates and Options Templates only become invalid according to the lifetimes specified by templateLifeTime and optionsTemplateLifeTime, respectively. Note that these parameters correspond to ipfixTransportSessionTemplateRefreshPacket and ipfixTransportSessionOptionsTemplateRefreshPacket in the IPFIX MIB module [RFC6615].

选项TemplateLifePacket已配置,如果选项模板既没有包含在超过此数量的IPFIX消息序列中,也没有在选项TemplateLifeTime指定的时间内再次收到,则选项模板将无效。如果未配置,则模板和选项模板仅根据templateLifeTime和OptionTemplateLifeTime分别指定的生存期变为无效。请注意,这些参数对应于IPFIX MIB模块[RFC6615]中的ipfixTransportSessionTemplateRefreshPacket和IPFIXTransportSessionOptions TemplateRefreshPacket。

Using the TransportLayerSecurity class described in Section 4.6, DTLS is enabled and configured for this receiving socket.

使用第4.6节中描述的TransportLayerSecurity类,为该接收套接字启用和配置DTLS。

As state data, the UdpCollector class contains the list of currently established Transport Sessions that terminate at the given UDP socket of the Collecting Process. The TransportSession class is specified in Section 4.7.

作为状态数据,UdpCollector类包含当前建立的传输会话列表,这些会话在采集进程的给定UDP套接字处终止。TransportSession类别在第4.7节中规定。

4.5.3. TcpCollector Class
4.5.3. TcpCollector类
      +--------------------------+
      | TcpCollector             |
      +--------------------------+    0..1 +------------------------+
      | name                     |<>-------| TransportLayerSecurity |
      | localIPAddress[0..*]     |         +------------------------+
      | localPort = 4739|4740    |
      |                          |    0..* +------------------------+
      |                          |<>-------| TransportSession       |
      +--------------------------+         +------------------------+
        
      +--------------------------+
      | TcpCollector             |
      +--------------------------+    0..1 +------------------------+
      | name                     |<>-------| TransportLayerSecurity |
      | localIPAddress[0..*]     |         +------------------------+
      | localPort = 4739|4740    |
      |                          |    0..* +------------------------+
      |                          |<>-------| TransportSession       |
      +--------------------------+         +------------------------+
        

Figure 25: TcpCollector class

图25:TcpCollector类

The TcpCollector class contains the configuration parameters of a listening TCP socket at a Collecting Process. The parameters have the same meaning as in the UdpCollector class (see Section 4.5.2).

TcpCollector类包含收集进程中侦听TCP套接字的配置参数。这些参数的含义与UdpCollector类中的相同(参见第4.5.2节)。

Using the TransportLayerSecurity class described in Section 4.6, TLS is enabled and configured for this receiving socket.

使用第4.6节中描述的TransportLayerSecurity类,为该接收套接字启用和配置TLS。

As state data, the TcpCollector class contains the list of currently established Transport Sessions that terminate at the given TCP socket of the Collecting Process. The TransportSession class is specified in Section 4.7.

作为状态数据,TcpCollector类包含当前建立的传输会话列表,这些会话在采集进程的给定TCP套接字处终止。TransportSession类别在第4.7节中规定。

4.5.4. FileReader Class
4.5.4. 文件阅读器类
      +-----------------------------------------+
      | FileReader                              |
      +-----------------------------------------+    0..* +----------+
      | name                                    |<>-------| Template |
      | file                                    |         +----------+
      | bytes {readOnly}                        |
      | messages {readOnly}                     |
      | records {readOnly}                      |
      | templates {readOnly}                    |
      | optionsTemplates {readOnly}             |
      | fileReaderDiscontinuityTime {readOnly}  |
      +-----------------------------------------+
        
      +-----------------------------------------+
      | FileReader                              |
      +-----------------------------------------+    0..* +----------+
      | name                                    |<>-------| Template |
      | file                                    |         +----------+
      | bytes {readOnly}                        |
      | messages {readOnly}                     |
      | records {readOnly}                      |
      | templates {readOnly}                    |
      | optionsTemplates {readOnly}             |
      | fileReaderDiscontinuityTime {readOnly}  |
      +-----------------------------------------+
        

Figure 26: FileReader classes

图26:FileReader类

The Collecting Process may import IPFIX Messages from a file as specified in [RFC5655]. The FileReader class defines the following configuration parameter:

收集过程可以从[RFC5655]中指定的文件导入IPFIX消息。FileReader类定义以下配置参数:

file: File name and location specified as URI.

文件:指定为URI的文件名和位置。

The state parameters of the FileReader class are:

FileReader类的状态参数为:

bytes, messages, records, templates, optionsTemplates: The number of bytes, IPFIX Messages, Data Records, Template Records, and Options Template Records read by the File Reader. Discontinuities in the values of these counters can occur at re-initialization of the management system, and at other times as indicated by the value of fileReaderDiscontinuityTime.

字节、消息、记录、模板、选项模板:文件读取器读取的字节数、IPFIX消息、数据记录、模板记录和选项模板记录。在重新初始化管理系统时,以及在fileReaderDiscontinuityTime值指示的其他时间,这些计数器的值可能会出现不连续。

fileReaderDiscontinuityTime: Timestamp of the most recent occasion at which one or more File Reader counters suffered a discontinuity. In contrast to discontinuity times in the IPFIX MIB module, the time is absolute and not relative to sysUpTime.

fileReaderDiscontinuityTime:最近一次一个或多个文件读取器计数器中断的时间戳。与IPFIX MIB模块中的中断时间不同,该时间是绝对的,与系统正常运行时间无关。

Each object of the FileReader class includes a list of objects of the Template class with information and statistics about the Templates read from the file. The Template class is specified in Section 4.8.

FileReader类的每个对象都包括模板类的对象列表,其中包含有关从文件中读取的模板的信息和统计信息。第4.8节规定了模板类。

4.6. Transport Layer Security Class
4.6. 传输层安全类
                  +--------------------------------------+
                  | TransportLayerSecurity               |
                  +--------------------------------------+
                  | localCertificationAuthorityDN[0..*]  |
                  | localSubjectDN[0..*]                 |
                  | localSubjectFQDN[0..*]               |
                  | remoteCertificationAuthorityDN[0..*] |
                  | remoteSubjectDN[0..*]                |
                  | remoteSubjectFQDN[0..*]              |
                  +--------------------------------------+
        
                  +--------------------------------------+
                  | TransportLayerSecurity               |
                  +--------------------------------------+
                  | localCertificationAuthorityDN[0..*]  |
                  | localSubjectDN[0..*]                 |
                  | localSubjectFQDN[0..*]               |
                  | remoteCertificationAuthorityDN[0..*] |
                  | remoteSubjectDN[0..*]                |
                  | remoteSubjectFQDN[0..*]              |
                  +--------------------------------------+
        

Figure 27: TransportLayerSecurity class

图27:TransportLayerSecurity类别

The TransportLayerSecurity class is used in the Exporting Process's SctpExporter, UdpExporter, and TcpExporter classes, and the Collecting Process's SctpCollector, UdpCollector, and TcpCollector classes to enable and configure TLS/DTLS for IPFIX. TLS/DTLS can be enabled without configuring any additional parameters. In this case, an empty XML element <transportLayerSecurity /> appears in the configuration. If TLS/DTLS is enabled, the endpoint must use DTLS [RFC6347] if the transport protocol is SCTP or UDP, and TLS [RFC5246] if the transport protocol is TCP.

TransportLayerSecurity类用于导出进程的SctpExporter、UdpExporter和TcpExporter类,以及收集进程的SctpCollector、UDPCCollector和TCPCCollector类,以启用和配置IPFIX的TLS/DTL。可以在不配置任何其他参数的情况下启用TLS/DTL。在这种情况下,配置中会出现一个空XML元素<transportLayerSecurity/>。如果启用了TLS/DTLS,则如果传输协议为SCTP或UDP,则端点必须使用DTLS[RFC6347],如果传输协议为TCP,则端点必须使用TLS[RFC5246]。

[RFC5101] mandates strong mutual authentication of Exporting Processes and Collecting Process as follows. Note this text cites [RFC3280], which was obsoleted by [RFC5280].

[RFC5101]要求对导出过程和收集过程进行强相互认证,如下所示。注:本文引用的[RFC3280],已被[RFC5280]淘汰。

IPFIX Exporting Processes and IPFIX Collecting Processes are identified by the fully qualified domain name (FQDN) of the interface on which IPFIX Messages are sent or received, for purposes of X.509 client and server certificates as in [RFC3280]. To prevent man-in-the-middle attacks from impostor Exporting or Collecting Processes, the acceptance of data from an unauthorized Exporting Process, or the export of data to an unauthorized Collecting Process, strong mutual authentication via asymmetric keys MUST be used for both TLS and DTLS. Each of the IPFIX Exporting and Collecting Processes MUST verify the identity of its peer against its authorized certificates, and MUST verify that the peer's certificate matches its fully qualified domain name, or, in the case of SCTP, the fully qualified domain name of one of its endpoints. The fully qualified domain name used to identify an IPFIX Collecting Process or Exporting Process may be stored either in a subjectAltName extension of type dNSName, or in the most specific Common Name field of the Subject field of the X.509 certificate.

IPFIX导出进程和IPFIX收集进程由发送或接收IPFIX消息的接口的完全限定域名(FQDN)标识,用于[RFC3280]中的X.509客户端和服务器证书。为了防止冒名顶替者导出或收集过程中的中间人攻击、从未经授权的导出过程中接受数据或将数据导出到未经授权的收集过程中,TLS和DTL都必须使用通过非对称密钥的强相互身份验证。每个IPFIX导出和收集进程都必须根据其授权证书验证其对等方的身份,并且必须验证对等方的证书是否与其完全限定的域名匹配,或者在SCTP的情况下,其一个端点的完全限定的域名匹配。用于标识IPFIX收集进程或导出进程的完全限定域名可以存储在dNSName类型的subjectAltName扩展名中,或者存储在X.509证书的Subject字段的最特定的Common name字段中。

If both are present, the subjectAltName extension is given preference.

如果两者都存在,则首选subjectAltName扩展名。

In order to use TLS/DTLS, appropriate certificates and keys have to be previously installed on the Monitoring Devices. For security reasons, the configuration data model does not offer the possibility to upload any certificates or keys on a Monitoring Device. If TLS/ DTLS is enabled on a Monitoring Device that does not dispose of appropriate certificates and keys, the configuration MUST be rejected with an error.

为了使用TLS/DTL,必须事先在监控设备上安装适当的证书和密钥。出于安全原因,配置数据模型不允许在监控设备上上载任何证书或密钥。如果在未处理适当证书和密钥的监视设备上启用了TLS/DTLS,则必须以错误拒绝配置。

The configuration data model allows restricting the authorization of remote endpoints to certificates issued by specific certification authorities or identifying specific FQDNs for authorization. Furthermore, the configuration data model allows restricting the utilization of certificates identifying the local endpoint. This is useful if the Monitoring Device disposes of more than one certificate for the given local endpoint.

配置数据模型允许将远程端点的授权限制为特定证书颁发机构颁发的证书,或标识特定FQDN进行授权。此外,配置数据模型允许限制标识本地端点的证书的使用。如果监视设备为给定的本地端点处理多个证书,则这非常有用。

The configuration parameters are defined as follows:

配置参数定义如下:

localCertificationAuthorityDN: This parameter MAY appear one or more times to restrict the identification of the local endpoint during the TLS/DTLS handshake to certificates issued by the configured certification authorities. Each occurrence of this parameter contains the distinguished name of one certification authority. To identify the local endpoint, the Exporting Process or Collecting Process MUST use a certificate issued by one of the configured certification authorities. Certificates issued by any other certification authority MUST NOT be sent to the remote peer during TLS/DTLS handshake. If none of the certificates installed on the Monitoring Device fulfills the specified restrictions, the configuration MUST be rejected with an error. If localCertificationAuthorityDN is not configured, the choice of certificates identifying the local endpoint is not restricted with respect to the issuing certification authority.

localCertificationAuthorityDN:此参数可能出现一次或多次,以将TLS/DTLS握手期间本地端点的标识限制为由配置的证书颁发机构颁发的证书。此参数的每次出现都包含一个证书颁发机构的可分辨名称。要标识本地终结点,导出进程或收集进程必须使用一个已配置的证书颁发机构颁发的证书。TLS/DTLS握手期间,任何其他证书颁发机构颁发的证书不得发送给远程对等方。如果监控设备上安装的任何证书都不满足指定的限制,则必须拒绝配置并出错。如果未配置localCertificationAuthorityDN,则标识本地端点的证书的选择不受颁发证书颁发机构的限制。

localSubjectDN, localSubjectFQDN: Each of these parameters MAY appear one or more times to restrict the identification of the local endpoint during the TLS/DTLS handshake to certificates issued for specific subjects or for specific FQDNs. Each occurrence of localSubjectDN contains a distinguished name identifying the local endpoint. Each occurrence of localSubjectFQDN contains a FQDN which is assigned to the local endpoint. To identify the local endpoint, the Exporting Process or Collecting Process MUST use a certificate that contains either one of the configured distinguished names in the subject field or at

localSubjectDN、localSubjectFQDN:这些参数中的每一个都可能出现一次或多次,以将TLS/DTLS握手期间本地端点的标识限制为针对特定主题或特定FQDN颁发的证书。localSubjectDN的每次出现都包含一个标识本地端点的可分辨名称。localSubjectFQDN的每次出现都包含分配给本地端点的FQDN。要标识本地终结点,导出进程或收集进程必须使用一个证书,该证书包含在“主题”字段中或在

least one of the configured FQDNs in a dNSName component of the subject alternative extension field or in the most specific commonName component of the subject field. If none of the certificates installed on the Monitoring Device fulfills the specified restrictions, the configuration MUST be rejected with an error. If any of the parameters localSubjectDN and localSubjectFQDN is configured at the same time as the localCertificationAuthorityDN parameter, certificates MUST also fulfill the specified restrictions regarding the certification authority. If localSubjectDN and localSubjectFQDN are not configured, the choice of certificates identifying the local endpoint is not restricted with respect to the subject's distinguished name or FQDN.

在subject alternative extension字段的dNSName组件或subject字段的最特定commonName组件中至少配置一个FQDN。如果监控设备上安装的任何证书都不满足指定的限制,则必须拒绝配置并出错。如果在配置localCertificationAuthorityDN参数的同时配置了localSubjectDN和localSubjectFQDN中的任何参数,则证书还必须满足有关证书颁发机构的指定限制。如果未配置localSubjectDN和localSubjectFQDN,则标识本地端点的证书的选择不受主题的可分辨名称或FQDN的限制。

remoteCertificationAuthorityDN: This parameter MAY appear one or more times to restrict the authentication of remote endpoints during the TLS/DTLS handshake to certificates issued by the configured certification authorities. Each occurrence of this parameter contains the distinguished name of one certification authority. To authenticate the remote endpoint, the remote Exporting Process or Collecting Process MUST provide a certificate issued by one of the configured certification authorities. Certificates issued by any other certification authority MUST be rejected during TLS/DTLS handshake. If the Monitoring Device is not able to validate certificates issued by the configured certification authorities (e.g., because of missing public keys), the configuration must be rejected with an error. If remoteCertificationAuthorityDN is not configured, the authorization of remote endpoints is not restricted with respect to the issuing certification authority of the delivered certificate.

remoteCertificationAuthorityDN:此参数可能出现一次或多次,以将TLS/DTLS握手期间远程端点的身份验证限制为由配置的证书颁发机构颁发的证书。此参数的每次出现都包含一个证书颁发机构的可分辨名称。要对远程端点进行身份验证,远程导出进程或收集进程必须提供由其中一个已配置的证书颁发机构颁发的证书。TLS/DTLS握手期间,必须拒绝任何其他证书颁发机构颁发的证书。如果监控设备无法验证由配置的证书颁发机构颁发的证书(例如,由于缺少公钥),则配置必须被拒绝并出现错误。如果未配置remoteCertificationAuthorityDN,则远程端点的授权不受所传递证书颁发机构的限制。

remoteSubjectDN, remoteSubjectFQDN: Each of these parameters MAY appear one or more times to restrict the authentication of remote endpoints during the TLS/DTLS handshake to certificates issued for specific subjects or for specific FQDNs. Each occurrence of remoteSubjectDN contains a distinguished name identifying a remote endpoint. Each occurrence of remoteSubjectFQDN contains a FQDN that is assigned to a remote endpoint. To authenticate a remote endpoint, the remote Exporting Process or Collecting Process MUST provide a certificate that contains either one of the configured distinguished names in the subject field or at least one of the configured FQDNs in a dNSName component of the subject alternative extension field or in the most specific commonName component of the subject field. Certificates not

remoteSubjectDN、remoteSubjectFQDN:这些参数中的每一个都可能出现一次或多次,以将TLS/DTLS握手期间远程端点的身份验证限制为针对特定主题或特定FQDN颁发的证书。remoteSubjectDN的每次出现都包含一个标识远程端点的可分辨名称。remoteSubjectFQDN的每次出现都包含分配给远程端点的FQDN。要对远程端点进行身份验证,远程导出进程或收集进程必须提供一个证书,该证书包含“主题”字段中配置的可分辨名称之一,或“主题替代扩展”字段的dNSName组件或“主题”字段的最特定commonName组件中至少一个配置的FQDN。证书不是

fulfilling this condition MUST be rejected during TLS/DTLS handshake. If any of the parameters remoteSubjectDN and remoteSubjectFQDN is configured at the same time as the remoteCertificationAuthorityDN parameter, certificates MUST also fulfill the specified restrictions regarding the certification authority in order to be accepted. If remoteSubjectDN and remoteSubjectFQDN are not configured, the authorization of remote endpoints is not restricted with respect to the subject's distinguished name or FQDN of the delivered certificate.

在TLS/DTLS握手过程中,必须拒绝满足此条件。如果remoteSubjectDN和remoteSubjectFQDN中的任何参数与remoteCertificationAuthorityDN参数同时配置,则证书还必须满足有关证书颁发机构的指定限制才能被接受。如果未配置remoteSubjectDN和remoteSubjectFQDN,则远程端点的授权不受所传递证书的使用者的可分辨名称或FQDN的限制。

4.7. Transport Session Class
4.7. 传输会话类
   +----------------------------------------------+
   | TransportSession                             |
   +----------------------------------------------+    0..* +----------+
   | ipfixVersion {readOnly}                      |<>-------| Template |
   | sourceAddress {readOnly}                     |         +----------+
   | destinationAddress {readOnly}                |
   | sourcePort {readOnly}                        |
   | destinationPort {readOnly}                   |
   | sctpAssocId {readOnly} {SCTP only}           |
   | status {readOnly}                            |
   | rate {readOnly}                              |
   | bytes {readOnly}                             |
   | messages {readOnly}                          |
   | discardedMessages {readOnly}                 |
   | records {readOnly}                           |
   | templates {readOnly}                         |
   | optionsTemplates {readOnly}                  |
   | transportSessionStartTime {readOnly}         |
   | transportSessionDiscontinuityTime {readOnly} |
   +----------------------------------------------+
        
   +----------------------------------------------+
   | TransportSession                             |
   +----------------------------------------------+    0..* +----------+
   | ipfixVersion {readOnly}                      |<>-------| Template |
   | sourceAddress {readOnly}                     |         +----------+
   | destinationAddress {readOnly}                |
   | sourcePort {readOnly}                        |
   | destinationPort {readOnly}                   |
   | sctpAssocId {readOnly} {SCTP only}           |
   | status {readOnly}                            |
   | rate {readOnly}                              |
   | bytes {readOnly}                             |
   | messages {readOnly}                          |
   | discardedMessages {readOnly}                 |
   | records {readOnly}                           |
   | templates {readOnly}                         |
   | optionsTemplates {readOnly}                  |
   | transportSessionStartTime {readOnly}         |
   | transportSessionDiscontinuityTime {readOnly} |
   +----------------------------------------------+
        

Figure 28: TransportSession class

图28:TransportSession类

The TransportSession class contains state data about Transport Sessions originating from an Exporting Process or terminating at a Collecting Process. In general, the state parameters correspond to the managed objects in the ipfixTransportSessionTable and ipfixTransportSessionStatsTable of the IPFIX MIB module [RFC6615]. An exception is the usage of the parameters sourceAddress and destinationAddress. If SCTP is the transport protocol, the Exporter or Collector MAY be multihomed SCTP endpoints (see [RFC4960], Section 6.4) and use more than one IP address. In the IPFIX MIB module, ipfixTransportSessionSctpAssocId is used instead of ipfixTransportSessionSourceAddress and

TransportSession类包含有关源自导出进程或终止于收集进程的传输会话的状态数据。通常,状态参数对应于IPFIX MIB模块[RFC6615]的ipfixTransportSessionTable和ipfixTransportSessionStatsTable中的托管对象。使用参数sourceAddress和destinationAddress是一个例外。如果SCTP是传输协议,则导出器或收集器可以是多宿SCTP端点(请参阅[RFC4960],第6.4节),并使用多个IP地址。在IPFIX MIB模块中,使用ipfixTransportSessionSctpAssocId代替ipfixTransportSessionSourceAddress和

ipfixTransportSessionDestinationAddress to point to an entry in the sctpAssocTable defined in the SCTP MIB module [RFC3871]. Since we cannot assume that an SNMP agent offering access to the SCTP MIB module exists on the Monitoring Device, the configuration data model cannot rely on this parameter. Therefore, the state parameters sourceAddress and destinationAddress are used for SCTP as well, containing one of the potentially many Exporter and Collector IP addresses in the SCTP association. Preferably, the IP addresses of the path that is usually selected by the Exporter to send IPFIX Messages to the Collector SHOULD be contained.

ipfixTransportSessionDestinationAddress,指向SCTP MIB模块[RFC3871]中定义的SCTPassectable中的条目。由于我们不能假设监控设备上存在提供对SCTP MIB模块访问权限的SNMP代理,因此配置数据模型不能依赖此参数。因此,状态参数sourceAddress和destinationAddress也用于SCTP,其中包含SCTP关联中可能存在的多个导出器和收集器IP地址之一。优选地,应该包含导出器通常选择的向收集器发送IPFIX消息的路径的IP地址。

Several MIB objects of the ipfixTransportSessionTable are omitted in the TransportSession class. The MIB object ipfixTransportSessionDeviceMode is not included because its value can be derived from the context in which a TransportSession object appears: exporting(1) if it belongs to an Exporting Process, collecting(2) if it belongs to a Collecting Process. Similarly, the MIB object ipfixTransportSessionProtocol is not included as the transport protocol is known from the context as well. The MIB objects ipfixTransportSessionTemplateRefreshTimeout, ipfixTransportSessionOptionsTemplateRefreshTimeout, ipfixTransportSessionTemplateRefreshPacket, and ipfixTransportSessionOptionsTemplateRefreshPacket are not included since they correspond to configuration parameters of the UdpExporter class (templateRefreshTimeout, optionsTemplateRefreshTimeout, templateRefreshPacket, optionsTemplateRefreshPacket) and the UdpCollector class (templateLifeTime, optionsTemplateLifeTime, templateLifePacket, optionsTemplateLifePacket).

TransportSession类中省略了ipfixTransportSessionTable的几个MIB对象。不包括MIB对象ipfixTransportSessionDeviceMode,因为它的值可以从TransportSession对象出现的上下文中派生:如果它属于导出进程,则导出(1);如果它属于收集进程,则收集(2)。类似地,MIB对象ipfixTransportSessionProtocol也不包括在内,因为传输协议也是从上下文中已知的。不包括MIB对象ipfixTransportSessionTemplateRefreshTimeout、IPFixTransportSessionOptions TemplateRefreshTimeout、ipfixTransportSessionTemplateRefreshPacket和IPFixTransportSessionOptions TemplateRefreshPacket,因为它们对应于UdpExporter类的配置参数(templateRefreshTimeout、Options templateRefreshTimeout、templateRefreshPacket、Options templateRefreshPacket)和UdpCollector类(templateLifeTime、Options templateLifeTime、templateLifePacket、Options templateLifePacket)。

ipfixVersion: Used for Exporting Processes, this parameter contains the version number of the IPFIX protocol that the Exporter uses to export its data in this Transport Session. Hence, it is identical to the value of the configuration parameter ipfixVersion of the outer SctpExporter, UdpExporter, or TcpExporter object. Used for Collecting Processes, this parameter contains the version number of the IPFIX protocol it receives for this Transport Session. If IPFIX Messages of different IPFIX protocol versions are received, this parameter contains the maximum version number. This state parameter is identical to ipfixTransportSessionIpfixVersion in the IPFIX MIB module [RFC6615].

ipfixVersion:用于导出进程,此参数包含导出程序在此传输会话中用于导出其数据的IPFIX协议的版本号。因此,它与外部SctpExporter、UdpExporter或TcpExporter对象的配置参数ipfixVersion的值相同。用于收集进程,此参数包含它为此传输会话接收的IPFIX协议的版本号。如果接收到不同IPFIX协议版本的IPFIX消息,则此参数包含最大版本号。此状态参数与IPFIX MIB模块[RFC6615]中的ipfixTransportSessionIpfixVersion相同。

sourceAddress, destinationAddress: If TCP or UDP is the transport protocol, sourceAddress contains the IP address of the Exporter, and destinationAddress contains the IP addresses of the Collector. Hence, the two parameters have identical values as ipfixTransportSessionSourceAddress and ipfixTransportSessionDestinationAddress in the IPFIX MIB module [RFC6615]. If SCTP is the transport protocol, sourceAddress contains one of the IP addresses of the Exporter and destinationAddress one of the IP addresses of the Collector. Preferably, the IP addresses of the path that is usually selected by the Exporter to send IPFIX Messages to the Collector SHOULD be contained.

sourceAddress,destinationAddress:如果TCP或UDP是传输协议,sourceAddress包含导出器的IP地址,destinationAddress包含收集器的IP地址。因此,这两个参数的值与IPFIX MIB模块[RFC6615]中的ipfixTransportSessionSourceAddress和ipfixTransportSessionDestinationAddress的值相同。如果SCTP是传输协议,则sourceAddress包含导出器的一个IP地址,destinationAddress包含收集器的一个IP地址。优选地,应该包含导出器通常选择的向收集器发送IPFIX消息的路径的IP地址。

sourcePort, destinationPort: These state parameters contain the transport-protocol port numbers of the Exporter and the Collector of the Transport Session and thus are identical to ipfixTransportSessionSourcePort and ipfixTransportSessionDestinationPort in the IPFIX MIB module [RFC6615].

sourcePort,destinationPort:这些状态参数包含传输会话的导出器和收集器的传输协议端口号,因此与IPFIX MIB模块[RFC6615]中的ipfixTransportSessionSourcePort和ipfixTransportSessionDestinationPort相同。

sctpAssocId: The association ID used for the SCTP session between the Exporter and the Collector of the Transport Session. It is equal to the sctpAssocId entry in the sctpAssocTable defined in the SCTP-MIB [RFC3871]. This parameter is only available if the transport protocol is SCTP and if an SNMP agent on the same Monitoring Device enables access to the corresponding MIB objects in the sctpAssocTable. This state parameter is identical to ipfixTransportSessionSctpAssocId in the IPFIX MIB module [RFC6615].

sctpAssocId:用于传输会话的导出器和收集器之间的SCTP会话的关联ID。它等于SCTP-MIB[RFC3871]中定义的sctpAssocTable中的sctpAssocId条目。仅当传输协议为SCTP且同一监控设备上的SNMP代理允许访问sctpAssocTable中相应的MIB对象时,此参数才可用。此状态参数与IPFIX MIB模块[RFC6615]中的ipfixTransportSessionSctpAssocId相同。

status: Status of the Transport Session, which can be one of the following: * inactive: Transport Session is established, but no IPFIX Messages are currently transferred (e.g., because this is a backup (secondary) session) * active: Transport Session is established and transfers IPFIX Messages * unknown: Transport Session status cannot be determined This state parameter is identical to ipfixTransportSessionStatus in the IPFIX MIB module [RFC6615].

状态:传输会话的状态,可以是以下状态之一:*非活动:已建立传输会话,但当前未传输IPFIX消息(例如,因为这是备份(辅助)会话)*活动:传输会话已建立并传输IPFIX消息*未知:无法确定传输会话状态此状态参数与IPFIX MIB模块[RFC6615]中的ipfixTransportSessionStatus相同。

rate: The number of bytes per second transmitted by the Exporting Process or received by the Collecting Process. This parameter is updated every second. This state parameter is identical to ipfixTransportSessionRate in the IPFIX MIB module [RFC6615].

速率:导出进程每秒传输或收集进程每秒接收的字节数。此参数每秒更新一次。此状态参数与IPFIX MIB模块[RFC6615]中的ipfixTransportSessionRate相同。

bytes, messages, records, templates, optionsTemplates: The number of bytes, IPFIX Messages, Data Records, Template Records, and Options Template Records transmitted by the Exporting Process or received by the Collecting Process. Discontinuities in the values of these counters can occur at re-initialization of the management system, and at other times as indicated by the value of transportSessionDiscontinuityTime.

字节、消息、记录、模板、选项模板:导出过程传输或收集过程接收的字节数、IPFIX消息、数据记录、模板记录和选项模板记录。管理系统重新初始化时,以及transportSessionDiscontinuityTime值指示的其他时间,这些计数器的值可能会出现不连续。

discardedMessages: Used for Exporting Processes, this parameter indicates the number of messages that could not be sent due to internal buffer overflows, network congestion, routing issues, etc. Used for Collecting Process, this parameter indicates the number of received IPFIX Messages that are malformed, cannot be decoded, are received in the wrong order or are missing according to the sequence number. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of transportSessionDiscontinuityTime.

discardedMessages:用于导出进程,此参数表示由于内部缓冲区溢出、网络拥塞、路由问题等而无法发送的消息数。用于收集进程,此参数表示收到的IPFIX消息中格式错误、无法解码的消息数,按错误顺序接收或根据序列号丢失。管理系统重新初始化时,以及transportSessionDiscontinuityTime值指示的其他时间,可能会出现此计数器值的不连续性。

transportSessionStartTime: Timestamp of the start of the given Transport Session. This state parameter does not correspond to any object in the IPFIX MIB module.

transportSessionStartTime:给定传输会话开始的时间戳。此状态参数与IPFIX MIB模块中的任何对象都不对应。

transportSessionDiscontinuityTime: Timestamp of the most recent occasion at which one or more of the Transport Session counters suffered a discontinuity. In contrast to ipfixTransportSessionDiscontinuityTime, the time is absolute and not relative to sysUpTime.

transportSessionDiscontinuityTime:最近一次一个或多个传输会话计数器中断的时间戳。与ipfixTransportSessionDiscontinuityTime相比,时间是绝对的,与系统正常运行时间无关。

Note that, if used for Exporting Processes, the values of the state parameters destinationAddress and destinationPort match the values of the configuration parameters destinationIPAddress and destinationPort of the outer SctpExporter, TcpExporter, and UdpExporter objects (in the case of SctpExporter, one of the configured destinationIPAddress values); if the transport protocol is UDP or SCTP and if the parameter sourceIPAddress is configured in the outer UdpExporter or SctpExporter object, the value of sourceAddress equals the configured value or one of the configured values. Used for Collecting Processes, the value of destinationAddress equals the value (or one of the values) of the parameter localIPAddress if this parameter is configured in the outer UdpCollector, TcpCollector, or SctpCollector object; destinationPort equals the value of the configuration parameter localPort.

请注意,如果用于导出进程,则状态参数destinationAddress和destinationPort的值与外部SctpExporter、TcpExporter和UdpExporter对象的配置参数DestinationPaddress和destinationPort的值匹配(对于SctpExporter,配置的DestinationPaddress值之一);如果传输协议为UDP或SCTP,并且在外部UdpExporter或SctpExporter对象中配置了参数sourceIPAddress,则sourceAddress的值等于配置的值或其中一个配置的值。用于收集进程,destinationAddress的值等于该值(或其中一个值)如果在外部UdpCollector、TcpCollector或SctpCollector对象中配置了此参数,则为参数localIPAddress;destinationPort等于配置参数localPort的值。

Each object of the TransportSession class includes a list of objects of the Template class with information and statistics about the Templates transmitted or received on the given Transport Session. The Template class is specified in Section 4.8.

TransportSession类的每个对象都包括模板类的对象列表,其中包含关于在给定传输会话上传输或接收的模板的信息和统计信息。第4.8节规定了模板类。

4.8. Template Class
4.8. 模板类
     +--------------------------------------+
     | Template                             |
     +--------------------------------------+
     | observationDomainId {readOnly}       |<>---+ 0..*
     | templateId {readOnly}                |     |
     | setId {readOnly}                     |     |
     | accessTime {readOnly}                |     |
     | templateDataRecords {readOnly}       |     |
     | templateDiscontinuityTime {readOnly} |     |
     +--------------------------------------+     |
                                                  |
                              +--------------------------------------+
                              | Field                                |
                              +--------------------------------------+
                              | ieId {readOnly}                      |
                              | ieLength {readOnly}                  |
                              | ieEnterpriseNumber {readOnly}        |
                              | isFlowKey {readOnly} {non-Options    |
                              |   Template only}                     |
                              | isScope {readOnly} {Options Template |
                              |   only}                              |
                              +--------------------------------------+
        
     +--------------------------------------+
     | Template                             |
     +--------------------------------------+
     | observationDomainId {readOnly}       |<>---+ 0..*
     | templateId {readOnly}                |     |
     | setId {readOnly}                     |     |
     | accessTime {readOnly}                |     |
     | templateDataRecords {readOnly}       |     |
     | templateDiscontinuityTime {readOnly} |     |
     +--------------------------------------+     |
                                                  |
                              +--------------------------------------+
                              | Field                                |
                              +--------------------------------------+
                              | ieId {readOnly}                      |
                              | ieLength {readOnly}                  |
                              | ieEnterpriseNumber {readOnly}        |
                              | isFlowKey {readOnly} {non-Options    |
                              |   Template only}                     |
                              | isScope {readOnly} {Options Template |
                              |   only}                              |
                              +--------------------------------------+
        

Figure 29: Template class

图29:模板类

The Template class contains state data about Templates used by an Exporting Process or received by a Collecting Process in a specific Transport Session. The Field class defines one field of the Template. The names and semantics of the state parameters correspond to the managed objects in the ipfixTemplateTable, ipfixTemplateDefinitionTable, and ipfixTemplateStatsTable of the IPFIX MIB module [RFC6615]:

Template类包含有关导出进程使用的模板或收集进程在特定传输会话中接收的模板的状态数据。Field类定义模板的一个字段。状态参数的名称和语义对应于IPFIX MIB模块[RFC6615]的ipfixTemplateTable、ipfixTemplateDefinitionTable和IPFixTemplateStatTable中的托管对象:

observationDomainId: The ID of the Observation Domain for which this Template is defined.

observationDomainId:为其定义此模板的观察域的ID。

templateId: This number indicates the Template ID in the IPFIX Message.

templateId:此数字表示IPFIX消息中的模板ID。

setId: This number indicates the Set ID of the Template. Currently, there are two values defined [RFC5101]. The value 2 is used for Sets containing Template definitions. The value 3 is used for Sets containing Options Template definitions.

setId:这个数字表示模板的Set ID。目前,定义了两个值[RFC5101]。值2用于包含模板定义的集合。值3用于包含选项模板定义的集合。

accessTime: Used for Exporting Processes, this parameter contains the time when this (Options) Template was last sent to the Collector or written to the file. Used for Collecting Processes, this parameter contains the time when this (Options) Template was last received from the Exporter or read from the file.

accessTime:用于导出进程,此参数包含此(选项)模板上次发送到收集器或写入文件的时间。用于收集进程,此参数包含上次从导出器接收此(选项)模板或从文件读取此模板的时间。

templateDataRecords: The number of transmitted or received Data Records defined by this (Options) Template since the point in time indicated by templateDefinitionTime.

templateDataRecords:自templateDefinitionTime指示的时间点以来,此(选项)模板定义的传输或接收数据记录数。

templateDiscontinuityTime: Timestamp of the most recent occasion at which the counter templateDataRecords suffered a discontinuity. In contrast to ipfixTemplateDiscontinuityTime, the time is absolute and not relative to sysUpTime.

TemplateInterruptyTime:计数器templateDataRecords发生中断的最近一次的时间戳。与IPFixTemplateInjunctionTime不同,时间是绝对的,与系统正常运行时间无关。

ieId, ieLength, ieEnterpriseNumber: Information Element identifier, length, and enterprise number of a field in the Template. If this is not an enterprise-specific Information Element, ieEnterpriseNumber is zero. These state parameters are identical to ipfixTemplateDefinitionIeId, ipfixTemplateDefinitionIeLength, and ipfixTemplateDefinitionIeEnterpriseNumber in the IPFIX MIB module [RFC6615].

ieId、ieLength、IEEnterpriseEnumber:模板中字段的信息元素标识符、长度和企业编号。如果这不是特定于企业的信息元素,则IEEnterpriseEnumber为零。这些状态参数与IPFIX MIB模块[RFC6615]中的ipfixTemplateDefinitionIeId、ipfixTemplateDefinitionIeLength和IPFixTemplateDefinitionIEEnterpriseEnumber相同。

isFlowKey: If this state parameter is present, this is a Flow Key field. This parameter is only available for non-Options Templates (i.e., if setId is 2).

isFlowKey:如果此状态参数存在,则这是一个Flow Key字段。此参数仅适用于非选项模板(即,如果setId为2)。

isFlowKey: If this state parameter is present, this is a scope field. This parameter is only available for Options Templates (i.e., if setId is 3).

isFlowKey:如果此状态参数存在,则这是一个范围字段。此参数仅适用于选项模板(即,如果setId为3)。

5. Adaptation to Device Capabilities
5. 适应设备功能

The configuration data model standardizes a superset of common IPFIX and PSAMP configuration parameters. A typical Monitoring Device implementation will not support the entire range of possible configurations. Certain functions may not be supported, such as the Collecting Process that does not exist on a Monitoring Device that is conceived as Exporter only. The configuration of other functions may

配置数据模型标准化了常见IPFIX和PSAMP配置参数的超集。典型的监控设备实施不支持所有可能的配置。某些功能可能不受支持,例如仅设想为导出器的监控设备上不存在的收集过程。其他功能的配置可能会有所不同

be subject to resource limitations or functional restrictions. For example, the Cache size is typically limited according to the available memory on the device. It is also possible that a Monitoring Device implementation requires the configuration of additional parameters that are not part of the configuration data model in order to function properly.

受到资源限制或功能限制。例如,缓存大小通常根据设备上的可用内存进行限制。监控设备实现还可能需要配置不属于配置数据模型一部分的其他参数,以便正常运行。

YANG [RFC6020] offers several possibilities to restrict and adapt a configuration data model. The current version of YANG defines the concepts of features, deviations, and extensions.

YANG[RFC6020]提供了几种限制和调整配置数据模型的可能性。当前版本的YANG定义了特征、偏差和扩展的概念。

The feature concept allows the author of a configuration data model to make proportions of the model conditional in a manner that is controlled by the device. Devices do not have to support these conditional parts to conform to the model. If the NETCONF protocol is used, features which are supported by the device are announced in the <hello> message [RFC6241].

特性概念允许配置数据模型的作者以设备控制的方式使模型的比例有条件。设备不必支持这些条件部件以符合模型。如果使用NETCONF协议,则设备支持的功能将在<hello>消息[RFC6241]中宣布。

The configuration data model for IPFIX and PSAMP covers the configuration of Exporters, Collectors, and devices that may act as both. As Exporters and Collectors implement different functions, the corresponding proportions of the model are conditional on the following features:

IPFIX和PSAMP的配置数据模型涵盖了导出器、采集器和设备的配置,这些设备可能同时作为导出器、采集器和设备。由于导出器和收集器实现不同的功能,因此模型的相应比例取决于以下特性:

exporter: If this feature is supported, Exporting Processes can be configured.

导出器:如果支持此功能,则可以配置导出过程。

collector: If this feature is supported, Collecting Processes can be configured.

收集器:如果支持此功能,则可以配置收集进程。

Exporters do not necessarily implement any Selection Processes, Caches, or even Observation Points in particular cases. Therefore, the corresponding proportions of the model are conditional on the following feature:

在特定情况下,导出器不一定实现任何选择过程、缓存,甚至观察点。因此,模型的相应比例取决于以下特征:

meter: If this feature is supported, Observation Points, Selection Processes, and Caches can be configured.

仪表:如果支持此功能,则可以配置观测点、选择过程和缓存。

Additional features refer to different PSAMP Sampling and Filtering methods as well as to the supported types of Caches:

其他功能涉及不同的PSAMP采样和过滤方法以及支持的缓存类型:

psampSampCountBased: If this feature is supported, Sampling method sampCountBased can be configured.

psampSampCountBased:如果支持此功能,则可以配置采样方法sampCountBased。

psampSampTimeBased: If this feature is supported, Sampling method sampTimeBased can be configured.

psampSampTimeBased:如果支持此功能,则可以配置采样方法sampTimeBased。

psampSampRandOutOfN: If this feature is supported, Sampling method sampRandOutOfN can be configured.

psampSampRandOutOfN:如果支持此功能,则可以配置采样方法sampRandOutOfN。

psampSampUniProb: If this feature is supported, Sampling method sampUniProb can be configured.

psampSampUniProb:如果支持此功能,则可以配置采样方法sampUniProb。

psampFilterMatch: If this feature is supported, Filtering method filterMatch can be configured.

psampFilterMatch:如果支持此功能,则可以配置筛选方法filterMatch。

psampFilterHash: If this feature is supported, Filtering method filterHash can be configured.

psampFilterHash:如果支持此功能,则可以配置过滤方法filterHash。

immediateCache: If this feature is supported, a Cache generating PSAMP Packet Reports can be configured using the ImmediateCache class.

immediateCache:如果支持此功能,可以使用immediateCache类配置生成PSAMP数据包报告的缓存。

timeoutCache: If this feature is supported, a Cache generating IPFIX Flow Records can be configured using the TimeoutCache class.

timeoutCache:如果支持此功能,则可以使用timeoutCache类配置生成IPFIX流记录的缓存。

naturalCache: If this feature is supported, a Cache generating IPFIX Flow Records can be configured using the NaturalCache class.

naturalCache:如果支持此功能,则可以使用naturalCache类配置生成IPFIX流记录的缓存。

permanentCache: If this feature is supported, a Cache generating IPFIX Flow Records can be configured using the PermanentCache class.

permanentCache:如果支持此功能,则可以使用permanentCache类配置生成IPFIX流记录的缓存。

The following features concern the support of UDP and TCP as transport protocols and the support of File Readers and File Writers:

以下功能涉及对UDP和TCP作为传输协议的支持以及对文件读取器和文件写入器的支持:

udpTransport: If this feature is supported, UDP can be used as transport protocol by Exporting Processes and Collecting Processes.

UDPTTransport:如果支持此功能,则可以通过导出进程和收集进程将UDP用作传输协议。

tcpTransport: If this feature is supported, TCP can be used as transport protocol by Exporting Processes and Collecting Processes.

TCPTTransport:如果支持此功能,则可以通过导出进程和收集进程将TCP用作传输协议。

fileReader: If this feature is supported, File Readers can be configured as part of Collecting Processes.

fileReader:如果支持此功能,则可以将文件读取器配置为收集过程的一部分。

fileWriter: If this feature is supported, File Writers can be configured as part of Exporting Processes.

fileWriter:如果支持此功能,则可以将文件编写器配置为导出过程的一部分。

The deviation concept enables a device to announce deviations from the standard model using the "deviation" statement. For example, it is possible to restrict the value range of a specific parameter or to define that the configuration of a certain parameter is not supported at all. Hence, deviations are typically used to specify limitations

偏差概念使设备能够使用“偏差”声明宣布与标准模型的偏差。例如,可以限制特定参数的值范围或定义完全不支持某个参数的配置。因此,偏差通常用于指定限制

due to resource constraints or functional restrictions. Deviations concern existing parameters of the original configuration data model and must not be confused with model extensions. Model extensions are specified with the "augment" statement and allow adding new parameters to the original configuration data model.

由于资源限制或功能限制。偏差涉及原始配置数据模型的现有参数,不得与模型扩展混淆。模型扩展由“augment”语句指定,并允许向原始配置数据模型添加新参数。

If certain device-specific constraints cannot be formally specified with YANG, they MUST be expressed with human-readable text using the "description" statement. The provided information MUST enable the user to define a configuration that is entirely supported by the Monitoring Device. On the other hand, if a Monitoring Device is configured, it MUST notify the user about any part of the configuration that is not supported. The Monitoring Device MUST NOT silently accept configuration data that cannot be completely enforced. If the NETCONF protocol is used to send configuration data to the Monitoring Device, the error handling is specified in the NETCONF protocol specification [RFC6241].

如果某些特定于设备的约束不能用YANG正式指定,则必须使用“描述”语句用人类可读的文本表示。提供的信息必须使用户能够定义完全受监控设备支持的配置。另一方面,如果配置了监控设备,它必须通知用户配置中不受支持的任何部分。监视设备不得静默地接受无法完全强制执行的配置数据。如果使用NETCONF协议向监控设备发送配置数据,则在NETCONF协议规范[RFC6241]中指定了错误处理。

Just like features, deviations and model extensions are announced in NETCONF's <hello> message. A usage example of deviations is given in Section 7.5.

与特性一样,NETCONF的<hello>消息中也会宣布偏差和模型扩展。第7.5节给出了偏差的使用示例。

6. YANG Module of the IPFIX/PSAMP Configuration Data Model
6. IPFIX/PSAMP配置数据模型的YANG模块

The YANG module specification of the configuration data model is listed below. It makes use of the common YANG types defined in the modules urn:ietf:params:xml:ns:yang:ietf-yang-types and urn:ietf:params:xml:ns:yang:ietf-inet-types [RFC6021].

配置数据模型的模块规格如下所示。它使用模块urn:ietf:params:xml:ns:YANG:ietf-YANG-types和urn:ietf:params:xml:ns:YANG:ietf-inet-types[RFC6021]中定义的常见YANG-types。

  <CODE BEGINS> file "ietf-ipfix-psamp@2012-09-05.yang"
  module ietf-ipfix-psamp {
    namespace "urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp";
    prefix ipfix;
        
  <CODE BEGINS> file "ietf-ipfix-psamp@2012-09-05.yang"
  module ietf-ipfix-psamp {
    namespace "urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp";
    prefix ipfix;
        
    import ietf-yang-types { prefix yang; }
    import ietf-inet-types { prefix inet; }
        
    import ietf-yang-types { prefix yang; }
    import ietf-inet-types { prefix inet; }
        

organization "IETF IPFIX Working Group";

组织“IETF IPFIX工作组”;

    contact
      "WG Web:  <http://tools.ietf.org/wg/ipfix/>
      WG List:  <ipfix@ietf.org>
        
    contact
      "WG Web:  <http://tools.ietf.org/wg/ipfix/>
      WG List:  <ipfix@ietf.org>
        
      WG Chair: Nevil Brownlee
                <n.brownlee@auckland.ac.nz>
        
      WG Chair: Nevil Brownlee
                <n.brownlee@auckland.ac.nz>
        
      WG Chair: Juergen Quittek
                <quittek@neclab.eu>
        
      WG Chair: Juergen Quittek
                <quittek@neclab.eu>
        
      Editor:   Gerhard Muenz
                <muenz@net.in.tum.de>";
        
      Editor:   Gerhard Muenz
                <muenz@net.in.tum.de>";
        

description "IPFIX/PSAMP Configuration Data Model

说明“IPFIX/PSAMP配置数据模型

Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info).";

版权所有(c)2012 IETF信托基金和确定为文件作者的人员。版权所有。根据IETF信托有关IETF文件的法律规定第4.c节规定的简化BSD许可证中包含的许可条款,允许以源代码和二进制格式重新分发和使用,无论是否修改(http://trustee.ietf.org/license-info).";

    revision 2012-09-05 {
      description "Initial version";
      reference "RFC 6728: Configuration Data Model for the IP Flow
        Information Export (IPFIX) and Packet Sampling (PSAMP)
        Protocols";
    }
        
    revision 2012-09-05 {
      description "Initial version";
      reference "RFC 6728: Configuration Data Model for the IP Flow
        Information Export (IPFIX) and Packet Sampling (PSAMP)
        Protocols";
    }
        
    /*****************************************************************
    * Features
    *****************************************************************/
        
    /*****************************************************************
    * Features
    *****************************************************************/
        
    feature exporter {
      description "If supported, the Monitoring Device can be used as
        an Exporter.  Exporting Processes can be configured.";
    }
        
    feature exporter {
      description "If supported, the Monitoring Device can be used as
        an Exporter.  Exporting Processes can be configured.";
    }
        
    feature collector {
      description "If supported, the Monitoring Device can be used as
        a Collector.  Collecting Processes can be configured.";
    }
        
    feature collector {
      description "If supported, the Monitoring Device can be used as
        a Collector.  Collecting Processes can be configured.";
    }
        
    feature meter {
      description "If supported, Observation Points, Selection
        Processes, and Caches can be configured.";
    }
        
    feature meter {
      description "If supported, Observation Points, Selection
        Processes, and Caches can be configured.";
    }
        
    feature psampSampCountBased {
      description "If supported, the Monitoring Device supports
        count-based Sampling.  The Selector method sampCountBased can
        be configured.";
        
    feature psampSampCountBased {
      description "If supported, the Monitoring Device supports
        count-based Sampling.  The Selector method sampCountBased can
        be configured.";
        

}

}

    feature psampSampTimeBased {
      description "If supported, the Monitoring Device supports
        time-based Sampling.  The Selector method sampTimeBased can
        be configured.";
    }
        
    feature psampSampTimeBased {
      description "If supported, the Monitoring Device supports
        time-based Sampling.  The Selector method sampTimeBased can
        be configured.";
    }
        
    feature psampSampRandOutOfN {
      description "If supported, the Monitoring Device supports
        random n-out-of-N Sampling.  The Selector method
        sampRandOutOfN can be configured.";
    }
        
    feature psampSampRandOutOfN {
      description "If supported, the Monitoring Device supports
        random n-out-of-N Sampling.  The Selector method
        sampRandOutOfN can be configured.";
    }
        
    feature psampSampUniProb {
      description "If supported, the Monitoring Device supports
        uniform probabilistic Sampling.  The Selector method
        sampUniProb can be configured.";
    }
        
    feature psampSampUniProb {
      description "If supported, the Monitoring Device supports
        uniform probabilistic Sampling.  The Selector method
        sampUniProb can be configured.";
    }
        
    feature psampFilterMatch {
      description "If supported, the Monitoring Device supports
        property match Filtering.  The Selector method filterMatch
        can be configured.";
    }
        
    feature psampFilterMatch {
      description "If supported, the Monitoring Device supports
        property match Filtering.  The Selector method filterMatch
        can be configured.";
    }
        
    feature psampFilterHash {
      description "If supported, the Monitoring Device supports
        hash-based Filtering.  The Selector method filterHash can be
        configured.";
    }
        
    feature psampFilterHash {
      description "If supported, the Monitoring Device supports
        hash-based Filtering.  The Selector method filterHash can be
        configured.";
    }
        
    feature immediateCache {
      description "If supported, the Monitoring Device supports
        Caches generating PSAMP Packet Reports by configuration with
        immediateCache.";
    }
        
    feature immediateCache {
      description "If supported, the Monitoring Device supports
        Caches generating PSAMP Packet Reports by configuration with
        immediateCache.";
    }
        
    feature timeoutCache {
      description "If supported, the Monitoring Device supports
        Caches generating IPFIX Flow Records by configuration with
        timeoutCache.";
    }
        
    feature timeoutCache {
      description "If supported, the Monitoring Device supports
        Caches generating IPFIX Flow Records by configuration with
        timeoutCache.";
    }
        
    feature naturalCache {
      description "If supported, the Monitoring Device supports
        Caches generating IPFIX Flow Records by configuration with
        naturalCache.";
        
    feature naturalCache {
      description "If supported, the Monitoring Device supports
        Caches generating IPFIX Flow Records by configuration with
        naturalCache.";
        

}

}

    feature permanentCache {
      description "If supported, the Monitoring Device supports
        Caches generating IPFIX Flow Records by configuration with
        permanentCache.";
    }
        
    feature permanentCache {
      description "If supported, the Monitoring Device supports
        Caches generating IPFIX Flow Records by configuration with
        permanentCache.";
    }
        
    feature udpTransport {
      description "If supported, the Monitoring Device supports UDP
        as the transport protocol.";
    }
        
    feature udpTransport {
      description "If supported, the Monitoring Device supports UDP
        as the transport protocol.";
    }
        
    feature tcpTransport {
      description "If supported, the Monitoring Device supports TCP
        as the transport protocol.";
    }
        
    feature tcpTransport {
      description "If supported, the Monitoring Device supports TCP
        as the transport protocol.";
    }
        
    feature fileReader {
      description "If supported, the Monitoring Device supports the
        configuration of Collecting Processes as File Readers.";
    }
        
    feature fileReader {
      description "If supported, the Monitoring Device supports the
        configuration of Collecting Processes as File Readers.";
    }
        
    feature fileWriter {
      description "If supported, the Monitoring Device supports the
        configuration of Exporting Processes as File Writers.";
    }
        
    feature fileWriter {
      description "If supported, the Monitoring Device supports the
        configuration of Exporting Processes as File Writers.";
    }
        
    /*****************************************************************
    * Identities
    *****************************************************************/
        
    /*****************************************************************
    * Identities
    *****************************************************************/
        
    /*** Hash function identities ***/
    identity hashFunction {
      description "Base identity for all hash functions used for
        hash-based packet Filtering.  Identities derived from
        this base are used by the leaf
        /ipfix/selectionProcess/selector/filterHash/hashFunction.";
    }
    identity BOB {
      base "hashFunction";
      description "BOB hash function";
      reference "RFC 5475, Section 6.2.4.1.";
    }
    identity IPSX {
      base "hashFunction";
      description "IPSX hash function";
      reference "RFC 5475, Section 6.2.4.1.";
        
    /*** Hash function identities ***/
    identity hashFunction {
      description "Base identity for all hash functions used for
        hash-based packet Filtering.  Identities derived from
        this base are used by the leaf
        /ipfix/selectionProcess/selector/filterHash/hashFunction.";
    }
    identity BOB {
      base "hashFunction";
      description "BOB hash function";
      reference "RFC 5475, Section 6.2.4.1.";
    }
    identity IPSX {
      base "hashFunction";
      description "IPSX hash function";
      reference "RFC 5475, Section 6.2.4.1.";
        
    }
    identity CRC {
      base "hashFunction";
      description "CRC hash function";
      reference "RFC 5475, Section 6.2.4.1.";
    }
        
    }
    identity CRC {
      base "hashFunction";
      description "CRC hash function";
      reference "RFC 5475, Section 6.2.4.1.";
    }
        
    /*** Export mode identities ***/
    identity exportMode {
      description "Base identity for different usages of export
        destinations configured for an Exporting Process.
        Identities derived from this base are used by the leaf
        /ipfix/exportingProcess/exportMode.";
    }
    identity parallel {
      base "exportMode";
      description "Parallel export of Data Records to all
        destinations configured for the Exporting Process.";
    }
    identity loadBalancing {
      base "exportMode";
      description "Load-balancing between the different destinations
        configured for the Exporting Process.";
    }
    identity fallback {
      base "exportMode";
      description "Export to the primary destination (i.e., the first
        SCTP, UDP, TCP, or file destination configured for the
        Exporting Process).  If the export to the primary destination
        fails, the Exporting Process tries to export to the secondary
        destination.  If the secondary destination fails as well, it
        continues with the tertiary, etc.";
    }
        
    /*** Export mode identities ***/
    identity exportMode {
      description "Base identity for different usages of export
        destinations configured for an Exporting Process.
        Identities derived from this base are used by the leaf
        /ipfix/exportingProcess/exportMode.";
    }
    identity parallel {
      base "exportMode";
      description "Parallel export of Data Records to all
        destinations configured for the Exporting Process.";
    }
    identity loadBalancing {
      base "exportMode";
      description "Load-balancing between the different destinations
        configured for the Exporting Process.";
    }
    identity fallback {
      base "exportMode";
      description "Export to the primary destination (i.e., the first
        SCTP, UDP, TCP, or file destination configured for the
        Exporting Process).  If the export to the primary destination
        fails, the Exporting Process tries to export to the secondary
        destination.  If the secondary destination fails as well, it
        continues with the tertiary, etc.";
    }
        
    /*** Options type identities ***/
    identity optionsType {
      description "Base identity for report types exported with
        options.  Identities derived from this base are used by the leaf
        /ipfix/exportingProcess/options/optionsType.";
    }
    identity meteringStatistics {
      base "optionsType";
      description "Metering Process Statistics.";
      reference "RFC 5101, Section 4.1.";
    }
    identity meteringReliability {
      base "optionsType";
      description "Metering Process Reliability Statistics.";
        
    /*** Options type identities ***/
    identity optionsType {
      description "Base identity for report types exported with
        options.  Identities derived from this base are used by the leaf
        /ipfix/exportingProcess/options/optionsType.";
    }
    identity meteringStatistics {
      base "optionsType";
      description "Metering Process Statistics.";
      reference "RFC 5101, Section 4.1.";
    }
    identity meteringReliability {
      base "optionsType";
      description "Metering Process Reliability Statistics.";
        
      reference "RFC 5101, Section 4.2.";
    }
    identity exportingReliability {
      base "optionsType";
      description "Exporting Process Reliability
        Statistics.";
      reference "RFC 5101, Section 4.3.";
    }
    identity flowKeys {
      base "optionsType";
      description "Flow Keys.";
      reference "RFC 5101, Section 4.4.";
    }
    identity selectionSequence {
      base "optionsType";
      description "Selection Sequence and Selector Reports.";
      reference "RFC 5476, Sections 6.5.1 and 6.5.2.";
    }
    identity selectionStatistics {
      base "optionsType";
      description "Selection Sequence Statistics Report.";
      reference "RFC 5476, Sections 6.5.3.";
    }
    identity accuracy {
      base "optionsType";
      description "Accuracy Report.";
      reference "RFC 5476, Section 6.5.4.";
    }
    identity reducingRedundancy {
      base "optionsType";
      description "Enables the utilization of Options Templates to
        reduce redundancy in the exported Data Records.";
      reference "RFC 5473.";
    }
    identity extendedTypeInformation {
      base "optionsType";
      description "Export of extended type information for
        enterprise-specific Information Elements used in the
        exported Templates.";
      reference "RFC 5610.";
    }
        
      reference "RFC 5101, Section 4.2.";
    }
    identity exportingReliability {
      base "optionsType";
      description "Exporting Process Reliability
        Statistics.";
      reference "RFC 5101, Section 4.3.";
    }
    identity flowKeys {
      base "optionsType";
      description "Flow Keys.";
      reference "RFC 5101, Section 4.4.";
    }
    identity selectionSequence {
      base "optionsType";
      description "Selection Sequence and Selector Reports.";
      reference "RFC 5476, Sections 6.5.1 and 6.5.2.";
    }
    identity selectionStatistics {
      base "optionsType";
      description "Selection Sequence Statistics Report.";
      reference "RFC 5476, Sections 6.5.3.";
    }
    identity accuracy {
      base "optionsType";
      description "Accuracy Report.";
      reference "RFC 5476, Section 6.5.4.";
    }
    identity reducingRedundancy {
      base "optionsType";
      description "Enables the utilization of Options Templates to
        reduce redundancy in the exported Data Records.";
      reference "RFC 5473.";
    }
    identity extendedTypeInformation {
      base "optionsType";
      description "Export of extended type information for
        enterprise-specific Information Elements used in the
        exported Templates.";
      reference "RFC 5610.";
    }
        
    /*****************************************************************
    * Type definitions
    *****************************************************************/
        
    /*****************************************************************
    * Type definitions
    *****************************************************************/
        
    typedef ieNameType {
      type string {
        
    typedef ieNameType {
      type string {
        
        length "1..max";
        pattern "\S+";
      }
      description "Type for Information Element names.  Whitespaces
        are not allowed.";
    }
        
        length "1..max";
        pattern "\S+";
      }
      description "Type for Information Element names.  Whitespaces
        are not allowed.";
    }
        
    typedef ieIdType {
      type uint16 {
        range "1..32767" {
          description "Valid range of Information Element
              identifiers.";
          reference "RFC 5102, Section 4.";
        }
      }
      description "Type for Information Element identifiers.";
    }
        
    typedef ieIdType {
      type uint16 {
        range "1..32767" {
          description "Valid range of Information Element
              identifiers.";
          reference "RFC 5102, Section 4.";
        }
      }
      description "Type for Information Element identifiers.";
    }
        
    typedef nameType {
      type string {
        length "1..max";
        pattern "\S(.*\S)?";
      }
      description "Type for 'name' leafs, which are used to identify
        specific instances within lists, etc.
        Leading and trailing whitespaces are not allowed.";
    }
        
    typedef nameType {
      type string {
        length "1..max";
        pattern "\S(.*\S)?";
      }
      description "Type for 'name' leafs, which are used to identify
        specific instances within lists, etc.
        Leading and trailing whitespaces are not allowed.";
    }
        
    typedef ifNameType {
      type string {
        length "1..255";
      }
      description "This corresponds to the DisplayString textual
        convention of SNMPv2-TC, which is used for ifName in the IF
        MIB module.";
      reference "RFC 2863 (ifName).";
    }
        
    typedef ifNameType {
      type string {
        length "1..255";
      }
      description "This corresponds to the DisplayString textual
        convention of SNMPv2-TC, which is used for ifName in the IF
        MIB module.";
      reference "RFC 2863 (ifName).";
    }
        
    typedef direction {
      type enumeration {
        enum ingress {
          description "This value is used for monitoring incoming
            packets.";
        }
        enum egress {
          description "This value is used for monitoring outgoing
            packets.";
        }
        
    typedef direction {
      type enumeration {
        enum ingress {
          description "This value is used for monitoring incoming
            packets.";
        }
        enum egress {
          description "This value is used for monitoring outgoing
            packets.";
        }
        
        enum both {
          description "This value is used for monitoring incoming and
            outgoing packets.";
        }
      }
      description "Direction of packets going through an interface or
        linecard.";
    }
        
        enum both {
          description "This value is used for monitoring incoming and
            outgoing packets.";
        }
      }
      description "Direction of packets going through an interface or
        linecard.";
    }
        
    typedef transportSessionStatus {
      type enumeration {
        enum inactive {
          description "This value MUST be used for Transport Sessions
            that are specified in the system but currently not active.
            The value can be used for Transport Sessions that are
            backup (secondary) sessions.";
        }
        enum active {
          description "This value MUST be used for Transport Sessions
            that are currently active and transmitting or receiving
            data.";
        }
        enum unknown {
          description "This value MUST be used if the status of the
            Transport Sessions cannot be detected by the device.  This
            value should be avoided as far as possible.";
        }
      }
      description "Status of a Transport Session.";
      reference "RFC 6615, Section 8 (ipfixTransportSessionStatus).";
    }
        
    typedef transportSessionStatus {
      type enumeration {
        enum inactive {
          description "This value MUST be used for Transport Sessions
            that are specified in the system but currently not active.
            The value can be used for Transport Sessions that are
            backup (secondary) sessions.";
        }
        enum active {
          description "This value MUST be used for Transport Sessions
            that are currently active and transmitting or receiving
            data.";
        }
        enum unknown {
          description "This value MUST be used if the status of the
            Transport Sessions cannot be detected by the device.  This
            value should be avoided as far as possible.";
        }
      }
      description "Status of a Transport Session.";
      reference "RFC 6615, Section 8 (ipfixTransportSessionStatus).";
    }
        
    /*****************************************************************
    * Groupings
    *****************************************************************/
        
    /*****************************************************************
    * Groupings
    *****************************************************************/
        
    grouping observationPointParameters {
      description "Interface as input to Observation Point.";
      leaf observationPointId {
        type uint32;
        config false;
        description "Observation Point ID (i.e., the value of the
          Information Element observationPointId) assigned by the
          Monitoring Device.";
        reference "IANA registry for IPFIX Entities,
          http://www.iana.org/assignments/ipfix.";
      }
      leaf observationDomainId {
        
    grouping observationPointParameters {
      description "Interface as input to Observation Point.";
      leaf observationPointId {
        type uint32;
        config false;
        description "Observation Point ID (i.e., the value of the
          Information Element observationPointId) assigned by the
          Monitoring Device.";
        reference "IANA registry for IPFIX Entities,
          http://www.iana.org/assignments/ipfix.";
      }
      leaf observationDomainId {
        
        type uint32;
        mandatory true;
        description "The Observation Domain ID associates the
          Observation Point to an Observation Domain.  Observation
          Points with identical Observation Domain IDs belong to the
          same Observation Domain.
          Note that this parameter corresponds to
          ipfixObservationPointObservationDomainId in the IPFIX MIB
          module.";
        reference "RFC 5101; RFC 6615, Section 8
          (ipfixObservationPointObservationDomainId).";
      }
      leaf-list ifName {
        type ifNameType;
        description "List of names identifying interfaces of the
          Monitoring Device.  The Observation Point observes packets at
          the specified interfaces.";
      }
      leaf-list ifIndex {
        type uint32;
        description "List of ifIndex values pointing to entries in the
          ifTable of the IF-MIB module maintained by the Monitoring
          Device.  The Observation Point observes packets at the
          specified interfaces.
          This parameter SHOULD only be used if an SNMP agent enables
          access to the ifTable.
          Note that this parameter corresponds to
          ipfixObservationPointPhysicalInterface in the IPFIX MIB
          module.";
        reference "RFC 2863; RFC 6615, Section 8
          (ipfixObservationPointPhysicalInterface).";
      }
      leaf-list entPhysicalName {
        type string;
        description "List of names identifying physical entities of the
          Monitoring Device.  The Observation Point observes packets at
          the specified entities.";
      }
      leaf-list entPhysicalIndex {
        type uint32;
        description "List of entPhysicalIndex values pointing to
          entries in the entPhysicalTable of the ENTITY-MIB module
          maintained by the Monitoring Device.  The Observation Point
          observes packets at the specified entities.
          This parameter SHOULD only be used if an SNMP agent enables
          access to the entPhysicalTable.
          Note that this parameter corresponds to
          ipfixObservationPointPhysicalEntity in the IPFIX MIB
        
        type uint32;
        mandatory true;
        description "The Observation Domain ID associates the
          Observation Point to an Observation Domain.  Observation
          Points with identical Observation Domain IDs belong to the
          same Observation Domain.
          Note that this parameter corresponds to
          ipfixObservationPointObservationDomainId in the IPFIX MIB
          module.";
        reference "RFC 5101; RFC 6615, Section 8
          (ipfixObservationPointObservationDomainId).";
      }
      leaf-list ifName {
        type ifNameType;
        description "List of names identifying interfaces of the
          Monitoring Device.  The Observation Point observes packets at
          the specified interfaces.";
      }
      leaf-list ifIndex {
        type uint32;
        description "List of ifIndex values pointing to entries in the
          ifTable of the IF-MIB module maintained by the Monitoring
          Device.  The Observation Point observes packets at the
          specified interfaces.
          This parameter SHOULD only be used if an SNMP agent enables
          access to the ifTable.
          Note that this parameter corresponds to
          ipfixObservationPointPhysicalInterface in the IPFIX MIB
          module.";
        reference "RFC 2863; RFC 6615, Section 8
          (ipfixObservationPointPhysicalInterface).";
      }
      leaf-list entPhysicalName {
        type string;
        description "List of names identifying physical entities of the
          Monitoring Device.  The Observation Point observes packets at
          the specified entities.";
      }
      leaf-list entPhysicalIndex {
        type uint32;
        description "List of entPhysicalIndex values pointing to
          entries in the entPhysicalTable of the ENTITY-MIB module
          maintained by the Monitoring Device.  The Observation Point
          observes packets at the specified entities.
          This parameter SHOULD only be used if an SNMP agent enables
          access to the entPhysicalTable.
          Note that this parameter corresponds to
          ipfixObservationPointPhysicalEntity in the IPFIX MIB
        
          module.";
        reference "RFC 4133; RFC 6615, Section 8
          (ipfixObservationPointPhysicalInterface).";
      }
      leaf direction {
        type direction;
        default both;
        description "Direction of packets.  If not applicable (e.g., in
          the case of a sniffing interface in promiscuous mode), this
          parameter is ignored.";
      }
    }
        
          module.";
        reference "RFC 4133; RFC 6615, Section 8
          (ipfixObservationPointPhysicalInterface).";
      }
      leaf direction {
        type direction;
        default both;
        description "Direction of packets.  If not applicable (e.g., in
          the case of a sniffing interface in promiscuous mode), this
          parameter is ignored.";
      }
    }
        
    grouping sampCountBasedParameters {
      description "Configuration parameters of a Selector applying
        systematic count-based packet Sampling to the packet
        stream.";
      reference "RFC 5475, Section 5.1; RFC 5476, Section 6.5.2.1.";
      leaf packetInterval {
        type uint32;
        units packets;
        mandatory true;
        description "The number of packets that are consecutively
          sampled between gaps of length packetSpace.
          This parameter corresponds to the Information Element
          samplingPacketInterval and to psampSampCountBasedInterval
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.2; RFC 6727, Section 6
          (psampSampCountBasedInterval).";
      }
      leaf packetSpace {
        type uint32;
        units packets;
        mandatory true;
        description "The number of unsampled packets between two
          Sampling intervals.
          This parameter corresponds to the Information Element
          samplingPacketSpace and to psampSampCountBasedSpace
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.3; RFC 6727, Section 6
          (psampSampCountBasedSpace).";
      }
    }
        
    grouping sampCountBasedParameters {
      description "Configuration parameters of a Selector applying
        systematic count-based packet Sampling to the packet
        stream.";
      reference "RFC 5475, Section 5.1; RFC 5476, Section 6.5.2.1.";
      leaf packetInterval {
        type uint32;
        units packets;
        mandatory true;
        description "The number of packets that are consecutively
          sampled between gaps of length packetSpace.
          This parameter corresponds to the Information Element
          samplingPacketInterval and to psampSampCountBasedInterval
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.2; RFC 6727, Section 6
          (psampSampCountBasedInterval).";
      }
      leaf packetSpace {
        type uint32;
        units packets;
        mandatory true;
        description "The number of unsampled packets between two
          Sampling intervals.
          This parameter corresponds to the Information Element
          samplingPacketSpace and to psampSampCountBasedSpace
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.3; RFC 6727, Section 6
          (psampSampCountBasedSpace).";
      }
    }
        
    grouping sampTimeBasedParameters {
      description "Configuration parameters of a Selector applying
        systematic time-based packet Sampling to the packet
        stream.";
        
    grouping sampTimeBasedParameters {
      description "Configuration parameters of a Selector applying
        systematic time-based packet Sampling to the packet
        stream.";
        
      reference "RFC 5475, Section 5.1; RFC 5476, Section 6.5.2.2.";
      leaf timeInterval {
        type uint32;
        units microseconds;
        mandatory true;
        description "The time interval in microseconds during
          which all arriving packets are sampled between gaps
          of length timeSpace.
          This parameter corresponds to the Information Element
          samplingTimeInterval and to psampSampTimeBasedInterval
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.4; RFC 6727, Section 6
          (psampSampTimeBasedInterval).";
      }
      leaf timeSpace {
        type uint32;
        units microseconds;
        mandatory true;
        description "The time interval in microseconds during
          which no packets are sampled between two Sampling
          intervals specified by timeInterval.
          This parameter corresponds to the Information Element
          samplingTimeInterval and to psampSampTimeBasedSpace
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.5; RFC 6727, Section 6
          (psampSampTimeBasedSpace).";
      }
    }
        
      reference "RFC 5475, Section 5.1; RFC 5476, Section 6.5.2.2.";
      leaf timeInterval {
        type uint32;
        units microseconds;
        mandatory true;
        description "The time interval in microseconds during
          which all arriving packets are sampled between gaps
          of length timeSpace.
          This parameter corresponds to the Information Element
          samplingTimeInterval and to psampSampTimeBasedInterval
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.4; RFC 6727, Section 6
          (psampSampTimeBasedInterval).";
      }
      leaf timeSpace {
        type uint32;
        units microseconds;
        mandatory true;
        description "The time interval in microseconds during
          which no packets are sampled between two Sampling
          intervals specified by timeInterval.
          This parameter corresponds to the Information Element
          samplingTimeInterval and to psampSampTimeBasedSpace
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.5; RFC 6727, Section 6
          (psampSampTimeBasedSpace).";
      }
    }
        
    grouping sampRandOutOfNParameters {
      description "Configuration parameters of a Selector applying
        n-out-of-N packet Sampling to the packet stream.";
      reference "RFC 5475, Section 5.2.1; RFC 5476, Section 6.5.2.3.";
      leaf size {
        type uint32;
        units packets;
        mandatory true;
        description "The number of elements taken from the parent
          population.
          This parameter corresponds to the Information Element
          samplingSize and to psampSampRandOutOfNSize in the PSAMP
          MIB module.";
        reference "RFC 5477, Section 8.2.6; RFC 6727, Section 6
          (psampSampRandOutOfNSize).";
      }
      leaf population {
        type uint32;
        units packets;
        
    grouping sampRandOutOfNParameters {
      description "Configuration parameters of a Selector applying
        n-out-of-N packet Sampling to the packet stream.";
      reference "RFC 5475, Section 5.2.1; RFC 5476, Section 6.5.2.3.";
      leaf size {
        type uint32;
        units packets;
        mandatory true;
        description "The number of elements taken from the parent
          population.
          This parameter corresponds to the Information Element
          samplingSize and to psampSampRandOutOfNSize in the PSAMP
          MIB module.";
        reference "RFC 5477, Section 8.2.6; RFC 6727, Section 6
          (psampSampRandOutOfNSize).";
      }
      leaf population {
        type uint32;
        units packets;
        
        mandatory true;
        description "The number of elements in the parent
          population.
          This parameter corresponds to the Information Element
          samplingPopulation and to psampSampRandOutOfNPopulation
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.7; RFC 6727, Section 6
          (psampSampRandOutOfNPopulation).";
      }
    }
        
        mandatory true;
        description "The number of elements in the parent
          population.
          This parameter corresponds to the Information Element
          samplingPopulation and to psampSampRandOutOfNPopulation
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.7; RFC 6727, Section 6
          (psampSampRandOutOfNPopulation).";
      }
    }
        
    grouping sampUniProbParameters {
      description "Configuration parameters of a Selector applying
        uniform probabilistic packet Sampling (with equal
        probability per packet) to the packet stream.";
      reference "RFC 5475, Section 5.2.2.1;
        RFC 5476, Section 6.5.2.4.";
      leaf probability {
        type decimal64 {
          fraction-digits 18;
          range "0..1";
        }
        mandatory true;
        description "Probability that a packet is sampled,
          expressed as a value between 0 and 1.  The probability
          is equal for every packet.
          This parameter corresponds to the Information Element
          samplingProbability and to psampSampUniProbProbability
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.8; RFC 6727, Section 6
          (psampSampUniProbProbability).";
      }
    }
        
    grouping sampUniProbParameters {
      description "Configuration parameters of a Selector applying
        uniform probabilistic packet Sampling (with equal
        probability per packet) to the packet stream.";
      reference "RFC 5475, Section 5.2.2.1;
        RFC 5476, Section 6.5.2.4.";
      leaf probability {
        type decimal64 {
          fraction-digits 18;
          range "0..1";
        }
        mandatory true;
        description "Probability that a packet is sampled,
          expressed as a value between 0 and 1.  The probability
          is equal for every packet.
          This parameter corresponds to the Information Element
          samplingProbability and to psampSampUniProbProbability
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.2.8; RFC 6727, Section 6
          (psampSampUniProbProbability).";
      }
    }
        
    grouping filterMatchParameters {
      description "Configuration parameters of a Selector applying
        property match Filtering to the packet stream.
        The field to be matched is specified as an Information
        Element.";
      reference "RFC 5475, Section 6.1; RFC 5476, Section 6.5.2.5.";
      choice nameOrId {
        mandatory true;
        description "The field to be matched is specified by
          either the name or the identifier of the Information
          Element.";
        leaf ieName {
          type ieNameType;
          description "Name of the Information Element.";
        
    grouping filterMatchParameters {
      description "Configuration parameters of a Selector applying
        property match Filtering to the packet stream.
        The field to be matched is specified as an Information
        Element.";
      reference "RFC 5475, Section 6.1; RFC 5476, Section 6.5.2.5.";
      choice nameOrId {
        mandatory true;
        description "The field to be matched is specified by
          either the name or the identifier of the Information
          Element.";
        leaf ieName {
          type ieNameType;
          description "Name of the Information Element.";
        
        }
        leaf ieId {
          type ieIdType;
          description "Identifier of the Information Element.";
        }
      }
      leaf ieEnterpriseNumber {
        type uint32;
        default 0;
        description "If this parameter is zero, the Information
          Element is registered in the IANA registry of IPFIX
          Information Elements.
          If this parameter is configured with a non-zero private
          enterprise number, the Information Element is
          enterprise-specific.";
        reference "IANA registry for Private Enterprise Numbers,
          http://www.iana.org/assignments/enterprise-numbers;
          IANA registry for IPFIX Entities,
          http://www.iana.org/assignments/ipfix.";
      }
      leaf value {
        type string;
        mandatory true;
        description "Matching value of the Information Element.";
      }
    }
        
        }
        leaf ieId {
          type ieIdType;
          description "Identifier of the Information Element.";
        }
      }
      leaf ieEnterpriseNumber {
        type uint32;
        default 0;
        description "If this parameter is zero, the Information
          Element is registered in the IANA registry of IPFIX
          Information Elements.
          If this parameter is configured with a non-zero private
          enterprise number, the Information Element is
          enterprise-specific.";
        reference "IANA registry for Private Enterprise Numbers,
          http://www.iana.org/assignments/enterprise-numbers;
          IANA registry for IPFIX Entities,
          http://www.iana.org/assignments/ipfix.";
      }
      leaf value {
        type string;
        mandatory true;
        description "Matching value of the Information Element.";
      }
    }
        
    grouping filterHashParameters {
      description "Configuration parameters of a Selector applying
        hash-based Filtering to the packet stream.";
      reference "RFC 5475, Section 6.2; RFC 5476, Section 6.5.2.6.";
      leaf hashFunction {
        type identityref {
          base "hashFunction";
        }
        default BOB;
        description "Hash function to be applied.  According to
          RFC 5475, Section 6.2.4.1, 'BOB' must be used in order to
          be compliant with PSAMP.
          This parameter functionally corresponds to
          psampFiltHashFunction in the PSAMP MIB module.";
        reference "RFC 6727, Section 6 (psampFiltHashFunction)";
      }
      leaf initializerValue {
        type uint64;
        description "Initializer value to the hash function.
          If not configured by the user, the Monitoring Device
          arbitrarily chooses an initializer value.
        
    grouping filterHashParameters {
      description "Configuration parameters of a Selector applying
        hash-based Filtering to the packet stream.";
      reference "RFC 5475, Section 6.2; RFC 5476, Section 6.5.2.6.";
      leaf hashFunction {
        type identityref {
          base "hashFunction";
        }
        default BOB;
        description "Hash function to be applied.  According to
          RFC 5475, Section 6.2.4.1, 'BOB' must be used in order to
          be compliant with PSAMP.
          This parameter functionally corresponds to
          psampFiltHashFunction in the PSAMP MIB module.";
        reference "RFC 6727, Section 6 (psampFiltHashFunction)";
      }
      leaf initializerValue {
        type uint64;
        description "Initializer value to the hash function.
          If not configured by the user, the Monitoring Device
          arbitrarily chooses an initializer value.
        
          This parameter corresponds to the Information Element
          hashInitialiserValue and to psampFiltHashInitializerValue
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.9; RFC 6727, Section 6
          (psampFiltHashInitializerValue).";
      }
      leaf ipPayloadOffset {
        type uint64;
        units octets;
        default 0;
        description "IP payload offset indicating the position of
          the first payload byte considered as input to the hash
          function.
          Default value 0 corresponds to the minimum offset that
          must be configurable according to RFC 5476, Section 
          6.5.2.6.
          This parameter corresponds to the Information Element
          hashIPPayloadOffset and to psampFiltHashIpPayloadOffset
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.2; RFC 6727, Section 6
          (psampFiltHashIpPayloadOffset).";
      }
      leaf ipPayloadSize {
        type uint64;
        units octets;
        default 8;
        description "Number of IP payload bytes used as input to
          the hash function, counted from the payload offset.
          If the IP payload is shorter than the payload range,
          all available payload octets are used as input.
          Default value 8 corresponds to the minimum IP payload
          size that must be configurable according to RFC 5476,
          Section 6.5.2.6.
          This parameter corresponds to the Information Element
          hashIPPayloadSize and to psampFiltHashIpPayloadSize
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.3; RFC 6727, Section 6
          (psampFiltHashIpPayloadSize).";
      }
      leaf digestOutput {
        type boolean;
        default false;
        description "If true, the output from this Selector is
          included in the Packet Report as a packet digest.
          Therefore, the configured Cache Layout needs to contain
          a digestHashValue field.
          This parameter corresponds to the Information Element
          hashDigestOutput.";
        
          This parameter corresponds to the Information Element
          hashInitialiserValue and to psampFiltHashInitializerValue
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.9; RFC 6727, Section 6
          (psampFiltHashInitializerValue).";
      }
      leaf ipPayloadOffset {
        type uint64;
        units octets;
        default 0;
        description "IP payload offset indicating the position of
          the first payload byte considered as input to the hash
          function.
          Default value 0 corresponds to the minimum offset that
          must be configurable according to RFC 5476, Section 
          6.5.2.6.
          This parameter corresponds to the Information Element
          hashIPPayloadOffset and to psampFiltHashIpPayloadOffset
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.2; RFC 6727, Section 6
          (psampFiltHashIpPayloadOffset).";
      }
      leaf ipPayloadSize {
        type uint64;
        units octets;
        default 8;
        description "Number of IP payload bytes used as input to
          the hash function, counted from the payload offset.
          If the IP payload is shorter than the payload range,
          all available payload octets are used as input.
          Default value 8 corresponds to the minimum IP payload
          size that must be configurable according to RFC 5476,
          Section 6.5.2.6.
          This parameter corresponds to the Information Element
          hashIPPayloadSize and to psampFiltHashIpPayloadSize
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.3; RFC 6727, Section 6
          (psampFiltHashIpPayloadSize).";
      }
      leaf digestOutput {
        type boolean;
        default false;
        description "If true, the output from this Selector is
          included in the Packet Report as a packet digest.
          Therefore, the configured Cache Layout needs to contain
          a digestHashValue field.
          This parameter corresponds to the Information Element
          hashDigestOutput.";
        
        reference "RFC 5477, Section 8.3.8.";
      }
      leaf outputRangeMin {
        type uint64;
        config false;
        description "Beginning of the hash function's potential
          range.
          This parameter corresponds to the Information Element
          hashOutputRangeMin and to psampFiltHashOutputRangeMin
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.4; RFC 6727, Section 6
          (psampFiltHashOutputRangeMin).";
      }
      leaf outputRangeMax {
        type uint64;
        config false;
        description "End of the hash function's potential range.
          This parameter corresponds to the Information Element
          hashOutputRangeMax and to psampFiltHashOutputRangeMax
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.5; RFC 6727, Section 6
          (psampFiltHashOutputRangeMax).";
      }
      list selectedRange {
        key name;
        min-elements 1;
        description "List of hash function return ranges for
          which packets are selected.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        leaf min {
          type uint64;
          description "Beginning of the hash function's selected
            range.
            This parameter corresponds to the Information Element
            hashSelectedRangeMin and to psampFiltHashSelectedRangeMin
            in the PSAMP MIB module.";
          reference "RFC 5477, Section 8.3.6; RFC 6727, Section 6
          (psampFiltHashSelectedRangeMin).";
        }
        leaf max {
          type uint64;
          description "End of the hash function's selected range.
            This parameter corresponds to the Information Element
            hashSelectedRangeMax and to psampFiltHashSelectedRangeMax
            in the PSAMP MIB module.";
        
        reference "RFC 5477, Section 8.3.8.";
      }
      leaf outputRangeMin {
        type uint64;
        config false;
        description "Beginning of the hash function's potential
          range.
          This parameter corresponds to the Information Element
          hashOutputRangeMin and to psampFiltHashOutputRangeMin
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.4; RFC 6727, Section 6
          (psampFiltHashOutputRangeMin).";
      }
      leaf outputRangeMax {
        type uint64;
        config false;
        description "End of the hash function's potential range.
          This parameter corresponds to the Information Element
          hashOutputRangeMax and to psampFiltHashOutputRangeMax
          in the PSAMP MIB module.";
        reference "RFC 5477, Section 8.3.5; RFC 6727, Section 6
          (psampFiltHashOutputRangeMax).";
      }
      list selectedRange {
        key name;
        min-elements 1;
        description "List of hash function return ranges for
          which packets are selected.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        leaf min {
          type uint64;
          description "Beginning of the hash function's selected
            range.
            This parameter corresponds to the Information Element
            hashSelectedRangeMin and to psampFiltHashSelectedRangeMin
            in the PSAMP MIB module.";
          reference "RFC 5477, Section 8.3.6; RFC 6727, Section 6
          (psampFiltHashSelectedRangeMin).";
        }
        leaf max {
          type uint64;
          description "End of the hash function's selected range.
            This parameter corresponds to the Information Element
            hashSelectedRangeMax and to psampFiltHashSelectedRangeMax
            in the PSAMP MIB module.";
        
          reference "RFC 5477, Section 8.3.7; RFC 6727, Section 6
          (psampFiltHashSelectedRangeMax).";
        }
      }
    }
        
          reference "RFC 5477, Section 8.3.7; RFC 6727, Section 6
          (psampFiltHashSelectedRangeMax).";
        }
      }
    }
        
    grouping selectorParameters {
      description "Configuration and state parameters of a Selector.";
      choice Method {
        mandatory true;
        description "Packet selection method applied by the Selector.";
        leaf selectAll {
          type empty;
          description "Method that selects all packets.";
        }
        container sampCountBased {
          if-feature psampSampCountBased;
          description "Systematic count-based packet Sampling.";
          uses sampCountBasedParameters;
        }
        container sampTimeBased {
          if-feature psampSampTimeBased;
          description "Systematic time-based packet Sampling.";
          uses sampTimeBasedParameters;
        }
        container sampRandOutOfN {
          if-feature psampSampRandOutOfN;
          description "n-out-of-N packet Sampling.";
          uses sampRandOutOfNParameters;
        }
        container sampUniProb {
          if-feature psampSampUniProb;
          description "Uniform probabilistic packet Sampling.";
          uses sampUniProbParameters;
        }
        container filterMatch {
          if-feature psampFilterMatch;
          description "Property match Filtering.";
          uses filterMatchParameters;
        }
        container filterHash {
          if-feature psampFilterHash;
          description "Hash-based Filtering.";
          uses filterHashParameters;
        }
      }
      leaf packetsObserved {
        type yang:counter64;
        
    grouping selectorParameters {
      description "Configuration and state parameters of a Selector.";
      choice Method {
        mandatory true;
        description "Packet selection method applied by the Selector.";
        leaf selectAll {
          type empty;
          description "Method that selects all packets.";
        }
        container sampCountBased {
          if-feature psampSampCountBased;
          description "Systematic count-based packet Sampling.";
          uses sampCountBasedParameters;
        }
        container sampTimeBased {
          if-feature psampSampTimeBased;
          description "Systematic time-based packet Sampling.";
          uses sampTimeBasedParameters;
        }
        container sampRandOutOfN {
          if-feature psampSampRandOutOfN;
          description "n-out-of-N packet Sampling.";
          uses sampRandOutOfNParameters;
        }
        container sampUniProb {
          if-feature psampSampUniProb;
          description "Uniform probabilistic packet Sampling.";
          uses sampUniProbParameters;
        }
        container filterMatch {
          if-feature psampFilterMatch;
          description "Property match Filtering.";
          uses filterMatchParameters;
        }
        container filterHash {
          if-feature psampFilterHash;
          description "Hash-based Filtering.";
          uses filterHashParameters;
        }
      }
      leaf packetsObserved {
        type yang:counter64;
        
        config false;
        description "The number of packets observed at the input of
          the Selector.
          If this is the first Selector in the Selection Process,
          this counter corresponds to the total number of packets in
          all Observed Packet Streams at the input of the Selection
          Process.  Otherwise, the counter corresponds to the total
          number of packets at the output of the preceding Selector.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          selectorDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixSelectorStatsPacketsObserved in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixSelectorStatsPacketsObserved).";
      }
      leaf packetsDropped {
        type yang:counter64;
        config false;
        description "The total number of packets discarded by the
          Selector.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          selectorDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixSelectorStatsPacketsDropped in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixSelectorStatsPacketsDropped).";
      }
      leaf selectorDiscontinuityTime {
        type yang:date-and-time;
        config false;
        description "Timestamp of the most recent occasion at which
          one or more of the Selector counters suffered a
          discontinuity.
          Note that this parameter functionally corresponds to
          ipfixSelectionProcessStatsDiscontinuityTime in the IPFIX
          MIB module.  In contrast to
          ipfixSelectionProcessStatsDiscontinuityTime, the time is
          absolute and not relative to sysUpTime.";
        reference "RFC 6615, Section 8
          (ipfixSelectionProcessStatsDiscontinuityTime).";
      }
    }
        
        config false;
        description "The number of packets observed at the input of
          the Selector.
          If this is the first Selector in the Selection Process,
          this counter corresponds to the total number of packets in
          all Observed Packet Streams at the input of the Selection
          Process.  Otherwise, the counter corresponds to the total
          number of packets at the output of the preceding Selector.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          selectorDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixSelectorStatsPacketsObserved in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixSelectorStatsPacketsObserved).";
      }
      leaf packetsDropped {
        type yang:counter64;
        config false;
        description "The total number of packets discarded by the
          Selector.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          selectorDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixSelectorStatsPacketsDropped in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixSelectorStatsPacketsDropped).";
      }
      leaf selectorDiscontinuityTime {
        type yang:date-and-time;
        config false;
        description "Timestamp of the most recent occasion at which
          one or more of the Selector counters suffered a
          discontinuity.
          Note that this parameter functionally corresponds to
          ipfixSelectionProcessStatsDiscontinuityTime in the IPFIX
          MIB module.  In contrast to
          ipfixSelectionProcessStatsDiscontinuityTime, the time is
          absolute and not relative to sysUpTime.";
        reference "RFC 6615, Section 8
          (ipfixSelectionProcessStatsDiscontinuityTime).";
      }
    }
        
    grouping cacheLayoutParameters {
      description "Cache Layout parameters used by immediateCache,
        timeoutCache, naturalCache, and permanentCache.";
      container cacheLayout {
        description "Cache Layout parameters.";
        list cacheField {
          key name;
          min-elements 1;
          description "Superset of fields that are included in the
            Packet Reports or Flow Records generated by the Cache.";
          leaf name {
            type nameType;
            description "Key of this list.";
          }
          choice nameOrId {
            mandatory true;
            description "Name or identifier of the Information
              Element.";
            reference "RFC 5102, Section 2; IANA registry for IPFIX
              Entities, http://www.iana.org/assignments/ipfix.";
            leaf ieName {
              type ieNameType;
              description "Name of the Information Element.";
            }
            leaf ieId {
              type ieIdType;
              description "Identifier of the Information Element.";
            }
          }
          leaf ieLength {
            type uint16;
            units octets;
            description "Length of the field in which the Information
              Element is encoded.  A value of 65535 specifies a
              variable-length Information Element.  For Information
              Elements of integer and float type, the field length MAY
              be set to a smaller value than the standard length of
              the abstract data type if the rules of reduced size
              encoding are fulfilled.
              If not configured by the user, this parameter is set by
              the Monitoring Device.";
            reference "RFC 5101, Section 6.2.";
          }
          leaf ieEnterpriseNumber {
            type uint32;
            default 0;
            description "If this parameter is zero, the Information
              Element is registered in the IANA registry of IPFIX
        
    grouping cacheLayoutParameters {
      description "Cache Layout parameters used by immediateCache,
        timeoutCache, naturalCache, and permanentCache.";
      container cacheLayout {
        description "Cache Layout parameters.";
        list cacheField {
          key name;
          min-elements 1;
          description "Superset of fields that are included in the
            Packet Reports or Flow Records generated by the Cache.";
          leaf name {
            type nameType;
            description "Key of this list.";
          }
          choice nameOrId {
            mandatory true;
            description "Name or identifier of the Information
              Element.";
            reference "RFC 5102, Section 2; IANA registry for IPFIX
              Entities, http://www.iana.org/assignments/ipfix.";
            leaf ieName {
              type ieNameType;
              description "Name of the Information Element.";
            }
            leaf ieId {
              type ieIdType;
              description "Identifier of the Information Element.";
            }
          }
          leaf ieLength {
            type uint16;
            units octets;
            description "Length of the field in which the Information
              Element is encoded.  A value of 65535 specifies a
              variable-length Information Element.  For Information
              Elements of integer and float type, the field length MAY
              be set to a smaller value than the standard length of
              the abstract data type if the rules of reduced size
              encoding are fulfilled.
              If not configured by the user, this parameter is set by
              the Monitoring Device.";
            reference "RFC 5101, Section 6.2.";
          }
          leaf ieEnterpriseNumber {
            type uint32;
            default 0;
            description "If this parameter is zero, the Information
              Element is registered in the IANA registry of IPFIX
        
              Information Elements.
              If this parameter is configured with a non-zero private
              enterprise number, the Information Element is
              enterprise-specific.
              If the enterprise number is set to 29305, this field
              contains a Reverse Information Element.  In this case,
              the Cache MUST generate Data Records in accordance to
              RFC 5103.";
            reference "RFC 5101; RFC 5103;
              IANA registry for Private Enterprise Numbers,
              http://www.iana.org/assignments/enterprise-numbers;
              IANA registry for IPFIX Entities,
              http://www.iana.org/assignments/ipfix.";
          }
          leaf isFlowKey {
            when "(name(../../..) != 'immediateCache')
              and
              ((count(../ieEnterpriseNumber) = 0)
              or
              (../ieEnterpriseNumber != 29305))" {
              description "This parameter is not available for
                Reverse Information Elements (which have enterprise
                number 29305).  It is also not available for
                immediateCache.";
            }
            type empty;
            description "If present, this is a flow key.";
          }
        }
      }
    }
        
              Information Elements.
              If this parameter is configured with a non-zero private
              enterprise number, the Information Element is
              enterprise-specific.
              If the enterprise number is set to 29305, this field
              contains a Reverse Information Element.  In this case,
              the Cache MUST generate Data Records in accordance to
              RFC 5103.";
            reference "RFC 5101; RFC 5103;
              IANA registry for Private Enterprise Numbers,
              http://www.iana.org/assignments/enterprise-numbers;
              IANA registry for IPFIX Entities,
              http://www.iana.org/assignments/ipfix.";
          }
          leaf isFlowKey {
            when "(name(../../..) != 'immediateCache')
              and
              ((count(../ieEnterpriseNumber) = 0)
              or
              (../ieEnterpriseNumber != 29305))" {
              description "This parameter is not available for
                Reverse Information Elements (which have enterprise
                number 29305).  It is also not available for
                immediateCache.";
            }
            type empty;
            description "If present, this is a flow key.";
          }
        }
      }
    }
        
    grouping flowCacheParameters {
      description "Configuration and state parameters of a Cache
        generating Flow Records.";
      leaf maxFlows {
        type uint32;
        units flows;
        description "This parameter configures the maximum number of
          Flows in the Cache, which is the maximum number of Flows
          that can be measured simultaneously.
          The Monitoring Device MUST ensure that sufficient resources
          are available to store the configured maximum number of
          Flows.
          If the maximum number of Flows is measured, an additional
          Flow can be measured only if an existing entry is removed.
          However, traffic that pertains to existing Flows can
          continue to be measured.";
        
    grouping flowCacheParameters {
      description "Configuration and state parameters of a Cache
        generating Flow Records.";
      leaf maxFlows {
        type uint32;
        units flows;
        description "This parameter configures the maximum number of
          Flows in the Cache, which is the maximum number of Flows
          that can be measured simultaneously.
          The Monitoring Device MUST ensure that sufficient resources
          are available to store the configured maximum number of
          Flows.
          If the maximum number of Flows is measured, an additional
          Flow can be measured only if an existing entry is removed.
          However, traffic that pertains to existing Flows can
          continue to be measured.";
        
      }
      leaf activeTimeout {
        when "(name(..) = 'timeoutCache') or
          (name(..) = 'naturalCache')" {
          description "This parameter is only available for
            timeoutCache and naturalCache.";
        }
        type uint32;
        units seconds;
        description "This parameter configures the time in
          seconds after which a Flow is expired even though packets
          matching this Flow are still received by the Cache.
          The parameter value zero indicates infinity, meaning that
          there is no active timeout.
          If not configured by the user, the Monitoring Device sets
          this parameter.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheActiveTimeout in the IPFIX
          MIB module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheActiveTimeout).";
      }
      leaf idleTimeout {
        when "(name(..) = 'timeoutCache') or
          (name(..) = 'naturalCache')" {
          description "This parameter is only available for
            timeoutCache and naturalCache.";
        }
        type uint32;
        units seconds;
        description "This parameter configures the time in
          seconds after which a Flow is expired if no more packets
          matching this Flow are received by the Cache.
          The parameter value zero indicates infinity, meaning that
          there is no idle timeout.
          If not configured by the user, the Monitoring Device sets
          this parameter.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheIdleTimeout in the IPFIX
          MIB module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheIdleTimeout).";
      }
      leaf exportInterval {
        when "name(..) = 'permanentCache'" {
          description "This parameter is only available for
            permanentCache.";
        }
        
      }
      leaf activeTimeout {
        when "(name(..) = 'timeoutCache') or
          (name(..) = 'naturalCache')" {
          description "This parameter is only available for
            timeoutCache and naturalCache.";
        }
        type uint32;
        units seconds;
        description "This parameter configures the time in
          seconds after which a Flow is expired even though packets
          matching this Flow are still received by the Cache.
          The parameter value zero indicates infinity, meaning that
          there is no active timeout.
          If not configured by the user, the Monitoring Device sets
          this parameter.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheActiveTimeout in the IPFIX
          MIB module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheActiveTimeout).";
      }
      leaf idleTimeout {
        when "(name(..) = 'timeoutCache') or
          (name(..) = 'naturalCache')" {
          description "This parameter is only available for
            timeoutCache and naturalCache.";
        }
        type uint32;
        units seconds;
        description "This parameter configures the time in
          seconds after which a Flow is expired if no more packets
          matching this Flow are received by the Cache.
          The parameter value zero indicates infinity, meaning that
          there is no idle timeout.
          If not configured by the user, the Monitoring Device sets
          this parameter.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheIdleTimeout in the IPFIX
          MIB module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheIdleTimeout).";
      }
      leaf exportInterval {
        when "name(..) = 'permanentCache'" {
          description "This parameter is only available for
            permanentCache.";
        }
        
        type uint32;
        units seconds;
        description "This parameter configures the interval (in
          seconds) for periodical export of Flow Records.
          If not configured by the user, the Monitoring Device sets
          this parameter.";
      }
      leaf activeFlows {
        type yang:gauge32;
        units flows;
        config false;
        description "The number of Flows currently active in this
          Cache.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheActiveFlows in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheActiveFlows).";
      }
      leaf unusedCacheEntries {
        type yang:gauge32;
        units flows;
        config false;
        description "The number of unused Cache entries in this
          Cache.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheUnusedCacheEntries in the IPFIX
          MIB module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheUnusedCacheEntries).";
      }
    }
        
        type uint32;
        units seconds;
        description "This parameter configures the interval (in
          seconds) for periodical export of Flow Records.
          If not configured by the user, the Monitoring Device sets
          this parameter.";
      }
      leaf activeFlows {
        type yang:gauge32;
        units flows;
        config false;
        description "The number of Flows currently active in this
          Cache.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheActiveFlows in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheActiveFlows).";
      }
      leaf unusedCacheEntries {
        type yang:gauge32;
        units flows;
        config false;
        description "The number of unused Cache entries in this
          Cache.
          Note that this parameter corresponds to
          ipfixMeteringProcessCacheUnusedCacheEntries in the IPFIX
          MIB module.";
        reference "RFC 6615, Section 8
          (ipfixMeteringProcessCacheUnusedCacheEntries).";
      }
    }
        
    grouping exportingProcessParameters {
      description "Parameters of an Exporting Process.";
      leaf exportingProcessId {
        type uint32;
        config false;
        description "The identifier of the Exporting Process.
          This parameter corresponds to the Information Element
          exportingProcessId.  Its occurrence helps to associate
          Exporting Process parameters with Exporing Process
          statistics exported by the Monitoring Device using the
          Exporting Process Reliability Statistics Template as
          defined by the IPFIX protocol specification.";
        reference "RFC 5101, Section 4.3; IANA registry for IPFIX
          Entities, http://www.iana.org/assignments/ipfix.";
      }
        
    grouping exportingProcessParameters {
      description "Parameters of an Exporting Process.";
      leaf exportingProcessId {
        type uint32;
        config false;
        description "The identifier of the Exporting Process.
          This parameter corresponds to the Information Element
          exportingProcessId.  Its occurrence helps to associate
          Exporting Process parameters with Exporing Process
          statistics exported by the Monitoring Device using the
          Exporting Process Reliability Statistics Template as
          defined by the IPFIX protocol specification.";
        reference "RFC 5101, Section 4.3; IANA registry for IPFIX
          Entities, http://www.iana.org/assignments/ipfix.";
      }
        
      leaf exportMode {
        type identityref {
          base "exportMode";
        }
        default parallel;
        description "This parameter determines to which configured
          destination(s) the incoming Data Records are exported.";
      }
      list destination {
        key name;
        min-elements 1;
        description "List of export destinations.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        choice DestinationParameters {
          mandatory true;
          description "Configuration parameters depend on whether
            SCTP, UDP, or TCP is used as transport protocol, and
            whether the destination is a file.";
          container sctpExporter {
            description "SCTP parameters.";
            uses sctpExporterParameters;
          }
          container udpExporter {
            if-feature udpTransport;
            description "UDP parameters.";
            uses udpExporterParameters;
          }
          container tcpExporter {
            if-feature tcpTransport;
            description "TCP parameters.";
            uses tcpExporterParameters;
          }
          container fileWriter {
            if-feature fileWriter;
            description "File Writer parameters.";
            uses fileWriterParameters;
          }
        }
      }
      list options {
        key name;
        description "List of options reported by the Exporting
          Process.";
        leaf name {
          type nameType;
        
      leaf exportMode {
        type identityref {
          base "exportMode";
        }
        default parallel;
        description "This parameter determines to which configured
          destination(s) the incoming Data Records are exported.";
      }
      list destination {
        key name;
        min-elements 1;
        description "List of export destinations.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        choice DestinationParameters {
          mandatory true;
          description "Configuration parameters depend on whether
            SCTP, UDP, or TCP is used as transport protocol, and
            whether the destination is a file.";
          container sctpExporter {
            description "SCTP parameters.";
            uses sctpExporterParameters;
          }
          container udpExporter {
            if-feature udpTransport;
            description "UDP parameters.";
            uses udpExporterParameters;
          }
          container tcpExporter {
            if-feature tcpTransport;
            description "TCP parameters.";
            uses tcpExporterParameters;
          }
          container fileWriter {
            if-feature fileWriter;
            description "File Writer parameters.";
            uses fileWriterParameters;
          }
        }
      }
      list options {
        key name;
        description "List of options reported by the Exporting
          Process.";
        leaf name {
          type nameType;
        
          description "Key of this list.";
        }
        uses optionsParameters;
      }
    }
        
          description "Key of this list.";
        }
        uses optionsParameters;
      }
    }
        
    grouping commonExporterParameters {
      description "Parameters of en export destination that are
        common to all transport protocols.";
      leaf ipfixVersion {
        type uint16;
        default 10;
        description "IPFIX version number.";
        reference "RFC 5101.";
      }
      leaf destinationPort {
        type inet:port-number;
        description "If not configured by the user, the Monitoring
          Device uses the default port number for IPFIX, which is
          4739 without TLS or DTLS and 4740 if TLS or DTLS is
          activated.";
      }
      choice indexOrName {
        description "Index or name of the interface as stored in the
          ifTable of IF-MIB.
          If configured, the Exporting Process MUST use the given
          interface to export IPFIX Messages to the export
          destination.
          If omitted, the Exporting Process selects the outgoing
          interface based on local routing decision and accepts
          return traffic, such as transport-layer acknowledgments,
          on all available interfaces.";
        reference "RFC 2863.";
        leaf ifIndex {
          type uint32;
          description "Index of an interface as stored in the ifTable
            of IF-MIB.";
          reference "RFC 2863.";
        }
        leaf ifName {
          type string;
          description "Name of an interface as stored in the ifTable
            of IF-MIB.";
          reference "RFC 2863.";
        }
      }
      leaf sendBufferSize {
        type uint32;
        
    grouping commonExporterParameters {
      description "Parameters of en export destination that are
        common to all transport protocols.";
      leaf ipfixVersion {
        type uint16;
        default 10;
        description "IPFIX version number.";
        reference "RFC 5101.";
      }
      leaf destinationPort {
        type inet:port-number;
        description "If not configured by the user, the Monitoring
          Device uses the default port number for IPFIX, which is
          4739 without TLS or DTLS and 4740 if TLS or DTLS is
          activated.";
      }
      choice indexOrName {
        description "Index or name of the interface as stored in the
          ifTable of IF-MIB.
          If configured, the Exporting Process MUST use the given
          interface to export IPFIX Messages to the export
          destination.
          If omitted, the Exporting Process selects the outgoing
          interface based on local routing decision and accepts
          return traffic, such as transport-layer acknowledgments,
          on all available interfaces.";
        reference "RFC 2863.";
        leaf ifIndex {
          type uint32;
          description "Index of an interface as stored in the ifTable
            of IF-MIB.";
          reference "RFC 2863.";
        }
        leaf ifName {
          type string;
          description "Name of an interface as stored in the ifTable
            of IF-MIB.";
          reference "RFC 2863.";
        }
      }
      leaf sendBufferSize {
        type uint32;
        
        units bytes;
        description "Size of the socket send buffer.
          If not configured by the user, this parameter is set by
          the Monitoring Device.";
      }
      leaf rateLimit {
        type uint32;
        units "bytes per second";
        description "Maximum number of bytes per second the Exporting
          Process may export to the given destination.  The number of
          bytes is calculated from the lengths of the IPFIX Messages
          exported.  If not configured, no rate limiting is performed.";
        reference "RFC 5476, Section 6.3.";
      }
      container transportLayerSecurity {
        presence "If transportLayerSecurity is present, DTLS is
          enabled if the transport protocol is SCTP or UDP, and TLS
          is enabled if the transport protocol is TCP.";
        description "TLS or DTLS configuration.";
        uses transportLayerSecurityParameters;
      }
      container transportSession {
        config false;
        description "State parameters of the Transport Session
          directed to the given destination.";
        uses transportSessionParameters;
      }
    }
        
        units bytes;
        description "Size of the socket send buffer.
          If not configured by the user, this parameter is set by
          the Monitoring Device.";
      }
      leaf rateLimit {
        type uint32;
        units "bytes per second";
        description "Maximum number of bytes per second the Exporting
          Process may export to the given destination.  The number of
          bytes is calculated from the lengths of the IPFIX Messages
          exported.  If not configured, no rate limiting is performed.";
        reference "RFC 5476, Section 6.3.";
      }
      container transportLayerSecurity {
        presence "If transportLayerSecurity is present, DTLS is
          enabled if the transport protocol is SCTP or UDP, and TLS
          is enabled if the transport protocol is TCP.";
        description "TLS or DTLS configuration.";
        uses transportLayerSecurityParameters;
      }
      container transportSession {
        config false;
        description "State parameters of the Transport Session
          directed to the given destination.";
        uses transportSessionParameters;
      }
    }
        
    grouping sctpExporterParameters {
      description "SCTP-specific export destination parameters.";
      uses commonExporterParameters;
      leaf-list sourceIPAddress {
        type inet:ip-address;
        description "List of source IP addresses used by the
          Exporting Process.
          If configured, the specified addresses are eligible local
          IP addresses of the multihomed SCTP endpoint.
          If not configured, all locally assigned IP addresses are
          eligible local IP addresses.";
        reference "RFC 4960, Section 6.4.";
      }
      leaf-list destinationIPAddress {
        type inet:ip-address;
        min-elements 1;
        description "One or more IP addresses of the Collecting
          Process to which IPFIX Messages are sent.
          The user MUST ensure that all configured IP addresses
        
    grouping sctpExporterParameters {
      description "SCTP-specific export destination parameters.";
      uses commonExporterParameters;
      leaf-list sourceIPAddress {
        type inet:ip-address;
        description "List of source IP addresses used by the
          Exporting Process.
          If configured, the specified addresses are eligible local
          IP addresses of the multihomed SCTP endpoint.
          If not configured, all locally assigned IP addresses are
          eligible local IP addresses.";
        reference "RFC 4960, Section 6.4.";
      }
      leaf-list destinationIPAddress {
        type inet:ip-address;
        min-elements 1;
        description "One or more IP addresses of the Collecting
          Process to which IPFIX Messages are sent.
          The user MUST ensure that all configured IP addresses
        
          belong to the same Collecting Process.
          The Exporting Process tries to establish an SCTP
          association to any of the configured destination IP
          addresses.";
        reference "RFC 4960, Section 6.4.";
      }
      leaf timedReliability {
        type uint32;
        units milliseconds;
        default 0;
        description "Lifetime in milliseconds until an IPFIX
          Message containing Data Sets only is 'abandoned' due to
          the timed reliability mechanism of PR-SCTP.
          If this parameter is set to zero, reliable SCTP
          transport is used for all Data Records.
          Regardless of the value of this parameter, the Exporting
          Process MAY use reliable SCTP transport for Data Sets
          associated with Options Templates.";
        reference "RFC 3758; RFC 4960.";
      }
    }
        
          belong to the same Collecting Process.
          The Exporting Process tries to establish an SCTP
          association to any of the configured destination IP
          addresses.";
        reference "RFC 4960, Section 6.4.";
      }
      leaf timedReliability {
        type uint32;
        units milliseconds;
        default 0;
        description "Lifetime in milliseconds until an IPFIX
          Message containing Data Sets only is 'abandoned' due to
          the timed reliability mechanism of PR-SCTP.
          If this parameter is set to zero, reliable SCTP
          transport is used for all Data Records.
          Regardless of the value of this parameter, the Exporting
          Process MAY use reliable SCTP transport for Data Sets
          associated with Options Templates.";
        reference "RFC 3758; RFC 4960.";
      }
    }
        
    grouping udpExporterParameters {
      description "Parameters of a UDP export destination.";
      uses commonExporterParameters;
      leaf sourceIPAddress {
        type inet:ip-address;
        description "Source IP address used by the Exporting Process.
        If not configured, the IP address assigned to the outgoing
        interface is used as source IP address.";
      }
      leaf destinationIPAddress {
        type inet:ip-address;
        mandatory true;
        description "IP address of the Collection Process to which
          IPFIX Messages are sent.";
      }
      leaf maxPacketSize {
        type uint16;
        units octets;
        description "This parameter specifies the maximum size of
          IP packets sent to the Collector.  If set to zero, the
          Exporting Device MUST derive the maximum packet size
          from path MTU discovery mechanisms.
          If not configured by the user, this parameter is set by
          the Monitoring Device.";
      }
      leaf templateRefreshTimeout {
        
    grouping udpExporterParameters {
      description "Parameters of a UDP export destination.";
      uses commonExporterParameters;
      leaf sourceIPAddress {
        type inet:ip-address;
        description "Source IP address used by the Exporting Process.
        If not configured, the IP address assigned to the outgoing
        interface is used as source IP address.";
      }
      leaf destinationIPAddress {
        type inet:ip-address;
        mandatory true;
        description "IP address of the Collection Process to which
          IPFIX Messages are sent.";
      }
      leaf maxPacketSize {
        type uint16;
        units octets;
        description "This parameter specifies the maximum size of
          IP packets sent to the Collector.  If set to zero, the
          Exporting Device MUST derive the maximum packet size
          from path MTU discovery mechanisms.
          If not configured by the user, this parameter is set by
          the Monitoring Device.";
      }
      leaf templateRefreshTimeout {
        
        type uint32;
        units seconds;
        default 600;
        description "Sets time after which Templates are resent in the
          UDP Transport Session.
          Note that the configured lifetime MUST be adapted to the
          templateLifeTime parameter value at the receiving Collecting
          Process.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshTimeout in the IPFIX
          MIB module.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshTimeout).";
      }
      leaf optionsTemplateRefreshTimeout {
        type uint32;
        units seconds;
        default 600;
        description "Sets time after which Options Templates are
          resent in the UDP Transport Session.
          Note that the configured lifetime MUST be adapted to the
          optionsTemplateLifeTime parameter value at the receiving
          Collecting Process.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplateRefreshTimeout in the
          IPFIX MIB module.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshTimeout).";
      }
      leaf templateRefreshPacket {
        type uint32;
        units "IPFIX Messages";
        description "Sets number of IPFIX Messages after which
          Templates are resent in the UDP Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshPacket in the IPFIX
          MIB module.
          If omitted, Templates are only resent after timeout.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshPacket).";
      }
      leaf optionsTemplateRefreshPacket {
        type uint32;
        units "IPFIX Messages";
        description "Sets number of IPFIX Messages after which
          Options Templates are resent in the UDP Transport Session
          protocol.
          Note that this parameter corresponds to
        
        type uint32;
        units seconds;
        default 600;
        description "Sets time after which Templates are resent in the
          UDP Transport Session.
          Note that the configured lifetime MUST be adapted to the
          templateLifeTime parameter value at the receiving Collecting
          Process.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshTimeout in the IPFIX
          MIB module.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshTimeout).";
      }
      leaf optionsTemplateRefreshTimeout {
        type uint32;
        units seconds;
        default 600;
        description "Sets time after which Options Templates are
          resent in the UDP Transport Session.
          Note that the configured lifetime MUST be adapted to the
          optionsTemplateLifeTime parameter value at the receiving
          Collecting Process.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplateRefreshTimeout in the
          IPFIX MIB module.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshTimeout).";
      }
      leaf templateRefreshPacket {
        type uint32;
        units "IPFIX Messages";
        description "Sets number of IPFIX Messages after which
          Templates are resent in the UDP Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshPacket in the IPFIX
          MIB module.
          If omitted, Templates are only resent after timeout.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshPacket).";
      }
      leaf optionsTemplateRefreshPacket {
        type uint32;
        units "IPFIX Messages";
        description "Sets number of IPFIX Messages after which
          Options Templates are resent in the UDP Transport Session
          protocol.
          Note that this parameter corresponds to
        
          ipfixTransportSessionOptionsTemplateRefreshPacket in the
          IPFIX MIB module.
          If omitted, Templates are only resent after timeout.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshPacket).";
      }
    }
        
          ipfixTransportSessionOptionsTemplateRefreshPacket in the
          IPFIX MIB module.
          If omitted, Templates are only resent after timeout.";
        reference "RFC 5101, Section 10.3.6; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshPacket).";
      }
    }
        
    grouping tcpExporterParameters {
      description "Parameters of a TCP export destination.";
      uses commonExporterParameters;
      leaf sourceIPAddress {
        type inet:ip-address;
        description "Source IP address used by the Exporting Process.
          If not configured by the user, this parameter is set by
          the Monitoring Device to an IP address assigned to the
          outgoing interface.";
      }
      leaf destinationIPAddress {
        type inet:ip-address;
        mandatory true;
        description "IP address of the Collection Process to which
          IPFIX Messages are sent.";
      }
    }
        
    grouping tcpExporterParameters {
      description "Parameters of a TCP export destination.";
      uses commonExporterParameters;
      leaf sourceIPAddress {
        type inet:ip-address;
        description "Source IP address used by the Exporting Process.
          If not configured by the user, this parameter is set by
          the Monitoring Device to an IP address assigned to the
          outgoing interface.";
      }
      leaf destinationIPAddress {
        type inet:ip-address;
        mandatory true;
        description "IP address of the Collection Process to which
          IPFIX Messages are sent.";
      }
    }
        
    grouping fileWriterParameters {
      description "File Writer parameters.";
      leaf ipfixVersion {
        type uint16;
        default 10;
        description "IPFIX version number.";
        reference "RFC 5101.";
      }
      leaf file {
        type inet:uri;
        mandatory true;
        description "URI specifying the location of the file.";
      }
      leaf bytes {
        type yang:counter64;
        units octets;
        config false;
        description "The number of bytes written by the File Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
        
    grouping fileWriterParameters {
      description "File Writer parameters.";
      leaf ipfixVersion {
        type uint16;
        default 10;
        description "IPFIX version number.";
        reference "RFC 5101.";
      }
      leaf file {
        type inet:uri;
        mandatory true;
        description "URI specifying the location of the file.";
      }
      leaf bytes {
        type yang:counter64;
        units octets;
        config false;
        description "The number of bytes written by the File Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
        
      }
      leaf messages {
        type yang:counter64;
        units "IPFIX Messages";
        config false;
        description "The number of IPFIX Messages written by the File
          Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf discardedMessages {
        type yang:counter64;
        units "IPFIX Messages";
        config false;
        description "The number of IPFIX Messages that could not be
          written by the File Writer due to internal buffer
          overflows, limited storage capacity, etc.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf records {
        type yang:counter64;
        units "Data Records";
        config false;
        description "The number of Data Records written by the File
          Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf templates {
        type yang:counter32;
        units "Templates";
        config false;
        description "The number of Template Records (excluding
          Options Template Records) written by the File Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf optionsTemplates {
        type yang:counter32;
        
      }
      leaf messages {
        type yang:counter64;
        units "IPFIX Messages";
        config false;
        description "The number of IPFIX Messages written by the File
          Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf discardedMessages {
        type yang:counter64;
        units "IPFIX Messages";
        config false;
        description "The number of IPFIX Messages that could not be
          written by the File Writer due to internal buffer
          overflows, limited storage capacity, etc.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf records {
        type yang:counter64;
        units "Data Records";
        config false;
        description "The number of Data Records written by the File
          Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf templates {
        type yang:counter32;
        units "Templates";
        config false;
        description "The number of Template Records (excluding
          Options Template Records) written by the File Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf optionsTemplates {
        type yang:counter32;
        
        units "Options Templates";
        config false;
        description "The number of Options Template Records written
          by the File Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf fileWriterDiscontinuityTime {
        type yang:date-and-time;
        config false;
        description "Timestamp of the most recent occasion at which
          one or more File Writer counters suffered a discontinuity.
          In contrast to discontinuity times in the IPFIX MIB module,
          the time is absolute and not relative to sysUpTime.";
      }
      list template {
        config false;
        description "This list contains the Templates and Options
          Templates that have been written by the File Reader.
          Withdrawn or invalidated (Options) Templates MUST be removed
          from this list.";
        uses templateParameters;
      }
    }
        
        units "Options Templates";
        config false;
        description "The number of Options Template Records written
          by the File Writer.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileWriterDiscontinuityTime.";
      }
      leaf fileWriterDiscontinuityTime {
        type yang:date-and-time;
        config false;
        description "Timestamp of the most recent occasion at which
          one or more File Writer counters suffered a discontinuity.
          In contrast to discontinuity times in the IPFIX MIB module,
          the time is absolute and not relative to sysUpTime.";
      }
      list template {
        config false;
        description "This list contains the Templates and Options
          Templates that have been written by the File Reader.
          Withdrawn or invalidated (Options) Templates MUST be removed
          from this list.";
        uses templateParameters;
      }
    }
        
    grouping optionsParameters {
      description "Parameters specifying the data export using an
        Options Template.";
      leaf optionsType {
        type identityref {
          base "optionsType";
        }
        mandatory true;
        description "Type of the exported options data.";
      }
      leaf optionsTimeout {
        type uint32;
        units milliseconds;
        description "Time interval for periodic export of the options
          data.  If set to zero, the export is triggered when the
          options data has changed.
          If not configured by the user, this parameter is set by the
          Monitoring Device.";
      }
    }
        
    grouping optionsParameters {
      description "Parameters specifying the data export using an
        Options Template.";
      leaf optionsType {
        type identityref {
          base "optionsType";
        }
        mandatory true;
        description "Type of the exported options data.";
      }
      leaf optionsTimeout {
        type uint32;
        units milliseconds;
        description "Time interval for periodic export of the options
          data.  If set to zero, the export is triggered when the
          options data has changed.
          If not configured by the user, this parameter is set by the
          Monitoring Device.";
      }
    }
        
    grouping collectingProcessParameters {
      description "Parameters of a Collecting Process.";
      list sctpCollector {
        key name;
        description "List of SCTP receivers (sockets) on which the
          Collecting Process receives IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses sctpCollectorParameters;
      }
      list udpCollector {
        if-feature udpTransport;
        key name;
        description "List of UDP receivers (sockets) on which the
          Collecting Process receives IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses udpCollectorParameters;
      }
      list tcpCollector {
        if-feature tcpTransport;
        key name;
        description "List of TCP receivers (sockets) on which the
          Collecting Process receives IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses tcpCollectorParameters;
      }
      list fileReader {
        if-feature fileReader;
        key name;
        description "List of File Readers from which the Collecting
          Process reads IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses fileReaderParameters;
      }
    }
        
    grouping collectingProcessParameters {
      description "Parameters of a Collecting Process.";
      list sctpCollector {
        key name;
        description "List of SCTP receivers (sockets) on which the
          Collecting Process receives IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses sctpCollectorParameters;
      }
      list udpCollector {
        if-feature udpTransport;
        key name;
        description "List of UDP receivers (sockets) on which the
          Collecting Process receives IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses udpCollectorParameters;
      }
      list tcpCollector {
        if-feature tcpTransport;
        key name;
        description "List of TCP receivers (sockets) on which the
          Collecting Process receives IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses tcpCollectorParameters;
      }
      list fileReader {
        if-feature fileReader;
        key name;
        description "List of File Readers from which the Collecting
          Process reads IPFIX Messages.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses fileReaderParameters;
      }
    }
        

grouping commonCollectorParameters {

分组公共收集器参数{

      description "Parameters of a Collecting Process that are
        common to all transport protocols.";
      leaf localPort {
        type inet:port-number;
        description "If not configured, the Monitoring Device uses the
          default port number for IPFIX, which is 4739 without
          TLS or DTLS and 4740 if TLS or DTLS is activated.";
      }
      container transportLayerSecurity {
        presence "If transportLayerSecurity is present, DTLS is enabled
          if the transport protocol is SCTP or UDP, and TLS is enabled
          if the transport protocol is TCP.";
        description "TLS or DTLS configuration.";
        uses transportLayerSecurityParameters;
      }
      list transportSession {
        config false;
        description "This list contains the currently established
          Transport Sessions terminating at the given socket.";
        uses transportSessionParameters;
      }
    }
        
      description "Parameters of a Collecting Process that are
        common to all transport protocols.";
      leaf localPort {
        type inet:port-number;
        description "If not configured, the Monitoring Device uses the
          default port number for IPFIX, which is 4739 without
          TLS or DTLS and 4740 if TLS or DTLS is activated.";
      }
      container transportLayerSecurity {
        presence "If transportLayerSecurity is present, DTLS is enabled
          if the transport protocol is SCTP or UDP, and TLS is enabled
          if the transport protocol is TCP.";
        description "TLS or DTLS configuration.";
        uses transportLayerSecurityParameters;
      }
      list transportSession {
        config false;
        description "This list contains the currently established
          Transport Sessions terminating at the given socket.";
        uses transportSessionParameters;
      }
    }
        
    grouping sctpCollectorParameters {
      description "Parameters of a listening SCTP socket at a
        Collecting Process.";
      uses commonCollectorParameters;
      leaf-list localIPAddress {
        type inet:ip-address;
        description "List of local IP addresses on which the
          Collecting Process listens for IPFIX Messages.  The IP
          addresses are used as eligible local IP addresses of the
          multihomed SCTP endpoint.";
        reference "RFC 4960, Section 6.4.";
      }
    }
        
    grouping sctpCollectorParameters {
      description "Parameters of a listening SCTP socket at a
        Collecting Process.";
      uses commonCollectorParameters;
      leaf-list localIPAddress {
        type inet:ip-address;
        description "List of local IP addresses on which the
          Collecting Process listens for IPFIX Messages.  The IP
          addresses are used as eligible local IP addresses of the
          multihomed SCTP endpoint.";
        reference "RFC 4960, Section 6.4.";
      }
    }
        
    grouping udpCollectorParameters {
      description "Parameters of a listening UDP socket at a
        Collecting Process.";
      uses commonCollectorParameters;
      leaf-list localIPAddress {
        type inet:ip-address;
        description "List of local IP addresses on which the Collecting
          Process listens for IPFIX Messages.";
      }
      leaf templateLifeTime {
        type uint32;
        
    grouping udpCollectorParameters {
      description "Parameters of a listening UDP socket at a
        Collecting Process.";
      uses commonCollectorParameters;
      leaf-list localIPAddress {
        type inet:ip-address;
        description "List of local IP addresses on which the Collecting
          Process listens for IPFIX Messages.";
      }
      leaf templateLifeTime {
        type uint32;
        
        units seconds;
        default 1800;
        description "Sets the lifetime of Templates for all UDP
          Transport Sessions terminating at this UDP socket.
          Templates that are not received again within the configured
          lifetime become invalid at the Collecting Process.
          As specified in RFC 5101, the Template lifetime MUST be at
          least three times higher than the templateRefreshTimeout
          parameter value configured on the corresponding Exporting
          Processes.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshTimeout in the IPFIX
          MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshTimeout).";
      }
      leaf optionsTemplateLifeTime {
        type uint32;
        units seconds;
        default 1800;
        description "Sets the lifetime of Options Templates for all
          UDP Transport Sessions terminating at this UDP socket.
          Options Templates that are not received again within the
          configured lifetime become invalid at the Collecting
          Process.
          As specified in RFC 5101, the Options Template lifetime MUST
          be at least three times higher than the
          optionsTemplateRefreshTimeout parameter value configured on
          the corresponding Exporting Processes.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplateRefreshTimeout in the
          IPFIX MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshTimeout).";
      }
      leaf templateLifePacket {
        type uint32;
        units "IPFIX Messages";
        description "If this parameter is configured, Templates
          defined in a UDP Transport Session become invalid if they
          are neither included in a sequence of more than this number
          of IPFIX Messages nor received again within the period of
          time specified by templateLifeTime.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshPacket in the IPFIX
          MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshPacket).";
        
        units seconds;
        default 1800;
        description "Sets the lifetime of Templates for all UDP
          Transport Sessions terminating at this UDP socket.
          Templates that are not received again within the configured
          lifetime become invalid at the Collecting Process.
          As specified in RFC 5101, the Template lifetime MUST be at
          least three times higher than the templateRefreshTimeout
          parameter value configured on the corresponding Exporting
          Processes.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshTimeout in the IPFIX
          MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshTimeout).";
      }
      leaf optionsTemplateLifeTime {
        type uint32;
        units seconds;
        default 1800;
        description "Sets the lifetime of Options Templates for all
          UDP Transport Sessions terminating at this UDP socket.
          Options Templates that are not received again within the
          configured lifetime become invalid at the Collecting
          Process.
          As specified in RFC 5101, the Options Template lifetime MUST
          be at least three times higher than the
          optionsTemplateRefreshTimeout parameter value configured on
          the corresponding Exporting Processes.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplateRefreshTimeout in the
          IPFIX MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshTimeout).";
      }
      leaf templateLifePacket {
        type uint32;
        units "IPFIX Messages";
        description "If this parameter is configured, Templates
          defined in a UDP Transport Session become invalid if they
          are neither included in a sequence of more than this number
          of IPFIX Messages nor received again within the period of
          time specified by templateLifeTime.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplateRefreshPacket in the IPFIX
          MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionTemplateRefreshPacket).";
        
      }
      leaf optionsTemplateLifePacket {
        type uint32;
        units "IPFIX Messages";
        description "If this parameter is configured, Options
          Templates defined in a UDP Transport Session become
          invalid if they are neither included in a sequence of more
          than this number of IPFIX Messages nor received again
          within the period of time specified by
          optionsTemplateLifeTime.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplateRefreshPacket in the
          IPFIX MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshPacket).";
      }
    }
        
      }
      leaf optionsTemplateLifePacket {
        type uint32;
        units "IPFIX Messages";
        description "If this parameter is configured, Options
          Templates defined in a UDP Transport Session become
          invalid if they are neither included in a sequence of more
          than this number of IPFIX Messages nor received again
          within the period of time specified by
          optionsTemplateLifeTime.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplateRefreshPacket in the
          IPFIX MIB module.";
        reference "RFC 5101, Section 10.3.7; RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplateRefreshPacket).";
      }
    }
        
    grouping tcpCollectorParameters {
      description "Parameters of a listening TCP socket at a
        Collecting Process.";
      uses commonCollectorParameters;
      leaf-list localIPAddress {
        type inet:ip-address;
        description "List of local IP addresses on which the Collecting
          Process listens for IPFIX Messages.";
      }
    }
        
    grouping tcpCollectorParameters {
      description "Parameters of a listening TCP socket at a
        Collecting Process.";
      uses commonCollectorParameters;
      leaf-list localIPAddress {
        type inet:ip-address;
        description "List of local IP addresses on which the Collecting
          Process listens for IPFIX Messages.";
      }
    }
        
    grouping fileReaderParameters {
      description "File Reader parameters.";
      leaf file {
        type inet:uri;
        mandatory true;
        description "URI specifying the location of the file.";
      }
      leaf bytes {
        type yang:counter64;
        units octets;
        config false;
        description "The number of bytes read by the File Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf messages {
        type yang:counter64;
        
    grouping fileReaderParameters {
      description "File Reader parameters.";
      leaf file {
        type inet:uri;
        mandatory true;
        description "URI specifying the location of the file.";
      }
      leaf bytes {
        type yang:counter64;
        units octets;
        config false;
        description "The number of bytes read by the File Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf messages {
        type yang:counter64;
        
        units "IPFIX Messages";
        config false;
        description "The number of IPFIX Messages read by the File
          Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf records {
        type yang:counter64;
        units "Data Records";
        config false;
        description "The number of Data Records read by the File
          Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf templates {
        type yang:counter32;
        units "Templates";
        config false;
        description "The number of Template Records (excluding
          Options Template Records) read by the File Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf optionsTemplates {
        type yang:counter32;
        units "Options Templates";
        config false;
        description "The number of Options Template Records read by
          the File Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf fileReaderDiscontinuityTime {
        type yang:date-and-time;
        config false;
        description "Timestamp of the most recent occasion at which
          one or more File Reader counters suffered a discontinuity.
          In contrast to discontinuity times in the IPFIX MIB module,
        
        units "IPFIX Messages";
        config false;
        description "The number of IPFIX Messages read by the File
          Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf records {
        type yang:counter64;
        units "Data Records";
        config false;
        description "The number of Data Records read by the File
          Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf templates {
        type yang:counter32;
        units "Templates";
        config false;
        description "The number of Template Records (excluding
          Options Template Records) read by the File Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf optionsTemplates {
        type yang:counter32;
        units "Options Templates";
        config false;
        description "The number of Options Template Records read by
          the File Reader.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          fileReaderDiscontinuityTime.";
      }
      leaf fileReaderDiscontinuityTime {
        type yang:date-and-time;
        config false;
        description "Timestamp of the most recent occasion at which
          one or more File Reader counters suffered a discontinuity.
          In contrast to discontinuity times in the IPFIX MIB module,
        
          the time is absolute and not relative to sysUpTime.";
      }
      list template {
        config false;
        description "This list contains the Templates and Options
          Templates that have been read by the File Reader.
          Withdrawn or invalidated (Options) Template MUST be removed
          from this list.";
        uses templateParameters;
      }
    }
        
          the time is absolute and not relative to sysUpTime.";
      }
      list template {
        config false;
        description "This list contains the Templates and Options
          Templates that have been read by the File Reader.
          Withdrawn or invalidated (Options) Template MUST be removed
          from this list.";
        uses templateParameters;
      }
    }
        
    grouping transportLayerSecurityParameters {
      description "TLS or DTLS parameters.";
      leaf-list localCertificationAuthorityDN {
        type string;
        description "Distinguished names of certification authorities
          whose certificates may be used to identify the local
          endpoint.";
        reference "RFC 5280.";
      }
      leaf-list localSubjectDN {
        type string;
        description "Distinguished names that may be used in the
          certificates to identify the local endpoint.";
        reference "RFC 5280.";
      }
      leaf-list localSubjectFQDN {
        type inet:domain-name;
        description "Fully qualified domain names that may be used to
          in the certificates to identify the local endpoint.";
        reference "RFC 5280.";
      }
      leaf-list remoteCertificationAuthorityDN {
        type string;
        description "Distinguished names of certification authorities
          whose certificates are accepted to authorize remote
          endpoints.";
        reference "RFC 5280.";
      }
      leaf-list remoteSubjectDN {
        type string;
        description "Distinguished names which are accepted in
          certificates to authorize remote endpoints.";
        reference "RFC 5280.";
      }
      leaf-list remoteSubjectFQDN {
        type inet:domain-name;
        
    grouping transportLayerSecurityParameters {
      description "TLS or DTLS parameters.";
      leaf-list localCertificationAuthorityDN {
        type string;
        description "Distinguished names of certification authorities
          whose certificates may be used to identify the local
          endpoint.";
        reference "RFC 5280.";
      }
      leaf-list localSubjectDN {
        type string;
        description "Distinguished names that may be used in the
          certificates to identify the local endpoint.";
        reference "RFC 5280.";
      }
      leaf-list localSubjectFQDN {
        type inet:domain-name;
        description "Fully qualified domain names that may be used to
          in the certificates to identify the local endpoint.";
        reference "RFC 5280.";
      }
      leaf-list remoteCertificationAuthorityDN {
        type string;
        description "Distinguished names of certification authorities
          whose certificates are accepted to authorize remote
          endpoints.";
        reference "RFC 5280.";
      }
      leaf-list remoteSubjectDN {
        type string;
        description "Distinguished names which are accepted in
          certificates to authorize remote endpoints.";
        reference "RFC 5280.";
      }
      leaf-list remoteSubjectFQDN {
        type inet:domain-name;
        
        description "Fully qualified domain names that are accepted in
          certificates to authorize remote endpoints.";
        reference "RFC 5280.";
      }
    }
        
        description "Fully qualified domain names that are accepted in
          certificates to authorize remote endpoints.";
        reference "RFC 5280.";
      }
    }
        
    grouping templateParameters {
      description "State parameters of a Template used by an Exporting
        Process or received by a Collecting Process in a specific
        Transport Session.  Parameter names and semantics correspond to
        the managed objects in IPFIX-MIB";
      reference "RFC 5101; RFC 6615, Section 8 (ipfixTemplateEntry,
        ipfixTemplateDefinitionEntry, ipfixTemplateStatsEntry)";
      leaf observationDomainId {
        type uint32;
        description "The ID of the Observation Domain for which this
          Template is defined.
          Note that this parameter corresponds to
          ipfixTemplateObservationDomainId in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
          (ipfixTemplateObservationDomainId).";
      }
      leaf templateId {
        type uint16 {
          range "256..65535" {
            description "Valid range of Template IDs.";
            reference "RFC 5101";
          }
        }
        description "This number indicates the Template ID in the IPFIX
          message.
          Note that this parameter corresponds to ipfixTemplateId in
          the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateId).";
      }
      leaf setId {
        type uint16;
        description "This number indicates the Set ID of the Template.
          Currently, there are two values defined.  The value 2 is used
          for Sets containing Template definitions.  The value 3 is
          used for Sets containing Options Template definitions.
          Note that this parameter corresponds to ipfixTemplateSetId
          in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateSetId).";
      }
      leaf accessTime {
        type yang:date-and-time;
        description "Used for Exporting Processes, this parameter
        
    grouping templateParameters {
      description "State parameters of a Template used by an Exporting
        Process or received by a Collecting Process in a specific
        Transport Session.  Parameter names and semantics correspond to
        the managed objects in IPFIX-MIB";
      reference "RFC 5101; RFC 6615, Section 8 (ipfixTemplateEntry,
        ipfixTemplateDefinitionEntry, ipfixTemplateStatsEntry)";
      leaf observationDomainId {
        type uint32;
        description "The ID of the Observation Domain for which this
          Template is defined.
          Note that this parameter corresponds to
          ipfixTemplateObservationDomainId in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
          (ipfixTemplateObservationDomainId).";
      }
      leaf templateId {
        type uint16 {
          range "256..65535" {
            description "Valid range of Template IDs.";
            reference "RFC 5101";
          }
        }
        description "This number indicates the Template ID in the IPFIX
          message.
          Note that this parameter corresponds to ipfixTemplateId in
          the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateId).";
      }
      leaf setId {
        type uint16;
        description "This number indicates the Set ID of the Template.
          Currently, there are two values defined.  The value 2 is used
          for Sets containing Template definitions.  The value 3 is
          used for Sets containing Options Template definitions.
          Note that this parameter corresponds to ipfixTemplateSetId
          in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateSetId).";
      }
      leaf accessTime {
        type yang:date-and-time;
        description "Used for Exporting Processes, this parameter
        
          contains the time when this (Options) Template was last
          sent to the Collector(s) or written to the file.
          Used for Collecting Processes, this parameter contains the
          time when this (Options) Template was last received from the
          Exporter or read from the file.
          Note that this parameter corresponds to
          ipfixTemplateAccessTime in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateAccessTime).";
      }
      leaf templateDataRecords {
        type yang:counter64;
        description "The number of transmitted or received Data
          Records defined by this (Options) Template.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          templateDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTemplateDataRecords in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateDataRecords).";
      }
      leaf templateDiscontinuityTime {
        type yang:date-and-time;
        description "Timestamp of the most recent occasion at which
          the counter templateDataRecords suffered a discontinuity.
          Note that this parameter functionally corresponds to
          ipfixTemplateDiscontinuityTime in the IPFIX MIB module.
          In contrast to ipfixTemplateDiscontinuityTime, the time
          is absolute and not relative to sysUpTime.";
        reference "RFC 6615, Section 8
          (ipfixTemplateDiscontinuityTime).";
      }
      list field {
        description "This list contains the (Options) Template
          fields of which the (Options) Template is defined.
          The order of the list corresponds to the order of the fields
          in the (Option) Template Record.";
        leaf ieId {
          type ieIdType;
          description "This parameter indicates the Information
            Element identifier of the field.
            Note that this parameter corresponds to
            ipfixTemplateDefinitionIeId in the IPFIX MIB module.";
          reference "RFC 5101; RFC 6615, Section 8
            (ipfixTemplateDefinitionIeId).";
        }
        leaf ieLength {
          type uint16;
        
          contains the time when this (Options) Template was last
          sent to the Collector(s) or written to the file.
          Used for Collecting Processes, this parameter contains the
          time when this (Options) Template was last received from the
          Exporter or read from the file.
          Note that this parameter corresponds to
          ipfixTemplateAccessTime in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateAccessTime).";
      }
      leaf templateDataRecords {
        type yang:counter64;
        description "The number of transmitted or received Data
          Records defined by this (Options) Template.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          templateDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTemplateDataRecords in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTemplateDataRecords).";
      }
      leaf templateDiscontinuityTime {
        type yang:date-and-time;
        description "Timestamp of the most recent occasion at which
          the counter templateDataRecords suffered a discontinuity.
          Note that this parameter functionally corresponds to
          ipfixTemplateDiscontinuityTime in the IPFIX MIB module.
          In contrast to ipfixTemplateDiscontinuityTime, the time
          is absolute and not relative to sysUpTime.";
        reference "RFC 6615, Section 8
          (ipfixTemplateDiscontinuityTime).";
      }
      list field {
        description "This list contains the (Options) Template
          fields of which the (Options) Template is defined.
          The order of the list corresponds to the order of the fields
          in the (Option) Template Record.";
        leaf ieId {
          type ieIdType;
          description "This parameter indicates the Information
            Element identifier of the field.
            Note that this parameter corresponds to
            ipfixTemplateDefinitionIeId in the IPFIX MIB module.";
          reference "RFC 5101; RFC 6615, Section 8
            (ipfixTemplateDefinitionIeId).";
        }
        leaf ieLength {
          type uint16;
        
          units octets;
          description "This parameter indicates the length of the
            Information Element of the field.
            Note that this parameter corresponds to
            ipfixTemplateDefinitionIeLength in the IPFIX MIB
            module.";
          reference "RFC 5101; RFC 6615, Section 8
            (ipfixTemplateDefinitionIeLength).";
        }
        leaf ieEnterpriseNumber {
          type uint32;
          description "This parameter indicates the IANA enterprise
            number of the authority defining the Information Element
            identifier.
            If the Information Element is not enterprise-specific,
            this state parameter is zero.
            Note that this parameter corresponds to
            ipfixTemplateDefinitionIeEnterpriseNumber in the IPFIX
            MIB module.";
          reference "RFC 6615, Section 8
            (ipfixTemplateDefinitionIeEnterpriseNumber);
            IANA registry for Private Enterprise Numbers,
            http://www.iana.org/assignments/enterprise-numbers.";
        }
        leaf isFlowKey {
          when "../../setId = 2" {
            description "This parameter is available for non-Options
              Templates (Set ID is 2).";
          }
          type empty;
          description "If present, this is a Flow Key field.
            Note that this corresponds to flowKey(1) being set in
            ipfixTemplateDefinitionFlags.";
          reference "RFC 6615, Section 8
            (ipfixTemplateDefinitionFlags).";
        }
        leaf isScope {
          when "../../setId = 3" {
            description "This parameter is available for Options
              Templates (Set ID is 3).";
          }
          type empty;
          description "If present, this is a scope field.
            Note that this corresponds to scope(0) being set in
            ipfixTemplateDefinitionFlags.";
          reference "RFC 6615, Section 8
            (ipfixTemplateDefinitionFlags).";
        }
        
          units octets;
          description "This parameter indicates the length of the
            Information Element of the field.
            Note that this parameter corresponds to
            ipfixTemplateDefinitionIeLength in the IPFIX MIB
            module.";
          reference "RFC 5101; RFC 6615, Section 8
            (ipfixTemplateDefinitionIeLength).";
        }
        leaf ieEnterpriseNumber {
          type uint32;
          description "This parameter indicates the IANA enterprise
            number of the authority defining the Information Element
            identifier.
            If the Information Element is not enterprise-specific,
            this state parameter is zero.
            Note that this parameter corresponds to
            ipfixTemplateDefinitionIeEnterpriseNumber in the IPFIX
            MIB module.";
          reference "RFC 6615, Section 8
            (ipfixTemplateDefinitionIeEnterpriseNumber);
            IANA registry for Private Enterprise Numbers,
            http://www.iana.org/assignments/enterprise-numbers.";
        }
        leaf isFlowKey {
          when "../../setId = 2" {
            description "This parameter is available for non-Options
              Templates (Set ID is 2).";
          }
          type empty;
          description "If present, this is a Flow Key field.
            Note that this corresponds to flowKey(1) being set in
            ipfixTemplateDefinitionFlags.";
          reference "RFC 6615, Section 8
            (ipfixTemplateDefinitionFlags).";
        }
        leaf isScope {
          when "../../setId = 3" {
            description "This parameter is available for Options
              Templates (Set ID is 3).";
          }
          type empty;
          description "If present, this is a scope field.
            Note that this corresponds to scope(0) being set in
            ipfixTemplateDefinitionFlags.";
          reference "RFC 6615, Section 8
            (ipfixTemplateDefinitionFlags).";
        }
        
      }
    }
        
      }
    }
        
    grouping transportSessionParameters {
      description "State parameters of a Transport Session originating
        from an Exporting Process or terminating at a Collecting
        Process.  Parameter names and semantics correspond to the
        managed objects in IPFIX-MIB.";
      reference "RFC 5101; RFC 6615, Section 8
        (ipfixTransportSessionEntry,
         ipfixTransportSessionStatsEntry).";
      leaf ipfixVersion {
        type uint16;
        description "Used for Exporting Processes, this parameter
          contains the version number of the IPFIX protocol that the
          Exporter uses to export its data in this Transport Session.
          Hence, it is identical to the value of the configuration
          parameter ipfixVersion of the outer SctpExporter,
          UdpExporter, or TcpExporter node.
          Used for Collecting Processes, this parameter contains the
          version number of the IPFIX protocol it receives for
          this Transport Session.  If IPFIX Messages of different
          IPFIX protocol versions are received, this parameter
          contains the maximum version number.
          Note that this parameter corresponds to
          ipfixTransportSessionIpfixVersion in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionIpfixVersion).";
      }
      leaf sourceAddress {
        type inet:ip-address;
        description "The source address of the Exporter of the
          IPFIX Transport Session.
          If the transport protocol is SCTP, this is one of the
          potentially many IP addresses of the Exporter.
          Preferably, the source IP address of the path that is
          usually selected by the Exporter to send IPFIX Messages to
          the Collector SHOULD be used.
          Note that this parameter functionally corresponds to
          ipfixTransportSessionSourceAddressType and
          ipfixTransportSessionSourceAddress in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionSourceAddressType,
          ipfixTransportSessionSourceAddress);
          RFC 4960, Section 6.4.";
      }
        
    grouping transportSessionParameters {
      description "State parameters of a Transport Session originating
        from an Exporting Process or terminating at a Collecting
        Process.  Parameter names and semantics correspond to the
        managed objects in IPFIX-MIB.";
      reference "RFC 5101; RFC 6615, Section 8
        (ipfixTransportSessionEntry,
         ipfixTransportSessionStatsEntry).";
      leaf ipfixVersion {
        type uint16;
        description "Used for Exporting Processes, this parameter
          contains the version number of the IPFIX protocol that the
          Exporter uses to export its data in this Transport Session.
          Hence, it is identical to the value of the configuration
          parameter ipfixVersion of the outer SctpExporter,
          UdpExporter, or TcpExporter node.
          Used for Collecting Processes, this parameter contains the
          version number of the IPFIX protocol it receives for
          this Transport Session.  If IPFIX Messages of different
          IPFIX protocol versions are received, this parameter
          contains the maximum version number.
          Note that this parameter corresponds to
          ipfixTransportSessionIpfixVersion in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionIpfixVersion).";
      }
      leaf sourceAddress {
        type inet:ip-address;
        description "The source address of the Exporter of the
          IPFIX Transport Session.
          If the transport protocol is SCTP, this is one of the
          potentially many IP addresses of the Exporter.
          Preferably, the source IP address of the path that is
          usually selected by the Exporter to send IPFIX Messages to
          the Collector SHOULD be used.
          Note that this parameter functionally corresponds to
          ipfixTransportSessionSourceAddressType and
          ipfixTransportSessionSourceAddress in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionSourceAddressType,
          ipfixTransportSessionSourceAddress);
          RFC 4960, Section 6.4.";
      }
        
      leaf destinationAddress {
        type inet:ip-address;
        description "The destination address of the Collector of
          the IPFIX Transport Session.
          If the transport protocol is SCTP, this is one of the
          potentially many IP addresses of the Collector.
          Preferably, the destination IP address of the path that is
          usually selected by the Exporter to send IPFIX Messages to
          the Collector SHOULD be used.
          Note that this parameter functionally corresponds to
          ipfixTransportSessionDestinationAddressType and
          ipfixTransportSessionDestinationAddress in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDestinationAddressType,
          ipfixTransportSessionDestinationAddress);
          RFC 4960, Section 6.4.";
      }
      leaf sourcePort {
        type inet:port-number;
        description "The transport-protocol port number of the
          Exporter of the IPFIX Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionSourcePort in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionSourcePort).";
      }
      leaf destinationPort {
        type inet:port-number;
        description "The transport-protocol port number of the
          Collector of the IPFIX Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionDestinationPort in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDestinationPort).";
      }
      leaf sctpAssocId {
        type uint32;
        description "The association ID used for the SCTP session
          between the Exporter and the Collector of the IPFIX
          Transport Session.  It is equal to the sctpAssocId entry
          in the sctpAssocTable defined in the SCTP-MIB.
          This parameter is only available if the transport protocol
          is SCTP and if an SNMP agent on the same Monitoring Device
          enables access to the corresponding MIB objects in the
          sctpAssocTable.
          Note that this parameter corresponds to
        
      leaf destinationAddress {
        type inet:ip-address;
        description "The destination address of the Collector of
          the IPFIX Transport Session.
          If the transport protocol is SCTP, this is one of the
          potentially many IP addresses of the Collector.
          Preferably, the destination IP address of the path that is
          usually selected by the Exporter to send IPFIX Messages to
          the Collector SHOULD be used.
          Note that this parameter functionally corresponds to
          ipfixTransportSessionDestinationAddressType and
          ipfixTransportSessionDestinationAddress in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDestinationAddressType,
          ipfixTransportSessionDestinationAddress);
          RFC 4960, Section 6.4.";
      }
      leaf sourcePort {
        type inet:port-number;
        description "The transport-protocol port number of the
          Exporter of the IPFIX Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionSourcePort in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionSourcePort).";
      }
      leaf destinationPort {
        type inet:port-number;
        description "The transport-protocol port number of the
          Collector of the IPFIX Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionDestinationPort in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDestinationPort).";
      }
      leaf sctpAssocId {
        type uint32;
        description "The association ID used for the SCTP session
          between the Exporter and the Collector of the IPFIX
          Transport Session.  It is equal to the sctpAssocId entry
          in the sctpAssocTable defined in the SCTP-MIB.
          This parameter is only available if the transport protocol
          is SCTP and if an SNMP agent on the same Monitoring Device
          enables access to the corresponding MIB objects in the
          sctpAssocTable.
          Note that this parameter corresponds to
        
          ipfixTransportSessionSctpAssocId in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionSctpAssocId);
          RFC 3871";
      }
      leaf status {
        type transportSessionStatus;
        description "Status of the Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionStatus in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTransportSessionStatus).";
      }
      leaf rate {
        type yang:gauge32;
        units "bytes per second";
        description "The number of bytes per second transmitted by the
          Exporting Process or received by the Collecting Process.
          This parameter is updated every second.
          Note that this parameter corresponds to
          ipfixTransportSessionRate in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTransportSessionRate).";
      }
      leaf bytes {
        type yang:counter64;
        units bytes;
        description "The number of bytes transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionBytes in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTransportSessionBytes).";
      }
      leaf messages {
        type yang:counter64;
        units "IPFIX Messages";
        description "The number of messages transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionMessages in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
        
          ipfixTransportSessionSctpAssocId in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionSctpAssocId);
          RFC 3871";
      }
      leaf status {
        type transportSessionStatus;
        description "Status of the Transport Session.
          Note that this parameter corresponds to
          ipfixTransportSessionStatus in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTransportSessionStatus).";
      }
      leaf rate {
        type yang:gauge32;
        units "bytes per second";
        description "The number of bytes per second transmitted by the
          Exporting Process or received by the Collecting Process.
          This parameter is updated every second.
          Note that this parameter corresponds to
          ipfixTransportSessionRate in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTransportSessionRate).";
      }
      leaf bytes {
        type yang:counter64;
        units bytes;
        description "The number of bytes transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionBytes in the IPFIX MIB module.";
        reference "RFC 6615, Section 8 (ipfixTransportSessionBytes).";
      }
      leaf messages {
        type yang:counter64;
        units "IPFIX Messages";
        description "The number of messages transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionMessages in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
        
          (ipfixTransportSessionMessages).";
      }
      leaf discardedMessages {
        type yang:counter64;
        units "IPFIX Messages";
        description "Used for Exporting Processes, this parameter
          indicates the number of messages that could not be sent due
          to internal buffer overflows, network congestion, routing
          issues, etc.  Used for Collecting Process, this parameter
          indicates the number of received IPFIX Message that are
          malformed, cannot be decoded, are received in the wrong
          order or are missing according to the sequence number.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionDiscardedMessages in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDiscardedMessages).";
      }
      leaf records {
        type yang:counter64;
        units "Data Records";
        description "The number of Data Records transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionRecords in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionRecords).";
      }
      leaf templates {
        type yang:counter32;
        units "Templates";
        description "The number of Templates transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplates in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
        
          (ipfixTransportSessionMessages).";
      }
      leaf discardedMessages {
        type yang:counter64;
        units "IPFIX Messages";
        description "Used for Exporting Processes, this parameter
          indicates the number of messages that could not be sent due
          to internal buffer overflows, network congestion, routing
          issues, etc.  Used for Collecting Process, this parameter
          indicates the number of received IPFIX Message that are
          malformed, cannot be decoded, are received in the wrong
          order or are missing according to the sequence number.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionDiscardedMessages in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDiscardedMessages).";
      }
      leaf records {
        type yang:counter64;
        units "Data Records";
        description "The number of Data Records transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionRecords in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionRecords).";
      }
      leaf templates {
        type yang:counter32;
        units "Templates";
        description "The number of Templates transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionTemplates in the IPFIX MIB module.";
        reference "RFC 6615, Section 8
        
          (ipfixTransportSessionTemplates).";
      }
      leaf optionsTemplates {
        type yang:counter32;
        units "Options Templates";
        description "The number of Option Templates transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplates in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplates).";
      }
      leaf transportSessionStartTime {
        type yang:date-and-time;
        description "Timestamp of the start of the given Transport
          Session.
          This state parameter does not correspond to any object in
          the IPFIX MIB module.";
      }
      leaf transportSessionDiscontinuityTime {
        type yang:date-and-time;
        description "Timestamp of the most recent occasion at which
          one or more of the Transport Session counters suffered a
          discontinuity.
          Note that this parameter functionally corresponds to
          ipfixTransportSessionDiscontinuityTime in the IPFIX MIB
          module.  In contrast to
          ipfixTransportSessionDiscontinuityTime, the time is
          absolute and not relative to sysUpTime.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDiscontinuityTime).";
      }
      list template {
        description "This list contains the Templates and Options
          Templates that are transmitted by the Exporting Process
          or received by the Collecting Process.
          Withdrawn or invalidated (Options) Templates MUST be removed
          from this list.";
        uses templateParameters;
      }
    }
        
          (ipfixTransportSessionTemplates).";
      }
      leaf optionsTemplates {
        type yang:counter32;
        units "Options Templates";
        description "The number of Option Templates transmitted by the
          Exporting Process or received by the Collecting Process.
          Discontinuities in the value of this counter can occur at
          re-initialization of the management system, and at other
          times as indicated by the value of
          transportSessionDiscontinuityTime.
          Note that this parameter corresponds to
          ipfixTransportSessionOptionsTemplates in the IPFIX MIB
          module.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionOptionsTemplates).";
      }
      leaf transportSessionStartTime {
        type yang:date-and-time;
        description "Timestamp of the start of the given Transport
          Session.
          This state parameter does not correspond to any object in
          the IPFIX MIB module.";
      }
      leaf transportSessionDiscontinuityTime {
        type yang:date-and-time;
        description "Timestamp of the most recent occasion at which
          one or more of the Transport Session counters suffered a
          discontinuity.
          Note that this parameter functionally corresponds to
          ipfixTransportSessionDiscontinuityTime in the IPFIX MIB
          module.  In contrast to
          ipfixTransportSessionDiscontinuityTime, the time is
          absolute and not relative to sysUpTime.";
        reference "RFC 6615, Section 8
          (ipfixTransportSessionDiscontinuityTime).";
      }
      list template {
        description "This list contains the Templates and Options
          Templates that are transmitted by the Exporting Process
          or received by the Collecting Process.
          Withdrawn or invalidated (Options) Templates MUST be removed
          from this list.";
        uses templateParameters;
      }
    }
        
    /*****************************************************************
    * Main container
    *****************************************************************/
        
    /*****************************************************************
    * Main container
    *****************************************************************/
        
    container ipfix {
      description "Top-level node of the IPFIX/PSAMP configuration
        data model.";
      list collectingProcess {
        if-feature collector;
        key name;
        description "Collecting Process of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses collectingProcessParameters;
        leaf-list exportingProcess {
          if-feature exporter;
          type leafref { path "/ipfix/exportingProcess/name"; }
          description "Export of received records without any
            modifications.  Records are processed by all Exporting
            Processes in the list.";
        }
      }
        
    container ipfix {
      description "Top-level node of the IPFIX/PSAMP configuration
        data model.";
      list collectingProcess {
        if-feature collector;
        key name;
        description "Collecting Process of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses collectingProcessParameters;
        leaf-list exportingProcess {
          if-feature exporter;
          type leafref { path "/ipfix/exportingProcess/name"; }
          description "Export of received records without any
            modifications.  Records are processed by all Exporting
            Processes in the list.";
        }
      }
        
      list observationPoint {
        if-feature meter;
        key name;
        description "Observation Point of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses observationPointParameters;
        leaf-list selectionProcess {
          type leafref { path "/ipfix/selectionProcess/name"; }
          description "Selection Processes in this list process
            packets in parallel.";
        }
      }
        
      list observationPoint {
        if-feature meter;
        key name;
        description "Observation Point of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses observationPointParameters;
        leaf-list selectionProcess {
          type leafref { path "/ipfix/selectionProcess/name"; }
          description "Selection Processes in this list process
            packets in parallel.";
        }
      }
        
      list selectionProcess {
        if-feature meter;
        key name;
        description "Selection Process of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        
      list selectionProcess {
        if-feature meter;
        key name;
        description "Selection Process of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        
        }
        list selector {
          key name;
          min-elements 1;
          ordered-by user;
          description "List of Selectors that define the action of the
            Selection Process on a single packet.  The Selectors are
            serially invoked in the same order as they appear in this
            list.";
          leaf name {
            type nameType;
            description "Key of this list.";
          }
          uses selectorParameters;
        }
        list selectionSequence {
          config false;
          description "This list contains the Selection Sequence IDs
            that are assigned by the Monitoring Device to distinguish
            different Selection Sequences passing through the
            Selection Process.
            As Selection Sequence IDs are unique per Observation
            Domain, the corresponding Observation Domain IDs are
            included as well.
            With this information, it is possible to associate
            Selection Sequence (Statistics) Report Interpretations
            exported according to the PSAMP protocol with a Selection
            Process in the configuration data.";
          reference "RFC 5476.";
          leaf observationDomainId {
            type uint32;
            description "Observation Domain ID for which the
              Selection Sequence ID is assigned.";
          }
          leaf selectionSequenceId {
            type uint64;
            description "Selection Sequence ID used in the Selection
              Sequence (Statistics) Report Interpretation.";
          }
        }
        leaf cache {
          type leafref { path "/ipfix/cache/name"; }
          description "Cache that receives the output of the
            Selection Process.";
        }
      }
        
        }
        list selector {
          key name;
          min-elements 1;
          ordered-by user;
          description "List of Selectors that define the action of the
            Selection Process on a single packet.  The Selectors are
            serially invoked in the same order as they appear in this
            list.";
          leaf name {
            type nameType;
            description "Key of this list.";
          }
          uses selectorParameters;
        }
        list selectionSequence {
          config false;
          description "This list contains the Selection Sequence IDs
            that are assigned by the Monitoring Device to distinguish
            different Selection Sequences passing through the
            Selection Process.
            As Selection Sequence IDs are unique per Observation
            Domain, the corresponding Observation Domain IDs are
            included as well.
            With this information, it is possible to associate
            Selection Sequence (Statistics) Report Interpretations
            exported according to the PSAMP protocol with a Selection
            Process in the configuration data.";
          reference "RFC 5476.";
          leaf observationDomainId {
            type uint32;
            description "Observation Domain ID for which the
              Selection Sequence ID is assigned.";
          }
          leaf selectionSequenceId {
            type uint64;
            description "Selection Sequence ID used in the Selection
              Sequence (Statistics) Report Interpretation.";
          }
        }
        leaf cache {
          type leafref { path "/ipfix/cache/name"; }
          description "Cache that receives the output of the
            Selection Process.";
        }
      }
        

list cache {

列表缓存{

        if-feature meter;
        key name;
        description "Cache of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        leaf meteringProcessId {
          type uint32;
          config false;
          description "The identifier of the Metering Process this
            Cache belongs to.
            This parameter corresponds to the Information Element
            meteringProcessId.  Its occurrence helps to associate
            Cache parameters with Metering Process statistics
            exported by the Monitoring Device using the Metering
            Process (Reliability) Statistics Template as
            defined by the IPFIX protocol specification.";
          reference "RFC 5101, Sections 4.1 and 4.2;
            IANA registry for IPFIX Entities,
            http://www.iana.org/assignments/ipfix.";
        }
        leaf dataRecords {
          type yang:counter64;
          units "Data Records";
          config false;
          description "The number of Data Records generated by this
            Cache.
            Discontinuities in the value of this counter can occur at
            re-initialization of the management system, and at other
            times as indicated by the value of
            cacheDiscontinuityTime.
            Note that this parameter corresponds to
            ipfixMeteringProcessDataRecords in the IPFIX MIB
            module.";
          reference "RFC 6615, Section 8
            (ipfixMeteringProcessDataRecords).";
        }
        leaf cacheDiscontinuityTime {
          type yang:date-and-time;
          config false;
          description "Timestamp of the most recent occasion at which
            the counter dataRecords suffered a discontinuity.
            Note that this parameter functionally corresponds to
            ipfixMeteringProcessDiscontinuityTime in the IPFIX MIB
            module.  In contrast to
            ipfixMeteringProcessDiscontinuityTime, the time is
            absolute and not relative to sysUpTime.";
        
        if-feature meter;
        key name;
        description "Cache of the Monitoring Device.";
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        leaf meteringProcessId {
          type uint32;
          config false;
          description "The identifier of the Metering Process this
            Cache belongs to.
            This parameter corresponds to the Information Element
            meteringProcessId.  Its occurrence helps to associate
            Cache parameters with Metering Process statistics
            exported by the Monitoring Device using the Metering
            Process (Reliability) Statistics Template as
            defined by the IPFIX protocol specification.";
          reference "RFC 5101, Sections 4.1 and 4.2;
            IANA registry for IPFIX Entities,
            http://www.iana.org/assignments/ipfix.";
        }
        leaf dataRecords {
          type yang:counter64;
          units "Data Records";
          config false;
          description "The number of Data Records generated by this
            Cache.
            Discontinuities in the value of this counter can occur at
            re-initialization of the management system, and at other
            times as indicated by the value of
            cacheDiscontinuityTime.
            Note that this parameter corresponds to
            ipfixMeteringProcessDataRecords in the IPFIX MIB
            module.";
          reference "RFC 6615, Section 8
            (ipfixMeteringProcessDataRecords).";
        }
        leaf cacheDiscontinuityTime {
          type yang:date-and-time;
          config false;
          description "Timestamp of the most recent occasion at which
            the counter dataRecords suffered a discontinuity.
            Note that this parameter functionally corresponds to
            ipfixMeteringProcessDiscontinuityTime in the IPFIX MIB
            module.  In contrast to
            ipfixMeteringProcessDiscontinuityTime, the time is
            absolute and not relative to sysUpTime.";
        
          reference "RFC 6615, Section 8
            (ipfixMeteringProcessDiscontinuityTime).";
        }
        choice CacheType {
          mandatory true;
          description "Type of Cache and specific parameters.";
          container immediateCache {
            if-feature immediateCache;
            description "Flow expiration after the first packet;
              generation of Packet Records.";
            uses cacheLayoutParameters;
          }
          container timeoutCache {
            if-feature timeoutCache;
            description "Flow expiration after active and idle
              timeout; generation of Flow Records.";
            uses flowCacheParameters;
            uses cacheLayoutParameters;
          }
          container naturalCache {
            if-feature naturalCache;
            description "Flow expiration after active and idle
              timeout, or on natural termination (e.g., TCP FIN or
              TCP RST) of the Flow; generation of Flow Records.";
            uses flowCacheParameters;
            uses cacheLayoutParameters;
          }
          container permanentCache {
            if-feature permanentCache;
            description "No flow expiration, periodical export with
              time interval exportInterval; generation of Flow
              Records.";
            uses flowCacheParameters;
            uses cacheLayoutParameters;
          }
        }
        leaf-list exportingProcess {
          if-feature exporter;
          type leafref { path "/ipfix/exportingProcess/name"; }
          description "Records are exported by all Exporting Processes
            in the list.";
        }
      }
        
          reference "RFC 6615, Section 8
            (ipfixMeteringProcessDiscontinuityTime).";
        }
        choice CacheType {
          mandatory true;
          description "Type of Cache and specific parameters.";
          container immediateCache {
            if-feature immediateCache;
            description "Flow expiration after the first packet;
              generation of Packet Records.";
            uses cacheLayoutParameters;
          }
          container timeoutCache {
            if-feature timeoutCache;
            description "Flow expiration after active and idle
              timeout; generation of Flow Records.";
            uses flowCacheParameters;
            uses cacheLayoutParameters;
          }
          container naturalCache {
            if-feature naturalCache;
            description "Flow expiration after active and idle
              timeout, or on natural termination (e.g., TCP FIN or
              TCP RST) of the Flow; generation of Flow Records.";
            uses flowCacheParameters;
            uses cacheLayoutParameters;
          }
          container permanentCache {
            if-feature permanentCache;
            description "No flow expiration, periodical export with
              time interval exportInterval; generation of Flow
              Records.";
            uses flowCacheParameters;
            uses cacheLayoutParameters;
          }
        }
        leaf-list exportingProcess {
          if-feature exporter;
          type leafref { path "/ipfix/exportingProcess/name"; }
          description "Records are exported by all Exporting Processes
            in the list.";
        }
      }
        
      list exportingProcess {
        if-feature exporter;
        key name;
        description "Exporting Process of the Monitoring Device.";
        
      list exportingProcess {
        if-feature exporter;
        key name;
        description "Exporting Process of the Monitoring Device.";
        
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses exportingProcessParameters;
      }
    }
  }
  <CODE ENDS>
        
        leaf name {
          type nameType;
          description "Key of this list.";
        }
        uses exportingProcessParameters;
      }
    }
  }
  <CODE ENDS>
        
7. Examples
7. 例子

This section shows example configurations conforming to the YANG module specified in Section 6.

本节显示了符合第6节规定的YANG模块的示例配置。

7.1. PSAMP Device
7.1. PSAMP装置

This configuration example configures two Observation Points capturing ingress traffic at eth0 and all traffic at eth1. Both Observed Packet Streams enter two different Selection Processes. The first Selection Process implements a Composite Selector of a filter for UDP packets and a random sampler. The second Selection Process implements a Primitive Selector of an ICMP filter. The Selected Packet Streams of both Selection Processes enter the same Cache. The Cache generates a PSAMP Packet Report for every selected packet.

此配置示例配置两个观测点,分别捕获eth0处的入口流量和eth1处的所有流量。两个观察到的分组流进入两个不同的选择过程。第一个选择过程实现UDP数据包过滤器和随机采样器的组合选择器。第二个选择过程实现ICMP筛选器的基本选择器。两个选择过程的选定数据包流进入相同的缓存。缓存为每个选定的数据包生成PSAMP数据包报告。

The associated Exporting Process exports to a Collector using PR-SCTP and DTLS. The TLS/DTLS parameters specify that the collector must supply a certificate for the FQDN collector.example.net. Valid certificates from any certification authority will be accepted. As the destination transport port is omitted, the standard IPFIX-over-DTLS port 4740 is used.

关联的导出进程使用PR-SCTP和DTL导出到收集器。TLS/DTLS参数指定收集器必须为FQDN collector.example.net提供证书。将接受来自任何认证机构的有效证书。由于省略了目标传输端口,因此使用标准的IPFIX over DTLS端口4740。

The parameters of the Selection Processes are reported as Selection Sequence Report Interpretations and Selector Report Interpretations [RFC5476]. There will be two Selection Sequence Report Interpretations per Selection Process, one for each Observation Point. Selection Sequence Statistics Report Interpretations are exported every 30 seconds (30000 milliseconds).

选择过程的参数报告为选择序列报告解释和选择器报告解释[RFC5476]。每个选择过程将有两个选择顺序报告解释,每个观察点一个。选择序列统计信息报告解释每30秒(30000毫秒)导出一次。

   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
     <observationPoint>
       <name>OP at eth0 (ingress)</name>
       <observationDomainId>123</observationDomainId>
       <ifName>eth0</ifName>
       <direction>ingress</direction>
       <selectionProcess>Sampled UDP packets</selectionProcess>
        
     <observationPoint>
       <name>OP at eth0 (ingress)</name>
       <observationDomainId>123</observationDomainId>
       <ifName>eth0</ifName>
       <direction>ingress</direction>
       <selectionProcess>Sampled UDP packets</selectionProcess>
        
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at eth1</name>
       <observationDomainId>123</observationDomainId>
       <ifName>eth1</ifName>
       <selectionProcess>Sampled UDP packets</selectionProcess>
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at eth1</name>
       <observationDomainId>123</observationDomainId>
       <ifName>eth1</ifName>
       <selectionProcess>Sampled UDP packets</selectionProcess>
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <selectionProcess>
       <name>Sampled UDP packets</name>
       <selector>
         <name>UDP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>17</value>
         </filterMatch>
       </selector>
       <selector>
         <name>10-out-of-100 sampler</name>
         <sampRandOutOfN>
           <size>10</size>
           <population>100</population>
         </sampRandOutOfN>
       </selector>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>Sampled UDP packets</name>
       <selector>
         <name>UDP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>17</value>
         </filterMatch>
       </selector>
       <selector>
         <name>10-out-of-100 sampler</name>
         <sampRandOutOfN>
           <size>10</size>
           <population>100</population>
         </sampRandOutOfN>
       </selector>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>ICMP packets</name>
       <selector>
         <name>ICMP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>1</value>
         </filterMatch>
       </selector>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>ICMP packets</name>
       <selector>
         <name>ICMP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>1</value>
         </filterMatch>
       </selector>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
     <cache>
       <name>PSAMP cache</name>
       <immediateCache>
         <cacheLayout>
           <cacheField>
             <name>Field 1: ipHeaderPacketSection</name>
        
     <cache>
       <name>PSAMP cache</name>
       <immediateCache>
         <cacheLayout>
           <cacheField>
             <name>Field 1: ipHeaderPacketSection</name>
        
             <ieId>313</ieId>
             <ieLength>64</ieLength>
           </cacheField>
           <cacheField>
             <name>Field 2: observationTimeMilliseconds</name>
             <ieId>322</ieId>
           </cacheField>
         </cacheLayout>
       </immediateCache>
       <exportingProcess>The only exporter</exportingProcess>
     </cache>
        
             <ieId>313</ieId>
             <ieLength>64</ieLength>
           </cacheField>
           <cacheField>
             <name>Field 2: observationTimeMilliseconds</name>
             <ieId>322</ieId>
           </cacheField>
         </cacheLayout>
       </immediateCache>
       <exportingProcess>The only exporter</exportingProcess>
     </cache>
        
     <exportingProcess>
       <name>The only exporter</name>
       <destination>
         <name>PR-SCTP collector</name>
         <sctpExporter>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
           <rateLimit>1000000</rateLimit>
           <timedReliability>500</timedReliability>
           <transportLayerSecurity>
             <remoteSubjectFQDN>coll-1.example.net</remoteSubjectFQDN>
           </transportLayerSecurity>
         </sctpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
       <options>
         <name>Options 2</name>
         <optionsType>selectionStatistics</optionsType>
         <optionsTimeout>30000</optionsTimeout>
       </options>
     </exportingProcess>
        
     <exportingProcess>
       <name>The only exporter</name>
       <destination>
         <name>PR-SCTP collector</name>
         <sctpExporter>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
           <rateLimit>1000000</rateLimit>
           <timedReliability>500</timedReliability>
           <transportLayerSecurity>
             <remoteSubjectFQDN>coll-1.example.net</remoteSubjectFQDN>
           </transportLayerSecurity>
         </sctpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
       <options>
         <name>Options 2</name>
         <optionsType>selectionStatistics</optionsType>
         <optionsTimeout>30000</optionsTimeout>
       </options>
     </exportingProcess>
        
   </ipfix>
        
   </ipfix>
        

The above configuration results in one Template and six Options Templates. For the remainder of the example, we assume Template ID 256 for the Template and Template IDs 257 to 262 for the Options Templates. The Template is used to export the Packet Reports and has the following fields:

上述配置产生一个模板和六个选项模板。对于该示例的其余部分,我们假设模板ID为256,选项模板的模板ID为257到262。该模板用于导出数据包报告,并具有以下字段:

      Template ID: 256
      ipHeaderPacketSection (elementId = 313, length = 64)
      observationTimeMilliseconds (elementId = 322, length = 8)
        
      Template ID: 256
      ipHeaderPacketSection (elementId = 313, length = 64)
      observationTimeMilliseconds (elementId = 322, length = 8)
        

Two Options Templates are used for the Selection Sequence Report Interpretations. The first one has one selectorId field and is used for the Selection Process "ICMP packets". The second one has two selectorId fields to describe the two selectors of the Selection Process "Sampled UDP packets".

两个选项模板用于选择序列报告解释。第一个有一个selectorId字段,用于选择过程“ICMP数据包”。第二个有两个selectorId字段,用于描述选择过程的两个选择器“采样UDP数据包”。

      Template ID: 257
      Scope: selectionSequenceId (elementId = 301, length = 8)
      observationPointId (elementId = 138, length = 4)
      selectorId (elementId = 302, length = 4)
        
      Template ID: 257
      Scope: selectionSequenceId (elementId = 301, length = 8)
      observationPointId (elementId = 138, length = 4)
      selectorId (elementId = 302, length = 4)
        
      Template ID: 258
      Scope: selectionSequenceId (elementId = 301, length = 8)
      observationPointId (elementId = 138, length = 4)
      selectorId (elementId = 302, length = 4)
      selectorId (elementId = 302, length = 4)
        
      Template ID: 258
      Scope: selectionSequenceId (elementId = 301, length = 8)
      observationPointId (elementId = 138, length = 4)
      selectorId (elementId = 302, length = 4)
      selectorId (elementId = 302, length = 4)
        

Another Options Template is used to carry the Property Match Filtering Selector Report Interpretation for the Selectors "UDP filter" and "ICMP filter":

另一个选项模板用于携带选择器“UDP筛选器”和“ICMP筛选器”的属性匹配筛选选择器报告解释:

      Template ID: 259
      Scope: selectorId (elementId = 302, length = 4)
      selectorAlgorithm (elementId = 304, length = 2)
      protocolIdentifier (elementId = 4, length = 1)
        
      Template ID: 259
      Scope: selectorId (elementId = 302, length = 4)
      selectorAlgorithm (elementId = 304, length = 2)
      protocolIdentifier (elementId = 4, length = 1)
        

Yet another Options Template is used to carry the Random n-out-of-N Sampling Selector Report Interpretation for the Selector "10-out-of-100 sampler":

另一个选项模板用于对选择器“百分之十采样器”进行随机n取n采样选择器报告解释:

      Template ID: 260
      Scope: selectorId (elementId = 302, length = 4)
      selectorAlgorithm (elementId = 304, length = 2)
      samplingSize (elementId = 319, length = 4)
      samplingPopulation (elementId = 310, length = 4)
        
      Template ID: 260
      Scope: selectorId (elementId = 302, length = 4)
      selectorAlgorithm (elementId = 304, length = 2)
      samplingSize (elementId = 319, length = 4)
      samplingPopulation (elementId = 310, length = 4)
        

The last two Options Template are used to carry the Selection Sequence Statistics Report Interpretation for the Selection Processes, containing the statistics for one and two Selectors, respectively:

最后两个选项模板用于执行选择过程的选择序列统计信息报告解释,分别包含一个和两个选择器的统计信息:

      Template ID: 261
      Scope: selectionSequenceId (elementId = 301, length = 8)
      selectorIdTotalPktsObserved (elementId = 318, length = 8)
      selectorIdTotalPktsSelected (elementId = 319, length = 8)
        
      Template ID: 261
      Scope: selectionSequenceId (elementId = 301, length = 8)
      selectorIdTotalPktsObserved (elementId = 318, length = 8)
      selectorIdTotalPktsSelected (elementId = 319, length = 8)
        
      Template ID: 262
      Scope: selectionSequenceId (elementId = 301, length = 8)
      selectorIdTotalPktsObserved (elementId = 318, length = 8)
      selectorIdTotalPktsSelected (elementId = 319, length = 8)
      selectorIdTotalPktsObserved (elementId = 318, length = 8)
      selectorIdTotalPktsSelected (elementId = 319, length = 8)
        
      Template ID: 262
      Scope: selectionSequenceId (elementId = 301, length = 8)
      selectorIdTotalPktsObserved (elementId = 318, length = 8)
      selectorIdTotalPktsSelected (elementId = 319, length = 8)
      selectorIdTotalPktsObserved (elementId = 318, length = 8)
      selectorIdTotalPktsSelected (elementId = 319, length = 8)
        

After a short runtime, 100 packets have been observed at the two Observation Points, including 20 UDP and 5 ICMP packets. 3 of the UDP packets are selected by the random sampler, which results in a total of 8 Packet Reports generated by the Cache. Under these circumstances, the complete configuration and state data of the PSAMP Device may look as follows:

在短时间运行后,在两个观察点观察到100个数据包,包括20个UDP数据包和5个ICMP数据包。随机采样器选择了3个UDP数据包,这将导致缓存生成总共8个数据包报告。在这些情况下,PSAMP设备的完整配置和状态数据可能如下所示:

   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
     <observationPoint>
       <name>OP at eth0 (ingress)</name>
       <observationPointId>1</observationPointId>
       <observationDomainId>123</observationDomainId>
       <ifName>eth0</ifName>
       <direction>ingress</direction>
       <selectionProcess>Sampled UDP packets</selectionProcess>
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at eth0 (ingress)</name>
       <observationPointId>1</observationPointId>
       <observationDomainId>123</observationDomainId>
       <ifName>eth0</ifName>
       <direction>ingress</direction>
       <selectionProcess>Sampled UDP packets</selectionProcess>
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at eth1</name>
       <observationPointId>2</observationPointId>
       <observationDomainId>123</observationDomainId>
       <ifName>eth1</ifName>
       <direction>both</direction>
       <selectionProcess>Sampled UDP packets</selectionProcess>
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at eth1</name>
       <observationPointId>2</observationPointId>
       <observationDomainId>123</observationDomainId>
       <ifName>eth1</ifName>
       <direction>both</direction>
       <selectionProcess>Sampled UDP packets</selectionProcess>
       <selectionProcess>ICMP packets</selectionProcess>
     </observationPoint>
        
     <selectionProcess>
       <name>Sampled UDP packets</name>
       <selector>
         <name>UDP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>17</value>
         </filterMatch>
         <packetsObserved>100</packetsObserved>
         <packetsDropped>80</packetsDropped>
         <selectorDiscontinuityTime>2010-03-15T00:00:00.00Z
             </selectorDiscontinuityTime>
        
     <selectionProcess>
       <name>Sampled UDP packets</name>
       <selector>
         <name>UDP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>17</value>
         </filterMatch>
         <packetsObserved>100</packetsObserved>
         <packetsDropped>80</packetsDropped>
         <selectorDiscontinuityTime>2010-03-15T00:00:00.00Z
             </selectorDiscontinuityTime>
        
       </selector>
       <selector>
         <name>10-out-of-100 sampler</name>
         <sampRandOutOfN>
           <size>10</size>
           <population>100</population>
         </sampRandOutOfN>
         <packetsObserved>20</packetsObserved>
         <packetsDropped>17</packetsDropped>
         <selectorDiscontinuityTime>2010-03-15T00:00:00.00Z
             </selectorDiscontinuityTime>
       </selector>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>1</selectionSequenceId>
       </selectionSequence>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>2</selectionSequenceId>
       </selectionSequence>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
       </selector>
       <selector>
         <name>10-out-of-100 sampler</name>
         <sampRandOutOfN>
           <size>10</size>
           <population>100</population>
         </sampRandOutOfN>
         <packetsObserved>20</packetsObserved>
         <packetsDropped>17</packetsDropped>
         <selectorDiscontinuityTime>2010-03-15T00:00:00.00Z
             </selectorDiscontinuityTime>
       </selector>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>1</selectionSequenceId>
       </selectionSequence>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>2</selectionSequenceId>
       </selectionSequence>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>ICMP packets</name>
       <selector>
         <name>ICMP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>1</value>
         </filterMatch>
         <packetsObserved>100</packetsObserved>
         <packetsDropped>95</packetsDropped>
         <selectorDiscontinuityTime>2010-03-15T00:00:00.00Z
             </selectorDiscontinuityTime>
       </selector>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>3</selectionSequenceId>
       </selectionSequence>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>4</selectionSequenceId>
       </selectionSequence>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>ICMP packets</name>
       <selector>
         <name>ICMP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>1</value>
         </filterMatch>
         <packetsObserved>100</packetsObserved>
         <packetsDropped>95</packetsDropped>
         <selectorDiscontinuityTime>2010-03-15T00:00:00.00Z
             </selectorDiscontinuityTime>
       </selector>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>3</selectionSequenceId>
       </selectionSequence>
       <selectionSequence>
           <observationDomainId>123</observationDomainId>
           <selectionSequenceId>4</selectionSequenceId>
       </selectionSequence>
       <cache>PSAMP cache</cache>
     </selectionProcess>
        

<cache>

<cache>

       <name>PSAMP cache</name>
       <meteringProcessId>1</meteringProcessId>
       <immediateCache>
         <cacheLayout>
           <cacheField>
             <name>Field 1: ipHeaderPacketSection</name>
             <ieId>313</ieId>
             <ieLength>64</ieLength>
           </cacheField>
           <cacheField>
             <name>Field 2: observationTimeMilliseconds</name>
             <ieId>322</ieId>
           </cacheField>
         </cacheLayout>
       </immediateCache>
       <dataRecords>8</dataRecords>
       <cacheDiscontinuityTime>2010-03-15T00:00:00.00Z
           </cacheDiscontinuityTime>
       <exportingProcess>The only exporter</exportingProcess>
     </cache>
        
       <name>PSAMP cache</name>
       <meteringProcessId>1</meteringProcessId>
       <immediateCache>
         <cacheLayout>
           <cacheField>
             <name>Field 1: ipHeaderPacketSection</name>
             <ieId>313</ieId>
             <ieLength>64</ieLength>
           </cacheField>
           <cacheField>
             <name>Field 2: observationTimeMilliseconds</name>
             <ieId>322</ieId>
           </cacheField>
         </cacheLayout>
       </immediateCache>
       <dataRecords>8</dataRecords>
       <cacheDiscontinuityTime>2010-03-15T00:00:00.00Z
           </cacheDiscontinuityTime>
       <exportingProcess>The only exporter</exportingProcess>
     </cache>
        
     <exportingProcess>
       <name>The only exporter</name>
       <exportingProcessId>1</exportingProcessId>
       <exportMode>parallel</exportMode>
       <destination>
         <name>PR-SCTP collector</name>
         <sctpExporter>
           <ipfixVersion>10</ipfixVersion>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
           <destinationPort>4740</destinationPort>
           <sendBufferSize>32768</sendBufferSize>
           <rateLimit>1000000</rateLimit>
           <timedReliability>500</timedReliability>
           <transportLayerSecurity>
             <remoteSubjectFQDN>coll-1.example.net</remoteSubjectFQDN>
           </transportLayerSecurity>
           <transportSession>
             <ipfixVersion>10</ipfixVersion>
             <sourceAddress>192.0.2.100</sourceAddress>
             <destinationAddress>192.0.2.1</destinationAddress>
             <sourcePort>45687</sourcePort>
             <destinationPort>4740</destinationPort>
             <sctpAssocId>1</sctpAssocId>
             <status>active</status>
             <rate>230</rate>
             <bytes>978</bytes>
             <messages>3</messages>
        
     <exportingProcess>
       <name>The only exporter</name>
       <exportingProcessId>1</exportingProcessId>
       <exportMode>parallel</exportMode>
       <destination>
         <name>PR-SCTP collector</name>
         <sctpExporter>
           <ipfixVersion>10</ipfixVersion>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
           <destinationPort>4740</destinationPort>
           <sendBufferSize>32768</sendBufferSize>
           <rateLimit>1000000</rateLimit>
           <timedReliability>500</timedReliability>
           <transportLayerSecurity>
             <remoteSubjectFQDN>coll-1.example.net</remoteSubjectFQDN>
           </transportLayerSecurity>
           <transportSession>
             <ipfixVersion>10</ipfixVersion>
             <sourceAddress>192.0.2.100</sourceAddress>
             <destinationAddress>192.0.2.1</destinationAddress>
             <sourcePort>45687</sourcePort>
             <destinationPort>4740</destinationPort>
             <sctpAssocId>1</sctpAssocId>
             <status>active</status>
             <rate>230</rate>
             <bytes>978</bytes>
             <messages>3</messages>
        
             <records>19</records>
             <templates>1</templates>
             <optionsTemplates>6</optionsTemplates>
             <transportSessionStartTime>2010-03-15T00:00:00.50Z
                 </transportSessionStartTime>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>256</templateId>
               <setId>2</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>8</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>313</ieId>
                 <ieLength>64</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>154</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>257</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>138</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
        
             <records>19</records>
             <templates>1</templates>
             <optionsTemplates>6</optionsTemplates>
             <transportSessionStartTime>2010-03-15T00:00:00.50Z
                 </transportSessionStartTime>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>256</templateId>
               <setId>2</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>8</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>313</ieId>
                 <ieLength>64</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>154</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>257</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>138</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
        
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>258</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>138</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>259</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>304</ieId>
                 <ieLength>2</ieLength>
        
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>258</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>138</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>259</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>304</ieId>
                 <ieLength>2</ieLength>
        
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>4</ieId>
                 <ieLength>1</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>260</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>1</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>304</ieId>
                 <ieLength>2</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>309</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>310</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>261</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:03.10Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
        
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>4</ieId>
                 <ieLength>1</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>260</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:02.15Z</accessTime>
               <templateDataRecords>1</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>302</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>304</ieId>
                 <ieLength>2</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>309</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>310</ieId>
                 <ieLength>4</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>261</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:03.10Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
        
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>318</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>319</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>262</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:03.10Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>318</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>319</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>318</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>319</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
        
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>318</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>319</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
             </template>
             <template>
               <observationDomainId>123</observationDomainId>
               <templateId>262</templateId>
               <setId>3</setId>
               <accessTime>2010-03-15T00:00:03.10Z</accessTime>
               <templateDataRecords>2</templateDataRecords>
               <templateDiscontinuityTime>2010-03-15T00:00:01.10Z
                   </templateDiscontinuityTime>
               <field>
                 <ieId>301</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
                 <isScope/>
               </field>
               <field>
                 <ieId>318</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>319</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>318</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
               </field>
               <field>
                 <ieId>319</ieId>
                 <ieLength>8</ieLength>
                 <ieEnterpriseNumber>0</ieEnterpriseNumber>
        
               </field>
             </template>
           </transportSession>
         </sctpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
       <options>
         <name>Options 2</name>
         <optionsType>selectionStatistics</optionsType>
         <optionsTimeout>30000</optionsTimeout>
       </options>
     </exportingProcess>
        
               </field>
             </template>
           </transportSession>
         </sctpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
       <options>
         <name>Options 2</name>
         <optionsType>selectionStatistics</optionsType>
         <optionsTimeout>30000</optionsTimeout>
       </options>
     </exportingProcess>
        
   </ipfix>
        
   </ipfix>
        
7.2. IPFIX Device
7.2. IPFIX设备

This configuration example demonstrates the shared usage of a Cache for maintaining Flow Records from two Observation Points belonging to different Observation Domains. Packets are selected using different Sampling techniques: count-based Sampling for the first Observation Point (eth0) and selection of all packets for the second Observation Point (eth1). The Exporting Process sends the Flow Records to a primary destination using SCTP. A UDP Collector is specified as secondary destination.

此配置示例演示了共享使用缓存来维护来自属于不同观察域的两个观察点的流记录。使用不同的采样技术选择数据包:第一个观察点(eth0)基于计数的采样和第二个观察点(eth1)所有数据包的选择。导出过程使用SCTP将流记录发送到主目标。UDP收集器被指定为辅助目标。

Exporting Process reliability statistics [RFC5101] are exported periodically every minute (60000 milliseconds). Selection Sequence Report Interpretations and Selector Report Interpretations [RFC5476] are exported once after configuring the Selection Processes. In total, two Selection Sequence Report Interpretations will be exported, one for each Selection Process.

导出过程可靠性统计信息[RFC5101]每分钟(60000毫秒)定期导出一次。配置选择过程后,选择序列报告解释和选择器报告解释[RFC5476]将导出一次。总共将导出两个选择序列报告解释,每个选择过程一个。

   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
     <observationPoint>
       <name>OP at eth0 (ingress)</name>
       <observationDomainId>123</observationDomainId>
       <ifName>eth0</ifName>
       <direction>ingress</direction>
       <selectionProcess>Count-based packet selection</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at eth0 (ingress)</name>
       <observationDomainId>123</observationDomainId>
       <ifName>eth0</ifName>
       <direction>ingress</direction>
       <selectionProcess>Count-based packet selection</selectionProcess>
     </observationPoint>
        

<observationPoint>

<observationPoint>

       <name>OP at eth1</name>
       <observationDomainId>456</observationDomainId>
       <ifName>eth1</ifName>
       <selectionProcess>All packet selection</selectionProcess>
     </observationPoint>
        
       <name>OP at eth1</name>
       <observationDomainId>456</observationDomainId>
       <ifName>eth1</ifName>
       <selectionProcess>All packet selection</selectionProcess>
     </observationPoint>
        
     <selectionProcess>
       <name>Count-based packet selection</name>
       <selector>
         <name>Count-based sampler</name>
         <sampCountBased>
           <packetInterval>1</packetInterval>
           <packetSpace>99</packetSpace>
         </sampCountBased>
       </selector>
       <cache>Flow cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>Count-based packet selection</name>
       <selector>
         <name>Count-based sampler</name>
         <sampCountBased>
           <packetInterval>1</packetInterval>
           <packetSpace>99</packetSpace>
         </sampCountBased>
       </selector>
       <cache>Flow cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>All packet selection</name>
       <selector>
         <name>Select all</name>
         <selectAll/>
       </selector>
       <cache>Flow cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>All packet selection</name>
       <selector>
         <name>Select all</name>
         <selectAll/>
       </selector>
       <cache>Flow cache</cache>
     </selectionProcess>
        
     <cache>
       <name>Flow cache</name>
       <timeoutCache>
         <maxFlows>4096</maxFlows>
         <activeTimeout>5000</activeTimeout>
         <idleTimeout>10000</idleTimeout>
         <cacheLayout>
           <cacheField>
             <name>Field 1</name>
             <ieName>sourceIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 2</name>
             <ieName>destinationIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 3</name>
             <ieName>protocolIdentifier</ieName>
             <isFlowKey/>
        
     <cache>
       <name>Flow cache</name>
       <timeoutCache>
         <maxFlows>4096</maxFlows>
         <activeTimeout>5000</activeTimeout>
         <idleTimeout>10000</idleTimeout>
         <cacheLayout>
           <cacheField>
             <name>Field 1</name>
             <ieName>sourceIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 2</name>
             <ieName>destinationIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 3</name>
             <ieName>protocolIdentifier</ieName>
             <isFlowKey/>
        
           </cacheField>
           <cacheField>
             <name>Field 4</name>
             <ieName>sourceTransportPort</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 5</name>
             <ieName>destinationTransportPort</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 6</name>
             <ieName>flowStartMilliseconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 7</name>
             <ieName>flowEndSeconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 8</name>
             <ieName>octetDeltaCount</ieName>
           </cacheField>
           <cacheField>
             <name>Field 9</name>
             <ieName>packetDeltaCount</ieName>
           </cacheField>
         </cacheLayout>
       </timeoutCache>
       <exportingProcess>SCTP export with UDP backup</exportingProcess>
     </cache>
        
           </cacheField>
           <cacheField>
             <name>Field 4</name>
             <ieName>sourceTransportPort</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 5</name>
             <ieName>destinationTransportPort</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 6</name>
             <ieName>flowStartMilliseconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 7</name>
             <ieName>flowEndSeconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 8</name>
             <ieName>octetDeltaCount</ieName>
           </cacheField>
           <cacheField>
             <name>Field 9</name>
             <ieName>packetDeltaCount</ieName>
           </cacheField>
         </cacheLayout>
       </timeoutCache>
       <exportingProcess>SCTP export with UDP backup</exportingProcess>
     </cache>
        
     <exportingProcess>
       <name>SCTP export with UDP backup</name>
       <exportMode>fallback</exportMode>
       <destination>
         <name>SCTP destination (primary)</name>
         <sctpExporter>
           <destinationPort>4739</destinationPort>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
         </sctpExporter>
       </destination>
       <destination>
         <name>UDP destination (secondary)</name>
         <udpExporter>
           <destinationPort>4739</destinationPort>
           <destinationIPAddress>192.0.2.2</destinationIPAddress>
           <templateRefreshTimeout>300</templateRefreshTimeout>
        
     <exportingProcess>
       <name>SCTP export with UDP backup</name>
       <exportMode>fallback</exportMode>
       <destination>
         <name>SCTP destination (primary)</name>
         <sctpExporter>
           <destinationPort>4739</destinationPort>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
         </sctpExporter>
       </destination>
       <destination>
         <name>UDP destination (secondary)</name>
         <udpExporter>
           <destinationPort>4739</destinationPort>
           <destinationIPAddress>192.0.2.2</destinationIPAddress>
           <templateRefreshTimeout>300</templateRefreshTimeout>
        
           <optionsTemplateRefreshTimeout>300
               </optionsTemplateRefreshTimeout>
         </udpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
       <options>
         <name>Options 2</name>
         <optionsType>exportingReliability</optionsType>
         <optionsTimeout>60000</optionsTimeout>
       </options>
     </exportingProcess>
        
           <optionsTemplateRefreshTimeout>300
               </optionsTemplateRefreshTimeout>
         </udpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
       <options>
         <name>Options 2</name>
         <optionsType>exportingReliability</optionsType>
         <optionsTimeout>60000</optionsTimeout>
       </options>
     </exportingProcess>
        
   </ipfix>
        
   </ipfix>
        
7.3. Export of Flow Records and Packet Reports
7.3. 导出流记录和数据包报告

This configuration example demonstrates the combined export of Flow Records and Packet Reports for a single Observation Point. One Selection Process applies random Sampling to the Observed Packet Stream. Its output is passed to a Cache generating Flow Records. In parallel, the Observed Packet Stream enters a second Selection Process that discards all non-ICMP packets and passes the selected packets to a second Cache for generating Packet Reports. The output of both Caches is exported to a single Collector using SCTP.

此配置示例演示了单个观察点的流记录和数据包报告的组合导出。一个选择过程对观察到的分组流应用随机抽样。其输出被传递到生成流记录的缓存。并行地,观察到的分组流进入第二选择过程,该第二选择过程丢弃所有非ICMP分组并将所选分组传递到第二高速缓存以生成分组报告。使用SCTP将两个缓存的输出导出到单个收集器。

   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
     <observationPoint>
       <name>OP at linecard 3</name>
       <observationDomainId>9876</observationDomainId>
       <ifIndex>4</ifIndex>
       <direction>ingress</direction>
       <selectionProcess>Sampling</selectionProcess>
       <selectionProcess>ICMP</selectionProcess>
     </observationPoint>
        
     <observationPoint>
       <name>OP at linecard 3</name>
       <observationDomainId>9876</observationDomainId>
       <ifIndex>4</ifIndex>
       <direction>ingress</direction>
       <selectionProcess>Sampling</selectionProcess>
       <selectionProcess>ICMP</selectionProcess>
     </observationPoint>
        
     <selectionProcess>
       <name>Sampling</name>
       <selector>
         <name>Random sampler</name>
         <sampUniProb>
           <probability>0.01</probability>
         </sampUniProb>
       </selector>
        
     <selectionProcess>
       <name>Sampling</name>
       <selector>
         <name>Random sampler</name>
         <sampUniProb>
           <probability>0.01</probability>
         </sampUniProb>
       </selector>
        
       <cache>Flow cache</cache>
     </selectionProcess>
        
       <cache>Flow cache</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>ICMP</name>
       <selector>
         <name>ICMP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>1</value>
         </filterMatch>
       </selector>
       <cache>Packet reporting</cache>
     </selectionProcess>
        
     <selectionProcess>
       <name>ICMP</name>
       <selector>
         <name>ICMP filter</name>
         <filterMatch>
           <ieId>4</ieId>
           <value>1</value>
         </filterMatch>
       </selector>
       <cache>Packet reporting</cache>
     </selectionProcess>
        
     <cache>
       <name>Flow cache</name>
       <timeoutCache>
         <maxFlows>4096</maxFlows>
         <activeTimeout>5</activeTimeout>
         <idleTimeout>10</idleTimeout>
         <cacheLayout>
           <cacheField>
             <name>Field 1</name>
             <ieName>sourceIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 2</name>
             <ieName>destinationIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 6</name>
             <ieName>flowStartMilliseconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 7</name>
             <ieName>flowEndSeconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 8</name>
             <ieName>octetDeltaCount</ieName>
           </cacheField>
           <cacheField>
             <name>Field 9</name>
             <ieName>packetDeltaCount</ieName>
           </cacheField>
        
     <cache>
       <name>Flow cache</name>
       <timeoutCache>
         <maxFlows>4096</maxFlows>
         <activeTimeout>5</activeTimeout>
         <idleTimeout>10</idleTimeout>
         <cacheLayout>
           <cacheField>
             <name>Field 1</name>
             <ieName>sourceIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 2</name>
             <ieName>destinationIPv4Address</ieName>
             <isFlowKey/>
           </cacheField>
           <cacheField>
             <name>Field 6</name>
             <ieName>flowStartMilliseconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 7</name>
             <ieName>flowEndSeconds</ieName>
           </cacheField>
           <cacheField>
             <name>Field 8</name>
             <ieName>octetDeltaCount</ieName>
           </cacheField>
           <cacheField>
             <name>Field 9</name>
             <ieName>packetDeltaCount</ieName>
           </cacheField>
        
         </cacheLayout>
       </timeoutCache>
       <exportingProcess>Export</exportingProcess>
     </cache>
        
         </cacheLayout>
       </timeoutCache>
       <exportingProcess>Export</exportingProcess>
     </cache>
        
     <cache>
       <name>Packet reporting</name>
       <immediateCache>
         <cacheLayout>
           <cacheField>
             <name>Field 1</name>
             <ieId>313</ieId>
             <ieLength>64</ieLength>
           </cacheField>
           <cacheField>
             <name>Field 2</name>
             <ieId>154</ieId>
           </cacheField>
         </cacheLayout>
       </immediateCache>
       <exportingProcess>Export</exportingProcess>
     </cache>
        
     <cache>
       <name>Packet reporting</name>
       <immediateCache>
         <cacheLayout>
           <cacheField>
             <name>Field 1</name>
             <ieId>313</ieId>
             <ieLength>64</ieLength>
           </cacheField>
           <cacheField>
             <name>Field 2</name>
             <ieId>154</ieId>
           </cacheField>
         </cacheLayout>
       </immediateCache>
       <exportingProcess>Export</exportingProcess>
     </cache>
        
     <exportingProcess>
       <name>Export</name>
       <destination>
         <name>SCTP collector</name>
         <sctpExporter>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
           <timedReliability>0</timedReliability>
         </sctpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
     </exportingProcess>
        
     <exportingProcess>
       <name>Export</name>
       <destination>
         <name>SCTP collector</name>
         <sctpExporter>
           <destinationIPAddress>192.0.2.1</destinationIPAddress>
           <timedReliability>0</timedReliability>
         </sctpExporter>
       </destination>
       <options>
         <name>Options 1</name>
         <optionsType>selectionSequence</optionsType>
         <optionsTimeout>0</optionsTimeout>
       </options>
     </exportingProcess>
        
   </ipfix>
        
   </ipfix>
        
7.4. Collector and File Writer
7.4. 收集器和文件编写器

This configuration example configures a Collector that writes the received data to a file.

此配置示例配置将接收的数据写入文件的收集器。

   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
   <ipfix xmlns="urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp">
        
     <collectingProcess>
       <name>SCTP collector</name>
       <sctpCollector>
         <name>Listening port 4739</name>
         <localPort>4739</localPort>
         <localIPAddress>192.0.2.1</localIPAddress>
       </sctpCollector>
       <exportingProcess>File writer</exportingProcess>
     </collectingProcess>
        
     <collectingProcess>
       <name>SCTP collector</name>
       <sctpCollector>
         <name>Listening port 4739</name>
         <localPort>4739</localPort>
         <localIPAddress>192.0.2.1</localIPAddress>
       </sctpCollector>
       <exportingProcess>File writer</exportingProcess>
     </collectingProcess>
        
     <exportingProcess>
       <name>File writer</name>
       <destination>
         <name>Write to /tmp folder</name>
         <fileWriter>
           <file>file://tmp/collected-records.ipfix</file>
         </fileWriter>
       </destination>
     </exportingProcess>
        
     <exportingProcess>
       <name>File writer</name>
       <destination>
         <name>Write to /tmp folder</name>
         <fileWriter>
           <file>file://tmp/collected-records.ipfix</file>
         </fileWriter>
       </destination>
     </exportingProcess>
        
   </ipfix>
        
   </ipfix>
        
7.5. Deviations
7.5. 偏差

Assume that a Monitoring Device has only two interfaces ifIndex=1 and ifIndex=2, which can be configured as Observation Points. The Observation Point ID is always identical to the ifIndex.

假设监控设备只有两个接口ifIndex=1和ifIndex=2,可以配置为观测点。观察点ID始终与ifIndex相同。

The following YANG module specifies these deviations.

以下模块规定了这些偏差。

module my-ipfix-psamp-deviation {
  namespace "urn:my-company:xml:ns:ietf-ipfix-psamp";
  prefix my;
        
module my-ipfix-psamp-deviation {
  namespace "urn:my-company:xml:ns:ietf-ipfix-psamp";
  prefix my;
        
  import ietf-ipfix-psamp { prefix ipfix; }
        
  import ietf-ipfix-psamp { prefix ipfix; }
        
  deviation /ipfix:ipfix/ipfix:observationPoint/ipfix:entPhysicalIndex {
    deviate not-supported;
  }
  deviation /ipfix:ipfix/ipfix:observationPoint/ipfix:entPhysicalName {
    deviate not-supported;
  }
  deviation /ipfix:ipfix/ipfix:observationPoint/ipfix:ifName {
    deviate not-supported;
  }
  deviation /ipfix:ipfix/ipfix:observationPoint {
    deviate add {
      must "ipfix:ifIndex=1 or ipfix:ifIndex=2";
    }
  }
  deviation
      /ipfix:ipfix/ipfix:observationPoint/ipfix:observationPointId {
    deviate add {
      must "current()=../ipfix:ifIndex";
    }
  }
}
        
  deviation /ipfix:ipfix/ipfix:observationPoint/ipfix:entPhysicalIndex {
    deviate not-supported;
  }
  deviation /ipfix:ipfix/ipfix:observationPoint/ipfix:entPhysicalName {
    deviate not-supported;
  }
  deviation /ipfix:ipfix/ipfix:observationPoint/ipfix:ifName {
    deviate not-supported;
  }
  deviation /ipfix:ipfix/ipfix:observationPoint {
    deviate add {
      must "ipfix:ifIndex=1 or ipfix:ifIndex=2";
    }
  }
  deviation
      /ipfix:ipfix/ipfix:observationPoint/ipfix:observationPointId {
    deviate add {
      must "current()=../ipfix:ifIndex";
    }
  }
}
        
8. Security Considerations
8. 安全考虑

The YANG module defined in this memo is designed to be accessed via the NETCONF protocol [RFC6241]. The lowest NETCONF layer is the secure transport layer and the mandatory-to-implement secure transport is SSH [RFC6242].

本备忘录中定义的模块旨在通过NETCONF协议[RFC6241]访问。最低的NETCONF层是安全传输层,实现安全传输的必需层是SSH[RFC6242]。

There are a number of data nodes defined in this YANG module which are writable/creatable/deletable (i.e., config true, which is the default). These data nodes may be considered sensitive or vulnerable in some network environments. Write operations (e.g., edit-config)

此模块中定义了许多数据节点,这些节点是可写/可创建/可删除的(即config true,这是默认值)。在某些网络环境中,这些数据节点可能被视为敏感或易受攻击。写入操作(例如,编辑配置)

to these data nodes without proper protection can have a negative effect on network operations. These are the subtrees and data nodes and their sensitivity/vulnerability:

对这些数据节点不进行适当的保护可能会对网络运行产生负面影响。这些是子树和数据节点及其敏感性/漏洞:

   /ipfix/observationPoint
      The configuration parameters in this subtree specify where packets
      are observed and by which Selection Processes they will be
      processed.  Write access to this subtree allows observing packets
      at arbitrary interfaces or linecards of the Monitoring Device and
      may thus lead to the export of sensitive traffic information.
   /ipfix/selectionProcess
      The configuration parameters in this subtree specify for which
      packets information will be reported in Packet Reports or Flow
      Records.  Write access to this subtree allows changing the subset
      of packets for which information will be reported and may thus
      lead to the export of sensitive traffic information.
   /ipfix/cache
      The configuration parameters in this subtree specify the fields
      included in Packet Reports or Flow Records.  Write access to this
      subtree allows adding fields which may contain sensitive traffic
      information, such as IP addresses or parts of the packet payload.
   /ipfix/exportingProcess
      The configuration parameters in this subtree specify to which
      Collectors Packet Reports or Flow Records are exported.  Write
      access to this subtree allows exporting potentially sensitive
      traffic information to illegitimate Collectors.  Furthermore, TLS/
      DTLS parameters can be changed, which may affect the mutual
      authentication between Exporters and Collectors as well as the
      encrypted transport of the data.
   /ipfix/collectingProcess
      The configuration parameters in this subtree may specify that
      collected Packet Reports and Flow Records are reexported to
      another Collector or written to a file.  Write access to this
      subtree potentially allows reexporting or storing the sensitive
      traffic information.
        
   /ipfix/observationPoint
      The configuration parameters in this subtree specify where packets
      are observed and by which Selection Processes they will be
      processed.  Write access to this subtree allows observing packets
      at arbitrary interfaces or linecards of the Monitoring Device and
      may thus lead to the export of sensitive traffic information.
   /ipfix/selectionProcess
      The configuration parameters in this subtree specify for which
      packets information will be reported in Packet Reports or Flow
      Records.  Write access to this subtree allows changing the subset
      of packets for which information will be reported and may thus
      lead to the export of sensitive traffic information.
   /ipfix/cache
      The configuration parameters in this subtree specify the fields
      included in Packet Reports or Flow Records.  Write access to this
      subtree allows adding fields which may contain sensitive traffic
      information, such as IP addresses or parts of the packet payload.
   /ipfix/exportingProcess
      The configuration parameters in this subtree specify to which
      Collectors Packet Reports or Flow Records are exported.  Write
      access to this subtree allows exporting potentially sensitive
      traffic information to illegitimate Collectors.  Furthermore, TLS/
      DTLS parameters can be changed, which may affect the mutual
      authentication between Exporters and Collectors as well as the
      encrypted transport of the data.
   /ipfix/collectingProcess
      The configuration parameters in this subtree may specify that
      collected Packet Reports and Flow Records are reexported to
      another Collector or written to a file.  Write access to this
      subtree potentially allows reexporting or storing the sensitive
      traffic information.
        

Some of the readable data nodes in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to these data nodes. These are the subtrees and data nodes and their sensitivity/vulnerability:

在某些网络环境中,此模块中的某些可读数据节点可能被视为敏感或易受攻击。因此,控制对这些数据节点的读取访问(例如,通过get、get config或通知)非常重要。这些是子树和数据节点及其敏感性/漏洞:

/ipfix/observationPoint Parameters in this subtree may be sensitive because they reveal information about the Monitoring Device itself and the network infrastructure.

/此子树中的ipfix/observationPoint参数可能很敏感,因为它们揭示了有关监控设备本身和网络基础设施的信息。

   /ipfix/selectionProcess
      Parameters in this subtree may be sensitive because they reveal
      information about the Monitoring Device itself and the observed
      traffic.  For example, the counters packetsObserved and
      packetsDropped inferring the number of observed packets.
   /ipfix/cache
      Parameters in this subtree may be sensitive because they reveal
      information about the Monitoring Device itself and the observed
      traffic.  For example, the counters activeFlows and dataRecords
      allow inferring the number of measured Flows or packets.
   /ipfix/exportingProcess
      Parameters in this subtree may be sensitive because they reveal
      information about the network infrastructure and the outgoing
      IPFIX Transport Sessions.  For example, it discloses the IP
      addresses of Collectors as well as the deployed TLS/DTLS
      configuration, which may facilitate the interception of outgoing
      IPFIX Messages.
   /ipfix/collectingProcess
      Parameters in this subtree may be sensitive because they reveal
      information about the network infrastructure and the incoming
      IPFIX Transport Sessions.  For example, it discloses the IP
      addresses of Exporters as well as the deployed TLS/DTLS
      configuration, which may facilitate the interception of incoming
      IPFIX Messages.
        
   /ipfix/selectionProcess
      Parameters in this subtree may be sensitive because they reveal
      information about the Monitoring Device itself and the observed
      traffic.  For example, the counters packetsObserved and
      packetsDropped inferring the number of observed packets.
   /ipfix/cache
      Parameters in this subtree may be sensitive because they reveal
      information about the Monitoring Device itself and the observed
      traffic.  For example, the counters activeFlows and dataRecords
      allow inferring the number of measured Flows or packets.
   /ipfix/exportingProcess
      Parameters in this subtree may be sensitive because they reveal
      information about the network infrastructure and the outgoing
      IPFIX Transport Sessions.  For example, it discloses the IP
      addresses of Collectors as well as the deployed TLS/DTLS
      configuration, which may facilitate the interception of outgoing
      IPFIX Messages.
   /ipfix/collectingProcess
      Parameters in this subtree may be sensitive because they reveal
      information about the network infrastructure and the incoming
      IPFIX Transport Sessions.  For example, it discloses the IP
      addresses of Exporters as well as the deployed TLS/DTLS
      configuration, which may facilitate the interception of incoming
      IPFIX Messages.
        
9. IANA Considerations
9. IANA考虑

This document registers a URI in the IETF XML registry [RFC3688]. Following the format in RFC 3688, the following registration is requested.

本文档在IETF XML注册表[RFC3688]中注册URI。按照RFC 3688中的格式,要求进行以下注册。

URI: urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp Registrant Contact: The IPFIX WG of the IETF. XML: N/A, the requested URI is an XML namespace.

URI:urn:ietf:params:xml:ns:yang:ietf ipfix psamp注册人联系人:ietf的ipfix工作组。XML:N/A,请求的URI是一个XML名称空间。

This document registers a YANG module in the YANG Module Names registry [RFC6020].

本文档在YANG模块名称注册表[RFC6020]中注册YANG模块。

      name: ietf-ipfix-psamp
      namespace: urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp
      prefix: ipfix
      reference: RFC 6728
        
      name: ietf-ipfix-psamp
      namespace: urn:ietf:params:xml:ns:yang:ietf-ipfix-psamp
      prefix: ipfix
      reference: RFC 6728
        
10. Acknowledgements
10. 致谢

The authors thank Martin Bjorklund, Andy Bierman, and Ladislav Lhotka for helping specify the configuration data model in YANG, as well as Atsushi Kobayashi, Andrew Johnson, Lothar Braun, and Brian Trammell for their valuable reviews of this document.

作者感谢Martin Bjorklund、Andy Bierman和Ladislav Lhotka帮助指定YANG中的配置数据模型,以及Atsushi Kobayashi、Andrew Johnson、Lothar Braun和Brian Trammell对本文档的宝贵评论。

11. References
11. 工具书类
11.1. Normative References
11.1. 规范性引用文件

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2119]Bradner,S.,“RFC中用于表示需求水平的关键词”,BCP 14,RFC 2119,1997年3月。

[RFC5101] Claise, B., "Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of IP Traffic Flow Information", RFC 5101, January 2008.

[RFC5101]Claise,B.,“用于交换IP流量信息的IP流量信息导出(IPFIX)协议规范”,RFC 5101,2008年1月。

[RFC5102] Quittek, J., Bryant, S., Claise, B., Aitken, P., and J. Meyer, "Information Model for IP Flow Information Export", RFC 5102, January 2008.

[RFC5102]Quitek,J.,Bryant,S.,Claise,B.,Aitken,P.,和J.Meyer,“IP流信息导出的信息模型”,RFC 5102,2008年1月。

[RFC5103] Trammell, B. and E. Boschi, "Bidirectional Flow Export Using IP Flow Information Export (IPFIX)", RFC 5103, January 2008.

[RFC5103]Trammell,B.和E.Boschi,“使用IP流量信息导出(IPFIX)的双向流量导出”,RFC 5103,2008年1月。

[RFC5475] Zseby, T., Molina, M., Duffield, N., Niccolini, S., and F. Raspall, "Sampling and Filtering Techniques for IP Packet Selection", RFC 5475, March 2009.

[RFC5475]Zseby,T.,Molina,M.,Duffield,N.,Niccolini,S.,和F.Raspall,“IP数据包选择的采样和过滤技术”,RFC 5475,2009年3月。

[RFC5476] Claise, B., Johnson, A., and J. Quittek, "Packet Sampling (PSAMP) Protocol Specifications", RFC 5476, March 2009.

[RFC5476]Claise,B.,Johnson,A.,和J.Quittek,“数据包采样(PSAMP)协议规范”,RFC 54762009年3月。

[RFC5477] Dietz, T., Claise, B., Aitken, P., Dressler, F., and G. Carle, "Information Model for Packet Sampling Exports", RFC 5477, March 2009.

[RFC5477]Dietz,T.,Claise,B.,Aitken,P.,Dressler,F.,和G.Carle,“数据包抽样出口的信息模型”,RFC 5477,2009年3月。

[RFC6020] Bjorklund, M., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, October 2010.

[RFC6020]Bjorklund,M.“YANG-网络配置协议(NETCONF)的数据建模语言”,RFC6020,2010年10月。

[RFC6021] Schoenwaelder, J., "Common YANG Data Types", RFC 6021, October 2010.

[RFC6021]Schoenwaeld,J.,“常见的杨氏数据类型”,RFC 602112010年10月。

[UML] Object Management Group, "OMG Unified Modeling Language (OMG UML), Superstructure, V2.2", OMG formal/2009-02-02, February 2009.

[UML]对象管理小组,“OMG统一建模语言(OMG UML),上层建筑,V2.2”,OMG formal/2009-02-022009年2月。

[IANA-IPFIX] IANA, "IP Flow Information Export (IPFIX) Entities", <http://www.iana.org/assignments/ipfix>.

[IANA-IPFIX]IANA,“IP流信息导出(IPFIX)实体”<http://www.iana.org/assignments/ipfix>.

11.2. Informative References
11.2. 资料性引用

[RFC1141] Mallory, T. and A. Kullberg, "Incremental updating of the Internet checksum", RFC 1141, January 1990.

[RFC1141]Mallory,T.和A.Kullberg,“互联网校验和的增量更新”,RFC 114119990年1月。

[RFC2863] McCloghrie, K. and F. Kastenholz, "The Interfaces Group MIB", RFC 2863, June 2000.

[RFC2863]McCloghrie,K.和F.Kastenholz,“接口组MIB”,RFC 28632000年6月。

[RFC3280] Housley, R., Polk, W., Ford, W., and D. Solo, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 3280, April 2002.

[RFC3280]Housley,R.,Polk,W.,Ford,W.,和D.Solo,“互联网X.509公钥基础设施证书和证书撤销列表(CRL)概要”,RFC 32802002年4月。

[RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, May 2008.

[RFC5280]Cooper,D.,Santesson,S.,Farrell,S.,Boeyen,S.,Housley,R.,和W.Polk,“Internet X.509公钥基础设施证书和证书撤销列表(CRL)配置文件”,RFC 52802008年5月。

[RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, January 2004.

[RFC3688]Mealling,M.“IETF XML注册表”,BCP 81,RFC 3688,2004年1月。

[RFC3758] Stewart, R., Ramalho, M., Xie, Q., Tuexen, M., and P. Conrad, "Stream Control Transmission Protocol (SCTP) Partial Reliability Extension", RFC 3758, May 2004.

[RFC3758]Stewart,R.,Ramalho,M.,Xie,Q.,Tuexen,M.,和P.Conrad,“流控制传输协议(SCTP)部分可靠性扩展”,RFC 3758,2004年5月。

[RFC3871] Jones, G., "Operational Security Requirements for Large Internet Service Provider (ISP) IP Network Infrastructure", RFC 3871, September 2004.

[RFC3871]Jones,G.“大型互联网服务提供商(ISP)IP网络基础设施的运营安全要求”,RFC 3871,2004年9月。

[RFC3917] Quittek, J., Zseby, T., Claise, B., and S. Zander, "Requirements for IP Flow Information Export (IPFIX)", RFC 3917, October 2004.

[RFC3917]Quitek,J.,Zseby,T.,Claise,B.,和S.Zander,“IP流信息导出(IPFIX)的要求”,RFC 39172004年10月。

[RFC4133] Bierman, A. and K. McCloghrie, "Entity MIB (Version 3)", RFC 4133, August 2005.

[RFC4133]Bierman,A.和K.McCloghrie,“实体MIB(版本3)”,RFC 41332005年8月。

[RFC6347] Rescorla, E. and N. Modadugu, "Datagram Transport Layer Security Version 1.2", RFC 6347, January 2012.

[RFC6347]Rescorla,E.和N.Modadugu,“数据报传输层安全版本1.2”,RFC 6347,2012年1月。

[RFC6241] Enns, R., Bjorklund, M., Schoenwaelder, J., and A. Bierman, "Network Configuration Protocol (NETCONF)", RFC 6241, June 2011.

[RFC6241]Enns,R.,Bjorklund,M.,Schoenwaeld,J.,和A.Bierman,“网络配置协议(NETCONF)”,RFC 62412011年6月。

[RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure Shell (SSH)", RFC 6242, June 2011.

[RFC6242]Wasserman,M.“在安全Shell(SSH)上使用NETCONF协议”,RFC6242,2011年6月。

[RFC4960] Stewart, R., "Stream Control Transmission Protocol", RFC 4960, September 2007.

[RFC4960]Stewart,R.,“流控制传输协议”,RFC 49602007年9月。

[RFC5246] Dierks, T. and E. Rescorla, "The Transport Layer Security (TLS) Protocol Version 1.2", RFC 5246, August 2008.

[RFC5246]Dierks,T.和E.Rescorla,“传输层安全(TLS)协议版本1.2”,RFC 5246,2008年8月。

[RFC5470] Sadasivan, G., Brownlee, N., Claise, B., and J. Quittek, "Architecture for IP Flow Information Export", RFC 5470, March 2009.

[RFC5470]Sadasivan,G.,Brownlee,N.,Claise,B.,和J.Quitek,“IP流信息导出架构”,RFC 54702009年3月。

[RFC5472] Zseby, T., Boschi, E., Brownlee, N., and B. Claise, "IP Flow Information Export (IPFIX) Applicability", RFC 5472, March 2009.

[RFC5472]Zseby,T.,Boschi,E.,Brownlee,N.,和B.Claise,“IP流信息导出(IPFIX)适用性”,RFC 54722009年3月。

[RFC5473] Boschi, E., Mark, L., and B. Claise, "Reducing Redundancy in IP Flow Information Export (IPFIX) and Packet Sampling (PSAMP) Reports", RFC 5473, March 2009.

[RFC5473]Boschi,E.,Mark,L.,和B.Claise,“减少IP流信息导出(IPFIX)和数据包采样(PSAMP)报告中的冗余”,RFC 5473,2009年3月。

[RFC5474] Duffield, N., Chiou, D., Claise, B., Greenberg, A., Grossglauser, M., and J. Rexford, "A Framework for Packet Selection and Reporting", RFC 5474, March 2009.

[RFC5474]N.Duffield、Chiou、D.Claise、B.Greenberg、A.Grossglauser、M.和J.Rexford,“数据包选择和报告框架”,RFC 54742009年3月。

[RFC5610] Boschi, E., Trammell, B., Mark, L., and T. Zseby, "Exporting Type Information for IP Flow Information Export (IPFIX) Information Elements", RFC 5610, July 2009.

[RFC5610]Boschi,E.,Trammell,B.,Mark,L.,和T.Zseby,“为IP流信息导出(IPFIX)信息元素导出类型信息”,RFC 56102009年7月。

[RFC5655] Trammell, B., Boschi, E., Mark, L., Zseby, T., and A. Wagner, "Specification of the IP Flow Information Export (IPFIX) File Format", RFC 5655, October 2009.

[RFC5655]Trammell,B.,Boschi,E.,Mark,L.,Zseby,T.,和A.Wagner,“IP流信息导出(IPFIX)文件格式规范”,RFC 56552009年10月。

[RFC6110] Lhotka, L., "Mapping YANG to Document Schema Definition Languages and Validating NETCONF Content", RFC 6110, February 2011.

[RFC6110]Lhotka,L.“将YANG映射到文档模式定义语言并验证NETCONF内容”,RFC61102011年2月。

[RFC6526] Claise, B., Aitken, P., Johnson, A., and G. Muenz, "IP Flow Information Export (IPFIX) Per Stream Control Transmission Protocol (SCTP) Stream", RFC 6526, March 2012.

[RFC6526]Claise,B.,Aitken,P.,Johnson,A.,和G.Muenz,“每个流控制传输协议(SCTP)流的IP流信息导出(IPFIX)”,RFC 6526,2012年3月。

[RFC6615] Dietz, T., Kobayashi, A., Claise, B., and G. Muenz, "Definitions of Managed Objects for IP Flow Information Export", RFC 6615, June 2012.

[RFC6615]Dietz,T.,Kobayashi,A.,Claise,B.,和G.Muenz,“IP流信息导出的托管对象定义”,RFC 66152012年6月。

[W3C.REC-xml-20081126] Sperberg-McQueen, C., Yergeau, F., Bray, T., Paoli, J., and E. Maler, "Extensible Markup Language (XML) 1.0 (Fifth Edition)", World Wide Web Consortium Recommendation REC-xml-20081126, November 2008, <http://www.w3.org/TR/2008/REC-xml-20081126>.

[W3C.REC-xml-20081126]Sperberg McQueen,C.,Yergeau,F.,Bray,T.,Paoli,J.,和E.Maler,“可扩展标记语言(xml)1.0(第五版)”,万维网联盟建议REC-xml-20081126,2008年11月<http://www.w3.org/TR/2008/REC-xml-20081126>.

[W3C.REC-xmlschema-0-20041028] Walmsley, P. and D. Fallside, "XML Schema Part 0: Primer Second Edition", World Wide Web Consortium Recommendation REC-xmlschema-0-20041028, October 2004, <http://www.w3.org/TR/2004/REC-xmlschema-0-20041028>.

[W3C.REC-xmlschema-0-20041028]Walmsley,P.和D.Fallside,“XML模式第0部分:入门第二版”,万维网联盟建议REC-xmlschema-0-20041028,2004年10月<http://www.w3.org/TR/2004/REC-xmlschema-0-20041028>.

[RFC6727] Dietz, T., Claise, B., and J. Quittek, "Definitions of Managed Objects for Packet Sampling", RFC 6727, October 2012.

[RFC6727]Dietz,T.,Claise,B.,和J.Quittek,“用于数据包采样的托管对象的定义”,RFC 6727,2012年10月。

[YANG-WEB] Bjoerklund, M., "YANG WebHome", March 2011, <http://www.yang-central.org/>.

[YANG-WEB]Bjoerklund,M.,“YANG WebHome”,2011年3月<http://www.yang-central.org/>.

[IANA-ENTERPRISE-NUMBERS] IANA, "Private Enterprise Numbers", <http://www.iana.org/assignments/enterprise-numbers>.

[IANA-ENTERPRISE-Number]IANA,“私营企业编号”<http://www.iana.org/assignments/enterprise-numbers>.

Authors' Addresses

作者地址

Gerhard Muenz Technische Universitaet Muenchen Department of Informatics Chair for Network Architectures and Services (I8) Boltzmannstr. 3 85748 Garching Germany

Gerhard Muenz Technische Muenchen大学信息学系网络架构和服务(I8)主席Boltzmannstr。385748加兴德国

   EMail: muenz@net.in.tum.de
   URI:   http://www.net.in.tum.de/~muenz
        
   EMail: muenz@net.in.tum.de
   URI:   http://www.net.in.tum.de/~muenz
        

Benoit Claise Cisco Systems, Inc. De Kleetlaan 6a b1 1831 Diegem Belgium

Benoit Claise Cisco Systems,Inc.De Kleetlaan 6a b1 1831 Diegem比利时

   Phone: +32 2 704 5622
   EMail: bclaise@cisco.com
        
   Phone: +32 2 704 5622
   EMail: bclaise@cisco.com
        

Paul Aitken Cisco Systems, Inc. 96 Commercial Quay Commercial Street Edinburgh EH6 6LX United Kingdom

Paul Aitken Cisco Systems,Inc.英国爱丁堡商业街96号商业码头EH6 6LX

   Phone: +44 131 561 3616
   EMail: paitken@cisco.com
        
   Phone: +44 131 561 3616
   EMail: paitken@cisco.com