-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add bit indicating whether orig packet used VXLAN or VXLAN-GPE encap #58
Conversation
Include guidelines suggesting that the sink should ignore this bit in mixed v1.0 / v1.1 environments.
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.
Looks good, minor comment inline.
telemetry/specs/INT.mdk
Outdated
* G: Indicates whether the original packet (before insertion of INT headers | ||
and metadata) used a VXLAN or VXLAN GPE encapsulation. | ||
- 0: Original packet used VXLAN encapsulation. | ||
- 1: Original packet used VXLAN GPE encapsulation. |
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.
Wondering whether we should flip this and use 0 to indicate the original packet was VXLAN GPE, i.e. no conversion is required and 1 to indicate that original packet was VXLAN, i.e. yes conversion is required at INT sink. Thus INT sink does VXLAN GPE to VXLAN conversion if this bit is set to 1.
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 don't have a very strong preference but using 1 to indicate the need for conversion seems a bit more indicative and useful for debugging. Again, no strong opinion.
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.
Done
@mickeyspiegel |
telemetry/specs/INT.mdk
Outdated
- In an all v1.1 environment, both packets received with VXLAN encapsulation | ||
and VXLAN GPE encapsulation could have INT inserted, with the INT sink | ||
relying on the value of this bit to determine whether to carry out the | ||
conversion from VXLAN GPE back to VXLAN. |
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.
Since this is now aimed at the INT v2.0 spec, the two bullet points about v1.0, v1.1 and interop can just be removed.
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.
+1
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.
Done
The VXLAN GPE draft defines a shim header format that is very similar to the shim header format proposed for INT over VXLAN GPE. This commit aligns the INT over VXLAN GPE shim header format with the VXLAN GPE draft shim header by: - Swapping the length and reserved bytes in the shim header, which also aligns with other INT shim header formats. - Changing the length definition in the shim header to exclude the shim header itself. - Changing the proposed VXLAN GPE Next Protocol field value for INT to 0x80, the first value in the range set aside for shim headers.
Open Issues:
Note that the VXLAN GPE shim header format in draft-ietf-nvo3-vxlan-gpe-09 defines:
where |
@mickeyspiegel as for the shim hdr format, I think the consensus from the last meeting is to follow the GPE convention, deviating from the INT convention. |
Include guidelines suggesting that the sink should ignore this bit in
mixed v1.0 / v1.1 environments.