-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update flow exporter documentation #1280
Conversation
Thanks for your PR. The following commands are available:
|
Codecov Report
@@ Coverage Diff @@
## master #1280 +/- ##
==========================================
- Coverage 55.07% 54.37% -0.71%
==========================================
Files 110 115 +5
Lines 10596 10807 +211
==========================================
+ Hits 5836 5876 +40
- Misses 4187 4356 +169
- Partials 573 575 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
2a39181
to
dd33684
Compare
docs/network-flow-visibility.md
Outdated
### IPFIX Fields in a Flow Record | ||
|
||
There are 23 IPFIX fields in each flow record. They are from the standard IANA | ||
registry, the reverse IANA registry and the Antrea registry for Antrea specific |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some notes on terminology:
-
is "Information Element" more accurate than "field"?
-
"reverse IANA registry" does not seem to really match the official name: https://tools.ietf.org/html/rfc5103#section-6.1. For the registry names, I would maybe suggest "IANA-assigned IE registry", "Reverse IE registry" and "Antrea IE registry"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to specify IANA in "Reverse IE registry" as this corresponds to only IANA assigned information elements. I am thinking "Reverse IANA IE registry" is ok as "Reverse IANA-assigned IE registry". Any thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Reverse IANA-assigned IE registry" works for me
| sourcePodNamespace | 55829 | 100 | string | | ||
| sourcePodName | 55829 | 101 | string | | ||
| destinationPodNamespace | 55829 | 102 | string | | ||
| destinationPodName | 55829 | 103 | string | | ||
| sourceNodeName | 55829 | 104 | string | | ||
| destinationNodeName | 55829 | 105 | string | | ||
| destinationClusterIP | 55829 | 106 | ipv4Address | | ||
| destinationServicePortName| 55829 | 108 | string | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
orthogonal to this PR, but could you request an actual assignment from IANA for Antrea (https://tools.ietf.org/id/draft-pti-pen-registration-02.html#rfc.section.2.1).
It seems that 55829 is taken already:
55829 Arthur18
Heiko Grill
heiko.grill&diegrills.org
Since VMware has an assignment already, the correct thing to do may be to request a sub-assigment from the contact person. I have not looked into exactly what it entails. Antrea being an open-source project, it may make more sense to request a new assignment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for bringing this up. Yes, we haven't explored in that direction yet. Few months back, we picked an available ID as Antrea enterprise ID.
I will open an issue in go-ipfix and try contacting VMware enterpriseID contact to get his suggestion. If I do not hear from him, we can apply through this link I guess: https://pen.iana.org/pen/PenApplication.page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please open an issue in Antrea repo to track this. If you already have an issue in go-ipfix, I suggest opening an issue in Antrea anyway, and linking the 2 issues.
@@ -26,7 +26,7 @@ to enhance the performance and security aspects of Pod workloads. | |||
For visualizing the network flows, Antrea monitors the flows in Linux conntrack module. These flows are converted to flow records | |||
and are sent to the configured flow controller. High-level design is given below: | |||
|
|||
<img src="https://downloads.antrea.io/static/netviz.png" width="600" alt="Network Flow Visibilty"> | |||
![Flow Exporter Design](assets/flow_exporter.svg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for enabling anti-aliasing in the svg, text looks much better now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion.
docs/network-flow-visibility.md
Outdated
There are 23 IPFIX fields in each flow record. They are from the standard IANA | ||
registry, the reverse IANA registry and the Antrea registry for Antrea specific | ||
fields. The reverse IANA registry fields are used for flows in the reverse | ||
direction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting is weird (white spaces at the beginning of the lines)
plus leave empty line before section header
dd33684
to
32206ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some changes to restrict the line length to be 80.
@@ -26,7 +26,7 @@ to enhance the performance and security aspects of Pod workloads. | |||
For visualizing the network flows, Antrea monitors the flows in Linux conntrack module. These flows are converted to flow records | |||
and are sent to the configured flow controller. High-level design is given below: | |||
|
|||
<img src="https://downloads.antrea.io/static/netviz.png" width="600" alt="Network Flow Visibilty"> | |||
![Flow Exporter Design](assets/flow_exporter.svg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion.
| sourcePodNamespace | 55829 | 100 | string | | ||
| sourcePodName | 55829 | 101 | string | | ||
| destinationPodNamespace | 55829 | 102 | string | | ||
| destinationPodName | 55829 | 103 | string | | ||
| sourceNodeName | 55829 | 104 | string | | ||
| destinationNodeName | 55829 | 105 | string | | ||
| destinationClusterIP | 55829 | 106 | ipv4Address | | ||
| destinationServicePortName| 55829 | 108 | string | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for bringing this up. Yes, we haven't explored in that direction yet. Few months back, we picked an available ID as Antrea enterprise ID.
I will open an issue in go-ipfix and try contacting VMware enterpriseID contact to get his suggestion. If I do not hear from him, we can apply through this link I guess: https://pen.iana.org/pen/PenApplication.page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple nits, otherwise LGTM
docs/network-flow-visibility.md
Outdated
parameters are set to 5s and 12, respectively. `flowCollectorAddr` is a required | ||
parameter that is necessary for the Flow Exporter feature to work. | ||
|
||
### IPFIX Information Elements(IEs) in a Flow Record |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### IPFIX Information Elements(IEs) in a Flow Record | |
### IPFIX Information Elements (IEs) in a Flow Record |
docs/network-flow-visibility.md
Outdated
There are 23 IPFIX IEs in each flow record, which are registered the IANA-assigned IE | ||
registry, the Reverse IANA-assigned IE registry and the Antrea IE registry. The | ||
reverse IEs are used for the flow in reverse direction when representing a | ||
connection. All the utilized IEs are given below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
There are 23 IPFIX IEs in each flow record, which are defined in the IANA-assigned IE
registry, the Reverse IANA-assigned IE registry and the Antrea IE registry. The
reverse IEs are used to provide bi-directional information about the flow.
All the IEs used by the Antrea Flow Exporter are listed below:
| sourcePodNamespace | 55829 | 100 | string | | ||
| sourcePodName | 55829 | 101 | string | | ||
| destinationPodNamespace | 55829 | 102 | string | | ||
| destinationPodName | 55829 | 103 | string | | ||
| sourceNodeName | 55829 | 104 | string | | ||
| destinationNodeName | 55829 | 105 | string | | ||
| destinationClusterIP | 55829 | 106 | ipv4Address | | ||
| destinationServicePortName| 55829 | 108 | string | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please open an issue in Antrea repo to track this. If you already have an issue in go-ipfix, I suggest opening an issue in Antrea anyway, and linking the 2 issues.
Update the figure in flow exporter documentation
32206ac
to
5374162
Compare
/skip-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Update the figure in flow exporter documentation