Skip to content
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

Implement draft-ietf-opsawg-ipfix-on-path-telemetry #21

Merged
merged 12 commits into from
Nov 13, 2023

Conversation

Yuya9786
Copy link
Contributor

@Yuya9786 Yuya9786 commented Nov 4, 2023

Description

  • Support for draft-ietf-opsawg-ipfix-on-path-telemetry
    • Obtain and export the following metrics
      • PathDelayMeanDeltaMicroseconds
      • PathDelayMaxDeltaMicroseconds
      • PathDelayMinDeltaMicroseconds
      • PathDelaySumDeltaMicroseconds
  • Change the type of BPF MAP from HASH to PERF_EVENT_ARRAY so that the calculation of statistics moves out of xdp data plane
  • Refactor the structures of the directory
    • pkg/packet/ipfix -> pkg/ipfix
    • pkg/bpf/srv6.go -> internal/pkg/meter/srv6.go

Type of change

  • New features
  • Bug fixes
  • Refactoring
  • Documentation updates

Motivation and Context

To obtain and export on-path delay metrics

How is This Tested?

Tested with packets with IOAM timestamps inserted by VPP (https://github.com/network-analytics/vpp/tree/feature/ipfix-onpath-telemetry)

Other Information

Change the licence of xdp code to Dual GPL/MIT because bpf_perf_event_output() is a GPL-restricted function.

Copy link
Member

@watal watal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@watal watal added the enhancement New feature or request label Nov 4, 2023
Copy link
Contributor

@Motok1 Motok1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@@ -51,5 +51,10 @@ func main() {
ingressIfName = c.Ipfix.IngressInterface
}

client.New(ingressIfName, raddr)
interval := c.Ipfix.Interval
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if the readme could understand how to use this option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote how to configure interval in getting-started.md

@watal watal merged commit 8d1a6ee into nttcom:main Nov 13, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants