Network Working Group B. Claise, Ed. Request for Comments: 3954 Cisco Systems Category: Informational October 2004 Cisco Systems NetFlow Services Export Version 9 Status of this Memo This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited. このメモは、インターネットコミュニティに情報を提供するためのものです。それは、どのようなインターネット標準も規定しません。このメモの再配布は、自由です。 Copyright Notice 著作権表示 Copyright (C) The Internet Society (2004). IESG Note IESGの注意 This RFC documents the NetFlow services export protocol Version 9 as it was when submitted to the IETF as a basis for further work in the IPFIX WG. このRFC NetFlowサービスエクスポートプロトコルVer9は、IPFIXワークグループの作業結果としてIETFに投稿されました。 This RFC itself is not a candidate for any level of Internet Standard. The IETF disclaims any knowledge of the fitness of this RFC for any purpose, and in particular notes that it has not had complete IETF review for such things as security, congestion control, or inappropriate interaction with deployed protocols. The RFC Editor has chosen to publish this document at its discretion. このRFC自身は、どのレベルのインターネット標準になり得ないものです。IEFTは、どのような目的にこのRFCが適合するかという知識を否認します。特に、IEFTは、次のような、セキュリティ関連、輻輳関連、開発されたプロトコル間の不適切な相互動作に関する問題についてレビューを完了していません。RFC編集者は、自由裁量で、このドキュメントの公開を選択しました。 Abstract 概要 This document specifies the data export format for version 9 of Cisco Systems' NetFlow services, for use by implementations on the network elements and/or matching collector programs. The version 9 export format uses templates to provide access to observations of IP packet flows in a flexible and extensible manner. A template defines a collection of fields, with corresponding descriptions of structure and semantics. このドキュメントは、ネットワーク機器やコレクターソフトウェアへの実装のために、CiscoのNetFlowサービスのデータエクスポート形式Ver.9の仕様を定義するものです。Ver.9のエクスポート形式は、柔軟かつ拡張性のある方法で、IPパケットのモニタ情報にアクセス可能にするためテンプレートを使用します。テンプレートは、構造と文法の説明に関連したフィールドの集合を定義します。 Table of Contents 目次 1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1. Terminology Summary Table . . . . . . . . . . . . . . . 6 3. NetFlow High-Level Picture on the Exporter. . . . . . . . . . 6 3.1. The NetFlow Process on the Exporter . . . . . . . . . . 6 3.2. Flow Expiration . . . . . . . . . . . . . . . . . . . . 7 Claise Informational [Page 1] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 3.3. Transport Protocol. . . . . . . . . . . . . . . . . . . 7 4. Packet Layout . . . . . . . . . . . . . . . . . . . . . . . . 8 5. Export Packet Format. . . . . . . . . . . . . . . . . . . . . 9 5.1. Header Format . . . . . . . . . . . . . . . . . . . . . 9 5.2. Template FlowSet Format . . . . . . . . . . . . . . . . 11 5.3. Data FlowSet Format . . . . . . . . . . . . . . . . . . 13 6. Options . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.1. Options Template FlowSet Format . . . . . . . . . . . . 14 6.2. Options Data Record Format. . . . . . . . . . . . . . . 16 7. Template Management . . . . . . . . . . . . . . . . . . . . . 17 8. Field Type Definitions. . . . . . . . . . . . . . . . . . . . 18 9. The Collector Side. . . . . . . . . . . . . . . . . . . . . . 25 10. Security Considerations . . . . . . . . . . . . . . . . . . . 26 10.1. Disclosure of Flow Information Data . . . . . . . . . . 26 10.2. Forgery of Flow Records or Template Records . . . . . . 26 10.3. Attacks on the NetFlow Collector. . . . . . . . . . . . 27 11. Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . 27 11.1. Packet Header Example . . . . . . . . . . . . . . . . . 28 11.2. Template FlowSet Example. . . . . . . . . . . . . . . . 28 11.3. Data FlowSet Example. . . . . . . . . . . . . . . . . . 29 11.4. Options Template FlowSet Example. . . . . . . . . . . . 30 11.5. Data FlowSet with Options Data Records Example. . . . . 30 12. References. . . . . . . . . . . . . . . . . . . . . . . . . . 31 12.1. Normative References. . . . . . . . . . . . . . . . . . 31 12.2. Informative References. . . . . . . . . . . . . . . . . 31 13. Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 14. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 31 15. Authors' Addresses. . . . . . . . . . . . . . . . . . . . . . 32 16. Full Copyright Statement. . . . . . . . . . . . . . . . . . . 33 1. Introduction 概要 Cisco Systems' NetFlow services provide network administrators with access to IP flow information from their data networks. Network elements (routers and switches) gather flow data and export it to collectors. The collected data provides fine-grained metering for highly flexible and detailed resource usage accounting. Ciscoシステム社のNetFlowサービスは、データネットワークのIPフロー情報をモニタするためのネットワーク管理機能を提供します。ネットワーク機器(ルータ、スイッチ)は、フローデータを収集し、コレクターに送信っします。収集したデータは、非常に柔軟で、詳細なリソースの使用状況に関する信頼性の高い計測値を提供します。 A flow is defined as a unidirectional sequence of packets with some common properties that pass through a network device. These collected flows are exported to an external device, the NetFlow collector. Network flows are highly granular; for example, flow records include details such as IP addresses, packet and byte counts, timestamps, Type of Service (ToS), application ports, input and output interfaces, etc. フローは、ネットワーク機器を通過する場合の共通のプロパティをもった単一方向のパケットのシーケンスとして定義できます。これらの収集されたフローは、NetFlowコレクターと呼ばれる外部デバイスに送信されます。ネットワークフローは、非常に粒状です。例えば、フローレコードには、IPアドレス、パケット/バイトカウント、タイムスタンプ、サービスタイプ(TOS)、アプリケーションポート、入出力インターフェイスなどの詳細情報を含んでいます。 Exported NetFlow data is used for a variety of purposes, including enterprise accounting and departmental chargebacks, ISP billing, data Claise Informational [Page 2] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 warehousing, network monitoring, capacity planning, application monitoring and profiling, user monitoring and profiling, security analysis, and data mining for marketing purposes. エクスポートされた、NetFlowデータは、さまざまな、目的に使用されます。企業レベルでの課金、部門単位の課金、ISPの課金、データウェアハウス、ネットワークモニタ、ネットワーク容量計画、アプリケーションモニタとプロファイリング、ユーザモニタとプロファイリング、セキュリティ解析、市場調査のためのデータマイニングなどです。 This document specifies NetFlow version 9. It describes the implementation specifications both from network element and NetFlow collector points of view. These specifications should help the deployment of NetFlow version 9 across different platforms and different vendors by limiting the interoperability risks. The NetFlow export format version 9 uses templates to provide access to observations of IP packet flows in a flexible and extensible manner. このドキュメントは、NetFlow Ver.9の仕様を示します。これは、実装仕様を、ネットワーク機器、コレクターの両方の視点で解説します。これらの仕様は、違ったプラットフォーム、違ったベンダーのNetFlow Ver.9機器の配置において、相互接続性のリスクを最小限にするために役立つでしょう。NetFlow Ver.9エクスポート形式は、柔軟で、拡張性をもった方法により、IPパケットフローのモニターを提供するため、テンプレートを使用します。 A template defines a collection of fields, with corresponding descriptions of structure and semantics. テンプレートは、構造と構文の説明に関連したフィールドの集合として定義されます。 The template-based approach provides the following advantages: テンプレートベースは、次の優位性を持っています。 - New fields can be added to NetFlow flow records without changing the structure of the export record format. With previous NetFlow versions, adding a new field in the flow record implied a new version of the export protocol format and a new version of the NetFlow collector that supported the parsing of the new export protocol format. -エクスポートフォーマットの構造を変更することなしに、NetFlowのフローレコードに新しいフィールドを追加できます。以前のNetFlowのバージョンでは、フローレコードに新しいフィールドを追加する場合、新しいバージョンのエクスポートプロトコル形式とそのプロトコルをサポートした新しいバージョンのNetFlowコレクターが必要でした。 - Templates that are sent to the NetFlow collector contain the structural information about the exported flow record fields; therefore, if the NetFlow collector does not understand the semantics of new fields, it can still interpret the flow record. -テンプレートは、フローレコードのフィールドの構造情報を含んだもので、NetFlowコレクターに送信されます。それで、NetFlowコレクターが新しいフィールドの構文を理解できない場合でも、フローレコードの翻訳が可能です。 - Because the template mechanism is flexible, it allows the export of only the required fields from the flows to the NetFlow collector. This helps to reduce the exported flow data volume and provides possible memory savings for the exporter and NetFlow collector. Sending only the required information can also reduce network load. -テンプレートメカニズムが柔軟性であるため、NetFlowコレクターに必要なフィールドのみ送信できます。これは、送信されるフローデータのサイズを縮小することに役に立ちます。また、送信側とNetFlowコレクタのメモリの節約が可能になります。更に、ネットワーク負荷の削減にも役立ちます。 The IETF IPFIX Working Group (IP Flow Information eXport) is developing a new protocol, based on the version 9 of Cisco Systems' NetFlow services. Some enhancements in different domains (congestion aware transport protocol, built-in security, etc... ) have been incorporated in this new IPFIX protocol. Refer to the IPFIX Working Group documents for more details. IEFT IPFIXワーキンググループ(IPフロー情報エキスパート)は、Ciscoシステム社のNetFlowサービス Ver.9をベースに新しいプロトコルを開発しています。違った分野(トランスポートプロトコルの輻輳、内蔵セキュリティなど)のさまざまな拡張は、新しいIPFIXプロトコルに統合されます。IPFIXワークグループのドキュメントを参照ください。 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 BCP 14, RFC 2119 [RFC2119]. このドキュメントの"MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT","SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", "OPTIONAL"などのキーワードは、 BCP 14, RFC 2119で説明されています。 Claise Informational [Page 3] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 2. Terminology 用語説明 Various terms used in this document are described in this section. Note that the terminology summary table in Section 2.1 gives a quick overview of the relationships between some of the different terms defined. このドキュメントで使用されるさまざなまな用語を、このセクションで、解説します。注意、セクション2.1の用語概要表は、定義された違った用語間の関連性の概要を示しています。 Observation Point 観測ポイント An Observation Point is a location in the network where IP packets can be observed; for example, one or a set of interfaces on a network device like a router. Every Observation Point is associated with an Observation Domain. 観測ポイントは、IPパケットが観測されるネットワーク上の場所です。例えば、ルータのようなネットワーク機器では、一つまたは複数のインターフェイスです。各観測ポイントは、観測ドメインに含まれます。 Observation Domain 観測ドメイン The set of Observation Points that is the largest aggregatable set of flow information at the network device with NetFlow services enabled is termed an Observation Domain. For example, a router line card composed of several interfaces with each interface being an Observation Point. NetFlowサービスが有効なネットワーク機器のフロー情報を最大限集約可能な観測ポイントの集合を観測ドメインと定義します。例えば、各インターフェイスが観測ポイントである複数のインターフェイスを統合したルータのラインカード。 IP Flow or Flow IPフロー又は、フロー An IP Flow, also called a Flow, is defined as a set of IP packets passing an Observation Point in the network during a certain time interval. All packets that belong to a particular Flow have a set of common properties derived from the data contained in the packet and from the packet treatment at the Observation Point. IPフロー(又は、フロー)は、ある時間間隔の間に、ネットワーク上の観測ポイントを通過するIPパケットの集合として定義されます。特定のフローに属する全てのパケットは、パケットに含まれるデータと観測ポイントでのパケットの取り扱いから得られる共通のプロパティを持っています。 Flow Record フローレコード A Flow Record provides information about an IP Flow observed at an Observation Point. In this document, the Flow Data Records are also referred to as NetFlow services data and NetFlow data. フローレコードは、観測ポイントで観測したIPフローに関する情報を提供します。このドキュメントで、フローデータレコードもまた、NetFlowサービスデータとNetFlowデータとして定義されます。 Exporter エクスポーター A device (for example, a router) with the NetFlow services enabled, the Exporter monitors packets entering an Observation Point and creates Flows from these packets. The information from these Flows is exported in the form of Flow Records to the NetFlow Collector. NetFlowサービスが有効な機器(例えば、ルータ)、エクスポーターは、観測ポイントに入力されるパケットをモニタします。そいて、これらのパケットからフローを生成します。これらのフローから作成した情報は、NetFlowコレクターにフローレコードの形式で送信されます。 NetFlow Collector NetFlowコレクタ The NetFlow Collector receives Flow Records from one or more Exporters. It processes the received Export Packet(s); that is, it parses and stores the Flow Record information. Flow Records can be optionally aggregated before being stored on the hard disk. The NetFlow Collector is also referred to as the Collector in this document. NetFlowコレクタは、1つ以上のエクスポーターからフローレコードを受信します。それは、受信したエクスポートパケットを処理します。その処理は、フローレコード情報の解析と記録です。フローレコードは、ハードディスクに保存する前に、オプションとして、集約することが可能です。このドキュメントでは、NetFlowコレクタは、コレクタとも呼びます。 Claise Informational [Page 4] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Export Packet エクスポートパケット An Export Packet is a packet originating at the Exporter that carries the Flow Records of this Exporter and whose destination is the NetFlow Collector. エクスポートパケットは、エクスポーターのフローレコードを運ぶため、エクスポーターから送信されるパケットです。そして、そのあて先は、NetFlowコレクタです。 Packet Header パケットヘッダ The Packet Header is the first part of an Export Packet. The Packet Header provides basic information about the packet such as the NetFlow version, number of records contained within the packet, and sequence numbering. パケットヘッダは、エクスポートパケットの最初の部分です。パケットヘッダは、基本的な情報を提供します。NetFlowのバージョン、このパケットに含まれるレコードの数、シーケンス番号です。 Template Record テンプレートレコード A Template Record defines the structure and interpretation of fields in a Flow Data Record. テンプレートレコードは、フローデータレコードのフィールドの構造とデータ形式を定義しています。 Flow Data Record フローレコード A Flow Data Record is a data record that contains values of the Flow parameters corresponding to a Template Record. フローデータレコードは、テンプレートレコードに関連したフローパラメータの値を含んだデータレコードです。 Options Template Record オプションテンプレートレコード An Options Template Record defines the structure and interpretation of fields in an Options Data Record, including defining the scope within which the Options Data Record is relevant. オプションテンプレートレコードは、オプションデータレコードのフィールドの構造とデータ形式を定義したものです。オプションデータレコードに関連したスコープの定義を含んでいます。 Options Data Record オプションデータレコード The data record that contains values and scope information of the Flow measurement parameters, corresponding to an Options Template Record. オプションテンプレートレコードに関連した、フロー計測パラメータの値とスコープを含んだデータレコードです。 FlowSet フローセット FlowSet is a generic term for a collection of Flow Records that have a similar structure. In an Export Packet, one or more FlowSets follow the Packet Header. There are three different types of FlowSets: Template FlowSet, Options Template FlowSet, and Data FlowSet. フローセットは、同じ構造を持つフローレコードの集合を示す用語です。エクスポートパケットにおいて、パケットヘッダに続いて、1つ以上のフローセットがあります。3つの違ったフローセットがあります。テンプレートフローセット、オプションテンプレートフローセット、データセット Template FlowSet テンプレートフローセット A Template FlowSet is one or more Template Records that have been grouped together in an Export Packet. テンプレートフローセットは、エクスポートパケットでグループ化された1つ以上のフローレコードです。 Options Template FlowSet オプションテンプレートフローセット An Options Template FlowSet is one or more Options Template Records that have been grouped together in an Export Packet. オプションテンプレートフローセットは、エクスポートパケットでグループ化された1つ以上のオプションテンプレートレコードです。 Claise Informational [Page 5] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Data FlowSet データフローセット A Data FlowSet is one or more records, of the same type, that are grouped together in an Export Packet. Each record is either a Flow Data Record or an Options Data Record previously defined by a Template Record or an Options Template Record. データフローセットは、エクスポートパケットでグループ化された同じ種類の1つ以上のレコードです。各レコードは、前に、テンプレートレコード又は、オプションテンプレートレコードで定義された、フローデータレコードか、オプションデータレコードです。 2.1. Terminology Summary Table 用語概要表 +------------------+---------------------------------------------+ | | Contents | | +--------------------+------------------------+ | FlowSet | Template Record | Data Record | +------------------+--------------------+------------------------+ | | | Flow Data Record(s) | | Data FlowSet | / | or | | | | Options Data Record(s) | +------------------+--------------------+------------------------+ | Template FlowSet | Template Record(s) | / | +------------------+--------------------+------------------------+ | Options Template | Options Template | / | | FlowSet | Record(s) | | +------------------+--------------------+------------------------+ A Data FlowSet is composed of an Options Data Record(s) or Flow Data Record(s). No Template Record is included. A Template Record defines the Flow Data Record, and an Options Template Record defines the Options Data Record. データフローセットは、オプションデータレコードと、フローデータレコードの集合です。テンプレートレコードを含んでいません。テンプレートレコードは、フローデータレコードを定義します。オプションテンプレートレコードは、オプションデータレコードを定義します。 A Template FlowSet is composed of Template Record(s). No Flow or Options Data Record is included. テンプレートフローセットは、テンプレートレコードの集合です。フローまたは、オプションデータレコードを含んでいません。 An Options Template FlowSet is composed of Options Template Record(s). No Flow or Options Data Record is included. オプションテンプレートフローセットは、オプションテンプレートの集合です。フロー又は、オプションデータレコードを含んでいません。 3. NetFlow High-Level Picture on the Exporter エクスポーター上でのNetFlow上位構造図 3.1. The NetFlow Process on the Exporter エクスポーター上でのNetFlowプロセス The NetFlow process on the Exporter is responsible for the creation of Flows from the observed IP packets. The details of this process are beyond the scope of this document. エクスポーター上でのNetFlowプロセスは、観測したIPパケットからフローを生成することです。このプロセスの詳細は、このドキュメントの範囲外です。 Claise Informational [Page 6] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 3.2. Flow Expiration フローの終了 A Flow is considered to be inactive if no packets belonging to the Flow have been observed at the Observation Point for a given timeout. If any packet is seen within the timeout, the flow is considered an active flow. A Flow can be exported under the following conditions: 与えられた、タイムアウトの間に観測ポイントにおいて、フローに属するパケットが観測されなかった場合、フローは、終了したと考えるべきです。タイムアウトの間に、何らかのパケットが観測された場合、フローは通信中と考えられます。フローは、次の条件で送信することができます。 1. If the Exporter can detect the end of a Flow. For example, if the FIN or RST bit is detected in a TCP [RFC793] connection, the Flow Record is exported. 1.エクスポーターが、フローの終了を検出した場合。例えば、TCP [RFC793]コネクションでFIN又はRSTが検出された場合、フローレコードが送信されます。 2. If the Flow has been inactive for a certain period of time. This inactivity timeout SHOULD be configurable at the Exporter, with a minimum value of 0 for an immediate expiration. 2.フローが、ある時間内、アクティブでない場合、このインアクティブタイムアウトは、エクスポーターに設定されるべきです。 3. For long-lasting Flows, the Exporter SHOULD export the Flow Records on a regular basis. This timeout SHOULD be configurable at the Exporter. 3.長い期間終了しないフロー。エクスポーターは、基準に従ってフローレコードを送信すべきです。このタイムアウトは、エクスポーターに設定するべきです。 4. If the Exporter experiences internal constraints, a Flow MAY be forced to expire prematurely; for example, counters wrapping or low memory. 4.エクスポーターが内部制約を経験した場合、早めにフローを強制送信できます。例えば、カウンターのオーバーフローやメモリ不足などです。 3.3. Transport Protocol トランスポートプロトコル To achieve efficiency in terms of processing at the Exporter while handling high volumes of Export Packets, the NetFlow Export Packets are encapsulated into UDP [RFC768] datagrams for export to the NetFlow Collector. However, NetFlow version 9 has been designed to be transport protocol independent. Hence, it can also operate over congestion-aware protocols such as SCTP [RFC2960]. 大量のエクスポートパケットを処理するエクスポーターで、処理を効率的に行うために、NetFlowのエクスポートパケットは、UDP [RFC768]にカプセル化され、NetFlowコレクタに送信されます。しかしながら、NetFlow Ver.9では、トランスポートプロトコルに依存しない形で、設計されています。このため、SCTP [RFC2960]などの輻輳検知プロトコルで動作可能です。 Note that the Exporter can export to multiple Collectors, using independent transport protocols. 注意:エクスポーターは、独立したトランスポートプロトコルを使用して、複数のコレクタに送信可能です。 UDP [RFC768] is a non congestion-aware protocol, so when deploying NetFlow version 9 in a congestion-sensitive environment, make the connection between Exporter and NetFlow Collector through a dedicated link. This ensures that any burstiness in the NetFlow traffic affects only this dedicated link. When the NetFlow Collector can not be placed within a one-hop distance from the Exporter or when the export path from the Exporter to the NetFlow Collector can not be exclusively used for the NetFlow Export Packets, the export path should be designed so that it can always sustain the maximum burstiness of NetFlow traffic from the Exporter. Note that the congestion can occur on the Exporter in case the export path speed is too low. UDP [RFC768]は、輻輳を検知しないプロトコルです。ですから、NetFlow Ver.9を輻輳に敏感な環境に配置する場合、エクスポーターとNetFlowコレクタを専用の回線で接続します。これは、NetFlowトラフィックの集中が、この専用回線にのみ影響することを保証します。NetFlowコレクタをエクスポーターから1ホップ以内に配置できない場合、又は、エクスポーターからNetFlowコレクタまでの回線をNetFlowエクスポートパケットで占有できない場合、常にエクスポート回線は、エクスポーターからの最大のNetFlowトラフィックを転送できなければなりません。注意、エクスポート回線が非常に低速な場合、エクスポーターで輻輳が発生します。 Claise Informational [Page 7] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 4. Packet Layout パケット配置 An Export Packet consists of a Packet Header followed by one or more FlowSets. The FlowSets can be any of the possible three types: Template, Data, or Options Template. エクスポートパケットには、パケットヘッダと、それに続く1つ以上のフローセットがあります。フローセットには、次の3つの種類があります。テンプレート、データ、オプションテンプレート +--------+-------------------------------------------+ | | +----------+ +---------+ +----------+ | | Packet | | Template | | Data | | Options | | | Header | | FlowSet | | FlowSet | | Template | ... | | | | | | | | FlowSet | | | | +----------+ +---------+ +----------+ | +--------+-------------------------------------------+ Export Packet A FlowSet ID is used to distinguish the different types of FlowSets. FlowSet IDs lower than 256 are reserved for special FlowSets, such as the Template FlowSet (ID 0) and the Options Template FlowSet (ID 1). The Data FlowSets have a FlowSet ID greater than 255. フローセットIDは、異なるタイプのフローセットを分離するために使用されます。256未満のフローセットIDは、特別なフローセットのために予約されています。例えば、テンプレートフローセット(ID=0)、オプションテンプレートフローセット(ID=1)です。データフローセットは、256以上のフローセットIDを持ちます。 The format of the Template, Data, and Options Template FlowSets will be discussed later in this document. The Exporter MUST code all binary integers of the Packet Header and the different FlowSets in network byte order (also known as the big-endian byte ordering). テンプレート、データ、オプションテンプレート、フローセットのフォーマットは、このドキュメントの後半で解説します。エクスポーターは、パケットヘッダ、異なるフローセットの全てのバイナリー整数をネットワークバイト順(ビッグエンディアンと呼ばれる)で符号化しなければなりません。 Following are some examples of export packets: 次に、いくつかのエクスポートパケットの例を示します。 1. An Export Packet consisting of interleaved Template, Data, and Options Template FlowSets. Example: a newly created Template is exported as soon as possible. So if there is already an Export Packet with a Data FlowSet that is being prepared for export, the Template and Option FlowSets are also interleaved with this information, subject to availability of space. 1.テンプレート、データ、オプションテンプレートフローセットがインターリーブされて含まれるエクスポートパケット Export Packet: +--------+--------------------------------------------------------+ | | +----------+ +---------+ +-----------+ +---------+ | | Packet | | Template | | Data | | Options | | Data | | | Header | | FlowSet | | FlowSet | ... | Template | | FlowSet | | | | | | | | | FlowSet | | | | | | +----------+ +---------+ +-----------+ +---------+ | +--------+--------------------------------------------------------+ 2. An Export Packet consisting entirely of Data FlowSets. Example: after the appropriate Template Records have been defined and transmitted to the NetFlow Collector device, the majority of Export Packets consists solely of Data FlowSets. 全体にデータフローセットを含むエクスポートパケット。例:適切なテンプレートレコードが定義された、NetFlowコレクタに送信された後、エクスポートパケットの大部分は、データフローセットのみを含みます。 Claise Informational [Page 8] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Export Packet: +--------+----------------------------------------------+ | | +---------+ +---------+ +---------+ | | Packet | | Data | ... | Data | ... | Data | | | Header | | FlowSet | ... | FlowSet | ... | FlowSet | | | | +---------+ +---------+ +---------+ | +--------+----------------------------------------------+ 3. An Export Packet consisting entirely of Template and Options Template FlowSets. Example: the Exporter MAY transmit a packet containing Template and Options Template FlowSets periodically to help ensure that the NetFlow Collector has the correct Template Records and Options Template Records when the corresponding Flow Data records are received. 全体にテンプレートとオプションテンプレートフローセットを含むエクスポートパケット。例:エクスポーターは、NetFlowコレクタが受信したフローデータレコードに対応する テンプレートレコードとオプションテンプレートレコードを収集することを保証するために、定期的に、テンプレートとオプションテンプレートフローセットを含んだパケットを送信することができます。 Export Packet: +--------+-------------------------------------------------+ | | +----------+ +----------+ +----------+ | | Packet | | Template | | Template | | Options | | | Header | | FlowSet | ... | FlowSet | ... | Template | | | | | | | | | FlowSet | | | | +----------+ +----------+ +----------+ | +--------+-------------------------------------------------+ 5. Export Packet Format エクスポートパケットフォーマット 5.1. Header Format ヘッダフォーマット The Packet Header format is specified as: パケットヘッダフォーマットは、次のように定義されています。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Version Number | Count | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | sysUpTime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | UNIX Secs | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Claise Informational [Page 9] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Packet Header Field Descriptions パケットヘッダのフィールドの説明 Version Version of Flow Record format exported in this packet. The value of this field is 9 for the current version. バージョン このパケットで送信されるフローレコード形式のバージョンです。このフィールドの値は、現在 9です。 Count The total number of records in the Export Packet, which is the sum of Options FlowSet records, Template FlowSet records, and Data FlowSet records. カウント エクスポートパケットのレコードの総数、オプションフローセットのレコード、テンプレートフローセットのレコード、データフローセットのレコードの合計です。 sysUpTime Time in milliseconds since this device was first booted. sysUpTime mSec単位のこのデバイスが起動してからの経過時間 UNIX Secs Time in seconds since 0000 UTC 1970, at which the Export Packet leaves the Exporter. UNIX秒 エクスポーターからエクスポートパケットが送信された時点の1970年00:00:00 UTCからの経過秒数 Sequence Number Incremental sequence counter of all Export Packets sent from the current Observation Domain by the Exporter. This value MUST be cumulative, and SHOULD be used by the Collector to identify whether any Export Packets have been missed. シーケンス番号 エクスポーターの現在の観測ドメインから送信された全てのエクスポートパケットのシーケンス番号 Source ID A 32-bit value that identifies the Exporter Observation Domain. NetFlow Collectors SHOULD use the combination of the source IP address and the Source ID field to separate different export streams originating from the same Exporter. ソースID エクスポーターの観測ドメインを識別するための32ビットの値 NetFlowコレクタは、同じエクスポーターからの異なるエクスポートストリームを分類するために、送信元IPアドレスとソースIDを使うべきです。 Claise Informational [Page 10] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 5.2. Template FlowSet Format テンプレートフローセットフォーマット One of the essential elements in the NetFlow format is the Template FlowSet. Templates greatly enhance the flexibility of the Flow Record format because they allow the NetFlow Collector to process Flow Records without necessarily knowing the interpretation of all the data in the Flow Record. The format of the Template FlowSet is as follows: NetFlowフォーマットの重要な要素の1つが、テンプレートフローセットです。テンプレートは、フローレコードフォーマットの柔軟性を大きく拡張します。なぜなら、NetFlowコレクタが、フローレコードのデータの全ての解読方法を知らずに処理できるようにするからです。テンプレートフローセットのフォーマットを以下に示します。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = 0 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Template ID 256 | Field Count | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Type 1 | Field Length 1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Type 2 | Field Length 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Type N | Field Length N | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Template ID 257 | Field Count | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Type 1 | Field Length 1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Type 2 | Field Length 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Type M | Field Length M | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Template ID K | Field Count | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Template FlowSet Field Descriptions テンプレートフローセットのフィールドについて、以下に示します。 FlowSet ID FlowSet ID value of 0 is reserved for the Template FlowSet. フローセットID フローセットIDの0が、テンプレートフローセットのために予約されています。 Claise Informational [Page 11] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Length Total length of this FlowSet. Because an individual Template FlowSet MAY contain multiple Template Records, the Length value MUST be used to determine the position of the next FlowSet record, which could be any type of FlowSet. Length is the sum of the lengths of the FlowSet ID, the Length itself, and all Template Records within this FlowSet. 長さ このフローセットの全体の長さ、なぜなら、各テンプレートフローセットは、複数のテンプレートレコードを含むことが可能です。長さは、次のフローセットレコードの位置を決めるために必須です。そのフローセットがどのような種類であってもです。長さは、フローセットID、長さ自身とこのフローセット内のすべてのテンプレートレコードの合計です。 Template ID Each of the newly generated Template Records is given a unique Template ID. This uniqueness is local to the Observation Domain that generated the Template ID. Template IDs 0-255 are reserved for Template FlowSets, Options FlowSets, and other reserved FlowSets yet to be created. Template IDs of Data FlowSets are numbered from 256 to 65535. テンプレートID 新規に生成されたテンプレートレコード毎の固有のIDです。この固有性は、テンプレートIDを生成する観測ドメイン毎です。テンプレートIDの0ー255は、テンプレートフローセット、オプションフローセット、今後作成される他のフローセットのために予約されています。データフローセットのテンプレートIDは、256〜65535の値を使用します。 Field Count Number of fields in this Template Record. Because a Template FlowSet usually contains multiple Template Records, this field allows the Collector to determine the end of the current Template Record and the start of the next. フィールド数 このテンプレートレコード内のフィールド数、なぜなら、テンプレートフローセットには、複数のテンプレートレコードが含まれるからです。このフィールドは、コレクタが、現在のテンプレートレコードの最後と次の開始を決めるための使用されます。 Field Type A numeric value that represents the type of the field. Refer to the "Field Type Definitions" section. フィールドタイプ フィールドの種類を示す数値です。「フィールドタイプ定義」セクションを参照してください。 Field Length The length of the corresponding Field Type, in bytes. Refer to the "Field Type Definitions" section. フィールド長 フィールドタイプに対応する長さ。バイト単位です。「フィールドタイプ定義」セクションを参照してください。 Claise Informational [Page 12] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 5.3. Data FlowSet Format データフローセットフォーマット The format of the Data FlowSet is as follows: データフローセットのフォーマットを以下に示します。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = Template ID | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 1 - Field Value 1 | Record 1 - Field Value 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 1 - Field Value 3 | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 2 - Field Value 1 | Record 2 - Field Value 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 2 - Field Value 3 | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 3 - Field Value 1 | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Data FlowSet Field Descriptions データフローセットのフィールドを以下に示します。 FlowSet ID = Template ID Each Data FlowSet is associated with a FlowSet ID. The FlowSet ID maps to a (previously generated) Template ID. The Collector MUST use the FlowSet ID to find the corresponding Template Record and decode the Flow Records from the FlowSet. FlowSet ID = Template ID 各データフローセットは、フローセットIDで識別されます。フローセットIDは、(先に作成された)テンプレートIDに対応します。コレクターは、テンプレートレコードに含まれるフローセットIDを検索して使用すべきです。そして、フローセットからフローセットレコードをデコードすべきです。 Length The length of this FlowSet. Length is the sum of the lengths of the FlowSet ID, Length itself, all Flow Records within this FlowSet, and the padding bytes, if any. 長さ  このフローセットの長さです。長さは、フローセットID、長さ自身、このフローセットに含まれるフローレコードとパディングバイトの合計です。 Record N - Field Value M The remainder of the Data FlowSet is a collection of Flow Data Record(s), each containing a set of field values. The Type and Length of the fields have been previously defined in the Template Record referenced by the FlowSet ID or Template ID. レコードNとフィールドM データフローセットの残りの部分は、フローデータレコードです。それぞれは、フィールド値の集合を含んでいます。フィールドの種類と長さは、フローセットID又は、テンプレートIDで示されるテンプレートレコードによって定義されています。 Padding The Exporter SHOULD insert some padding bytes so that the subsequent FlowSet starts at a 4-byte aligned boundary. It is important to note that the Length field includes the padding bytes. Padding SHOULD be using zeros. パディング エクスポーターは、フローセットが4バイトの境界に配置されるように、いくつかのパディングバイトを挿入すべきです。長さフィールドには、パディングバイトが含まれることは重要なことです。パディングの値は、0にすべきです。 Claise Informational [Page 13] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Interpretation of the Data FlowSet format can be done only if the Template FlowSet corresponding to the Template ID is available at the Collector. データフローセットフォーマットの交換は、コレクターにテンプレートIDに関係したテンプレートフローセットが存在することで成り立ちます。 6. Options 6.オプション 6.1. Options Template FlowSet Format 6.1オプションテンプレートフローセットフォーマット The Options Template Record (and its corresponding Options Data Record) is used to supply information about the NetFlow process configuration or NetFlow process specific data, rather than supplying information about IP Flows. オプションテンプレートレコード(関連したオプションデータレコード)は、IPフローの情報提供ではなく、NetFlowプロセスの設定やデータの仕様に関する情報を提供するために使用されます。 For example, the Options Template FlowSet can report the sample rate of a specific interface, if sampling is supported, along with the sampling method used. 例えば、オプションテンプレートフローセットは、もし、サンプリングをサポートしていて、サンプリングが使用されている場合に、特定のインターフェイスにおけるサンプリングレートをレポートできます。 The format of the Options Template FlowSet follows. オプションテンプレートフローセットのフォーマットを以下に示します。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = 1 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Template ID | Option Scope Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Length | Scope 1 Field Type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Scope 1 Field Length | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Scope N Field Length | Option 1 Field Type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option 1 Field Length | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option M Field Length | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Options Template FlowSet Field Definitions オプションテンプレートフローセットのフィールドの定義 FlowSet ID = 1 A FlowSet ID value of 1 is reserved for the Options Template. FlowSet ID = 1 フローセットIDが1は、オプションテンプレートのために予約されています。 Length Total length of this FlowSet. Each Options Template FlowSet MAY contain multiple Options Template Records. Thus, the Length value MUST be used to determine the position of the next FlowSet record, which could be either a Template FlowSet or Data FlowSet. 長さ  フローセットの長さ、各オプションテンプレートフローセットは、複数のオプションテンプレートレコードを含むことができます。それで、長さは、次のフローセットレコードの位置を決めるために使用されるべきです。次のフローセットレコードがテンプレートフローセットでも、データフローセットでも関係ありません。 Claise Informational [Page 14] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Length is the sum of the lengths of the FlowSet ID, the Length itself, and all Options Template Records within this FlowSet Template ID. 長さは、フローセットID,長さ自身、このフローセットテンプレートIDに含まれる全てのオプションテンプレートレコードの長さの合計です。 Template ID Template ID of this Options Template. This value is greater than 255. テンプレートID オプションテンプレートのテンプレートID。この値は、255より大きいです。 Option Scope Length The length in bytes of any Scope field definition contained in the Options Template Record (The use of "Scope" is described below). オプションスコープ長 オプションテンプレートレコードに関連した何らかのスコープフィールドの定義のバイト単位での長さです。(「スコープ」の使用方法は、後で説明します。) Option Length The length (in bytes) of any options field definitions contained in this Options Template Record. オプションの長さ このオプションテンプレートレコードで定義された何らかのオプションフィールドの長さ(バイト単位) Scope 1 Field Type The relevant portion of the Exporter/NetFlow process to which the Options Template Record refers. Currently defined values are: 1 System 2 Interface 3 Line Card 4 Cache 5 Template For example, the NetFlow process can be implemented on a per- interface basis, so if the Options Template Record were reporting on how the NetFlow process is configured, the Scope for the report would be 2 (interface). The associated interface ID would then be carried in the associated Options Data FlowSet. The Scope can be limited further by listing multiple scopes that all must match at the same time. Note that the Scope fields always precede the Option fields. スコープ1 フィールドタイプ オプションテンプレートレコードが参照するエクスポーター/NetFlowプロセスに関連する部分 現在定義されている値は、 1 システム 2 インターフェイス 3 ラインカード 4 キャッシュ 5 テンプレート 例えば、NetFlowプロセスは、インターフェイス単位に実装できます。その場合、NetFlowプロセスの設定に関してレポートするオプションテンプレートレコードのスコープは、2(インターフェイス)になります。関連するインターフェイスIDが、関連するデータフローセットで転送されます。スコープは、同時に一致する複数のスコープのリストによって制限されます。注意:スコープは、常にオプションフィールドの前にあります。 Scope 1 Field Length The length (in bytes) of the Scope field, as it would appear in an Options Data Record. スコープ1 フィールド長 オプションデータレコードに存在するスコープフィールドの長さ(バイト単位) Option 1 Field Type A numeric value that represents the type of field that would appear in the Options Template Record. Refer to the Field Type Definitions section. オプション1 フィールドタイプ フィールドの種類を示す数値でオプションテンプレートレコードに存在します。フィールドタイプ定義セクションを参照してください。 Option 1 Field Length The length (in bytes) of the Option field. オプション1フィールド長 オプションフィールドの長さ(バイト単位) Claise Informational [Page 15] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Padding The Exporter SHOULD insert some padding bytes so that the subsequent FlowSet starts at a 4-byte aligned boundary. It is important to note that the Length field includes the padding bytes. Padding SHOULD be using zeros. パディング エクスポーターフローセットが4バイトの境界に配置されるようにパディングバイトを挿入すべきです。パディングバイトが長さフィールドに含まれることは重要なことです。パディングの値は、0にすべきです。 6.2. Options Data Record Format 6.2オプションデータレコードフォーマット The Options Data Records are sent in Data FlowSets, on a regular basis, but not with every Flow Data Record. How frequently these Options Data Records are exported is configurable. See the "Templates Management" section for more details. オプションデータレコードは、データフローセットで定常的に送信されますが、全フローデータレコード毎ではありません。オプションデータレコードをエクスポートする周期は、設定可能です。詳しくは、「テンプレート管理」セクションを参照ください。 The format of the Data FlowSet containing Options Data Records follows. オプションデータレコードを含むデータフローセットのフォーマットを次に示します。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = Template ID | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 1 - Scope 1 Value |Record 1 - Option Field 1 Value| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Record 1 - Option Field 2 Value| ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 2 - Scope 1 Value |Record 2 - Option Field 1 Value| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Record 2 - Option Field 2 Value| ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record 3 - Scope 1 Value |Record 3 - Option Field 1 Value| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Record 3 - Option Field 2 Value| ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Options Data Records of the Data FlowSet Field Descriptions データフローセットのオプションデータレコードのフィールドについて以下に説明します。 FlowSet ID = Template ID A FlowSet ID precedes each group of Options Data Records within a Data FlowSet. The FlowSet ID maps to a previously generated Template ID corresponding to this Options Template Record. The Collector MUST use the FlowSet ID to map the appropriate type and length to any field values that follow. フローセットID = Template ID フローセットIDは、データフローセット内のオプションデータレコードの各グループを示します。フローセットIDは、このオプションテンプレートレコードに関連して生成されたテンプレートIDと対応しています。コレクタは、継続するフィールドの値に対して適切なタイプと長さに対応したフローセットIDを使用するべきです。 Claise Informational [Page 16] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Length The length of this FlowSet. Length is the sum of the lengths of the FlowSet ID, Length itself, all the Options Data Records within this FlowSet, and the padding bytes, if any. 長さ このフローセットの長さ、長さは、フローセットID、長さ自身、このフローセットに含まれる全てのオプションデータレコードとパディングバイトの長さの合計です。 Record N - Option Field M Value The remainder of the Data FlowSet is a collection of Flow Records, each containing a set of scope and field values. The type and length of the fields were previously defined in the Options Template Record referenced by the FlowSet ID or Template ID. レコードN -オプションフィールドMの値 データフローセットの残りの部分は、スコープとフィールドの値の組み合わせを含んだフローレコードの集合です。フィールドのタイプと長さは、フローセットIDとテンプレートIDで参照されるオプションテンプレートレコードで定義されたものです。 Padding The Exporter SHOULD insert some padding bytes so that the subsequent FlowSet starts at a 4-byte aligned boundary. It is important to note that the Length field includes the padding bytes. Padding SHOULD be using zeros. パディング エクスポーターは、継続するフローセットを4バイトの境界に配置するためにパディングバイトを挿入するべきです。長さフィールドは、このパディングバイトを含むことに注意してください。パディングバイトは、0に設定すべきです。 The Data FlowSet format can be interpreted only if the Options Template FlowSet corresponding to the Template ID is available at the Collector. データフローセットのフォーマットは、コレクターでテンプレートIDで示されるオプションテンプレートフローセットが存在する場合にのみ、翻訳されます。 7. Template Management 7.テンプレート管理 Flow Data records that correspond to a Template Record MAY appear in the same and/or subsequent Export Packets. The Template Record is not necessarily carried in every Export Packet. As such, the NetFlow Collector MUST store the Template Record to interpret the corresponding Flow Data Records that are received in subsequent data packets. テンプレートレコードに関連したフローデータレコードは、同じか、又は、継続するエクスポートパケットに存在することができます。テンプレートレコードは、毎回エクスポートパケットで送信される必要はありません。このため、NetFlowコレクタは、続くデータパケットで受信するフローデータレコードを翻訳するためにテンプレートレコードを記憶するべきです。 A NetFlow Collector that receives Export Packets from several Observation Domains from the same Exporter MUST be aware that the uniqueness of the Template ID is not guaranteed across Observation Domains. あるエクスポーターの複数の観測ドメインからエクスポートパケットを受信するNetFlowコレクタは、観測ドメインをまたいで、保証されないテンプレートIDの独自性を管理すべきです。 The Template IDs must remain constant for the life of the NetFlow process on the Exporter. If the Exporter or the NetFlow process restarts for any reason, all information about Templates will be lost and new Template IDs will be created. Template IDs are thus not guaranteed to be consistent across an Exporter or NetFlow process restart. テンプレートIDは、エクスポーターのNetFlowプロセスの動作中は固定されなければなりません。何らかの理由で、エクスポーターかNetFlowプロセスが再起動された場合、全てのテンプレートに関する情報は失われます。そして、新しいテンプレートIDが生成されます。テンプレートIDは、エクスポーター又は、NetFlowプロセスが再起動された場合、同じ値が使用されることは保証されていません。 A newly created Template record is assigned an unused Template ID from the Exporter. If the template configuration is changed, the current Template ID is abandoned and SHOULD NOT be reused until the 新規に作成されたテンプレートレコードは、エクスポーターから未使用のテンプレートIDを割り当てられます。もし、テンプレートの設定が変更された場合、現在のテンプレートIDは、放棄されます。そして、NetFlowプロセス又はエクスポーターが再起動されるまで、再利用されるべきではありません。 Claise Informational [Page 17] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 NetFlow process or Exporter restarts. If a Collector should receive a new definition for an already existing Template ID, it MUST discard the previous template definition and use the new one. もし、コレクターが、既存のテンプレートIDで新しい定義を受信した場合、古いテンプレートの定義を破棄して、新しい定義を使用しなければなりません。 If a configured Template Record on the Exporter is deleted, and re- configured with exactly the same parameters, the same Template ID COULD be reused. もし、エクスポーターで設定されたテンプレートレコードが削除され、完全に同じパラメータで再設定された場合、同じテンプレートIDを再利用すべきです。 The Exporter sends the Template FlowSet and Options Template FlowSet under the following conditions: エクスポーターは、テンプレートフローセットとオプションテンプレートフローセットを以下の条件で送信します。 1. After a NetFlow process restarts, the Exporter MUST NOT send any Data FlowSet without sending the corresponding Template FlowSet and the required Options Template FlowSet in a previous packet or including it in the same Export Packet. It MAY transmit the Template FlowSet and Options Template FlowSet, without any Data FlowSets, in advance to help ensure that the Collector will have the correct Template Record before receiving the first Flow or Options Data Record. 1.NetFlowプロセスが再起動された後、エクスポーターは、前のパケット又は同じエクスポートパケットで関連するテンプレートフローセットと必要なオプションテンプレートフローセットを送信せずに、データフローセットを送信するべきではありません。データフローセットなしで、テンプレートフローセットとオプションテンプレートフローセットを送信することは可能です。コレクタが、最初のフロー又はオプションデータレコードを受信する前に、正しいテンプレートレコードを持つことを確実にする必要があります。 2. In the event of configuration changes, the Exporter SHOULD send the new template definitions at an accelerated rate. In such a case, it MAY transmit the changed Template Record(s) and Options Template Record(s), without any data, in advance to help ensure that the Collector will have the correct template information before receiving the first data. 2.設定変更のイベントにより、エクスポーターは、新しいテンプレートの定義の送信を加速するべきです。このような場合、変更したテンプレートレコードとオプションテンプレートレコードをデータなしで送ることができます。コレクターが最初のデータを受信する前に、正しいテンプレート情報を持つことを確実にするためです。 3. On a regular basis, the Exporter MUST send all the Template Records and Options Template Records to refresh the Collector. Template IDs have a limited lifetime at the Collector and MUST be periodically refreshed. Two approaches are taken to make sure that Templates get refreshed at the Collector: * Every N number of Export Packets. * On a time basis, so every N number of minutes. Both options MUST be configurable by the user on the Exporter. When one of these expiry conditions is met, the Exporter MUST send the Template FlowSet and Options Template. 3.通常、エクスポーターは、コレクタをリフレッシュするために全てのテンプレートレコードとオプションテンプレートレコードを送信すべきです。テンプレートレコードIDは、コレクタで制限された寿命を持ちます。定期的にリフレッシュする必要があります。コレクタで、テンプレートがリフレッシュされることを確実にするため、2つの方式が採られます。  *エクスポートパケットのN回毎に送信。  *時間ベース、N分毎に送信。 両方のオプションが、エクスポーターのユーザによって設定可能である必要があります。これらの、どちらかの条件が発生した時、エクスポーターは、テンプレートフローセットとオプションテンプレートを送信するべきです。 4. In the event of a clock configuration change on the Exporter, the Exporter SHOULD send the template definitions at an accelerated rate. 4.エクスポーターの時計設定が変更された場合、エクスポーターは、優先的にテンプレート定義を送信すべきです。 8. Field Type Definitions 8.フィールドタイプ定義 The following table describes all the field type definitions that an Exporter MAY support. The fields are a selection of Packet Header fields, lookup results (for example, the autonomous system numbers or the subnet masks), and properties of the packet such as length. エクスポーターがサポート可能な全てのフィールドタイプの定義を以下の表に示します。フィールドは、パケットヘッダフィールドの選択、結果の検索(例、自律システム番号、又は、サブネットマスクなど)、長さのようなパケットのプロパティです。 Claise Informational [Page 18] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Field Type Value Length Description (bytes)  フィールドタイプ名    値   長さ  説明 Incoming counter with length N x 8 bits for the IN_BYTES 1 N number of bytes associated with an IP Flow. By default N is 4 IPフローに関連したN×8ビットの受信バイトカウンタ、Nのデフォルトは4です。 Incoming counter with length N x 8 bits for the IN_PKTS 2 N number of packets associated with an IP Flow. By default N is 4 IPフローに関連したN×8ビットの受信パケットカウンタ、Nのデフォルトは4です。 FLOWS 3 N Number of Flows that were aggregated; by default N is 4 集計されたフローの数、デフォルトのNは4 PROTOCOL 4 1 IP protocol byte IPプロトコル種別 Type of service byte TOS 5 1 setting when entering the incoming interface 受信パケットに設定されたTOSフィールドの値 TCP flags; cumulative of TCP_FLAGS 6 1 all the TCP flags seen in this Flow TCPフラグ、このフローで検出された全てのTCPフラグの蓄積 TCP/UDP source port number L4_SRC_PORT 7 2 (for example, FTP, Telnet, or equivalent) TCP/UDP 送信元ポート番号 (例えば、FTP、TELNET、又は同等のもの) IPV4_SRC_ADDR 8 4 IPv4 source address IPv4送信元アドレス The number of contiguous bits in the source subnet SRC_MASK 9 1 mask (i.e., the mask in slash notation) 送信元サブネットマスクの連続するビット数(スラッシュ記述によるマスク値) Input interface index. INPUT_SNMP 10 N By default N is 2, but higher values can be used 入力インターフェイス番号、Nのデフォルト値は2、しかし、大きな値を使用可能 TCP/UDP destination port L4_DST_PORT 11 2 number (for example, FTP, Telnet, or equivalent) TCP/UDP あて先ポート番号 (例えば、FTP、TELNET、又は同等のもの) Claise Informational [Page 19] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 IPV4_DST_ADDR 12 4 IPv4 destination address IPv4あて先アドレス The number of contiguous bits in the destination DST_MASK 13 1 subnet mask (i.e., the mask in slash notation) あて先サブネットマスクの連続するビット数(スラッシュ記述によるマスク値) Output interface index. OUTPUT_SNMP 14 N By default N is 2, but higher values can be used 出力インターフェイス番号、Nのデフォルト値は2、しかし、大きな値を使用可能 IPV4_NEXT_HOP 15 4 IPv4 address of the next- hop router 次ホップのルータのIPv4アドレス Source BGP autonomous SRC_AS 16 N system number where N could be 2 or 4. By default N is 2 送信元BGPの自律システム番号、Nは、2又は4、デフォルトは2 Destination BGP autonomous DST_AS 17 N system number where N could be 2 or 4. By default N is 2 あて先BGPの自律システム番号、Nは、2又は4、デフォルトは2 BGP_IPV4_NEXT_HOP 18 4 Next-hop router's IP address in the BGP domain BGPドメインの次ホップルータのIPアドレス IP multicast outgoing packet counter with length MUL_DST_PKTS 19 N N x 8 bits for packets associated with the IP Flow. By default N is 4 IPフローに関連したN×8ビットのIPマルチキャストパケットの送信数、デフォルトのNは4 IP multicast outgoing Octet (byte) counter with length N x 8 bits for the MUL_DST_BYTES 20 N number of bytes associated with the IP Flow. By default N is 4 IPフローに関連したN×8ビットのIPマルチキャストパケットの送信バイト数、デフォルトのNは4 sysUptime in msec at which LAST_SWITCHED 21 4 the last packet of this Flow was switched このフローの最後のパケットが転送されたmSec単位のsysUptime値 sysUptime in msec at which FIRST_SWITCHED 22 4 the first packet of this Flow was switched このフローの最初のパケットが転送されたmSec単位のsysUptime値 Claise Informational [Page 20] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Outgoing counter with length N x 8 bits for the OUT_BYTES 23 N number of bytes associated with an IP Flow. By default N is 4 IPフローに関連したN×8ビットの送信バイト数カウンタ、Nのデフォルト値は4 Outgoing counter with length N x 8 bits for the OUT_PKTS 24 N number of packets associated with an IP Flow. By default N is 4 IPフローに関連したN×8ビットの送信パケット数カウンタ、Nのデフォルト値は4 IPV6_SRC_ADDR 27 16 IPv6 source address 送信元IPv6アドレス IPV6_DST_ADDR 28 16 IPv6 destination address あて先IPv6アドレス IPV6_SRC_MASK 29 1 Length of the IPv6 source mask in contiguous bits 送信元IPv6マスクの連続したビット長 Length of the IPv6 IPV6_DST_MASK 30 1 destination mask in contiguous bits あて先IPv6マスクの連続したビット長 IPV6_FLOW_LABEL 31 3 IPv6 flow label as per RFC 2460 definition RFC2460で定義されたIPv6のフローラベル Internet Control Message ICMP_TYPE 32 2 Protocol (ICMP) packet type; reported as ICMP Type * 256 + ICMP code ICMPプロトコルのパケット種別 ICMP Type * 256 + ICMP codeの形式でレポートされる。 MUL_IGMP_TYPE 33 1 Internet Group Management Protocol (IGMP) packet type IGMPプロトコルのパケット種別 When using sampled NetFlow, the rate at which packets SAMPLING_INTERVAL 34 4 are sampled; for example, a value of 100 indicates that one of every hundred packets is sampled サンプリングNetFlowが使用されている場合、パケットサンプリングのレート 例えば、この値が100の場合、100パケットに1回のパケットがサンプリングされることを示します。 For sampled NetFlow platform-wide: SAMPLING_ALGORITHM 35 1 0x01 deterministic sampling 0x02 random sampling Use in connection with SAMPLING_INTERVAL サンプリングNetFlowで使用されるアルゴリズム 0x01 固定的サンプリング 0x02 ランダムサンプリング SAMPLING_INTERVALと関連して使用する。 Claise Informational [Page 21] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Timeout value (in seconds) FLOW_ACTIVE_TIMEOUT 36 2 for active flow entries in the NetFlow cache NetFlowキャッシュでのフローエントリが有効と判断するためのタイムアウト値(秒単位) Timeout value (in seconds) FLOW_INACTIVE_TIMEOUT 37 2 for inactive Flow entries in the NetFlow cache NetFlowキャッシュでのフローエントリが無効と判断するためのタイムアウト値(秒単位) Type of Flow switching ENGINE_TYPE 38 1 engine (route processor, linecard, etc...) フロースイッチングエンジンの種別(ルータ、ラインカードなど) ENGINE_ID 39 1 ID number of the Flow switching engine フロースイッチエンジンのID番号 Counter with length N x 8 bits for the number TOTAL_BYTES_EXP 40 N of bytes exported by the Observation Domain. By default N is 4 観測ドメインからエクスポートされたバイト数カウンタ、N×8ビット長 Nのデフォルトは、4です。 Counter with length N x 8 bits for the number TOTAL_PKTS_EXP 41 N of packets exported by the Observation Domain. By default N is 4 観測ドメインからエクスポートされたパケット数カウンタ、N×8ビット長 Nのデフォルトは、4です。 Counter with length N x 8 bits for the number TOTAL_FLOWS_EXP 42 N of Flows exported by the Observation Domain. By default N is 4 観測ドメインからエクスポートされたフロー数カウンタ、N×8ビット長 Nのデフォルトは、4です。 MPLS_TOP_LABEL_TYPE 46 1 MPLS Top Label Type: 0x00 UNKNOWN 0x01 TE-MIDPT 0x02 ATOM 0x03 VPN 0x04 BGP 0x05 LDP MPLSのTOPレベルタイプ: Forwarding Equivalent Class MPLS_TOP_LABEL_IP_ADDR 47 4 corresponding to the MPLS Top Label MPLSのトップレベルに関連した転送機器のクラス FLOW_SAMPLER_ID 48 1 Identifier shown in "show flow-sampler" "show flow-sampler"で示される識別子 Claise Informational [Page 22] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 The type of algorithm used for sampling data: FLOW_SAMPLER_MODE 49 1 0x02 random sampling Use in connection with FLOW_SAMPLER_MODE サンプリングデータのために使用されるアルゴリズムの種類 0x02 ランダムサンプリング Packet interval at which to FLOW_SAMPLER_RANDOM_INTERVAL 50 4 sample. Use in connection with FLOW_SAMPLER_MODE サンプルのパケットの間隔 FLOW_SAMPLER_MODEと関連して使用する。 Type of Service byte DST_TOS 55 1 setting when exiting outgoing interface 出力時のTOS値 SRC_MAC 56 6 Source MAC Address 送信元MACアドレス DST_MAC 57 6 Destination MAC Address あて先MACアドレス Virtual LAN identifier SRC_VLAN 58 2 associated with ingress interface 入力インターフェイスに関連したVLAN識別子 Virtual LAN identifier DST_VLAN 59 2 associated with egress interface 出力インターフェイスに関連したVLAN識別子 Internet Protocol Version Set to 4 for IPv4, set to 6 IP_PROTOCOL_VERSION 60 1 for IPv6. If not present in the template, then version 4 is assumed IPプロトコルバージョン IPv4は4、IPv6は6。 もし、テンプレートに存在しない場合は、バージョン4とする。 Flow direction: DIRECTION 61 1 0 - ingress flow 1 - egress flow フローの方向: 0-入力フロー 1-出力フロー IPV6_NEXT_HOP 62 16 IPv6 address of the next-hop router 次のホップのルータのIPv6アドレス BGP_IPV6_NEXT_HOP 63 16 Next-hop router in the BGP domain BGPドメインの次のホップルータ Bit-encoded field IPV6_OPTION_HEADERS 64 4 identifying IPv6 option headers found in the flow フローで検出されたIPv6オプションヘッダ MPLS_LABEL_1 70 3 MPLS label at position 1 in the stack スタックの1番目のMPLSラベル Claise Informational [Page 23] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 MPLS_LABEL_2 71 3 MPLS label at position 2 in the stack MPLS_LABEL_3 72 3 MPLS label at position 3 in the stack MPLS_LABEL_4 73 3 MPLS label at position 4 in the stack MPLS_LABEL_5 74 3 MPLS label at position 5 in the stack MPLS_LABEL_6 75 3 MPLS label at position 6 in the stack MPLS_LABEL_7 76 3 MPLS label at position 7 in the stack MPLS_LABEL_8 77 3 MPLS label at position 8 in the stack MPLS_LABEL_9 78 3 MPLS label at position 9 in the stack MPLS_LABEL_10 79 3 MPLS label at position 10 in the stack スタックの10番目のMPLSラベル The value field is a numeric identifier for the field type. The following value fields are reserved for proprietary field types: 25, 26, 43 to 45, 51 to 54, and 65 to 69. 値フィールドは、タイプフィールドで識別される数値です。次の値フィールドは、プロパティフィールドタイプとして予約されています。25,26, 43 to 45, 51, 54, と 65から69 When extensibility is required, the new field types will be added to the list. The new field types have to be updated on the Exporter and Collector but the NetFlow export format would remain unchanged. Refer to the latest documentation at http://www.cisco.com for the newly updated list. 拡張が必要な場合、新しいフィールドタイプが、表に追加されます。新しい、フィールドタイプは、エクスポーターとコレクターで更新されます。しかし、NetFlowエクスポートフォーマットは、変更されません。最新の表は、http://www.cisco.comのドキュメントを参照してください。 In some cases the size of a field type is fixed by definition, for example PROTOCOL, or IPV4_SRC_ADDR. However in other cases they are defined as a variant type. This improves the memory efficiency in the collector and reduces the network bandwidth requirement between the Exporter and the Collector. As an example, in the case IN_BYTES, on an access router it might be sufficient to use a 32 bit counter (N = 4), whilst on a core router a 64 bit counter (N = 8) would be required. ある場合、フィールドタイプは、固定サイズで定義されます。例えば、PROTOCOLやIPV4_SRC_ADDRです。しかし、他の場合、不定長で定義されます。これは、コレクタにおけるメモリ効率を改善し、エクスポーターとコレクタ間のネットワーク帯域の必要条件を縮小します。例えば、IN_BYTESの場合、アクセスルータでは、32ビット(N=4)で十分ですが、コアルータでは、64ビット(N=8)が必要です。 All counters and counter-like objects are unsigned integers of size N * 8 bits. 全てのカウンタ及びカウンタタイプのオブジェクトは、N×8ビットの符号無し整数です。 Claise Informational [Page 24] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 9. The Collector Side 9.コレクタ側 The Collector receives Template Records from the Exporter, normally before receiving Flow Data Records (or Options Data Records). The Flow Data Records (or Options Data Records) can then be decoded and stored locally on the devices. If the Template Records have not been received at the time Flow Data Records (or Options Data Records) are received, the Collector SHOULD store the Flow Data Records (or Options Data Records) and decode them after the Template Records are received. A Collector device MUST NOT assume that the Data FlowSet and the associated Template FlowSet (or Options Template FlowSet) are exported in the same Export Packet. コレクタは、通常フローデータレコード(又はオプションデータレコード)を受信する前に、エクスポーターからテンプレートレコードを受信します。フローデータレコード(又は、オプションデータレコード)は、デコードされ、デバイス上に保存されます。もし、テンプレートレコードを、受信する前に、フローデータレコード(又は、オプションデータレコード)を受信した場合、コレクタは、フローデータレコード(又はオプションデータレコード)を保存し、テンプレートレコードを受信した後で、デコードすべきです。コレクタ機器は、データフローセットと関連するテンプレートフローセット(又は、オプションテンプレートフローセット)が同じエクスポートパケットで送信される想定するべきではありません。 The Collector MUST NOT assume that one and only one Template FlowSet is present in an Export Packet. コレクタは、エクスポートパケットに1つだけテンプレートフローセットが存在すると想定してはいけません。 The life of a template at the Collector is limited to a fixed refresh timeout. Templates not refreshed from the Exporter within the timeout are expired at the Collector. The Collector MUST NOT attempt to decode the Flow or Options Data Records with an expired Template. At any given time the Collector SHOULD maintain the following for all the current Template Records and Options Template Records: Exporter, Observation Domain, Template ID, Template Definition, Last Received. コレクタにおけるテンプレートの寿命は、固定のリフレッシュタイムアウトで制限されます。タイムアウト内にエクスポーターからリフレッシュされなかったテンプレートは、コレクターで破棄されます。コレクターは、破棄したテンプレートを使用して、フローまたはオプションデータレコードをデコードすべきではありません。設定された時間で、コレクターは、全ての現在のテンプレートレコードとオプションテンプレートレコードの次の項目を管理すべきです。エクスポーター、観測ドメイン、テンプレートID、テンプレート定義、最終受信 Note that the Observation Domain is identified by the Source ID field from the Export Packet. 注意:観測ドメインは、エクスポートパケットのソースIDで識別されます。 In the event of a clock configuration change on the Exporter, the Collector SHOULD discard all Template Records and Options Template Records associated with that Exporter, in order for Collector to learn the new set of fields: Exporter, Observation Domain, Template ID, Template Definition, Last Received. エクスポーターの時計設定が変化した場合、コレクタは、そのエクスポーターに関連した全てのテンプレートレコードとオプションテンプレートレコードを破棄すべきです。これは、コレクターが、次のフィールドを更新するためです。:エクスポーター、観測ドメイン、テンプレートID、テンプレート定義、最終受信。 Template IDs are unique per Exporter and per Observation Domain. テンプレートIDは、エクスポーターと観測ドメイン毎にユニークです。 If the Collector receives a new Template Record (for example, in the case of an Exporter restart) it MUST immediately override the existing Template Record. コレクターが新しいテンプレートレコードを受信した場合(例えば、エクスポーターが再起動した場合)、即座に、既存のテンプレートレコードを上書きすべきです。 Finally, note that the Collector MUST accept padding in the Data FlowSet and Options Template FlowSet, which means for the Flow Data Records, the Options Data Records and the Template Records. Refer to the terminology summary table in Section 2.1. 最後の注意として、コレクタは、フローデータレコード、オプションフローデータレコード、テンプレートレコードのために、データフローセット、オプションテンプレートフローセットのパディングを処理可能でなければなりません。セクション2.1の用語概要の表を参照してください。 Claise Informational [Page 25] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 10. Security Considerations 10.セキュリティに関する考察 The NetFlow version 9 protocol was designed with the expectation that the Exporter and Collector would remain within a single private network. However the NetFlow version 9 protocol might be used to transport Flow Records over the public Internet which exposes the Flow Records to a number of security risks. For example an attacker might capture, modify or insert Export Packets. There is therefore a risk that IP Flow information might be captured or forged, or that attacks might be directed at the NetFlow Collector. NetFlow Ver 9プロトコルは、エクスポーターとコレクターが一つのプライベートネットワークに存在するという前提で設計されました。しかしながら、NetFlow Ver.9プロトコルは、フローレコードに対するセキュリティリスクのあるインターネット上で、フローレコードを転送するために使用することがあります。例えば、攻撃者は、エクスポートパケットを取得し、改竄し、挿入することができます。これは、IPフロー情報が取得される、擬装される、NetFlowコレクターが直接攻撃されるというリストがあるということです。 The designers of NetFlow Version 9 did not impose any confidentiality, integrity or authentication requirements on the protocol because this reduced the efficiency of the implementation and it was believed at the time that the majority of deployments would confine the Flow Records to private networks, with the Collector(s) and Exporter(s) in close proximity. NetFlow Ver.9の設計者は、プロトコルに何らかの秘匿性、完全性、認証の必要性を課してはいけません。これは、実装の効率を悪くします。また、大部分は、コレクターとエクスポーターを近くに配置し、フローレコードの転送をプライベートネットワークに制限すると考えるます。 The IPFIX protocol (IP Flow Information eXport), which has chosen the NetFlow version 9 protocol as the base protocol, addresses the security considerations discussed in this section. See the security section of IPFIX requirement draft [RFC3917] for more information. IPFIXプロトコル(IPフロー情報エキスパート)は、NetFlow Ver 9.を基本プロトコルとして選択しました。このセクションのセキュリティに関する考えが示されています。詳しくは、IPFIXの要求仕様にかんするドラフト[RFC3917]のセキュリティセクションを参照ください。 10.1. Disclosure of Flow Information Data 10.1 フロー情報データの漏洩 Because the NetFlow Version 9 Export Packets are not encrypted, the observation of Flow Records can give an attacker information about the active flows in the network, communication endpoints and traffic patterns. This information can be used both to spy on user behavior and to plan and conceal future attacks. NetFlow Ver.9のエクスポートパケットは、暗号化されていません。フローレコードの観測は、攻撃者に次のような情報を提供します。ネットワーク上の有効なフロー、通信端末、トラフィックパターンなどです。この情報は、ユーザの行動をスパイすること、将来的な攻撃の計画や隠蔽の両方に使用できます。 The information that an attacker could derive from the interception of Flow Records depends on the Flow definition. For example, a Flow Record containing the source and destination IP addresses might reveal privacy sensitive information regarding the end user's activities, whilst a Flow Record only containing the source and destination IP network would be less revealing. フローレコードの解析から収集できる攻撃者の情報は、フローの定義に依存しています。例えば、送信元、あて先のIPアドレスを含むフローレコードは、エンドユーザの活動に関連するプライバシー情報を漏洩します。しかし、送信元、あて先のIPネットワークだけを含むフローレコードは、漏洩は少なくなります。 10.2. Forgery of Flow Records or Template Records フローレコード又は、テンプレートレコードの改竄 If Flow Records are used in accounting and/or security applications, there may be a strong incentive to forge exported Flow Records (for example to defraud the service provider, or to prevent the detection of an attack). This can be done either by altering the Flow Records on the path between the Observer and the Collector, or by injecting forged Flow Records that pretend to be originated by the Exporter. もし、フローレコードが、課金またはセキュリティアプリケーションで使用されている場合、エクスポートされたフローレコードの改竄の強力な動機になります。(例えば、サービスプロバイダーを騙す、攻撃の検出を防ぐ)これは、観測者とコレクターの間の経路でフローレコードを改竄すること、又は、オリジナルのエクスポーターを装って、擬装したフローレコードを注入することのどちらかで実現できます。 Claise Informational [Page 26] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 An attacker could forge Templates and/or Options Templates and thereby try to confuse the NetFlow Collector, rendering it unable to decode the Export Packets. 攻撃者は、テンプレート又は、オプションテンプレートを改竄することにより、エクスポートパケットのデコードを不能にする方法でNetFlowコレクターを混乱させようとします。 10.3. Attacks on the NetFlow Collector 10.3 NetFlowコレクタに対する攻撃 Denial of service attacks on the NetFlow Collector can consume so many resources from the machine that, the Collector is unable to capture or decode some NetFlow Export Packets. Such hazards are not explicitly addressed by the NetFlow Version 9 protocol, although the normal methods used to protect a server from a DoS attack will mitigate the problem. NetFlowコレクタに対する使用不能攻撃(DOS)は、コレクターがいくつかのNetFlow エクスポートパケットを取得またはデコードできないように、機器の多くのリソースを消費させます。このような危険は、NetFlow Ver.9プロトコルによって明示されていませんが、DOS攻撃からサーバを守る標準的な方法で、問題を軽減できます。 11. Examples 11.例 Let us consider the example of an Export Packet composed of a Template FlowSet, a Data FlowSet (which contains three Flow Data Records), an Options Template FlowSet, and a Data FlowSet (which contains two Options Data Records). ここで、テンプレートフローセットと(3つのフローデータレコードを含む)データフローセット、オプションテンプレートフローセット、(2つのオプションデータレコードを含む)データフローセットから構成されたエクスポートパケットの例について考えましょう。 Export Packet: エクスポートパケット: +--------+---------------------------------------------. . . | | +--------------+ +-----------------------+ | Packet | | Template | | Data | | Header | | FlowSet | | FlowSet | . . . | | | (1 Template) | | (3 Flow Data Records) | | | +--------------+ +-----------------------+ +--------+---------------------------------------------. . . . . .+-------------------------------------------------+ +------------------+ +--------------------------+ | | Options | | Data | | . . .| Template FlowSet | | FlowSet | | | (1 Template) | | (2 Options Data Records) | | +------------------+ +--------------------------+ | . . .--------------------------------------------------+ Claise Informational [Page 27] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 11.1. Packet Header Example 11.1 パケットヘッダの例 The Packet Header is composed of: パケットヘッダは、次の構成です。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Version = 9 | Count = 7 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | sysUpTime | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | UNIX Secs | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 11.2. Template FlowSet Example 11.2 テンプレートフローセットの例 We want to report the following Field Types: - The source IP address (IPv4), so the length is 4 - The destination IP address (IPv4), so the length is 4 - The next-hop IP address (IPv4), so the length is 4 - The number of bytes of the Flow - The number of packets of the Flow 以下のフィールドタイプをレポートしたい。 - 送信元IPv4アドレス 長さ4 - あて先IPv4アドレス 長さ4 - next-hop IPv4アドレス 長さ4 - フローのバイト数 - フローのパケット数 Therefore, the Template FlowSet is composed of the following: この場合、テンプレートフローセットは、次のように構成されます。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = 0 | Length = 28 bytes | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Template ID 256 | Field Count = 5 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IP_SRC_ADDR = 8 | Field Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IP_DST_ADDR = 12 | Field Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IP_NEXT_HOP = 15 | Field Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IN_PKTS = 2 | Field Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IN_BYTES = 1 | Field Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Claise Informational [Page 28] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 11.3. Data FlowSet Example 11.3 データフローセットの例 In this example, we report the following three Flow Records: これは、例です。以下の3つのフローレコードをレポートします。 Src IP addr. | Dst IP addr. | Next Hop addr. | Packet | Bytes | | | Number | Number --------------------------------------------------------------- 198.168.1.12 | 10.5.12.254 | 192.168.1.1 | 5009 | 5344385 192.168.1.27 | 10.5.12.23 | 192.168.1.1 | 748 | 388934 192.168.1.56 | 10.5.12.65 | 192.168.1.1 | 5 | 6534 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = 256 | Length = 64 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 198.168.1.12 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 10.5.12.254 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 192.168.1.1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 5009 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 5344385 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 192.168.1.27 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 10.5.12.23 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 192.168.1.1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 748 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 388934 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 192.168.1.56 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 10.5.12.65 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 192.168.1.1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 5 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 6534 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Claise Informational [Page 29] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Note that padding was not necessary in this example. 注意:この例では、パディングは必要ありません。 11.4. Options Template FlowSet Example 11.4 オプションテンプレートフローセットの例 Per line card (the Exporter is composed of two line cards), we want to report the following Field Types: - Total number of Export Packets - Total number of exported Flows ラインカード(エクスポーターは、2つのラインカードから構成される)毎に、次のフィールドタイプをレポートしたい。 - エクスポートパケット数 - エクスポートフロー数 The format of the Options Template FlowSet is as follows: オプションテンプレートフローセットのフォーマットは、次のようになります。 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = 1 | Length = 24 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Template ID 257 | Option Scope Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Option Length = 8 | Scope 1 Field Type = 3 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Scope 1 Field Length = 2 | TOTAL_EXP_PKTS_SENT = 41 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Length = 2 | TOTAL_FLOWS_EXP = 42 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Field Length = 2 | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 11.5. Data FlowSet with Options Data Records Example 11.5 オプションデータレコードが付属するデータフローセットの例 In this example, we report the following two records: これは、例です。以下の2つのレコードをレポートします。 Line Card ID | Export Packet| Export Flow ------------------------------------------ Line Card 1 | 345 | 10201 Line Card 2 | 690 | 20402 Claise Informational [Page 30] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FlowSet ID = 257 | Length = 16 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 1 | 345 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 10201 | 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 690 | 20402 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 12. References 12.参考資料 12.1. Normative References 12.1 引用規格 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. 12.2. Informative References 12.2 情報提供の参照 [RFC768] Postel, J., "User Datagram Protocol", STD 6, RFC 768, August 1980. [RFC793] Postel, J., "Transmission Control Protocol", STD 7, RFC 793, September 1981. [RFC2960] Stewart, R., Xie, Q., Morneault, K., Sharp, C., Schwarzbauer, H., Taylor, T., Rytina, I., Kalla, M., Zhang, L., and V. Paxson, "Stream Control Transmission Protocol", RFC 2960, October 2000. [RFC3917] Quittek, J., Zseby, T., Claise, B., and S. Zander, "Requirements for IP Flow Information Export (IPFIX)", RFC 3917, October 2004. 13. Authors 13.作者 This document was jointly written by Vamsidhar Valluri, Martin Djernaes, Ganesh Sadasivan, and Benoit Claise. このドキュメントは、Vamsidhar Valluri, Martin Djernaes, Ganesh Sadasivan, Benoit Claiseの共作です。 14. Acknowledgments 14.謝辞 I would like to thank Pritam Shah, Paul Kohler, Dmitri Bouianovski, and Stewart Bryant for their valuable technical feedback. 私は、技術的フィードバックに対して、Pritam Shah, Paul Kohler, Dmitri Bouianovski,Stewart Bryantにお礼します。 Claise Informational [Page 31] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 15. Authors' Addresses 15.作者のアドレス Benoit Claise (Editor) Cisco Systems De Kleetlaan 6a b1 1831 Diegem Belgium Phone: +32 2 704 5622 EMail: bclaise@cisco.com Ganesh Sadasivan Cisco Systems, Inc. 3750 Cisco Way San Jose, CA 95134 USA Phone: +1 408 527-0251 EMail: gsadasiv@cisco.com Vamsi Valluri Cisco Systems, Inc. 510 McCarthy Blvd. San Jose, CA 95035 USA Phone: +1 408 525-1835 EMail: vvalluri@cisco.com Martin Djernaes Cisco Systems, Inc. 510 McCarthy Blvd. San Jose, CA 95035 USA Phone: +1 408 853-1676 EMail: djernaes@cisco.com Claise Informational [Page 32] RFC 3954 Cisco Systems NetFlow Services Export V9 October 2004 Full Copyright Statement 著作権表示 Copyright (C) The Internet Society (2004). This document is subject to the rights, licenses and restrictions contained in BCP 78, and at www.rfc-editor.org, and except as set forth therein, the authors retain all their rights. This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Intellectual Property The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the ISOC's procedures with respect to rights in ISOC Documents can be found in BCP 78 and BCP 79. Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf- ipr@ietf.org. Acknowledgement Funding for the RFC Editor function is currently provided by the Internet Society. Claise Informational [Page 33]