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

Achieving PacketOut from client at a given packet rate #12

Open
rsindhujha opened this issue Feb 16, 2023 · 3 comments
Open

Achieving PacketOut from client at a given packet rate #12

rsindhujha opened this issue Feb 16, 2023 · 3 comments

Comments

@rsindhujha
Copy link

hi @rnhaddad ,
Need your suggestion on how we can achieve PacketOut from the p4rt client at a particular rate? For example GDP at 324pps.

@rnhaddad
Copy link
Contributor

You should be able to write a "traffic shaper" (leaky bucket) function on top of the current client with the desired rate. This would only "emulate average rates" as in Linux the scheduler is not a real-time scheduler. But given the low rate of 324pps it should be doable.
Feel free to contribute a new function to the code (leaky buckets are easy enough to implement, you can have a go routine that can generate packets from a template and send packets at the desired rate until it is told to stop), i can help review.

@rsindhujha
Copy link
Author

Thanks @rnhaddad . Will you be able to help us with this enhancement? I dont have expertise in this area. This is required for the Packetout performance Ondatra test case.

@rnhaddad
Copy link
Contributor

Unfortunately i don't have cycles at the moment for this feature. Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants