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

NRT traffic implementation under TCP #265

Open
houyahiya opened this issue May 21, 2023 · 3 comments
Open

NRT traffic implementation under TCP #265

houyahiya opened this issue May 21, 2023 · 3 comments

Comments

@houyahiya
Copy link

houyahiya commented May 21, 2023

Hi everybody,
firstly, I'm new to the mm-wave module and I need assistance in implementing a Constant Bit Rate (CBR) application. The specific requirements for this application include a non-real-time FTP flow with a constant bit rate of 100 kbps, a packet size of 500 bytes, and an inter-packet interval of 0.04 seconds.

Regarding my questions, I would like to know the necessary modifications that need to be made in the tcp-bulk-send.cc example provided in the mm-wave module to meet these requirements.

Additionally, I am curious about the behavior of TCP communication. Specifically, when nodes communicate via TCP, received packets are acknowledged by sending back a packet with an ACK bit set. I would like to know if this acknowledgment process happens automatically when using the BulkSendHelper class.

I'm eagerly awaiting your response.

Best regards,

@mattia-lecci
Copy link
Contributor

Hi,
You could this ns-3 add-on.
This example should give you a good idea of how to use it for you interest.
For example, in your case you could set these lines as follows:

  burstyHelper.SetBurstGenerator ("ns3::SimpleBurstGenerator",
                                  "PeriodRv", StringValue ("ns3::ConstantRandomVariable[Constant=0.04]"),
                                  "BurstSizeRv", StringValue ("ns3::ConstantRandomVariable[Constant=500]"));

Hope this can help!

@houyahiya
Copy link
Author

Thank you very much mattia-lecci for your answer.
Howerver, i encounterd a problem during the intallation of this module (ns-3-vr-app).
Could you please help me with this matter?
this is the error message:


Processing contrib/ns-3-vr-app
CMake Error at build-support/custom-modules/ns3-module-macros.cmake:76 (target_precompile_headers):
Cannot specify precompile headers for target "REUSE_FROM" which is not
built by this project.
Call Stack (most recent call first):
contrib/ns-3-vr-app/CMakeLists.txt:1 (build_lib)

CMake Error at build-support/custom-modules/ns3-module-macros.cmake:94 (add_library):
add_library ALIAS requires exactly one target argument.
Call Stack (most recent call first):
contrib/ns-3-vr-app/CMakeLists.txt:1 (build_lib)


Thank you, Sir.

@mattia-lecci
Copy link
Contributor

Unfortunately, i've never used ns-3 since they started using CMake instead of waf, so i'm not familiar with this error.
You might want to try taking a look at the ns-3 manual to see how they suggest adding and building new modules.
You might also want to open another issue on that module to see if the current developers can help you solving the issue.

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