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

How to adjust the sending rate? #29

Open
kg12 opened this issue Apr 15, 2019 · 8 comments
Open

How to adjust the sending rate? #29

kg12 opened this issue Apr 15, 2019 · 8 comments

Comments

@kg12
Copy link

kg12 commented Apr 15, 2019

Could you tell me how to set the sending rate of a sender to a fixed value?Where should I change the code?
Thank you in advance.

@bobzhuyb
Copy link
Owner

What are you trying to achieve? Does traditional UDP sender work for you?

@kg12
Copy link
Author

kg12 commented Apr 15, 2019

I want to achieve RDMA rate allocation. Traditional UDP may still be different from RDMA.

@bobzhuyb
Copy link
Owner

What do you mean by "RDMA rate allocation"....

@kg12
Copy link
Author

kg12 commented Apr 16, 2019

I want to set a flow to a fixed sending rate.Could you tell me where to change the code ?

@bobzhuyb
Copy link
Owner

I can't really help you unless you tell me more about what you want to do.. E.g., do you want to disable DCQCN for all flows? for some flows? should the flows react to PFC? etc.

If what you want can be implemented by 1) fix initial sending rate (take a look at the UDP component used in third.cc) and 2) disable DCQCN, you may trace down how this line works
https://github.com/bobzhuyb/ns3-rdma/blob/master/windows/ns-3-dev/x64/Release/mix/config.txt#L1

@kg12
Copy link
Author

kg12 commented Apr 16, 2019

Thank you for your patience.
I want to disable DCQCN and use the PFC as layer2.I set the ENABLE_QCN of config.txt to 0 already.But I don't know where to set a fix initial sending rate in your code.Actually, I don't know how you can get flows to send at a certain rate.

@bobzhuyb
Copy link
Owner

How about here? Rate limit from the application layer.

Time interPacketInterval = Seconds(0.0000005 / 2);

@kg12
Copy link
Author

kg12 commented Apr 17, 2019

Thank you very much for your patience.

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