nyuwireless-unipd / ns3-mmwave

ns-3 module for simulating mmWave-based cellular systems. See https://ieeexplore.ieee.org/document/8344116/ (open access) as a reference.
GNU General Public License v2.0
298 stars 193 forks source link

NRT traffic implementation under TCP #265

Open houyahiya opened 1 year ago

houyahiya commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.